Connect SMS with Twilio

Updated Nov 28, 20264 min read
English
On this page

Connect a Twilio phone number that can send SMS, and answer text messages from your Deskwoot inbox like any other conversation. You bring your own Twilio account and pay Twilio's SMS rates directly; Deskwoot adds no markup.

Step 1: Set up your Twilio account

You need an active Twilio account with a phone number that can send and receive SMS.

  1. Sign up at twilio.com if you don't have an account yet.
  2. Buy a phone number with SMS capability. In the Twilio console, you can filter for SMS support under Phone Numbers > Buy a Number.
  3. In your Twilio dashboard, note these 3 values for the next step:
    • Account SID
    • Auth Token
    • Phone number in E.164 format, for example +15551234567

Step 2: Create the SMS inbox in Deskwoot

  1. Go to Settings > Inboxes.
  2. Click Add Inbox.
  3. Pick SMS.
  4. Enter an Inbox Name.
  5. Enter your Twilio Account SID and Auth Token.
  6. Enter the Phone Number you bought.
  7. Click Create Inbox.
The SMS form for a new inbox: Account SID, Auth Token, the Twilio phone number and the webhook URL for incoming messages

Step 3: Point your Twilio number at Deskwoot

Deskwoot does not set this webhook for you. The form in Step 2 shows the same URL.

  1. In the Twilio console, open your phone number.
  2. In its messaging settings, set A message comes in to Webhook.
  3. Enter the URL https://deskwoot.com/api/webhooks/sms with the method HTTP POST.
  4. Send a test SMS to your Twilio number and check that it shows up in your Deskwoot inbox.
An SMS conversation in the inbox on a phone: the customer asks when her order ships and the team replies
Incoming texts show up as conversations, and your replies go back to the customer as SMS.

Costs

Twilio charges for every SMS segment sent and received, and prices vary by country. A longer message may be split into several segments, which costs more. Deskwoot adds no charge for the SMS channel: you pay only Twilio, directly, for what you use.

Troubleshooting

  • Messages don't arrive in Deskwoot: check that the Account SID and Auth Token are entered correctly. A single extra space can make authentication fail.
  • Phone number format: enter the number in E.164 format, with the + and the country code. A missing country code is a frequent mistake.
  • Twilio trial accounts: they can only send SMS to verified numbers. Upgrade to a paid Twilio account to use everything.
  • Webhook conflicts: a Twilio number sends incoming messages to one webhook URL. If another app set its own URL on the same number, messages go there instead of Deskwoot. In the Twilio console, check that your number's URL is https://deskwoot.com/api/webhooks/sms.

Tips

  • Keep SMS replies short. Under 160 characters per message avoids charges for several segments and reads better.
  • Set up auto assignment in the inbox's row Who answers, so incoming SMS conversations reach the right team quickly.
  • Use canned responses for common questions to reply faster over SMS.

Frequently asked questions

Can I use a Twilio number I already own?

Yes. As long as the number has SMS capability, you can connect it to Deskwoot. You set the number's incoming message webhook to the Deskwoot URL, so an app that used that webhook before stops receiving the messages.

Can the bot reply by SMS?

Yes. Fynn answers SMS like any other channel once he is switched on for the inbox under Fynn > Where Fynn answers. Under his first reply in a conversation, customers see a line such as "Fynn, the AI assistant of Acme", so they know an AI answers.

The line counts toward the length of that SMS. Keep the bot's SMS replies short (one segment if you can), because Twilio charges for every segment.

Can I connect multiple Twilio numbers?

Yes. Each becomes its own inbox in Deskwoot, useful for numbers per region (a US number for US customers, a UK number for UK customers).

The Hacker plan includes 1 inbox besides live chat and email forwarding inboxes; Startup and higher have no inbox limit.

Are there country restrictions?

Some countries require registration first, such as 10DLC in the US, or only allow short codes, such as the UK. Twilio's docs cover each country's requirements; meet them in Twilio before you send.

Do MMS (picture messages) work?

It depends on your Twilio number's MMS capability and your region: the US and Canada support MMS widely, many other countries don't. Set it up in Twilio. Deskwoot handles MMS the same as regular SMS, just with attachments.

What if an SMS is not delivered?

The reply shows Delivery failed. with Twilio's reason, also when Twilio reports the failure a little later. A picture message carries all its files in one message, so it arrives whole or not at all. Fix the cause and send the reply again, see When a reply is not delivered.

Was this guide helpful?

Keep reading

Still need help?

Fynn answers from these guides in the chat, and you can reach the team there too.