TwiML™ Voice: <Connect>
This TwiML verb is not currently available when using Twilio Regions Ireland (IE1) or Australia (AU1). This is currently only supported with the default US1 region. A full list of unsupported products and features with Twilio Regions is documented here.
<Connect>
is a TwiML verb that works together with nested TwiML nouns to connect Voice calls (over PSTN or SIP) to other Twilio services or external services.
- <Connect><Autopilot> connects a call to Autopilot
- <Connect><Room> connects a call to a Programmable Video Room
- <Connect><Stream> starts a bi-directional MediaStream
- <Connect><VirtualAgent> connects a call to a Dialogflow VirtualAgent
Connect Nouns
The nouns that you can nest inside of <Connect>
are listed in the table below. Click on a TwiML noun to see its docs page and how to use the noun with <Connect>.
Noun | Description |
---|---|
<Autopilot> |
Describes an Autopilot assistant. Connects the active caller to an Autopilot assistant. See the Autopilot documentation for a walkthrough of how to use Autopilot to build intelligent assistants and conversational IVRs. |
<Room> |
A nested XML element that describes a Programmable Video Room to connect to with some attributes. |
<Stream> |
Begins a bi-directional MediaStream for the active call. |
<VirtualAgent> |
Connects a Programmable Voice call to a Dialogflow Essentials (ES) agent. |
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.