...
Internal Webhooks: Use any of the pre-made internal functions. Use this when you need to use any of the commonly used functions.
Webhook Widget: Call any external API using dynamic data and configurable structure. Use this when you want to integrate and use any external API
Flow End Webhook: Call the default external webhook for any flow. Use this when you need to push flow details on a particular webhook.
Status title To be deprecated
1. Internal Webhook
Custom webhooks are internal webhooks which can be used to pass on the data in between the flow execution.
...
Predefined Format for flow with two call legs, i.e customer and agent call legs in outbound multicast flow :
...
Please note:
callDetails: [
Array of each call leg.calleeType
: Agent for agent leg, and VISITOR for customer leg.duration
: Duration of the leg in millisecondshangupCause
: Why was the call disconnected. 16 is normal clearing.
keys
: Array of each flow variable set in the flowname
: name of the flow variablevalue
: value of the flow variable
phonon-uuid
: Unique identifier of the whole call
Code Block | ||
---|---|---|
| ||
{ "callDetails": [ { "calleeNumber": "919879072567", "calleeType": "VISITOR", "cdrId" : "f1ca3a63-7eb7-4a8d-b50c-fbbdd3807034##pbx-9", "connectTime" : "2022-01-17T18:07:28.889+05:30", "didNumber" : "912243690284", "duration" : "15962", "endTime" : "2022-01-17T18:07:44.851+05:30", "hangupCause" : "16", "incoming" : false, "remoteHangup" : false, "startTime" : "2022-01-17T18:07:21.952+05:30" }, { // All the details of this object is of second leg calleeNumber" { "calleeNumber": "919822003887", "calleeType" : "AGENT", "cdrId" : "f7d646de-44af-4037-8722-2346fb11de86##pbx-9", "connectTime" : "2022-01-17T18: 07: 40.142+05: 30", "didNumber" : "912243690284", "duration" : "4670", "endTime" : "2022-01-17T18: 07: 44.812+05: 30", "hangupCause" : "16", "remoteHangup" : true, "startTime" : "2022-01-17T18: 07: 31.153+05: 30" } ], "keys" : [ { //flow key variables as per the usecase { "name" : "$flow.key.customernum", "value" : "919822003887" }, { "name" : "$flow.key.leadid", "value" : "HFC123" }, { "name" : "$flow.key.empid", "value" : "IIFL123" }, { "name" : "$flow.key.isTTSUsed", "value" : true } ], "phonon-uuid" : "9d34878d-01a0-45ba-b5d6-6b097ae17611" } |
Outcome : Everytime the flow is executed, all the flow details (as mentioned in the format) will be sent to the default webhook selected.
...