Step-by-step guides
Your agent on WhatsApp, step by step: connecting it with Twilio
A jargon-free guide to getting your Magnus agent to answer on WhatsApp with your company’s number. First you register the number in Twilio, then you connect it in Magnus. Half an hour, plus however long Meta takes to approve you.
- Published
- Reading
- 9 min read
01
Before you start: what you need
WhatsApp doesn’t let just any program connect to a number. You need a provider authorized by Meta, and we use Twilio. The Twilio account is yours: the number, the messages and the bill are in your company’s name, and Magnus provides the agent that answers.
- A Twilio account with credit loaded. The free trial is fine for testing, not for serving customers.
- A Facebook user who is an admin of your company’s business portfolio on Meta. If you don’t have a portfolio yet, you create one along the way.
- A phone number that isn’t using WhatsApp. If that number is in the WhatsApp or WhatsApp Business app today, that account has to be deleted first, and those chats are lost. If you’d rather not touch your usual number, buy one in Twilio.
- That number must be able to receive a text message or a call, because Meta sends a verification code that way.
- The name your customers will see at the top of the chat, which must be your company’s or your brand’s.
- A Magnus plan that includes channels, and the agent that will answer already created.
Since 2026, WhatsApp only allows assistants that serve a specific business, not chatbots you can ask anything. A Magnus agent is built for your industry and your rules, so it is within what’s allowed.
02
Part 1, in Twilio: register your WhatsApp number
You do this part only once.
-
Activate your Twilio account
Go to the Twilio console and click “Upgrade” at the top to move from the trial to a paid account and load credit.
-
Pick the number
If you’ll use a Twilio number, buy it under “Phone Numbers” and pick one that can receive text messages. If you’ll use your own, have it at hand and make sure it isn’t in the WhatsApp app.
-
Create the WhatsApp sender
Go to “Messaging” → “Senders” → “WhatsApp Senders” and click “Create new sender”. Select the number and click “Continue”.
-
Open Meta’s window, and don’t close it
Click “Continue with Facebook”. A Meta window opens. Keep both open, Twilio’s and Meta’s, and do everything in the same browser: if you close the window or switch browsers, the registration fails and you have to start over.
-
Fill in your company’s details in Meta’s window
Log in with Facebook and click “Get started”. Pick your company’s portfolio, or create one. Then choose to create a new WhatsApp Business account (“Create a new WhatsApp Business profile”) and fill in three things: the internal account name, which customers don’t see; the display name, which they see at the top of the chat; and your business category.
-
Verify the number with the code
Choose “Add a new phone number”, type the number, choose “Text message” and click “Next”. If it’s a Twilio number, the code shows up in the Twilio console itself: copy it and paste it into Meta’s window. If it’s your own, it arrives by text. Careful: don’t choose “Use a display name only”, Twilio doesn’t support it.
-
Confirm and wait a few minutes
Click “Confirm” to accept Twilio’s access. Meta’s window closes by itself and, within a few minutes, your number shows up in the list of WhatsApp senders. It now exists on WhatsApp, but nobody is answering yet.
03
Part 2, in Magnus: connect the number to your agent
-
Copy your two Twilio keys
On the Twilio console home page, in the “Account Info” box, you’ll find the “Account SID”, which starts with AC, and the “Auth Token”, shown when you click the eye icon. Copy both.
-
Add the channel in Magnus
In the Magnus dashboard, go to “Channels”, click “Add Connection” and choose “WhatsApp (Twilio)”. Paste the Account SID, the Auth Token and the number in international format: with +, the country code and no spaces, for example +14155550123. Click “Connect”. Before saving, Magnus asks Twilio whether the keys are right, so a typo shows up right away.
-
Copy the address Magnus gives you
Magnus shows “One last step in Twilio” with a web address and a button to copy it. It’s the address Twilio will hand your incoming messages to.
-
Paste it in Twilio
Go back to Twilio, open your number under “WhatsApp Senders” and click “Edit Sender”. In the incoming messages field (“When a message comes in”), paste the address, leave the method on POST and save.
-
Choose which agent answers
Back in Magnus, on the new channel’s card, choose the agent that will serve that number.
-
Try it
From your phone, send the number a “hi”. If the agent answers, you’re done.
04
What’s worth knowing afterwards
-
Verify your business with Meta
It’s free and done in Meta’s Security Center, with your company’s papers. It can take weeks, so start it the same day. Until it’s done there are limits: how many messages your business can start per day and how many numbers you can register.
-
Meta reviews the display name
It has to match your company or brand. If Meta rejects it, the number is limited to 250 business-initiated messages every 24 hours, and Meta may disconnect it.
-
The 24-hour rule
For 24 hours after a customer’s last message, the agent answers with free text. After that, WhatsApp only lets you write to them with a template approved by Meta, and Magnus only sends it to people who agreed to receive messages. If a customer writes STOP, Magnus stops reaching out to them.
-
What you pay
Twilio charges per message, and Meta separately charges for templates your business starts. Answering within the 24 hours is the cheapest. Prices change and depend on the country: check Twilio’s and Meta’s pricing pages.
05
If something doesn’t work
-
Magnus doesn’t accept the keys
The Account SID must start with AC; if it starts with SK, it’s a different key. Copy the whole Auth Token again, with no spaces.
-
Meta doesn’t send the code
The number is still registered in the WhatsApp app, or it only makes outbound calls and can’t receive texts or calls.
-
Registration stopped halfway
Meta’s window was closed or opened in another browser. Start again from “Create new sender”.
-
People write and the agent doesn’t answer
It’s almost always the last step in Twilio: Magnus’s address wasn’t saved in “When a message comes in”, or the method isn’t POST.
-
An automatic Twilio message answers instead of the agent
Same thing: Twilio doesn’t know where to send the messages yet. Check the address.
Want to try it before registering your number? Twilio has a shared test number, the WhatsApp Sandbox, that connects to Magnus just like in part 2. It’s for seeing the agent working in ten minutes, not for serving customers. And if you get stuck on any step, write to us: we’ll do it with you.
Sources: Twilio — Register WhatsApp senders using Self Sign-up Twilio — WhatsApp pricing Meta — WhatsApp Business Platform pricing TechCrunch — WhatsApp changes its terms to bar general-purpose chatbots, 2025
Meta sets the paperwork. Once it’s done, your agent answers on WhatsApp with your rules.