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

Enqueue Call


Studio uses Widgets to represent various parts of Twilio's functionality that can then be stitched together in your Studio Flow to build out robust applications that require no coding on your part.

(information)

Info

New to Twilio Studio? Check out our Getting Started guide!

The Enqueue Call Widget allows you to enqueue the current call into a call queue. The caller will hear hold music until the call is dequeued via TaskRouter or a custom-built dequeuing mechanism. See the <Enqueue> documentation for more information on working with enqueued calls.

Enqueue Call Widget.

_10
"{
_10
"type": "call",
_10
"contact": "+15558675309",
_10
"customer-value": "gold",
_10
"task-reason": "support",
_10
"callSid": "CA42ed11..."
_10
}"


Enqueue Call Transitions

enqueue-call-transitions page anchor

These events trigger transitions from this Widget to another Widget in your Flow. For more information on working with Studio transitions, see this guide.

NameDescription
Call CompleteTransition is triggered when the Enqueue action URL is requested. Due to the underlying behavior of the Enqueue action URL, Studio can only regain control of the live call after dequeueing if the call was originally dequeued using <Dial><Queue>.
Failed to EnqueueTransition is triggered if enqueuing of the call fails due to full call queue (each call queue cannot exceed 100 calls), returning QueueResult as "queue-full".
Call FailedTransition is triggered if QueueResult is "system-error".
(information)

Info

QueueResult information can be found in the TwiML enqueue documentation.


When the Enqueue Call Widget executes, it will have stored the following variables for use throughout your Studio Flow (where MY_WIDGET_NAME is the name of your actual widget). For more information on working with variables in Studio, see this guide.

Find definitions and examples for these variables at the Voice: <Enqueue> and Call Resource pages.

NameLiquid Template Language
Account SID{{widgets.MY_WIDGET_NAME.AccountSid}}
API Version{{widgets.MY_WIDGET_NAME.ApiVersion}}
Call SID{{widgets.MY_WIDGET_NAME.CallSid}}
Call Status{{widgets.MY_WIDGET_NAME.CallStatus}}
Caller Name{{widgets.MY_WIDGET_NAME.CallerName}}
Direction{{widgets.MY_WIDGET_NAME.Direction}}
Forward From{{widgets.MY_WIDGET_NAME.ForwardedFrom}}
From{{widgets.MY_WIDGET_NAME.From}}
Parent Call SID{{widgets.MY_WIDGET_NAME.ParentCallSid}}
Queue Result{{widgets.MY_WIDGET_NAME.QueueResult}}
Queue SID{{widgets.MY_WIDGET_NAME.QueueSid}}
Queue Time{{widgets.MY_WIDGET_NAME.QueueTime}}
To{{widgets.MY_WIDGET_NAME.To}}

Example: Hold For Support Agent

example-hold-for-support-agent page anchor

Once the customer calls the phone number associated to the Studio Flow, they will be greeted and told that they are being put on hold while a representative is found to help them. They will be enqueued into a call queue which will be handled by the assigned TaskRouter Workflow. Once a Worker accepts the Task and the call is complete, you may engage with the contact further using the transitions given by the Enqueue Call Widget.

Twilio Studio Enqueue Call Widget Example.Rate this page:

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.