conversation.analysis
The conversation analysis webhook is triggered when conversation analysis completes.
Webhook payload
Here is an example of the POST request JSON payload:
Payload fields
event_type
Always "conversation.analysis"
created_at
ISO 8601 timestamp of when the event was created
data.conversation.id
The ID of the conversation analysis
data.conversation.latencies_ms
Array of response latencies in milliseconds for each assistant turn
data.conversation.interruptions_count
Number of times the user interrupted the assistant
data.call_info
Phone call metadata (present for telephony conversations, null for web). Contains from_phone_number, to_phone_number, and optionally twilio_call_sid.
Example usage
Here’s an example of how to handle the webhook: