...
Go to Advanced → Webhook page
Click on ‘Add Webhook’
Select the method as ‘Post’
Enter or paste the URL of the webhook that you need to set as default webhook. push the details to
Select the authentication method
None : If no authentication is required
Basic : If username and password is required. If you have selected this option, you need to provide the username and the password for the URL.
Select the body type as ‘None’ and click on save button.
...
If ‘HTTP Support’ is not enabled in your account, then you will be able to see a check button beside URL which will check the domain and URL that you have entered.
After you have entered the URL of the webhook and applied the authentication (if any), you need to click on the check button in order to validate the URL.
...
Set the “Default Webhook” switch on. This will set this webhook to be used by all Flow End Webhook calls.
...
Step 2 : Enable webhook in flow
...
Enable ‘webhook for the flow’ and done. After ever execution of this flow, all the flow details will be send to the default webhook in the predefined format.
Info |
---|
If you see the switch is disabled, check if the webhook |
...
is properly configured and set as default. You can see if the status in “Webhook for Account is” is “Not Configured” then click on Configure Webhook to configure it. |
...
Predefined Format :
Code Block |
---|
{ "callDetails": [ { "calleeNumber": "Phone number of the callee", "connectTime": "Timestamp of call when started", "didNumber": "DID used in call", "duration": "Total Call duration in seconds", "endTime": "Timestamp of call when ended", "hangupCause": "Hangup cause code of the call", "incoming": True if the call was incoming false otherwise, "startTime": "Timestamp of call when started" } ], "keys": [ { "name": "$flow.key.variable1", "value": "value of variable" }, { "name": "$flow.key.variable2", "value": "value of variable" } // This will be repeated for all the variables passed during the call ], "phonon-uuid": "Phonon uuid of the call", "recordingUrls": [ { "recordedFileName": "file name of the recording", "recordedFilePublicPath": "URL of the recording, where it is stored" } ] } |
...
If you want to send some additional data at the end of the flow in some different format, then you can use a webhook widget after ‘on flow complete’ widget.
This functionality will be modified in the near future.
...
FAQs
Question | Answer | |
---|---|---|
1 | Is it possible to change the Hold Music in Webhook Widget? | No. The Hold Music is the default hold music. |
2 | “Enable Webhook for Flow” is disabled. | Default Webhook is not configured. Please follow all the steps from the guide again. |