Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Internal Webhooks: Use any of the pre-made internal functions. Use this when you need to use any of the commonly used functions.

  2. Webhook Widget: Call any external API using dynamic data and configurable structure. Use this when you want to integrate and use any external API

  3. 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

    titleTo 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:

  1. callDetails: [ Array of each call leg.

    1. calleeType: Agent for agent leg, and VISITOR for customer leg.

    2. duration: Duration of the leg in milliseconds

    3. hangupCause: Why was the call disconnected. 16 is normal clearing.

  2. keys: Array of each flow variable set in the flow

    1. name: name of the flow variable

    2. value: value of the flow variable

  3. phonon-uuid: Unique identifier of the whole call

Code Block
languagejson
{
	"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.

...