Webhooks
Post-Call Webhook
Webhook sent after a call is completed containing extracted variables and call data
The Post-Call Webhook is automatically sent to your specified webhook URL after each call is completed. This webhook contains call details, extracted variables, transcript, and optionally the recording URL.
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
id integer
Unique identifier of the call
customer_phone string
Phone number of the customer in E.164 format (e.g., “+1234567890”) or null if not available
assistant_phone string
Phone number used by the assistant in E.164 format or null if not available
duration integer
Duration of the call in seconds
status string
Final status of the call (e.g., “completed”, “busy”, “failed”)
extracted_variables object
Variables extracted by AI based on your post-call schema configuration
status boolean
Whether the call objective was achieved
summary string
Call summary in a few words
custom_variable string|number|boolean
Any custom variables you defined in the assistant configuration
input_variables object
Variables that were passed to the assistant before the call started
transcript string
Full transcript of the conversation
recording_url string
URL to download the call recording (only included if “Include recording in webhook” is enabled in assistant settings)
created_at string
ISO 8601 timestamp when the call was initiated
finished_at string
ISO 8601 timestamp when the call was completed (uses updated_at from the call record)
lead object
Lead information (only included for campaign calls)
id integer
Unique identifier of the lead
phone_number string
Lead’s phone number
variables object
Variables associated with the lead
status string
Current status of the lead
created_at string
When the lead was created
updated_at string
When the lead was last updated
campaign object
Campaign information (if available)
id integer
Campaign ID
name string
Campaign name
status string
Campaign status
allowed_hours_start_time string
Campaign allowed start time
allowed_hours_end_time string
Campaign allowed end time
allowed_days array
Campaign allowed days
max_calls_in_parallel integer
Maximum concurrent calls for campaign
max_retries integer
Maximum retry attempts for leads
retry_interval integer
Retry interval in minutes
created_at string
When the campaign was created
updated_at string
When the campaign was last updated
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_phoneandassistant_phonefields can benullif the information is not available - The
recording_urlfield is only included if you have enabled “Include recording in webhook” in your assistant settings - The
leadobject is only included for calls that are part of a campaign - The
extracted_variablesobject will contain the variables you defined in your assistant’s post-call schema configuration