webchat.guardrail.triggered webhook event is triggered whenever one or more
guardrails are activated on an AI response in a webchat session. This can be used to
monitor compliance, safety, or business rule violations in your webchat assistant.
Payload
Properties
| Property | Type | Description |
|---|---|---|
event | string | The webhook event type (webchat.guardrail.triggered). |
data.sessionId | string | The unique identifier for the webchat session. |
data.orgId | string | The Apten organization ID that owns the session. |
data.profile | string | The name of the webchat profile that handled the session. |
data.origin | string | The URL of the page where the webchat widget was opened. Only included if set. |
data.messageId | string | The unique identifier for the message that triggered the guardrail. |
data.violatedGuardrails | string[] | Array of guardrail IDs that were triggered. |
data.blockedContent | string | The original AI response that was blocked by the guardrail. |
data.sanitizedContent | string | The replacement message that was shown to the visitor. |
data.createdAt | string | The ISO 8601 timestamp when the guardrail was triggered. |
timestamp | string | The ISO 8601 timestamp when the webhook was sent. |

