---
updatedAt: 2026-08-07T09:17:02.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/clarity/llms.txt
---

# Safety events

Conversational agent safety events flag errors and performance issues so you can detect and resolve them fast. For remediation guidance, see Conversational agent [optimization](https://documentation.bloomreach.com/clarity/docs/clarity-optimization).

## clarity\_error

Tracked when Conversational agent encounters a recoverable error that the system caught and handled. Conversational agent may keep running after the error, but the event signals that something went wrong and needs investigation.  <br /><br />**Attributes**

<table>
  <tr>
   <td><strong>Attribute</strong>
   </td>
   <td><strong>Description</strong>
   </td>
   <td><strong>Values</strong>
   </td>
  </tr>
  <tr>
   <td><code>action</code>
   </td>
   <td>Event action type.
   </td>
   <td><code>clarity_error</code>
   </td>
  </tr>
  <tr>
   <td><code>type</code>
   </td>
   <td>The specific error condition. 
   </td>
   <td>Common conditions include empty or invalid product IDs, and product IDs that aren't returned as strings. 
   </td>
  </tr>
  <tr>
   <td><code>location</code>
   </td>
   <td>Where the error originated
   </td>
   <td>[See values](https://documentation.bloomreach.com/clarity/docs/safety-events#location-values)
   </td>
  </tr>
  <tr>
   <td><code>message</code>
   </td>
   <td>Error message.
   </td>
   <td>Free-text
   </td>
  </tr>
  <tr>
   <td><code>chat_widget_state</code>
   </td>
   <td>State of the chat widget when the error occurred, when applicable.
   </td>
   <td><code>minimized</code>, <code>bubble</code>, <code>open</code>
   </td>
  </tr>
  <tr>
   <td><code>chat_widget_size</code>
   </td>
   <td>Size of the chat widget, when applicable.
   </td>
   <td><code>large</code>, <code>small</code>, <code>half_screen</code>, <code>full_screen</code>
   </td>
  </tr>
  <tr>
   <td><code>conversation_state</code>
   </td>
   <td>State of the conversation, when applicable.
   </td>
   <td><code>initial_message</code>, <code>welcome_message</code>, <code>home_screen</code>, <code>conversation</code>, <code>idle</code>
   </td>
  </tr>
  <tr>
   <td><code>chat_config</code>
   </td>
   <td>Webchat configuration, when applicable.
   </td>
   <td>JSON string
   </td>
  </tr>
  <tr>
   <td><code>latency</code>
   </td>
   <td>For backend errors, time elapsed before the error, in milliseconds.
   </td>
   <td>Example: <code>1240</code>
   </td>
  </tr>
</table>

### location values

<table>
  <tr>
   <td>**location value**
   </td>
   <td>**Description**
   </td>
  </tr>
  <tr>
   <td><code>FE:chat_close</code>
   </td>
   <td>The error occurred when the chat window was closed or dismissed.
   </td>
  </tr>
  <tr>
   <td><code>FE:user_active</code>
   </td>
   <td>The error occurred while the shopper was actively using the chat.
   </td>
  </tr>
  <tr>
   <td><code>FE:user_passive</code>
   </td>
   <td>The error occurred while the chat was open, but the shopper wasn't interacting with it.
   </td>
  </tr>
  <tr>
   <td><code>Back_end</code>
   </td>
   <td>The error originated on the server. This is not related to your browser or actions.
   </td>
  </tr>
  <tr>
   <td><code>FE:app_error_boundary</code>
   </td>
   <td>A critical error caused the chat to stop working unexpectedly.
   </td>
  </tr>
</table>

<br />

## clarity\_warning

Tracked when Conversational agent hits a recoverable issue that doesn't stop it from running, but is worth flagging. It carries lower severity than `clarity_error`.

**Attributes**

<table>
  <tr>
   <td><strong>Attribute</strong>
   </td>
   <td><strong>Description</strong>
   </td>
   <td><strong>Values</strong>
   </td>
  </tr>
  <tr>
   <td><code>action</code>
   </td>
   <td>Event action type.
   </td>
   <td><code>clarity_warning</code>
   </td>
  </tr>
  <tr>
   <td><code>type</code>
   </td>
   <td>The specific warning condition.
   </td>
   <td>Common conditions include misconfigurations, unrecognized hook keys, or deprecated configuration values.
   </td>
  </tr>
  <tr>
   <td><code>message</code>
   </td>
   <td>Warning message.
   </td>
   <td>Free-text
   </td>
  </tr>
  <tr>
   <td><code>chat_widget_state</code>
   </td>
   <td>State of the chat widget when the warning occurred.
   </td>
   <td><code>minimized</code>, <code>bubble</code>, <code>open</code>
   </td>
  </tr>
  <tr>
   <td><code>chat_widget_size</code>
   </td>
   <td>Size of the chat widget.
   </td>
   <td><code>large</code>, <code>small</code>, <code>half_screen</code>, <code>full_screen</code>
   </td>
  </tr>
  <tr>
   <td><code>conversation_state</code>
   </td>
   <td>State of the conversation.
   </td>
   <td><code>initial_message</code>, <code>welcome_message</code>, <code>home_screen</code>, <code>conversation</code>, <code>idle</code>
   </td>
  </tr>
  <tr>
   <td><code>chat_config</code>
   </td>
   <td>Webchat configuration.
   </td>
   <td>JSON string
   </td>
  </tr>
</table>

<br />

## load\_failed

Tracked when a blocking condition prevents Conversational agent from loading or rendering. The shopper won't see Conversational agent from this code path.

**Attributes**

| Attribute | Description                     | Values               |
| --------- | ------------------------------- | -------------------- |
| `action`  | Event action type.              | `load_failed`        |
| `type`    | The specific failure condition. | See conditions below |
| `message` | Error message.                  | Free-text            |

**type conditions**

| `type` value                | Meaning                                                                              |
| --------------------------- | ------------------------------------------------------------------------------------ |
| `banner_id_not_set`         | The use case configuration is missing the banner ID.                                 |
| `parent_element_not_found`  | The CSS selector for the trigger's parent element didn't match anything on the page. |
| `configuration_error`       | The Conversational agent configuration was invalid.                                          |
| `required_values_not_found` | A product ID, agent ID, or URL was missing during product detail retrieval.          |
| `item_not_found`            | A product details fetch returned an empty result.                                    |
| `product_ids_failed`        | Extracting product IDs from the page failed.                                         |
| `page_type_failed`          | Page type detection failed.                                                          |
| `page_api_not_available`    | Page API was unavailable.                                                            |
| `healthcheck_failed`        | The Conversational agent backend health check failed.                                        |
| `outside_working_hours`     | The current time is outside the use case's configured working hours.                 |
| `external_data_failed`      | Third-party experiment data couldn't be matched to a known variant.                  |

## trigger\_error

Tracked when a trigger encounters a non-blocking error while loading. Fires for triggers that make additional requests, such as PDP-embedded triggers with AI-generated conversation starters and search suggestions.

**Attributes**

| Attribute                     | Description                                                       | Values                                                                                                             |
| ----------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `action`                      | Event action type.                                                | `trigger_error`                                                                                                    |
| `component`                   | Trigger surface type.                                             | `PDP_EMBEDDED`, `SEARCH_SUGGESTION`                                                                                |
| `component_template`          | Template version.                                                 | `PDP_EMBEDDED_v1`, `SEARCH_SUGGESTION_v1`                                                                          |
| `trigger_context_product_ids` | Product IDs extracted from the page by the trigger.               | Array of product IDs                                                                                               |
| `location`                    | The stage of the trigger execution flow where the error occurred. | Same value set as [`clarity_error`](https://documentation.bloomreach.com/clarity/docs/safety-events#clarity_error) |
| `message`                     | Error message.                                                    | Free-text                                                                                                          |
| `chat_config`                 | Webchat configuration.                                            | JSON string                                                                                                        |