メニュー

Manage Conversations SMS Addresses

This Twilio product is currently available as a Beta release. Some features are not yet implemented and others may be changed before the product is declared as Generally Available. Use of this Beta release is subject to the relevant terms of the applicable license agreement. Beta products are not covered by a Twilio SLA. Learn more about beta product support.

Flex Conversations requires Flex UI 2.0. If you are on Flex UI 1.x, please refer to Chat and Messaging pages.

This guide requires Flex UI 2.0. If you are on Flex UI 1.x, refer to Handle an SMS contact with Legacy-based Messaging.

Flex uses Addresses to describe how new Conversations should be handled and connected to Flex. Conversations Addresses inform the Conversation Service to auto-create a new Conversation for messages that do not belong to an existing Conversation. Once a Conversation is created, all new messages from the same source to the same destination will be routed to the newly created Conversation..

The simplest (and the default) way to route incoming SMS messages for a Phone Number into Flex is to:

  • 電話番号を購入する
  • Create a Conversations Address for the Phone Number
  • Set the Flex integration on the Address to use the Studio Flow you created earlier

Follow these steps to set up a new SMS Address with the aforementioned configuration via the Flex Console.

電話番号を購入する

If you haven't purchased an SMS-enabled Phone Number yet, or would like to configure a new one, navigate to Phone Numbers > Manage > Buy a number.

Configure your Phone Number for the SMS channel

Under Phone Numbers > Manage > Active numbers, find the number you wish to configure and open it.

For correct operation, make sure your Phone Number Messaging is configured as follows (this should also be the default state):

  • Make sure no Messaging Service is selected in the dropdown. If there is one configured, remove it. (For advanced configuration with Messaging Service refer here.)
  • Make sure the “A message comes in” webhook handler is set to blank (“”). The default handler will respond with a default message for every inbound SMS which is not desired.

Screen Shot 2022-03-09 at 1.35.12 PM.png

Screen Shot 2022-03-09 at 1.35.12 PM.png

Phone Number configuration for Flex Conversations

If you specify a webhook handler for “A message comes in”, it will be executed in parallel to executing the auto-creation functionality defined in the Conversation address. This is most probably undesired for production accounts. Unless you have an advanced use case and know what you’re doing, it is recommended to leave the webhook handler blank.

Create an SMS Address for your Phone Number

To create an Address for your new Phone Number:

  1. Navigate to Flex Console > Manage > Messaging. Select the SMS Numbers tab. (Alternatively you can click “+ Create new SMS Address” on the Addresses tab, and search for your Phone Number on the Create Address form).
    Screen Shot 2022-03-09 at 1.36.41 PM.png
  2. Search for or click "+ Create new SMS Address" in the Status field of your unregistered Phone Number. Previously configured Phone Numbers will have an "Address created" indicator.
  3. You can optionally enter a friendly name.
  4. Configure the integration to Flex – either by using Studio Flow you created earlier or your own endpoint URL for the webhook.
  5. Click Submit to save your new Flex SMS Address.

You can create, edit or delete Flex SMS Addresses at any point using the Console.

最初のSMSを送信する

You are now ready to try your SMS channel:

  1. Go to Flex > Overview and click Launch Flex
  2. Log in and change your activity to Active
  3. From your mobile phone, send an SMS to the number you just configured
  4. The Flex UI will display a new task which you can accept to view the inbound message

Under the hood: Conversations

Screen Shot 2022-03-09 at 2.11.31 PM.png

Under the hood, Flex uses Conversations to send the messages back and forth between the end-customer and the agent. If a Conversations Address is created for a Phone Number (with autocreation set to true), that Address’s configuration will be used to handle new inbound messages to that Phone Number.

The Phone Number’s "A message comes in" handler is not used when this Phone Number has a Conversations Address where autocreation is set to true.

ページを評価:

ヘルプが必要ですか?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

フィードバックくださりありがとうございます!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

ステップ1

Get link

Get a free personal referral link here

ステップ2:

Give $10

Your user signs up and upgrade using link

ステップ3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more