Webhooks
Setting Up a Webhook
API Request Example
"external_webhook_url": "www.example.com/webhook_url"Webhook Response Example
{
"status": "completed",
"error_message": "agent_goodbye",
"lead": {
"name": "David",
"phone_number": "+1234334546"
},
"call": {
"status": "completed",
"end_call_reason": "completed",
"model_id": "1711241656808x745681686585854500",
"timezone": "Europe/Berlin",
"call_id": "1711646262471x768387119913843100",
"duration": 32,
"start_time": "2024-03-28T18:17:46.205134+01:00",
"transcript": "\nbot: Hello, I am calling from [company]! I've seen you complete our form on the website about selling. Do you have a couple of minutes to finish the request? \nhuman: Yes. I want to buy a car.\nbot: Oh, that's exciting! But let's focus on your property for now. Are you planning to sell it or rent it out? \nhuman: I want to buy a car by"
},
"executed_actions": {
"extract_info_1": {
"name": "extract_info_1",
"action_type": "extract_info_action_type",
"description": "",
"parameters_hard_coded": {
"identifier": "purchase",
"condition": "if user wants to purchase an item",
"choices": null,
"examples": [
"car",
"house"
]
},
"error_message": null,
"return_value": {
"purchase": "car"
}
}
}
}Understanding the Call Object States
Status Code
Description
End Call Reason
Reason Code
Description
Última actualización