Objective
This article shows you how to add and configure the Send and wait for reply widget, which sends a message and then holds the flow until the customer answers. The building block for surveys, confirmations, and two-way chatbots.
Product
Studio, Programmable Messaging
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 and wait for reply onto the canvas.
- Select the new widget to open its configuration panel.
- Choose how the message content is supplied:
- Leave the widget in its default custom mode and enter your question in Message body.
- Or select Content template, enter the template's identifier in Content template SID, then add a content variable for each placeholder by selecting Add content variable, entering the key and value, and selecting Save.
- Optionally set the advanced fields:
- 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.
- Select Save.
- Open the Transitions tab and choose where the flow goes next for If reply, If no reply, and If delivery fails.
- Select Publish to make the change live.
Additional Information
- The customer's answer is available to later widgets in the flow, so you can branch on it with the Split Based On... widget.
- Switching to Content template hides Message body, because the template supplies the content instead.
- This widget cannot be used off the Incoming Call trigger when the concurrent calls trigger is enabled for the flow, because replies cannot be matched when the caller's number is the same or unknown.
This content was generated by AI and reviewed, edited, and verified by a human.