How It Works
When someone messages your WhatsApp business number:- Twilio receives the message and forwards it to your agent
- Your agent reads it, checks your knowledge base, and writes a reply
- The reply goes back to the customer on WhatsApp
Before You Start
You need two things:- A Twilio integration connected under Settings → Integrations. If you already send SMS or make calls, you’re done — WhatsApp reuses that same connection.
- A WhatsApp sender registered on your Twilio account. WhatsApp numbers are approved by Meta, so this part happens in the Twilio Console. The next section walks through it.
One number, one purpose: A phone number registered with WhatsApp can’t already be in use with another WhatsApp account, and each number can power only one agent at a time.
Step 1: Register a WhatsApp Sender in Twilio
This happens once per phone number, in the Twilio Console.What You’ll Need
- An upgraded (paid) Twilio account
- Administrator access to your company’s Meta Business portfolio — or you can create one during signup
- A phone number that isn’t already registered with WhatsApp, and isn’t attached to an IVR/phone menu. It must be able to receive an SMS or a voice call for verification.
The Steps
- In the Twilio Console, go to Messaging → Senders → WhatsApp Senders
- Click Create new sender
- Pick the phone number you want to use — either a Twilio number or your own — and click Continue
- Click Continue with Facebook. A Meta signup window opens.
- Sign in to Facebook and follow the prompts to connect your WhatsApp Business Account
- Verify the phone number by SMS or voice call, and enter the code
Choosing a Display Name
Your display name is what customers see above your messages. Meta reviews it against their display name guidelines. If your name is rejected, the number is capped at 250 business-initiated messages per 24 hours until it’s fixed — so it’s worth getting right the first time. Approval is usually quick, but if Meta also needs to verify your business, that review can take several weeks depending on your region.Step 2: Connect the Sender to Your Agent
Once Twilio shows your sender as registered:- Go to Agents and open the agent you want to answer WhatsApp messages
- Open the WhatsApp tab
- Turn on Enable WhatsApp Agent
- Pick your Twilio Integration from the dropdown
- Pick your WhatsApp Sender from the list of numbers on that Twilio account
- Save the agent
Step 3: Test It
Message your WhatsApp business number from your own phone. Your agent should reply within a few seconds. If nothing comes back, see Troubleshooting below.Settings
Formatting
WhatsApp doesn’t render Markdown, so your agent formats replies using WhatsApp’s own conventions —*bold* and _italic_ — and writes links as plain URLs. Messages are capped at 4,096 characters.
The 24-Hour Reply Window
WhatsApp limits when businesses can send free-form messages. After a customer messages you, you have 24 hours to reply freely. The clock resets every time they send something new. For your agent, this is rarely a problem: it answers immediately, well inside the window. It matters for manual replies. If you open an old WhatsApp conversation and try to reply more than 24 hours after the customer’s last message, the send will fail. This is a WhatsApp rule, not a platform limit. Sending outside that window requires a message template pre-approved by Meta, which this channel doesn’t currently support. In practice: reply while the conversation is fresh. If the window has closed, wait for the customer to message again — that reopens it.Testing Without an Approved Sender
If you want to try WhatsApp before finishing Meta approval, Twilio offers a sandbox with a shared test number.- Open the Try WhatsApp page in the Twilio Console and confirm the terms
- Send
join <your-code>from your phone to the sandbox number to connect it - Under Sandbox settings → Sandbox configuration, set “When a message comes in” to your webhook URL, ending in
/webhooks/twilio/whatsapp
Viewing Conversations
WhatsApp conversations appear under Conversations, tagged with the WhatsApp channel. You can:- Read the full back-and-forth
- See the customer’s phone number and WhatsApp profile name
- Send a manual reply (subject to the 24-hour window above)
Troubleshooting
The sender dropdown is empty The Twilio account has no approved WhatsApp sender. Finish Step 1, then click refresh beside the dropdown. Messages arrive but the agent never replies Check that Enable WhatsApp Agent and Auto-reply are both on. If auto-reply is off by design, replies must be sent by hand from Conversations. Nothing arrives at all Re-select the sender in the WhatsApp tab to reconfigure its webhook. In the Twilio Console, the sender’s incoming-message webhook should point at your site followed by/webhooks/twilio/whatsapp.
A number is greyed out in the dropdown
Another agent is already using it. Each WhatsApp number can serve only one agent — free it up on the other agent first.
A manual reply failed to send
The 24-hour window has probably closed. Wait for the customer to message again.
Replies are cut off
WhatsApp caps messages at 4,096 characters and longer replies are trimmed. Use Custom Channel Instructions to ask for shorter answers.
Related Pages
- Agents — building and configuring agents
- Integrations — connecting Twilio and other services
- Inbox — managing conversations across channels

