Objective
This article shows you how to add and configure the Send to Flex widget so your Studio flow creates a task in Flex and routes the caller or chat to an agent.
Product
Studio, Flex, TaskRouter
Environment
Twilio Console
User Account Permission/Role(s) Required
Editing a flow requires the Studio flows create and update permissions on the account.
Procedure
- In the Twilio Console, select Orchestration in the left sidebar.
- Select Studio, then Flows.
- Select the flow you want to edit to open the Editor tab.
- Open the widget library and drag Send to Flex onto the canvas.
- Select the new widget to open its configuration panel.
- Choose the Workflow that should route the task.
- Choose the Task channel, for example Default.
- Optionally set:
- Attributes: a JSON object of task attributes your routing rules can use.
- Priority: the task's routing priority.
- Timeout: how long the task may wait before it expires.
- Hold music TwiML URL and its request method, GET or POST, to control what a waiting caller hears.
- Select Save.
- Open the Transitions tab and choose where the flow goes next for If task created, If failed to create task, and If call failed.
- Select Publish to make the change live.
Additional Information
- The Workflow list is populated from your Flex TaskRouter configuration. If it is empty, set up a workflow in Flex or TaskRouter first.
- Attributes is passed straight through to the task, so use it to carry the skills, language, or customer data your workflow rules need to match on.
This content was generated by AI and reviewed, edited, and verified by a human.