Channels integration

SMS

SMS AI integration
  • CategoryChannels
  • AuthAccount SID + Auth Token

Walk through the two Twilio paths: bring your own account or buy a new number from inside MessageMind.

Overview

Connect your Twilio account so customers can text your business number and get replies from the AI agent. Their texts open SMS conversations in the Workspace, and every reply, yours or the AI agent's, goes out from the number the customer wrote to. Numbers that support voice can also take phone calls through the same connection.

What MessageMind can do with it

  • Texts sent to your connected Twilio numbers show up as SMS conversations in Workspace > Main Inbox.
  • The AI agent answers incoming texts from the same number the customer wrote to.
  • You and your team can reply from any SMS conversation, and attach images when the number supports MMS.
  • Start a new SMS conversation with a contact from the New chat window.
  • Campaigns can send your SMS templates with the Send SMS step.
  • Connect several numbers from the same Twilio account and switch SMS or Voice on and off for each one.

Requirements

  • A Twilio account with at least one phone number that can send and receive SMS. Buy or port your numbers in Twilio before you start.
  • The Account SID and Auth Token of that account. Both are on your Twilio Console dashboard.
  • A free channel on your MessageMind plan.
  • An MMS-capable number if you want to send pictures.
  • For texts to US customers from a US local number, an A2P 10DLC registration, which you complete in your Twilio Console.

How to connect

  1. Go to Connections > Channels and click the Twilio SMS & Voice card. The SMS & Voice filter on the left shortens the list.
  2. Under Connect Twilio SMS, click the Twilio link and sign in to Twilio in the tab that opens.
  3. Copy the Account SID from your Twilio Console dashboard and paste it into the first field.
  4. Copy the Auth Token from the same dashboard and paste it into the field that appears below it.
  5. Under Select Connection Type, choose SMS, Voice or SMS & Voice.
  6. Pick the number to connect from the list that loads. The first number on the account is selected for you.
  7. Click Connect to Twilio. The page reloads and shows Connected With Twilio, with your number next to Connected Phone Number.
  8. Check the switches under Manage your Twilio connections. Every service the number supports is turned on, so switch Voice off if you only want texts.

Authentication and permissions

Mechanism
You paste your Twilio Account SID and Auth Token on the Twilio SMS & Voice page.
Credentials
Both values are on your Twilio Console dashboard. The Account SID starts with AC and is 34 characters long. The Auth Token is 32 letters and numbers. If your numbers sit in a Twilio subaccount, copy that subaccount's own pair.

Available data and actions

Reads

  • The phone numbers on your Twilio account, so you can choose which ones to connect.
  • What each number supports: SMS, MMS and voice.
  • Texts and pictures that customers send to your connected numbers.

Writes

  • Texts sent from your connected numbers by you, your team, the AI agent or a campaign, with pictures on MMS numbers.
  • Each connected number's incoming text and call settings in Twilio, so texts and calls reach MessageMind. Switching SMS or Voice off, or disconnecting, clears them.

AI agent use cases

  • A customer texts late on a Sunday to ask what time you open on Monday, and the AI agent replies by text with the hours you gave it in AI Training.
  • A customer sends a photo of a damaged parcel with a short message. The picture shows up in the conversation and the AI agent reads it along with the text.
  • A campaign sends an SMS template, the customer texts back, and the AI agent carries on the conversation from there.
  • During a phone call to the same number, the AI agent texts the caller a link or an address. This needs SMS In-Call Messages turned on in AI Lab > AI Training.

Configuration

  • With more than one number connected, choose the one to manage from the list next to Connected Phone Number.
  • Under Manage your Twilio connections, the SMS and Voice switches turn each service on or off for the selected number. Each number shows a switch for every service it supports.
  • Connecting turns on SMS and Voice for everything a number supports, whichever connection type you picked.
  • Add Number asks for the Account SID and Auth Token again, then lets you pick one or more numbers and click Connect to Twilio.
  • The Settings button opens AI Lab > AI Training, where you set how the AI agent answers.
  • To create an SMS template, open Templates in the Workspace, click Add Template and choose SMS. The body can be up to 1,600 characters.
  • In Workspace > Campaigns, the Send SMS step sends one of your SMS templates to the contact or to a fixed number.

Example workflows

A customer texts your business number

  1. The customer sends a text to your connected Twilio number.
  2. An SMS conversation appears in Workspace > Main Inbox.
  3. If the AI agent is handling the conversation, it replies by text from the same number.
  4. Open the conversation to follow along, and type a reply yourself whenever you want to step in.

Text a contact first

  1. In the Workspace, open Contacts and click the contact you want to text.
  2. Click the message icon at the top right of the contact.
  3. In the New chat window, choose SMS and click Next.
  4. If the contact has more than one phone number, pick one under Send to and click Next.
  5. If you have more than one Twilio number, pick the one to text from under Send from and click Next.
  6. Click Write text, type your message and click Send. To use a saved template instead, click Select template.

Disconnect and reconnect

  • In Connections > Channels, turn off the switch on the Twilio SMS & Voice card, or open the card and click Disconnect.
  • Click Disconnect to confirm. You see "Twilio Disconnected Successfully!".
  • Every connected number is removed at once, for texts and for calls. The AI agent stops replying.
  • Past SMS conversations stay in the Workspace.
  • Your Twilio account and numbers stay as they are. Only their incoming text and call settings are cleared.
  • To reconnect, open the card again and repeat the connection steps with your Account SID and Auth Token.