HostWebhook Help Center

Connect WhatsApp to your flows

Connect your WhatsApp number with one click, start a flow when someone writes to it, answer with texts, media and templates within the 24-hour window, and let an AI node answer about your business.

Time about 10 minutesYou need a HostWebhook account and a phone number for WhatsAppUpdated November 21, 2026

Connect your WhatsApp number with one click, then start a flow when someone writes to it, answer with texts, media and templates, or let an AI node answer about your business.

You can write anything for 24 hours.

A free-form message reaches a person only if they wrote to your number in the last 24 hours. After that, Meta blocks everything except a template it approved in advance. This is a rule of WhatsApp, not of HostWebhook.

Meta bills your messages, on your own card.

HostWebhook doesn't touch that money, and the messages are not part of your HostWebhook plan. Without a payment method, templates won't send, and replies stop once the free monthly allowance of each number is used. When Meta rejects a message over a payment issue, the credential and the node say so.

Connect your number

In HostWebhook, go to Settings › Credentials › New credential and pick WhatsApp Business. Give the credential a name and click Connect WhatsApp. Meta opens a window: you sign in with Facebook, pick or create your business account, and verify your number. There is no Meta app to create and no token to copy. When the window closes, HostWebhook turns the number on and the credential is ready.

What Meta asks in its window
  1. Sign in with your Facebook or Meta business account.
  2. Accept the terms Meta shows for WhatsApp.
  3. Pick an existing business portfolio and WhatsApp Business Account, or create new ones.
  4. Enter your phone number and verify it.
  5. Enter the display name people will see instead of your number.

If your browser blocks the window, allow pop-ups and click Connect WhatsApp again.

Which number can I use?

A number that is on the regular WhatsApp app has to move to the WhatsApp Business app first, or its WhatsApp account has to be deleted in the app. Deleting an account loses its chats.

Already on the WhatsApp Business app? Keep it: the app and HostWebhook share the number. Messages you send from the app don't reach your flows, and Meta turns off disappearing messages and broadcast lists on that number. If Meta sends your chat history and contacts when you connect, HostWebhook drops them on arrival: they aren't stored. The credential says Also on your WhatsApp Business app. Replies from the app don't reach your flows.

The credential then shows the state of your number:

What you seeWhat to do
Connected with your number and its nameNothing. It is ready.
Almost there. Press Finish setup to turn on this number.One step of the setup didn't finish. The credential says which one. Fix it, then press Finish setup.
Setup expired. Connect WhatsApp again.The setup wasn't finished in the time Meta gives, which is much shorter if the number is also on the WhatsApp Business app. Press Reconnect.
No payment method. Templates won't send, and replies stop once the free monthly allowance is used.Press Add payment method, which opens WhatsApp Manager. Then press Test connection: it reads the state again in Meta.
Meta needs a payment method to send this. Add one in WhatsApp Manager.Meta accepted a message and rejected it afterwards over a payment issue. Press Add payment method, which opens WhatsApp Manager. Then press Test connection. The warning goes away once Meta delivers a message it charges for, or after 14 days without a new rejection.
Meta restricted this account. See why in WhatsApp Manager.Press Open WhatsApp Manager to see why.
Disconnected in Meta. Reconnect to turn it back on.Press Reconnect.
Why «Almost there»?

The credential shows one of these lines under it:

  • Too many tries for this number. Press Finish setup later.
  • This number has a two-step PIN. Turn it off in WhatsApp Manager, then press Finish setup.
  • Your number isn't verified. Verify it in WhatsApp Manager, then press Finish setup.
  • Meta couldn't finish setting up this number. Press Finish setup to try again.
Reconnecting, and another number

Reconnect runs the same window on the same credential, so the nodes and triggers that use it keep working. It has to be the same number: for another number, HostWebhook says This credential is for +52…. For another number, create a new credential. HostWebhook renews the connection by itself before it expires. If Meta stops accepting it, the credential shows Reconnect.

Use your own Meta app

