Enable a webhook
Set trigger conditions
By default, a webhook fires for every call. You can restrict it to fire only when the call matches specific conditions. Conditions are organized into trigger groups. Each group combines one or more conditions withAND or OR, and each condition compares a state variable or the call outcome against a value using equals or not_equals. The webhook fires as soon as any one trigger group matches.
For example, you could fire a webhook only when call_outcome equals CALLBACK_REQUESTED, or when a state variable like escalated equals true.
Default payload
If you don’t configure a custom payload, AgentCallback sends this JSON body:Customize the payload
You can define your own payload template using the same{{name}} interpolation and {{#if}}...{{else}}...{{/if}} conditionals available in your agent’s prompt — see Variables for the syntax.