Studio uses Widgets to represent various parts of Twilio's API that can then be stitched together in your Studio Flow to build out robust applications that require no coding on your part.
The Connect Virtual Agent Widget allows you to connect a Twilio Voice call to a Google Dialogflow CX agent.
MY_WIDGET_NAME
is the name of your actual Widget). For more information on working with variables in Studio, see this guide.Name | Liquid Template Language |
---|---|
VirtualAgentProvider | {{widgets.MY_WIDGET_NAME.VirtualAgentProvider}} |
VirtualAgentStatus | {{widgets.MY_WIDGET_NAME.VirtualAgentStatus}} |
VirtualAgentProviderData | {{widgets.MY_WIDGET_NAME.VirtualAgentProviderData}} |
VirtualAgentError | {{widgets.MY_WIDGET_NAME.VirtualAgentError}} |
VirtualAgentErrorCode | {{widgets.MY_WIDGET_NAME.VirtualAgentErrorCode}} |
VirtualAgentError
and VirtualAgentErrorCode
will be present if status is failed (if the Widget ends through the Failed transition). VirtualAgentProviderError
may also be provided if VirtualAgentErrorCode
is 32601.
For Google Dialogflow CX agent, the VirtualAgentProviderData JSON object may contain the following information. Note that this variable might be empty if the Widget exited through the Failed transition.
JSON key | Description |
---|---|
ConversationId | ConversationId: Unique identifier for this conversation provided by Google |
EndUserId | Unique identifier for the end user participant provided by Google |
AgentHandoffParameters | Parameters included from the Dialogflow CX Agent if the Live Agent Handoff Transition was triggered |