Webhook Configuration
To enable post-call webhooks:- Configure your assistant’s webhook URL in the assistant settings
- Enable “Post call webhook” in the assistant configuration
- Define post-call variables that the AI should extract
Request Format
The webhook is sent as a POST request to your configured URL with the following JSON payload:Payload Structure
Unique identifier of the call
Phone number of the customer in E.164 format (e.g., “+1234567890”) or null if not available
Phone number used by the assistant in E.164 format or null if not available
Duration of the call in seconds
Final status of the call (e.g., “completed”, “busy”, “failed”)
Variables extracted by AI based on your post-call schema configuration
Variables that were passed to the assistant before the call started
Full transcript of the conversation
URL to download the call recording (only included if “Include recording in webhook” is enabled in assistant settings)
ISO 8601 timestamp when the call was initiated
ISO 8601 timestamp when the call was completed (uses updated_at from the call record)
Lead information (only included for campaign calls)
Webhook Settings
You can configure the following options for your post-call webhook:- Send webhook only on completed: Only send the webhook for successfully completed calls
- Include recording in webhook: Include the
recording_url
field in the payload - Custom variables: Define custom variables that the AI should extract from the conversation
Important Notes
- The
customer_phone
andassistant_phone
fields can benull
if the information is not available - The
recording_url
field is only included if you have enabled “Include recording in webhook” in your assistant settings - The
lead
object is only included for calls that are part of a campaign - The
extracted_variables
object will contain the variables you defined in your assistant’s post-call schema configuration