Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Connect Virtual Agent


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(link takes you to an external page).

Connect Virtual Agent Widget (for Dialogflow CX).MY_WIDGET_NAME is the name of your actual Widget). For more information on working with variables in Studio, see this guide.

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

VirtualAgentProviderData

virtualagentproviderdata page anchor

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 keyDescription
ConversationIdConversationId: Unique identifier for this conversation provided by Google
EndUserIdUnique identifier for the end user participant provided by Google
AgentHandoffParametersParameters included from the Dialogflow CX Agent if the Live Agent Handoff Transition was triggered

Rate this page:

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.