Twilio Studio allows you to drag and drop widgets to build a number of different Programmable Messaging flows. Here are steps for creating a simple SMS message forwarding flow, and configuring it for use on your Twilio number.
Notice: At this time, Studio does not support forwarding SMS to an email address. For examples of non-Studio options for forwarding to email, please see our article Forwarding SMS Messages to your Email Inbox.
Create an SMS Message Forwarding Flow
- Access the Studio Dashboard in Console.
- Click the + sign icon to create a new Studio flow.
- Enter the desired name for your flow, and then click Next.
- Select "Start from scratch", and then click Next.
- From the "Widget Library" on the right, drag and drop a Send Message widget into the flow.
- Click and drag the Trigger widget’s Incoming Message lead to connect it to the Send Message widget.
- Click the Send Message widget to display the widget's options on the right. Enter the following in the MESSAGE BODY field:
NEW MESSAGE FROM: {{trigger.message.From}}
BODY: {{trigger.message.Body}} - In the SEND MESSAGE widget options, scroll to and click to expand MESSAGING & CHAT CONFIG. Enter the desired destination forwarding number in the SEND MESSAGE TO field, and then click Save.
Note: We recommend using E.164 formatting for this number. Check our Lookup tool if you’re unsure what this should look like.
- Click Publish.
Activate a Flow on a Twilio Number
When your flow is published, it can then be configured to handle incoming text messages for Twilio phone numbers that support SMS. Here’s how to add your flow to a phone number:
- Access the Active Numbers page in Console.
- Click the desired phone number to modify.
-
Scroll to the Messaging section, and then modify the phone number’s routing:
- CONFIGURE WITH: Webhooks, TwiML Bins, Functions, Studio, or Proxy
- A MESSAGE COMES IN: Studio Flow
-
DROP-DOWN MENU: Select the previously saved flow.
NOTE: A new flow may not be immediately visible; try refreshing the page if you don't see it at first.
- Click Save.
Notice: Please note: any Twilio Phone Number that supports SMS can be used for two-way messaging local to the recipients (e.g. a German mobile number for a German audience). Two-way messaging refers to receiving replies from users, in addition to sending outbound SMS to those from Twilio. You may be able to conduct two-way SMS when using a number from a different country than your recipients, however this is not guaranteed. As a best practice, always use an SMS-capable Twilio number or short code from the same country as your recipients, where available. For example, we suggest using a UK number for 2-way messaging with UK recipients. See here for more details.