WhatsApp via Twilio

Connect your WhatsApp Business number to your Boei inbox using Twilio. This lets you receive and reply to WhatsApp messages directly from Boei, with optional AI auto-reply.

Choose a provider in WhatsApp inbox if you have not chosen one yet.

Only want a website button that opens WhatsApp? Use WhatsApp button. That button alone does not connect messages to Boei.

How to get there: Go to Settings → Business in the left menu → click your website → Inbox tab → Channels → WhatsApp card.

Prerequisites

  • A Twilio account (free trial available)
  • A Meta (Facebook) Business account
  • A phone number to register for WhatsApp (purchased through Twilio)

Step 1: Buy a Phone Number in Twilio

  1. Log into the Twilio Console
  2. Go to Phone Numbers → Manage → Buy a number
  3. Buy a phone number in any country

Choose a number that meets Twilio's WhatsApp sender requirements. Check the current number and messaging costs in your Twilio account.

Tip: You can use the same Twilio number for both WhatsApp and SMS. They use separate webhook URLs and appear as separate channels in Boei.

Step 2: Register as a WhatsApp Sender

  1. In the Twilio Console, click Explore Products in the left sidebar
  2. Find and pin Messaging

Find Messaging in Twilio

  1. Go to Messaging → search for "WhatsApp" → click WhatsApp Senders
  2. Click Create new sender
  3. Select the phone number you bought in Step 1

Twilio New WhatsApp Sender

  1. Click Continue with Facebook to link your Meta Business Account

Facebook connect dialog

  1. Select your Business portfolio and WhatsApp Business account (or create new ones)

Select WhatsApp Business account

Important: If you already have a WhatsApp Business Account connected to Twilio, you must select the same one. Twilio requires all WhatsApp Senders to be in the same WABA.

  1. Verify your phone number with the code sent via SMS

Verify phone number

  1. Review the permissions and click Confirm
  2. You'll see a confirmation that your account is connected

Account connected

Common Issues

"This phone number is already registered to a WhatsApp account"
The number is already registered. If you own it, follow Twilio's migration guide before changing its registration. If it is not your number, choose another one.

"We'll review your business to ensure it complies with WhatsApp"
This example shows a sender registration error about the WhatsApp Business account selected in Twilio. Read the message in your account and check that you selected the account it asks for. A different error can need a different fix.

Sender registration error

"Sender unable to be registered"
Make sure you select the WhatsApp Business Account ID shown in the warning. All senders must be in the same WABA.

Step 3: Connect Twilio to Boei

Follow Twilio account to connect the provider in Boei. If it is already connected, reuse it for this channel. Return here to add the number and webhook.

Step 4: Add a WhatsApp Channel in Boei

  1. Still in the Channels tab, click WhatsApp
  2. Click Add WhatsApp Channel
  3. Enter a Channel Name (e.g., "Support WhatsApp")
  4. Enter the WhatsApp phone number you registered in Step 2 (with country code, e.g., +19046000061)
  5. Select the Provider Account you connected in Step 3
  6. Optionally select an AI agent to auto-reply to incoming messages
  7. Click Create

Boei add WhatsApp channel

After creating the channel, Boei shows the webhook URL. You'll need this in the next step.

Step 5: Configure the Webhook in Twilio

This tells Twilio to forward incoming WhatsApp messages to your Boei inbox.

  1. Copy the webhook URL from Boei (click the copy icon next to it)
  2. In Twilio Console, go to Messaging → WhatsApp Senders
  3. Click on your WhatsApp number
  4. Paste the webhook URL in the webhook configuration field
  5. Make sure the HTTP method is set to POST
  6. Save

Test the connection

Send a message from a separate customer account or phone. Check that it arrives in Team inbox, then send a reply and confirm it arrives on the customer's device. If AI should answer, check that the intended agent is selected and has knowledge and available credits.

Business display name: Customers see your WhatsApp Business display name, not the phone number. You can change this in your Meta Business Manager under WhatsApp accounts.

Troubleshooting

Problem Solution
Messages not arriving in Boei Double-check the webhook URL in Twilio WhatsApp Sender settings. Make sure it matches exactly.
"Authentication failed" error Verify your Account SID and Auth Token are correct. Re-copy from the Twilio Console.
Number already registered Check ownership and Twilio's migration requirements before buying a replacement.
Meta business review pending Check the review status and required information in your Meta account. Approval time can vary.
Webhook verification failing Ensure the "Auth Token (for webhook verification)" field in Boei matches your Auth Token.

Frequently Asked Questions

Can I use my existing phone number?

Yes. Twilio accepts customer-owned phone numbers as long as the number can receive an SMS or voice call for verification. If your number is already registered in the WhatsApp Business app, it must first be migrated to Twilio before you can use it here.

Can I keep using the WhatsApp Business app on my phone after connecting?

Not with the standard setup. Once the number is registered through Twilio's WhatsApp API, it can no longer be used in the WhatsApp Business mobile app at the same time. See Twilio's migration guide before disconnecting the app or moving an existing number.

How much does WhatsApp messaging cost?

Twilio charges a per-message fee for WhatsApp. Check Twilio's current WhatsApp pricing for up-to-date rates. Boei AI credits are charged separately on top of Twilio's messaging fees. Meta generally does not charge for replies sent within 24 hours after the customer starts the conversation.

Can the chatbot proactively send a document through WhatsApp?

Not currently. Meta restricts proactive WhatsApp messages and generally requires pre-approved message templates. Boei supports replying after a customer starts a WhatsApp conversation, but cannot initiate outbound messages or send unsolicited documents.