🤖HermesBlog
Hermes Messaging Platforms · Part 18/9/2026

WhatsApp Business Cloud API

WhatsApp Business Cloud API — easy-to-understand guide based on official docs

Sending a message from your bot is like mailing a letter — you can use a personal mailbox or a registered business address. The personal mailbox is quick, but the business address is the one that won’t get you flagged.


Why Not Just Use the Baileys Bridge?

Hermes Agent’s built-in Baileys bridge is great for testing. It emulates a WhatsApp Web session, so you just scan a QR code and you’re done. But it’s unofficial. WhatsApp can restrict your number at any time, especially if you send too many messages or message people who haven’t contacted you first.

For a real business bot, you need the official path.


What Is the WhatsApp Business Cloud API?

It’s Meta’s official way to let businesses send and receive WhatsApp messages programmatically. No emulation, no QR code scanning, no ban risk. You get a clean, stable connection that WhatsApp actually supports.

The trade-off? You need:

  • A Meta Business account (free to create)
  • A public webhook URL (so WhatsApp can send incoming messages to your bot)
  • A phone number that isn’t already registered with WhatsApp

How to Set It Up with Hermes

The Hermes Agent framework has a dedicated adapter for this. Here’s the simple version:

1. Create a Meta Business Account

Go to developers.facebook.com and create a business app. Grab your Access Token and your Phone Number ID from the WhatsApp section.

2. Get a Public URL

You’ll need a public HTTPS endpoint. You can use a service like ngrok for testing, or deploy your bot to a server with a real domain.

3. Configure Hermes

Run the setup wizard:

hermes gateway setup

Pick WhatsApp Cloud instead of the Baileys bridge. It will ask for your token, phone number ID, and webhook URL.

4. Verify the Webhook

WhatsApp will send a verification code to your webhook URL. Hermes handles this automatically — just make sure the URL is reachable.


Key Differences from the Baileys Bridge

Feature Baileys Bridge Cloud API
Setup time 2 minutes 30 minutes
Ban risk Small but real None
Requires public URL No Yes
Requires Meta account No Yes
Best for Personal testing Production bots

Can You Run Both?

Yes. Hermes lets you run both adapters in parallel on different phone numbers. Use the Baileys bridge for your personal testing, and the Cloud API for your actual customers. They don’t interfere with each other.


Summary and Practical Tip

The WhatsApp Business Cloud API is the professional choice. It takes a bit more setup, but it removes the fear of losing your number. Start with the Baileys bridge to learn the ropes, then switch to the Cloud API before you go live.

Practical tip: Use a dedicated phone number for your bot — even with the official API. It keeps your personal chats separate and makes it easier to manage permissions and billing. And always test your webhook URL with a tool like curl before connecting it to WhatsApp.

📖 Official Docs

This article is based on the official Hermes Agent documentation:Official docs › user-guide/messaging/whatsapp