Using Webhook Templates
You can customize the payload of a webhook with webhook templates. When no template is entered, the system default payload is sent.
Customizing Webhook Payload
In case you would like to receive customized data at the end of each call, you can customize the Request Body with the Webhook Template functionality. In JSON format you need to enter the specific data elements you would like to receive and the appropriate attributes from the VCC Live data structure. This way you can customize the Body to your needs. As an example, you can enter the following content:
{
“direction”: 1,
“campaign”: “Campaign name”,
“callid”: “{{ uuid }}“,
“customerPhone”: “{{ destination }}“,
“outcome”: “{{ disposition.name }}“,
“talkTime”: “{{ call_end_time|date(‘U’) – call_start_time|date(‘U’) }}“,
}
Note: You can add VCC Live database attributes from the original webhook response in double curly brackets corresponding to Twig formatting.
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.