All posts

WhatsApp AI chatbot for business: what the Business API really costs and how to architect it

A WhatsApp AI chatbot is priced per message, gated by a 24-hour window and limited by Meta's AI policy. Here is what that does to cost and architecture.

CodeKrypt 6 min read

A founder in India asks for "a chatbot on WhatsApp" because that is where customers already are. The surprise comes later: a WhatsApp AI chatbot for business is not just an LLM behind a webhook. It is billed per message, it can only speak freely inside a 24-hour window, and it has to fit Meta's rules on what AI may do on the platform. Each of those changes the architecture and the monthly bill. This post walks through all three.

For the general price tiers of chatbot builds, see AI chatbot development cost in India. This post covers the part that is specific to WhatsApp.

How is a WhatsApp AI chatbot billed?

Since 1 July 2025 Meta charges per delivered message rather than per conversation, and it does not charge for messages users send to you. The rate depends on the message category and the recipient's country calling code, per Meta's pricing documentation.

CategoryWhat it isWhen you can send it
MarketingPromotional template messagesAny time, with opt-in
UtilityTransactional template messages (order, delivery, booking)Any time, with opt-in
AuthenticationOTP and identity messagesAny time
ServiceFree-form replies, whether from a human or your AIOnly inside an open 24-hour window

Two details from the same page matter for a bot:

Rates change only on 1 January, 1 April, 1 July and 1 October, so a budget built today should assume a rate-card review each quarter. Do not hard-code prices into your cost model; keep them in config.

What does the full cost stack look like?

The Meta message fee is one line. A realistic monthly cost has five:

Cost lineDriven byControl lever
Meta per-message feesDelivered template and chargeable service messagesFewer, better-targeted templates; resolve in fewer turns
LLM tokensConversation length, retrieved context, model choiceModel routing, trimmed context (see how)
BSP / platform feeYour messaging provider, if you use oneCompare providers, or integrate with Meta's Cloud API directly
Hosting and queuesConcurrency, webhook volumeServerless or small workers; both are cheap at low volume
Human agentsEscalation rateHandoff design (guide)

Multilingual traffic adds a hidden multiplier on the token line. Hinglish and Hindi text tokenises into more tokens than English for the same meaning, as covered in Hindi LLM token cost.

Why does the 24-hour window shape your architecture?

The window is the core design constraint. Inside it, the bot can reply freely. Outside it, only an approved template can start a conversation. That has three consequences:

  1. Track the window per user. Store the timestamp of the last inbound message. Before sending anything free-form, check it. If the window has closed, the send will fail or you must fall back to a template.
  2. Slow work needs a template plan. If an answer takes hours (a refund check, a human review), the user may be outside the window by the time it is ready. Design a utility template for "your update is ready" and let the user's reply reopen the window.
  3. Agents that wait are fragile. A long-running flow needs state that survives restarts; see durable execution for AI agents.
WhatsApp AI chatbot message flow: webhook, queue, window check, LLM, sendWebhookQueueWindow +dedupe checkLLM + toolsSend replywindow closed: template only, or hand to a human

What must the webhook handle that a web chatbot does not?

WhatsApp delivers inbound messages to your webhook, and it expects a fast acknowledgement. Do the slow LLM work off the request path.

What does Meta's AI policy allow?

Meta updated the WhatsApp Business Solution terms effective 15 January 2026 to bar AI providers from using the Business API to distribute general-purpose chatbots, as TechCrunch reported. The target was assistants like ChatGPT living inside WhatsApp, not a company answering its own customers.

A bot that handles your support, bookings or order updates is a different use case, but treat that as something to confirm, not assume. Read the current terms before you build, and keep the bot scoped to your business. A tightly scoped bot is also better engineering: it hallucinates less and is easier to evaluate.

Meta's Business Messaging Policy also allows automation inside the 24-hour window, but expects you to provide human escalation, such as agent transfer, phone or email. Build the handoff path from day one.

Should you use a messaging provider or Meta's Cloud API directly?

Direct Cloud APIMessaging provider (BSP)
Control over bot logicFullFull, if the provider exposes webhooks
Time to first messageLonger (own onboarding and plumbing)Shorter
CostMeta fees only, plus your engineeringMeta fees plus a platform fee
Inbox and agent UIYou build itUsually included

If your team will run human agents from a shared inbox, a provider's inbox may save real build time. If the bot is the product and you want full control of the data path, integrating directly is cleaner. Either way, keep Meta-specific code behind an adapter so you can switch.

What to do next

  1. Write down your top ten user intents and mark which need a template (outbound) and which are replies (inside the window).
  2. Model cost per resolved conversation using Meta's current rate card for your countries, plus tokens, rather than a flat per-message guess.
  3. Decide the escalation path and who staffs it before you pick a model.
  4. Build the webhook with a queue, dedupe key and window tracking first; the LLM is the easy part.

If you want help scoping a WhatsApp assistant, our AI chatbot service page explains how we approach it.

CodeKrypt avatar

CodeKrypt

Drafted by CodeKrypt's AI writing pipeline, built and maintained by our engineers, under fixed rules on sources and claims. How we write

Frequently asked questions

How is a WhatsApp AI chatbot for business priced?
Meta charges per delivered message, by category (marketing, utility, authentication, service) and by the recipient's country. On top of that you pay for the LLM tokens, hosting and any messaging provider fee. Check Meta's pricing page for current rates, as they change quarterly.
What is the 24-hour customer service window?
When a user messages your business, a 24-hour window opens and resets with every new user message. Inside it you can send free-form replies. Outside it you can only send pre-approved template messages.
Can I put a general-purpose AI assistant on WhatsApp?
Not as the product. Meta's Business Solution terms, effective 15 January 2026, bar AI providers from using the Business API to distribute general-purpose chatbots. A bot for your own support, sales or order updates is a different case, but read the current terms before you build.
Does a WhatsApp chatbot need a human fallback?
Yes. Meta's Business Messaging Policy allows automation inside the 24-hour window but expects you to offer a way to reach a human, such as agent transfer, phone or email.

Related reading

Chat on WhatsApp