Skip to main content
Share
Channels

How to Build a WhatsApp AI Chatbot With ChatGPT or Claude (Inside Meta's 2026 Rules)

You can run ChatGPT or Claude behind a WhatsApp Business number as long as the bot serves your business. What Meta's AI Provider rule actually says, the Cloud API setup, a working webhook-to-LLM code sample, the 24-hour window and escalation rules, current pricing, and the no-code route.

Content & Engineering
Nov 16, 2026
9 min read
Last verified October 2026
how to build a whatsapp chatbot with chatgptwhatsapp ai chatbot for businesswhatsapp ai chatbot freehow to create a whatsapp ai chatbotwhatsapp business ai agent
TL;DR

You can run ChatGPT or Claude behind a WhatsApp Business number as long as the bot serves your business. What Meta's AI Provider rule actually says, the Cloud API setup, a working webhook-to-LLM code sample, the 24-hour window and escalation rules, current pricing, and the no-code route.

Key Takeaways
  • You can put ChatGPT or Claude behind a WhatsApp Business number if the bot serves your business (support, sales, bookings), because Meta has barred general-purpose AI assistants from the Business API since 15 January 2026.
  • Connect the number through the official Cloud API to a builder that calls the model.
  • Last verified: 25 October 2026 against the Meta Terms for WhatsApp Business Platform (last modified 23 September 2026), the WhatsApp Business Messaging Policy, Meta's Cloud API and pricing documentation, and the European Commission's 9 June 2026 decision.
  • The distinction Meta draws is between AI as your product and AI as a feature of your business .

The short answer

You can put ChatGPT or Claude behind a WhatsApp Business number if the bot serves your business (support, sales, bookings), because Meta has barred general-purpose AI assistants from the Business API since 15 January 2026. Connect the number through the official Cloud API to a builder that calls the model.

Last verified: 25 October 2026 against the Meta Terms for WhatsApp Business Platform (last modified 23 September 2026), the WhatsApp Business Messaging Policy, Meta's Cloud API and pricing documentation, and the European Commission's 9 June 2026 decision.

The distinction Meta draws is between AI as your product and AI as a feature of your business. A retailer whose WhatsApp bot uses Claude to answer delivery questions is fine. A company that offers "chat with GPT on WhatsApp" as its service is what the rule targets.

Use caseAllowed?Why
Support bot answering questions about your products, orders and policiesYesAI is incidental to your customer service
Sales or lead-qualification bot for your own catalogueYesAI supports your own selling
Booking assistant for your clinic, salon or restaurantYesAI supports your own service
An "ask me anything" assistant offered as the product itselfNoAI is the primary functionality being made available
Reselling access to an LLM through a WhatsApp numberNoThat is an AI Provider distributing its technology

The rest of this guide covers the exact wording, the setup, a code sample, and the WhatsApp rules your AI bot still has to follow.

What Meta's AI Provider rule actually says

The rule is in section 4.7 of the Meta Terms for WhatsApp Business Platform (the old business-solution-terms URL now redirects there). It defines AI Providers as "Providers and developers of artificial intelligence or machine learning technologies, including but not limited to large language models, generative artificial intelligence platforms, general-purpose artificial intelligence assistants, or similar technologies as determined by Meta in its sole discretion".

Such providers "are strictly prohibited from accessing or using the WhatsApp Business Platform, whether directly or indirectly, for the purposes of providing, delivering, offering, selling, or otherwise making available such technologies when such technologies are the primary (rather than incidental or ancillary) functionality being made available for use".

Three things follow from the text:

  1. The test is "primary vs incidental or ancillary". The terms do not list allowed use cases. When the AI is a tool your business uses to serve its own customers, it is ancillary. When the AI is what people come to the number for, it is primary.
  2. You may still use an AI company's tools. The same section says you "may retain an AI Provider as your Solution Provider". Calling OpenAI's or Anthropic's API from your bot, or using a chatbot builder that does, is not the problem the rule addresses.
  3. There is a data rule as well. Platform data may not be used "to create, develop, train, or improve any machine learning or artificial intelligence systems", with an exception for fine-tuning a model for the business's own exclusive use. Check your LLM provider's data settings so WhatsApp conversations are not used to train their general models.

Where does 15 January 2026 come from? The European Commission's 9 June 2026 press release records that "On 15 October 2025 Meta introduced a new policy, banning third-party general-purpose AI assistants", with the ban taking effect on 15 January 2026. Meta's spokesperson framed the purpose at the time as helping "businesses provide customer support and send relevant updates," as reported by TechCrunch.

The regulatory caveat (EU and Italy)

The rule is being challenged. Italy's competition authority ordered Meta on 24 December 2025 to suspend the relevant terms while it investigates. On 9 June 2026 the European Commission went further and "ordered Meta to restore free access to WhatsApp for rival general-purpose AI assistants" until the end of its antitrust investigation, noting that Meta had re-admitted such assistants on 4 March 2026 but with a fee the Commission viewed as "equivalent to the previous access ban." These actions concern AI assistant providers. For an ordinary business running its own support or sales bot, nothing changes: your use was allowed before and still is.

How the pieces fit

A WhatsApp AI chatbot is four parts in a loop:

PartWhat it doesWho runs it
WhatsApp Cloud APIReceives the customer's message and delivers your replyMeta
Webhook endpointReceives Meta's POST, answers 200 fast, queues the workYou or your builder
Bot logicKeeps conversation state, adds your knowledge, decides when to hand overYou or your builder
LLM APIGenerates the reply from your instructions and contextOpenAI, Anthropic, Google, etc.

Two constraints shape the design. First, your webhook must acknowledge Meta quickly, so the model call should happen after you return 200, not before. LLM calls can take seconds. Second, the reply must go out while the customer service window is open, which is not a problem for real-time chat but matters if you queue work for later.

Try it yourself
Build your first chatbot free
Free plan, no credit card required. Live on your site in about 10 minutes.
Start building free

Step 1: Put the number on the Cloud API

Follow Meta's Cloud API get-started guide:

  1. Create a Meta app: "Open the Meta App Dashboard to create a new Meta app with the WhatsApp use case."
  2. Connect a Messaging account. Meta's docs now call the WhatsApp Business Account a "Messaging account". Meta provides a test number to start with.
  3. Add your phone number and verify it. The number cannot be active in the WhatsApp or WhatsApp Business app at the same time; if registration fails, see our registration failed guide.
  4. Create a permanent token. The temporary token on the API Setup page "expires quickly and is not suitable for development purposes." In Business Settings → System users, create a system user and generate a token with whatsapp_business_messaging, whatsapp_business_management and business_management.
  5. Copy the Phone Number ID from API Setup. You send messages to /<PHONE_NUMBER_ID>/messages.
  6. Register the webhook. Meta verifies it with a GET request: hub.mode is "always set to subscribe", hub.verify_token is the string you entered in the dashboard, and you must "Respond with the hub.challenge value." Then subscribe to the messages field.

If you would rather not do this by hand, our guide to the free WhatsApp API covers the official vs unofficial options, and the WhatsApp Business API setup guide walks the dashboard screen by screen.

Step 2: Connect the webhook to the model

This Node.js sketch verifies the webhook, acknowledges messages immediately, asks Claude for a reply with your business instructions, and sends it back. Swap the model call for OpenAI's API if you prefer GPT; the WhatsApp side does not change. Keep model names in configuration rather than code, because providers retire models regularly.

import express from "express";const app = express();app.use(express.json());const GRAPH = "https://graph.facebook.com/v26.0";// 1. Webhook verification (GET)app.get("/webhook", (req, res) => {const ok = req.query["hub.mode"] === "subscribe" &&req.query["hub.verify_token"] === process.env.VERIFY_TOKEN;ok ? res.send(req.query["hub.challenge"]) : res.sendStatus(403);});// 2. Incoming messages (POST): acknowledge first, then workapp.post("/webhook", (req, res) => {res.sendStatus(200);const msg = req.body.entry?.[0]?.changes?.[0]?.value?.messages?.[0];if (msg?.type === "text") reply(msg.from, msg.text.body).catch(console.error);});async function reply(to, text) {const ai = await fetch("https://api.anthropic.com/v1/messages", {method: "POST",headers: {"x-api-key": process.env.ANTHROPIC_API_KEY,"anthropic-version": "2023-06-01","content-type": "application/json",},body: JSON.stringify({model: process.env.MODEL,max_tokens: 400,system: "You are the support assistant for Acme Bikes. Answer only about Acme orders, " +"products and policies. If unsure, or if the customer asks for a person, say you " +"will connect them to the team.",messages: [{ role: "user", content: text }],}),}).then((r) => r.json());await fetch(`${GRAPH}/${process.env.PHONE_NUMBER_ID}/messages`, {method: "POST",headers: { Authorization: `Bearer ${process.env.WA_TOKEN}`, "Content-Type": "application/json" },body: JSON.stringify({messaging_product: "whatsapp",to,type: "text",text: { body: ai.content?.[0]?.text ?? "Sorry, something went wrong. A person will follow up." },}),});}app.listen(3000);

What this sketch leaves out, and a production bot needs: conversation history per customer (the model sees only one message here), deduplication (Meta can deliver the same webhook more than once), retrieval from your help content so answers are grounded, a handover path to a human, and signature verification of incoming webhooks. Those are where most of the build time goes, and they are what a builder gives you out of the box.

WhatsApp API Cost Calculator
Free tool - no signup, runs in your browser.
Open free tool

Step 3: Stay inside WhatsApp's messaging rules

The AI Provider rule is about who may use the platform. Your bot also has to follow the everyday messaging rules in the WhatsApp Business Messaging Policy, and these catch AI bots more often:

  • The 24-hour window. "When a WhatsApp user messages you or calls you, a 24-hour timer called a customer service window starts" (Meta pricing docs). Inside it, your AI can reply freely. "Outside the 24-hour customer service window, you may only send messages via approved Message Templates." Send a free-form AI reply too late and the API rejects it with error 131047. Check templates before submitting with our template checker.
  • Escalation is mandatory. The policy allows automation inside the window, but you "must also have available prompt, clear, and direct escalation paths" such as transfer to a human agent, a phone number, email or a support form. An AI bot that loops forever without a way out breaches the policy, not just good practice.
  • Opt-in and templates for outbound. "You may only initiate conversations using an approved Message Template." Your AI cannot start conversations with free text.

Meta's policy does not, as far as we could find, require you to state that replies come from AI. Say so anyway, in the greeting. It sets expectations, and it makes the escalation path ("type agent to talk to a person") feel natural rather than like an error state.

Keep the system prompt tight on scope. Instructing the model to answer only about your business is good customer service, and it also keeps the bot clearly on the "ancillary" side of the AI Provider rule.

What it costs to run

You pay three separate bills: Meta for messages, the LLM provider for tokens, and your host or builder.

CostHow it is charged (October 2026)
Inbound messages from customersNot charged by Meta
Your replies inside the window (service messages)Since 1 October 2026: 1,000 free per business phone number per month, then charged per message
Utility templates sent inside an open windowCharged per message since 1 October 2026 (previously free)
Marketing, utility and authentication templatesCharged per delivered message, by category and country (per-message pricing since 1 July 2025)
LLM tokensBilled by your model provider per input and output token

Meta's pricing updates page describes the October change: Meta "resumed charging, on a per-message basis, for messages that were previously free," and it warns that without a valid payment method Meta "will stop delivering service messages" once they become charged. If your AI bot handles a lot of support volume on one number, budget for it; our service-message billing explainer has the detail, and the WhatsApp API cost calculator estimates a monthly bill. Throughput limits are on the WhatsApp limits page.

A practical tip on LLM cost: cap max_tokens (WhatsApp replies should be short anyway), send only the last few turns of history, and route simple FAQs to fixed answers instead of the model.

The no-code route

If you do not want to host the webhook, build the state handling and maintain the API version, a chatbot builder does those parts. With Conferbot's WhatsApp chatbot:

  1. Put your number on the Cloud API (Step 1 above) and copy the Phone Number ID and access token.
  2. In Conferbot, open Channels → WhatsApp → Connect and enter them. Conferbot generates a webhook URL and verify token to paste into Meta's webhook settings.
  3. Design the flow in the visual builder, and add an AI agent step for the open-ended questions. You choose the model provider: OpenAI GPT, Anthropic Claude, Google Gemini, DeepSeek and 17 others are supported.
  4. Give the AI your content through the knowledge base (website URLs and documents such as PDFs) so answers come from your policies, not the model's guesses.
  5. Set the escalation: human handover to the shared inbox is included on every plan, including Free.

Conferbot's Free plan covers 600 conversations a month and two bots; paid plans start at $19 a month. Meta bills WhatsApp messages separately, as described above. If you want to start with a rule-based bot and add AI later, the free WhatsApp chatbot guide covers that path.

Same bot, other channels: the flow and AI settings can also run on your website, Messenger, Telegram, Slack, Discord, LINE and Microsoft Teams.

Share this article:

Was this article helpful?

Ready to build your chatbot?

Join the businesses. Deploy on website, WhatsApp, and 11 more channels in minutes. Free forever plan available.

No credit cardNo coding13+ channels
Start Building Free

Get chatbot insights delivered weekly

Join 5,000+ professionals getting actionable AI chatbot strategies, industry benchmarks, and product updates.

🎯Automate this with a free chatbot

Build and deploy in 10 minutes. No coding needed.

❓FAQ

How to Build a WhatsApp AI Chatbot With ChatGPT or Claude (Inside Meta's 2026 Rules) FAQ

Everything you need to know about chatbots for how to build a whatsapp ai chatbot with chatgpt or claude (inside meta's 2026 rules).

🔍
Popular:

Yes, if the AI serves your own business, for example answering customer questions about your products, orders or bookings. Meta's terms bar AI Providers from using the WhatsApp Business Platform when the AI is the primary functionality being offered, not when it is incidental or ancillary to a business's own service.

Meta's terms prohibit AI Providers, including general-purpose AI assistants, from using the WhatsApp Business Platform to make their AI available when it is the primary functionality. The European Commission records that the policy was introduced on 15 October 2025 and took effect on 15 January 2026.

It is contested. On 9 June 2026 the European Commission ordered Meta to restore free access for rival general-purpose AI assistants until its antitrust investigation ends, and Italy's competition authority ordered a suspension in December 2025. These measures concern AI assistant providers; ordinary businesses running their own AI support bots were never barred.

Only with an approved message template. Free-form replies, including AI-generated ones, are allowed only within 24 hours of the customer's last message. Outside that window the API rejects free-form messages with error 131047.

Yes. WhatsApp's Business Messaging Policy allows automation within the 24-hour window but requires prompt, clear and direct escalation paths, such as transfer to a human agent, a phone number, email or a support form.

Three parts: Meta's message charges (since 1 October 2026, 1,000 free service messages per number per month, then per message, plus per-message template fees), your LLM provider's token charges, and hosting or a builder. Conferbot's Free plan covers 600 conversations a month; Meta's fees are separate.

Yes. The WhatsApp Cloud API does not care which model writes the reply. Your webhook or builder calls the model provider's API and sends the text back through the Cloud API. Conferbot supports Anthropic Claude alongside OpenAI, Google Gemini and other providers.

About the Author

Content & Engineering

The Conferbot team writes about building, deploying, and improving AI chatbots.

View all articles
Skip the blank canvas
Start from one of 250+ free chatbot templates for lead generation, support, e-commerce, and 20+ industries - customize and launch in minutes.
Browse free templates

Related Articles

From the reference shelf

Fact-checked reference pages and free tools for the platform this article covers.

Omnichannel Platform

One Chatbot,
Every Channel

Your chatbot works seamlessly across WhatsApp, Messenger, Slack, and 6 more platforms. Build once, deploy everywhere.

View All Channels
Conferbot
online
Hi! How can I help you today?
I need pricing info
Conferbot
Active now
Welcome! What are you looking for?
Book a demo
Sure! Pick a time slot:
#support
Conferbot
New ticket from Sarah: "Can't access dashboard"
Auto-resolved. Password reset link sent.