If you already have a Meta app, open Use your own Meta app under the button and paste three values from its WhatsApp › API Setup page: the access token, the phone number ID (the numeric ID, not the phone number) and the WhatsApp Business Account ID. HostWebhook checks the token with Meta before saving.

  • Meta gives every new app a free test number on that page, so you can try everything without a number of your own.
  • For production, use a System User token, which doesn't expire. A temporary token expires quickly.
  • The App secret is optional for sending and needed by the trigger: Meta signs every message it delivers with it.
  • Activating a trigger replaces the callback URL your Meta app already had. Another tool that receives its messages stops.
Disconnecting

Deleting the credential in HostWebhook takes HostWebhook off your WhatsApp account in Meta, unless another credential uses it. It doesn't release the number. To free it, delete the number in WhatsApp Manager as an admin of the business portfolio. Meta asks for the number's two-step PIN: if you don't have it, turn the PIN off there first. Meta doesn't delete a number that sent paid messages recently.

If you remove HostWebhook in your Meta business settings, the connection stops working and the credential shows Reconnect. The WhatsApp triggers on that account pause, in every organization that uses it: after you reconnect, activate yours again.

Start a flow when someone writes to you

Add a trigger and pick WhatsApp, then your credential. Each credential is one number: another number is another credential and another trigger. In Event Trigger, pick at least one thing that fires it:

EventWhen it fires
Message receivedSomeone writes to your number: a text, a photo, a voice note, a document, a location, a contact, a reaction, or a button they tapped.
Message statusA message your number sent was sent, delivered, read, or failed.
Template statusMeta approved, rejected or paused one of your templates.

Activating the trigger connects the webhook for you: there is nothing to paste in Meta. Each trigger only gets the events of its own number, and HostWebhook checks that every delivery is really from Meta before anything runs. Deactivating a trigger doesn't remove HostWebhook from your account.

The flow gets, among the rest of the message:

  • {{payload.text}}: what the person wrote.
  • {{payload.replyTo}}: who to answer. It is their number, or their WhatsApp username id when they hide their number. The send operations accept both.
  • {{payload.from}} and {{payload.name}}: their number and their name. The number is empty when the person uses a username and has never written to you before.
  • {{payload.messageId}}: the message, to quote it, mark it as read or react to it.
  • {{payload.attachment._file}}: a photo, video, voice note, audio, document or sticker, saved as a file. An AI node after the trigger can read it. Files too big to be scanned for viruses are not downloaded, and the message still arrives.

In the trigger's test, WhatsApp keeps no history: you see examples of each event, not real messages.

Answer the person

Add a WhatsApp node after the trigger, pick your credential, and keep the mode on Single operation. For Recipient, pick the country and type the number as people write it there. After a WhatsApp trigger, Reply to whoever wrote answers the sender.

OperationWhat it sends
Send textA text. WhatsApp's light markup works (*bold*, _italic_); there is no HTML.
Send imageAn image, by URL or WhatsApp media id, with an optional caption.
Send audioAn audio file, by URL or media id.
Send videoA video, by URL or media id, with an optional caption.
Send documentA file, by URL or media id, with the name the person sees.
Send locationA pin on the map, with an optional name and address.
Send templateA template Meta approved in advance. The only message that reaches a person after the 24 hours.
Reply to messageA text that quotes one of their messages.
Mark as readMarks a message as read, so the person sees the blue ticks.
Send reactionAn emoji reaction to a message.

After 24 hours, only a template gets through.

If the person hasn't written in the last 24 hours, Meta blocks every free-form message (text, media, reactions) and only lets Send template through. A flow that stops working is most often this.

Sending a template

Pick the template from the list of your WhatsApp Business Account: the approved ones come first, each with its language and a preview of its text. Click Refresh after Meta approves a new one. The variables of the template show up one per field, like {{1}} or {{first_name}}, and each takes a value from the flow.

The node fills the variables of the body. A template with an image, video or document header, or with a variable in its header or in a URL button, is flagged when you pick it: Meta would refuse the message, so pick one without it.

