Events
Voiceflow will send POST requests to your webhook URL on the following events.runtime.call.start
This event is sent when the following call types are made:
- Twilio inbound / outbound / prototype-outbound call
- web widget voice call is made (including during testing on
creator.voiceflow.com)
runtime.call.start event:
runtime.call.end
This event is sent when a call is completed.
runtime.call.end event:
Platform Metadata
Depending ondata.platform, the metadata for the call will change.
Twilio
"inbound" call, from is the userNumber and to is the agentNumber, while it is the inverse for "outbound".
web-voice
No additional metadata currently. In the future, this may include browser and geographic information.Best Practices
- Check
typewhen evaluating response. There may be additional types of events in the future with a different shaped request body, as well as new properties and metadata. - Check
data.platformbefore evaluatingdata.metadata, for example it’s possible thatdata.metadata.callSiddoesn’t exist because it’s a"web-voice"call. - You can check
data.projectIDif you want to share the same endpoint between different projects.