This guide is for Flex UI 1.x.x and channels that use Programmable Chat and Proxy. If you are using Flex UI 2.x.x or you are starting out, we recommend that you build with Flex Conversations.
The simplest (and the default) way to route incoming SMS messages for a Phone Number into Flex is to:
Follow these steps to set up a new SMS Address with the aforementioned configuration on the Flex Console.
If you haven't purchased an SMS-enabled Phone Number yet, refer to Purchase a new Twilio Phone Number.
Flex uses Addresses (aka Flex Flows) to describe how new conversations should be handled to connect them to Flex.
To create an Address for your new Phone Number:
Navigate to Flex > Messaging. Select the SMS Numbers tab. Alternatively, you can click "+ Create new Address" on the Addresses tab, and search for your Phone Number on the "Create Address" form.
You can create, edit or delete Flex SMS Addresses at any point using the Flex Console.
Text the phone number that you purchased. Follow the steps in Respond to SMS to review the incoming SMS task on your Flex instance.
Under the hood, Flex uses Twilio Proxy to send the messages back-and-forth between the end-customer and the agent. For this to work, the messaging handler for your Phone Number needs to be set to Flex Proxy Service. The Flex Proxy Service uses the Flex Flows configuration to route inbound messages into Flex.
If you use Flex Console to create an SMS Address (Flex Flow), the Phone Number Handler should be set to Proxy automatically when you create the Address. You can review and reconfigure at any time by finding your Phone Number under Phone Numbers > Manage > Active Numbers. For example, you need to configure this step manually if you use the Flex Flow API for creating Addresses, instead of the Flex Console.