To take the template from the flow instead, click Type the name instead: the name, the language code and the variables.

Replying within the 24 hours needs no template. Templates need Meta's approval first, so keep them for after the 24 hours.

Let an AI node answer

Set the node's mode to AI toolkit and add the node to an AI node's tools, with the trigger in front of it. The AI node reads the message, and everything it sends goes back to the person who wrote.

None of the tools has a recipient. The AI can choose what to send, but never who gets it: it can only answer the person who wrote in this flow. Send template starts blocked: templates are paid, and the person just wrote, so a normal reply is enough. You can block any tool one by one in the node, or unblock the template if the agent should have it.

Keep the AI about your business.

Meta doesn't allow general-purpose AI assistants on WhatsApp, and it decides what counts. An AI node that answers about your orders, bookings or opening hours is different. Message data can't train AI models, so pick an AI provider that doesn't train on your data.

The note that it is an AI

When an AI node answers a WhatsApp message, its first text reply to each person starts with a short note that it is an automated AI assistant, and it goes out once every 24 hours per person. You set it in the card Tell WhatsApp contacts they are talking to an AI of the AI node:

  • It starts on in a new AI node. An AI node made before the note existed has it off until you turn it on. If you turn it off, telling people is your responsibility, wherever the law requires it.
  • Business name goes in the note. Empty, it says this business.
  • How can people reach a person? is optional and goes right after the note. Only say a way that really works: a word your flow handles, a phone number, an email or a form.
  • Your own message replaces the whole note. Keep it clear that it is an AI.
  • Only a text uses it up. An image, an audio or a template doesn't: the next text carries it.

Without a way to reach a person, the note only says it is an AI and asks how it can help. The card says Right now the message does not say how to reach a person. Turning on a WhatsApp trigger warns you, in amber, which AI nodes of the flow answer that way. It warns, it doesn't block.

The ten tools
  • send_whatsapp_text: a text.
  • send_whatsapp_image, send_whatsapp_audio, send_whatsapp_video and send_whatsapp_document: a file.
  • send_whatsapp_location: a pin on the map.
  • send_whatsapp_template: an approved template.
  • reply_to_whatsapp_message: a text that quotes a message. Without a message id, it quotes the one that started the flow.
  • mark_whatsapp_as_read and send_whatsapp_reaction: they point at the message that started the flow unless the model names another one.

A tool called with no WhatsApp message in the flow (a test run, for instance), or when the message arrived at a different number than the credential's, is refused and says why. This node isn't offered to MCP servers: an MCP client brings no message to answer.

Troubleshooting

Your browser blocked Meta's window. Allow pop-ups, then try again. Allow pop-ups for HostWebhook and click Connect WhatsApp again.

Not connected. Meta's window closed before the last step. Click Connect WhatsApp and finish every step in the window.

Meta couldn't finish. Try again, or check your account in WhatsApp Manager. Try again. If it keeps failing, look at your account in WhatsApp Manager.

That took too long. Press Connect WhatsApp again. The window stayed open too long. Start again.

Meta didn't share this number with HostWebhook. Connect again and pick it. In Meta's window, pick your number from the list.

Meta didn't give the permissions this needs. Connect again and accept them. You unticked a permission in Meta's window. Connect again and accept them all.

Meta's sign-in didn't load. Check your connection or ad blocker, then reload the page. An ad blocker or a network rule stopped Meta's sign-in from loading.

This number isn't turned on yet. Press Finish setup on the credential. The setup of the number didn't finish. Open the credential and press Finish setup.

Meta no longer accepts this connection. Reconnect the credential. Press Reconnect on the credential.

Meta needs a payment method to send this. Add one in WhatsApp Manager. The node says it when Meta refuses a send. The credential and the node also say it, in amber, when Meta accepts a message and rejects it afterwards; then the Run shows Meta accepted this message, then rejected it. See the credential. Press Add payment method on the credential, then Test connection.

Meta restricted this account. See why in WhatsApp Manager. Meta limited your account. Press Open WhatsApp Manager on the credential to see why.