WhatsApp, SMS & Messenger via Twilio
Where: Settings → Integrations → WhatsApp Business API · SMS · Facebook Messenger (each card says “via Twilio”) · answered in the Inbox
Module: the three cards are channels of Messaging & Inbox, shown while that module is active and the channel is available to your account. A card you already use stays visible either way, so a connection can always be looked after or disconnected.
If your business already runs on Twilio, FlyB can use your own Twilio account for three channels. Each one is a card of its own on Settings → Integrations, and each card can hold several connections — several numbers or pages — like the WhatsApp cards:
| Card | What it connects | Behaves like |
|---|---|---|
| WhatsApp Business API (via Twilio) | The WhatsApp senders registered in your Twilio account | A WhatsApp number on the official Cloud API: approved templates, the 24-hour window, the Inbox, automations, the CRM and calendar messages |
| SMS (via Twilio) | Your Twilio phone numbers (or a new one bought from FlyB) | An Inbox channel: text messages, and pictures and files by MMS on US and Canadian numbers |
| Facebook Messenger (via Twilio) | The Facebook page installed in your Twilio account’s Messenger channel | An Inbox channel: the page answers people who wrote to it, within Facebook’s 24-hour window |
All three use one protocol, the Twilio Conversations API: FlyB receives every message the moment Twilio does, files it in the Inbox by person — an SMS from a lead lands in the same thread as their WhatsApp — and sends your replies back through Twilio.
Messages, numbers and conversations are billed by Twilio to your Twilio account. FlyB charges nothing per message on these channels. The $ on each card opens Twilio’s pricing (in Portuguese for a dashboard in Portuguese), so you can see what Twilio charges before you connect.
Connecting
- Open Settings → Integrations and click the card of the channel.
- Click Connect (WhatsApp number, SMS number or Facebook page).
- Type your Twilio credentials — the Account SID (it starts with
AC) and the Auth Token of the account. Both are on the home page of the Twilio Console, under Account Info. Click Check credentials: FlyB asks Twilio whether they are right and lists what the account offers. They are asked for every new connection, so each connection may use a different Twilio account (a main account or a subaccount). - Choose what to connect — on that card’s channel only. The WhatsApp card lists the WhatsApp senders of the account, the SMS card its phone numbers, the Messenger card its pages. Items that cannot be used say why (already connected, in another FlyB account, a number that cannot send SMS, a sender not online yet). If the list does not show it, type it: the phone number with its country code, or the Facebook page id.
- Optionally give it a name, and click Connect.
FlyB then sets everything up in your Twilio account by itself: a Conversations service for that connection, the webhook that brings its messages to FlyB, and the address configuration that files every new conversation into it. There is nothing to paste and no URL to configure.
Your Auth Token
- The credentials are saved only when the connection is made — checking them and browsing the list keeps nothing. The Auth Token is stored encrypted, used only by FlyB’s servers to call Twilio for your connections, and never shown again: a connection’s details show only its last four characters.
- Connections on the same Twilio account share one saved Auth Token. If you change the Auth Token in Twilio, the connections on that account stop and show that Twilio refused it: open one of them and use Update Auth Token — FlyB checks the new one with Twilio, saves it and brings every connection of that account back.
- Register WhatsApp senders and install Facebook Messenger in the Twilio account whose credentials you type (in the Twilio Console). The card links to Twilio’s guides.
- A trial Twilio account is marked as such after the check: Twilio only delivers its messages to the phone numbers verified in it.
Buying a number (SMS)
On the SMS card, Buy a new number searches Twilio’s numbers by country (two-letter code), type (local, mobile, toll-free) and digits it should contain. Buying one adds it to your Twilio account — Twilio charges it to you every month — and connects it at once.
When Twilio refuses the purchase, the card shows Twilio’s own reason and error number. The usual ones: a trial account (Twilio sells numbers to upgraded accounts only), no balance in the Twilio account, or a country that requires an address or a regulatory bundle approved in the Twilio Console before its numbers can be bought.
In the Inbox
Each channel is drawn with its own colour and name on the queue cards, the conversation dividers and every message bubble, and the message box says where your reply goes (“Send through”). When a person has conversations on several numbers or channels, the line under the box lets you pick which one the reply leaves from — including starting an SMS conversation from a WhatsApp thread.
| WhatsApp via Twilio | SMS | Messenger | |
|---|---|---|---|
| 24-hour window | Yes — outside it, only an approved template | No window | Yes — Facebook’s |
| Templates | Yes (see below) | — | — |
| Attachments | Photos, videos, audio, documents (up to 16 MB) | Photos, videos and documents by MMS, only from US and Canadian numbers (up to 5 MB) | Photos, videos, audio, documents (up to 25 MB) |
| Voice notes from the Inbox | Yes | No | Yes |
| Starting the conversation | Yes, with a template | Yes | No — the page can only answer people who wrote first |
| Reactions, editing and deleting a sent message | No | No | No |
- Contacts. A WhatsApp or SMS sender is matched to your contacts by phone, so a lead you already have is never duplicated. A Messenger user has no phone: their first message creates a contact named after the page-scoped id (“Messenger · 1234”), which you can rename.
- Buttons in an automation’s message are written out under the words on these channels: the Conversations API does not carry interactive buttons.
- Quoting a message (Reply) works in FlyB, but Twilio does not show the quote to the customer, so the reply is sent without it.
- Receipts. Sent, delivered and read (where the channel reports it) arrive from Twilio and move the ticks of your messages. A message Twilio could not deliver turns red with Twilio’s own reason (for example, “Outside the 24-hour window”).
- SMS to other countries. A Twilio account sends SMS only to the countries switched on in the Twilio Console under Messaging → Settings → Geo permissions (a new account starts with the country it signed up in). A message to any other country turns red with error 21408 until that country is switched on there. Twilio does not allow this setting to be changed through its API, so FlyB cannot do it for you.
- Replies from other countries. In some countries (Brazil among them) the SMS reaches the customer from a local code instead of your Twilio number: Twilio’s Messaging logs show that code as the sender. A reply then goes to that code and never reaches Twilio or FlyB. To get replies, use a number those carriers keep as the sender, usually one from the customer’s own country, or reach those customers on WhatsApp.
Every other Inbox feature — assignment, snooze, resolve, notes, mentions, Lead Owner, the per-number visibility list, the AI reply assistant, AI Answers and question flows — works the same on these channels.
WhatsApp templates through Twilio
A Twilio WhatsApp number’s templates are Twilio Content templates approved by WhatsApp. FlyB shows them in every template picker exactly like a Cloud API number’s, grouped under the number, with their status, and sends them wherever a template is sent today: the Inbox, the message automations, the CRM’s WhatsApp action, Notes & Tasks, and the calendar’s confirmations and reminders.
- Creating a template on the templates screen submits it to Twilio and asks WhatsApp to approve it, with the name and category you chose. Its body, footer, quick replies and links are kept.
- Refreshing reads every template of the Twilio account. A template made in the Twilio Console appears after a refresh (or the first time an automation names it).
- Editing is not possible: Twilio templates cannot be changed once created. Create a new one with the changes, then delete the old one.
- The free-form version (service message) and the variable mapping of a template work as for any other number.
In the automations
Message automations can be written on SMS and Messenger — the channel is chosen when the rule is created, as for WhatsApp and FlyB Chat — once the organization has an account on that channel — or once, for every channel, as an automation for all channels, which answers by SMS or on Messenger whoever wrote there. Such a rule:
- fires on the conversation triggers of its channel (first message, message received, no reply, snooze due) and on every other trigger, and sends from the channel’s accounts (the ones you pick, or all of them);
- writes free-form messages only (there are no templates on these channels), answers from an AI catalog, or runs a question flow;
- on Messenger, sends only within the 24-hour window and only to people who wrote to the page — otherwise the run is recorded as skipped, with the reason.
A Twilio WhatsApp number is simply a WhatsApp number to the automations: it is in the numbers list of WhatsApp rules, sends their templates, and obeys the 24-hour window.
The CRM’s message triggers (“When the contact writes on WhatsApp”) stay on WhatsApp and FlyB Chat: an SMS or Messenger message does not fire them.
Managing a connection
Click a connection in its card’s list to:
- rename it;
- switch Receive messages off (a send-only account: what arrives is discarded at once);
- switch on Show the member’s name in Inbox replies: what a member writes in the Inbox goes with their first name above it, in bold on WhatsApp and as plain text on SMS and Messenger;
- choose who sees its conversations in the Inbox, and the Lead Owner of the contacts it creates;
- make it the default account of its channel;
- refresh it — FlyB checks its setup in your Twilio account is still in place;
- reconnect it — FlyB puts its Conversations service and webhook back, for an account that stopped receiving because something changed in Twilio;
- update the Auth Token of its Twilio account, after you changed it in Twilio;
- disable, disconnect or remove it, exactly as for a WhatsApp number: disconnecting removes FlyB’s setup from your Twilio account (the number, sender or page stays yours) and keeps the conversations unless you choose to delete them. Connecting the same address again later brings its conversations back.
If Twilio refuses the saved Auth Token (you changed it, or the account was suspended or closed), every connection on that account stops and shows Connection lost with the reason; Update Auth Token on any of them brings them back.
A WhatsApp connection whose number Twilio connected keeping the WhatsApp Business app on the phone (coexistence — check with Twilio whether your sender is set up that way) can also have WhatsApp Web linked to it, so the conversations the customer has already written in are answered without the per-message charges. It is in the connection’s settings, under WhatsApp Web on this number (savings) — see Linking WhatsApp Web to an official number. A number that is not on the WhatsApp Business app cannot be linked: the pairing waits for a phone that does not exist.
Plan limits
Each Twilio channel has its own number of connections on your plan, separate from the WhatsApp numbers connected through Meta or WhatsApp Web:
| Free | Plus | Prime | Business | |
|---|---|---|---|---|
| WhatsApp numbers via Twilio | — | 1 | 2 | 5 |
| SMS numbers | — | 1 | 2 | 5 |
| Facebook pages (Messenger) | — | 1 | 2 | 5 |
A WhatsApp number via Twilio also needs WhatsApp on the plan. After a downgrade, connections above the new limit are disabled (never deleted) and can be reactivated within the plan; see Plans, Flights & Limits.
Not available through Twilio
- Instagram Direct — Twilio’s Conversations API has no Instagram channel. FlyB connects it directly instead, through a Meta app of your own: see Instagram Direct.
- Google Business Messages — Google shut the service down on 31 July 2024.