Messaging Setup Guide
This guide walks through configuring SMS and WhatsApp messaging end-to-end. After completing these steps, agents in Thirdlane Connect will be able to send and receive messages through the configured channels.
Both SMS and WhatsApp share the same routing and channel architecture. The main difference is in provider setup: SMS uses a messaging gateway, while WhatsApp uses a Meta Business Account.
SMS Setup
1. Configure a Messaging Gateway
A messaging gateway connects your system to an SMS provider (Telnyx, Twilio, or Bandwidth).
Where: Communications Settings > Messaging Gateways
- Click Add and select your SMS provider
- Enter the credentials provided by your SMS provider (API key, account SID, auth token, etc.)
- If more than one SSL hostname is configured, choose Domain. With one hostname the field is filled from Domain and SSL Certificate and is not shown.
- Save the gateway
After saving, the system generates a webhook URL. Configure this URL in your SMS provider’s portal so they can deliver inbound messages and status updates.
2. Assign DIDs to the Gateway
Each DID that will send SMS needs an outbound SMS route pointing to the gateway.
Where: Workspace Operations > Routing > Outbound SMS Routes
- Select the DID you want to SMS-enable
- Choose the messaging gateway created in step 1
- Save
3. Create an Inbound Messaging Route
An inbound messaging route tells the system where to deliver messages that arrive on a DID.
Where: Tenant > Routing > Inbound Messaging Routes
- Click Add
- Select the DID
- Choose a destination: a specific user (direct delivery) or a queue (distributed to agents)
- If you choose a queue, add people on that queue under Static Agents (Messaging) (each user needs Enable Omnichannel Messaging). You can save the route first and add them after; the routes list shows None until that list has someone.
The route only delivers inbound messages. Agents send from a messaging channel you create in the next step.
4. Create a Messaging Channel
A messaging channel is a named outbound sender identity that agents see in Connect.
Where: Tenant > Messaging > Channels
- Click Add
- Set Type to SMS
- Enter a descriptive Name (e.g., “Support SMS”) - this is what agents see
- Select the DID configured in step 2
- Use the Queues shuttle to assign this channel to the queue(s) whose agents should use it
- Optionally enable Require Templates if agents should only send pre-approved messages
- If Require Templates is enabled, assign Message Templates in the SMS Templates section
- Save
5. Verify the Setup
At this point:
- Inbound SMS to the DID will route to the configured user or queue in Connect
- Agents in the assigned queue(s) can send SMS replies using the channel’s DID
- If the queue has only one SMS channel, it is auto-selected for the agent
| If this doesn’t work | Check |
|---|---|
| Inbound messages not arriving | Messaging gateway webhook URL configured at provider; inbound messaging route exists for the DID |
| Agent cannot send | Messaging channel is active; channel is assigned to the agent’s queue; DID has an outbound SMS route |
| Agent does not see the channel | Channel status is active; channel is assigned to the queue; the person is on Static Agents (Messaging) for that queue and has signed back in to Connect |
| Customer gets a no-agent reply | The queue has at least one person under Static Agents (Messaging); those people have Enable Omnichannel Messaging on and Connect open |
Worked example: text-enable 1-415-555-0100 for the support queue
Acme already has a Telnyx account and a support queue (agents 101-103). Goal: customers can text the main number and any support agent can reply from Connect.
- Gateway. Under Messaging Gateways, add a Telnyx gateway with the API key from your Telnyx portal. Copy the generated webhook URL and paste it into Telnyx’s messaging profile so inbound messages and delivery reports come back.
- Outbound SMS route. Under Outbound SMS Routes, select DID
+14155550100and point it at the Telnyx gateway. This is what lets agents send out on that number. - Staff the queue for messages. On the
supportqueue, turn on Enable Omnichannel Messaging for agents 101-103 and add them under Static Agents (Messaging). Voice members are not used for messages. - Inbound route. Under Inbound Messaging Routes, add a route for
+14155550100with destination queuesupport. This only routes inbound messages. - Messaging channel. Under Channels, add an SMS channel named
Support SMS, DID+14155550100, and assign it to thesupportqueue. - Verify. Those agents sign out of Connect and back in. Send a message to
+14155550100from a mobile. The message appears in thesupportqueue in Thirdlane Connect and is offered to an available messaging agent; their reply goes back out as SMS from the same number. Because the queue has exactly one SMS channel, it is auto-selected for the agent.
To also require agents to send only approved wording, edit the channel later and enable Require Templates, then attach Message Templates.
WhatsApp Setup
1. Prepare Your Meta Business Account
Before configuring anything in the system, you need these from Meta:
- A Meta Business Account with access to the WhatsApp Business Platform
- A WhatsApp Business Account (WABA) created in Meta Business Manager
- A System User Access Token with
whatsapp_business_messagingandwhatsapp_business_managementpermissions - At least one phone number registered with your WABA
- The App Secret from your Meta App settings
2. Create a WhatsApp Business Account
Where: Tenant > Messaging > WhatsApp Accounts
- Click Add
- Enter a Name (e.g., “Main WABA”)
- Enter your WABA ID from Meta Business Manager
- Enter the Access Token (system user permanent token)
- Enter the App Secret from your Meta App
- Set a Verify Token (any secure random string you choose - you’ll need this again in step 5)
- Save
- Click Test Connection to verify the credentials are working
3. Sync Phone Numbers and Templates
Still on the WhatsApp Accounts screen:
- Select your account and click Sync Phones to pull all registered phone numbers from Meta
- Click Sync Templates to pull all approved message templates from Meta
Verify that your phone numbers appear with the correct display number, verified name, and quality rating.
4. Map a WhatsApp Phone Number to a DID
The system routes all messaging (SMS and WhatsApp) through DIDs. A WhatsApp phone number must be linked to a DID so the system knows which WhatsApp number corresponds to which business line.
Where: Tenant > Messaging > Number Mapping
- Find the DID you want to link
- Select the WhatsApp phone number from the dropdown
- Save
After mapping, the DID grid shows a WA badge on linked numbers.
5. Configure the Meta Webhook
Meta needs to know where to send incoming WhatsApp messages. In your Meta App settings:
- Navigate to WhatsApp > Configuration > Webhook
- Set the Callback URL to the URL shown on the WhatsApp account form (it looks like
https://pbx.example.com/sms/whatsapp/WABA_ID) - Set the Verify Token to the same value you entered in step 2
- Subscribe to the messages webhook field
6. Create an Inbound Messaging Route
Just like SMS, inbound WhatsApp messages are routed by DID.
Where: Tenant > Routing > Inbound Messaging Routes
- Click Add
- Select the DID you mapped in step 4
- Choose a destination: user or queue
- If you choose a queue, add people under Static Agents (Messaging) first
The route only delivers inbound messages. Agents send from a messaging channel you create in the next step.
7. Create a Messaging Channel
Where: Tenant > Messaging > Channels
- Click Add
- Set Type to WhatsApp
- Enter a descriptive Name (e.g., “Support WhatsApp”)
- Select the DID mapped to your WhatsApp phone number
- Use the Queues shuttle to assign this channel to queue(s)
- In the WhatsApp Templates section, assign the templates agents should be able to use on this channel
- Save
8. (Optional) Configure Template Variable Mappings
If your templates contain variable placeholders ({{1}}, {{2}}, etc.), you can pre-map them to CRM contact fields so values are filled automatically at send time.
Where: Tenant > Messaging > WhatsApp Accounts > select account > Templates grid > click pencil icon on a template
For each variable, configure:
- Source - Contact Field, Account Field, Custom Field, Static Value, or Agent Enters
- Field - the specific field to pull the value from
- Default Value - fallback if the field is empty
9. Verify the Setup
At this point:
- Inbound WhatsApp messages to the mapped number will route to the configured user or queue in Connect
- Agents can reply within the 24-hour conversation window
- Agents can initiate conversations using approved templates
- Template variables are pre-filled from CRM data (if mappings are configured)
| If this doesn’t work | Check |
|---|---|
| Inbound WhatsApp messages not arriving | Meta webhook URL and verify token configured correctly; WhatsApp phone is mapped to a DID; inbound messaging route exists for that DID |
| ”Test Connection” fails | WABA ID, access token, and app secret are correct; token has required permissions |
| No phone numbers after sync | Phone numbers are registered under the correct WABA in Meta Business Manager |
| Agent cannot reply via WhatsApp | Messaging channel is active and assigned to the queue; DID is mapped to a WhatsApp phone; 24-hour window has not expired (use a template to re-initiate) |
| Template variables show as empty | Variable mappings are configured; CRM contact record has the mapped fields populated |
Using Both SMS and WhatsApp on the Same Number
A single DID can have both an SMS gateway and a WhatsApp phone number mapped to it. In this case:
- Create two messaging channels for the same DID - one of type SMS, one of type WhatsApp
- Assign both channels to the same queue
- Create one inbound messaging route for the DID - the system routes inbound messages based on protocol (SMS vs WhatsApp) automatically
Agents in Connect will see both channels available and can choose the appropriate one when initiating outbound conversations. For inbound messages, the system preserves the original protocol - an SMS conversation stays SMS, a WhatsApp conversation stays WhatsApp.
Related documentation
- Messaging Channels - the outbound sender identities agents use.
- WhatsApp Accounts - connect a WABA, sync phones and templates, and map variables.
- Message Templates - SMS templates with CRM variables and compliance options.
- Inbound Messaging Routes - deliver incoming messages to a user or queue.
- Contact Center Setup Guide - add messaging to queues so agents handle text alongside voice.
- Messaging Gateways - configure the SMS provider connection.