Objective
This article shows you how to configure the Autopilot widget in an existing Studio flow so the conversation is handed to an assistant, including the messaging fields and the task the assistant should start with.
Product
Studio
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 that contains the widget, which opens the Editor tab.
- Select the Autopilot widget on the canvas to open its configuration panel.
- Enter the assistant to hand the conversation to in Assistant SID.
- To start the assistant at a particular task rather than its default, enter that task in Target task override initial task.
- To customize the messages the widget sends, expand Messaging & Chat Config and set:
- Body: the message text to send.
- Send message from: the sender to use instead of the flow's default.
- Message attributes: a JSON object of extra attributes to attach to the message.
- Programmable chat service and Programmable chat channel: the chat service and channel to use on a chat conversation.
- Select Save.
- Open the Transitions tab and choose where the flow goes next for If session ended, If timeout, and If error.
- Select Publish to make the change live.
Additional Information
- Assistant SID is required before the flow can be published.
- Always wire up If timeout and If error as well as If session ended, so a stalled or failed session has somewhere to go. Usually a reprompt or a handoff to a person.
- For new builds, use the Connect Virtual Agent widget instead.
This content was generated by AI and reviewed, edited, and verified by a human.