Updated on October 29, 2026
Botpress has a native WhatsApp integration built on Meta’s official Cloud API: you authorize the account or paste an access token, Phone Number ID and WABA ID, and the bot starts answering on that number. Dialogflow CX does not list WhatsApp among Google’s integrations, so you connect it through a middleware (yours or a third party’s) that receives the WhatsApp webhook, calls the detectIntent API and sends the reply back through the API. In both cases Meta’s rules apply: free-form replies only inside the 24-hour window, approved templates outside it.
How Botpress connects to the official WhatsApp API
The Botpress WhatsApp documentation describes an integration you install from the Explore Hub in Botpress Studio, with two setup modes.
Automatic setup
You click Authorize WhatsApp and follow Meta’s flow. You need a Facebook account, a business Page and a WhatsApp Business account. Botpress’s own docs warn that the bot can only send messages after Meta verifies the business, and that Botpress cannot speed that up.
Manual setup (your own Meta app)
If you already have an app on developers.facebook.com, Manual Configuration asks for:
| Botpress field | Where it comes from |
|---|---|
| Verify Token | Any alphanumeric string you choose, used to verify the webhook |
| Access Token | Token generated in the Meta app (in production, use a permanent system user token) |
| Client Secret | App Secret, in the app’s basic settings |
| Default Bot Phone Number ID | ID of the number that will reply |
| WABA ID | WhatsApp Business Account ID |
Then you copy the webhook URL and Verify Token shown by Botpress, paste them into the Meta app’s webhook configuration and subscribe to messages, message_template_status_update, message_template_quality_update, message_template_components_update and template_category_update. How to create a token that doesn’t expire is covered in WhatsApp API permanent access token.
How Botpress translates messages
Botpress has its own message types and converts them to WhatsApp types. According to the mapping page:
| Botpress element | What arrives on WhatsApp |
|---|---|
| Text | Text message |
| Image, audio, video, file | Media of the matching type |
| Location | Location message |
| Choice with 1 to 3 options | Reply buttons |
| Choice with 4 to 10 options | List (dropdown) |
| Choice with 11 or more options | Several lists of up to 10 options |
| Card | Interactive message; more than 3 buttons are split into several cards |
| Carousel | Not supported: each card becomes a separate message |
Button titles over 19 characters are truncated with an ellipsis (23 for list options), and a sent file takes the card title as its name, or “file” if the title is empty. For WhatsApp’s native formats, see WhatsApp interactive messages API.
Starting a conversation with a template
Botpress starts conversations with the Start Conversation card (or the actions.whatsapp.startConversation action in code), using the phone number with country code, template name, language and variables as JSON. The proactive start docs note that the default language is en_US: if your template is in another language and you leave the field empty, the call fails. Variables go in a JSON array and are assigned by position ({{1}}, {{2}}); the docs don’t cover named parameters, so stick to templates with positional parameters.
How Dialogflow CX connects to WhatsApp
The Dialogflow CX integrations page lists built-in integrations such as Messenger from Meta, Workplace from Meta, LINE, Slack and Google Chat, plus open source connectors on GitHub (Telegram, Twilio, Viber and others). WhatsApp is not on the list. That leaves two paths:
- A third-party connector that already bridges WhatsApp and Dialogflow CX.
- Your own middleware, connected directly to the WhatsApp API.
The second gives you full control and is straightforward. The flow:
- The customer sends a message; the WhatsApp webhook hits your server.
- Your server calls
detectIntenton Dialogflow CX, using the customer’s phone number as the session ID. - Dialogflow CX returns the replies in
queryResult.responseMessages. - Your server sends each reply through the WhatsApp API.
The REST call, per the Dialogflow CX API quickstart:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
"https://REGION_ID-dialogflow.googleapis.com/v3/projects/PROJECT_ID/locations/REGION_ID/agents/AGENT_ID/sessions/15551234567:detectIntent" \
-d '{"queryInput": {"text": {"text": "where is my order"}, "languageCode": "en"}}'
Node.js middleware example
The code below receives the webhook (in Meta’s format), queries the agent and replies. It sends through the Vectalk API; with the Cloud API directly, swap the URL and token.
import express from "express";
import { SessionsClient } from "@google-cloud/dialogflow-cx";
const app = express();
app.use(express.json());
const LOCATION = "us-central1";
const dialogflow = new SessionsClient({ apiEndpoint: `${LOCATION}-dialogflow.googleapis.com` });
async function sendText(to, body) {
await fetch("https://apis.vectalk.com.br/api/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VECTALK_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ messaging_product: "whatsapp", to, type: "text", text: { body } }),
});
}
app.post("/whatsapp/events", (req, res) => {
res.sendStatus(200); // acknowledge fast; process afterwards
const value = req.body.entry?.[0]?.changes?.[0]?.value;
const msg = value?.messages?.[0];
if (!msg || msg.type !== "text") return; // statuses, media etc. go to another routine
const session = dialogflow.projectLocationAgentSessionPath(
process.env.GCP_PROJECT, LOCATION, process.env.AGENT_ID, msg.from
);
dialogflow
.detectIntent({ session, queryInput: { text: { text: msg.text.body }, languageCode: "en" } })
.then(async ([resp]) => {
for (const m of resp.queryResult.responseMessages) {
for (const t of m.text?.text ?? []) await sendText(msg.from, t);
}
})
.catch(console.error);
});
app.listen(3000);
In production, validate the webhook signature, deduplicate messages by id and log failures. For a complete Node.js bot with those safeguards, see WhatsApp bot with Node.js and Express.
Buttons, lists and media in Dialogflow CX
Dialogflow CX doesn’t know what a WhatsApp button is. The fulfillment docs offer a custom payload response, which Dialogflow CX does not process: it goes back to whoever called detectIntent. The usual pattern is to put the interactive message JSON in the payload and have the middleware forward it to the API. The same page documents the live agent handoff response, which signals to your system that the conversation should go to a human. How to do that handoff without losing context is in from bot to human on WhatsApp.
Mind the timing too: the Dialogflow CX fulfillment webhook (when the agent calls your backend) has a default timeout of 5 seconds per attempt, with one retry on transient failures, according to the CX webhook docs.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Limitations that apply to both
Sending rules belong to Meta and don’t change with the tool.
- 24-hour window. Meta’s send messages docs say each customer message opens (or resets) a 24-hour window. Inside it, the bot can reply with text, media, buttons and lists. Outside it, only approved templates. A bot that “reminds the customer tomorrow” needs a template. More in the WhatsApp 24-hour customer service window.
- Templates. Creation, approval and category happen in the WhatsApp account, not in the bot builder. The bot only references the name and language.
- Buttons. Up to 3 reply buttons per message; beyond that, use a list.
- Incoming media. The webhook carries only the media ID; to read the file the customer sent, the middleware has to download it through the API.
- Cost. Replies inside the window are service messages. Since October 1, 2026, each number gets 1,000 free service messages per month; from the 1,001st on, the rate for Brazil is BRL 0.0350. Utility templates sent inside the window are now charged as well.
- AI policy. If the bot uses a generative model, first check what Meta’s policy allows for chatbots.
Bot builder or your own code?
| Criterion | Botpress | Dialogflow CX | Typebot | Your own code |
|---|---|---|---|---|
| WhatsApp connection | Native integration (Cloud API) | No native integration; middleware or third party | Cloud API integration | Directly on the API |
| Who edits the flow | Product/support team | Product team, with technical help | Product/marketing team | Developers |
| Buttons and lists | Converted automatically | Via custom payload | Converted by Typebot | Full control |
| Hosting | Botpress cloud | Google Cloud | Cloud or self-hosted | Your infrastructure |
| Best for | AI bots and visual flows | Teams already on Google Cloud who want NLU | Lead capture and qualification flows | Complex business rules |
For form-style and qualification flows, Typebot also connects to the Cloud API; the guide is in Typebot with the WhatsApp Business API.
A rule of thumb: if the flow changes every week and the people changing it don’t code, use a builder. If the bot looks up orders, stock and CRM data at every step, your own code tends to be simpler than maintaining integrations inside the builder. A common middle ground is letting the builder handle the conversation while n8n handles calls to internal systems. If you want answers grounded in company documents, see also a chatbot with a knowledge base (RAG).
How to do this with Vectalk
Vectalk is a proxy for the official WhatsApp Cloud API. Events arrive at the webhook you register on the instance, with the same payload Meta sends, and you send with POST https://apis.vectalk.com.br/api/messages using the same JSON as the Cloud API (text, media, buttons, lists and templates). Your endpoint must return HTTP 200 within 20 seconds, or the event is retried.
That fits the middleware pattern directly: Dialogflow CX works as in the example above, and Botpress can be called through Botpress’s own Chat API, with the middleware forwarding the replies. Vectalk has no bot or AI in its dashboard; the dashboard handles instances, templates, webhooks, logs and invoices. For the full picture, read the official WhatsApp API guide, the documentation or create your account.
Frequently asked questions
Does Botpress use the official WhatsApp API?
Yes. Botpress’s WhatsApp integration uses Meta’s Cloud API, both in the automatic setup and in the manual setup with your own app. The number must be registered on the platform and the business verified by Meta before the bot can send messages.
Does Dialogflow CX have a native WhatsApp integration?
No. On the Dialogflow CX integrations page (updated October 26, 2026), WhatsApp appears neither among the built-in integrations nor among Google’s open source connectors. You connect it through your own middleware or a third-party connector.
Can the bot message a customer after 24 hours?
Only with an approved template. In Botpress, use the Start Conversation card; with Dialogflow CX, the middleware sends the template directly through the API. Meta rejects free-form messages outside the window.
Can I use Botpress and a human agent on the same number?
Yes, but the handoff logic is yours: the bot must stop replying when a human takes over. In Dialogflow CX, the live agent handoff response is the signal for your system. See also multiple agents on one WhatsApp number.
Which is cheaper: Botpress, Dialogflow CX or your own code?
Messages cost the same in every case, because the rate is Meta’s. What changes is the tool cost (Botpress plan, Google Cloud usage) and development time.
Official sources consulted on October 29, 2026: Botpress: WhatsApp Setup, Botpress: mapping Botpress to WhatsApp, Botpress: start proactively, Botpress: Chat API, Dialogflow CX: integrations, Dialogflow CX: API quickstart, Dialogflow CX: fulfillment, Dialogflow CX: webhooks, Meta: send messages and customer service window, Vectalk: webhooks, Vectalk: send text.
Try the official WhatsApp API today
Create your account, generate a token and send your first message with the quick-start guide. Same payloads and webhooks as Meta's Cloud API.
