8 Steps to Create a WhatsApp AI Agent for Marketing

A step-by-step guide to building a WhatsApp AI agent for marketing that follows Meta’s 2026 AI policy, opt-in rules and per-message pricing.

8 Steps to Create a WhatsApp AI Agent for Marketing

To create a WhatsApp AI agent for marketing, you connect a verified business number to the WhatsApp Business Platform, collect opt-in, get message templates approved, and then link an AI model to a knowledge base and a human inbox. Most teams do this through a business solution provider (BSP) or a no-code tool rather than writing everything from scratch. The eight steps below follow that order, from picking the job to measuring revenue.

The rules changed a lot over the past year. Meta barred general-purpose AI assistants from the WhatsApp Business API from January 15, 2026, started charging for service messages on October 1, 2026, and launched its own Meta Business Agent in June. A marketing agent built today has to fit all three changes, so each step explains what the rule means for you.

How a WhatsApp Marketing Agent Works in Practice

  • Meta’s terms bar general-purpose AI assistants from the WhatsApp Business API from January 15, 2026, but agents that serve a business’s own customers, including sales and marketing agents, are allowed.
  • WhatsApp charges per delivered message by category and country, and since October 1, 2026 service replies cost money after 1,000 free ones per phone number each month.
  • Outside the 24-hour customer service window you can only send approved templates, and Meta approves a utility template that contains promotion as marketing.
  • New business portfolios can message 250 unique customers a day outside the service window, and business verification is one of three ways to reach 2,000.
  • A working agent combines a language model, a knowledge base, tools such as order lookup, and a clear handoff to a person.
  • Meta Business Agent, launched in June 2026, is a ready-made option, while a BSP or custom build gives more control over data and tone.

Step 1: Define the Marketing Job and Check Meta’s AI Policy

Start with one job, not a vague goal like “AI for WhatsApp.” A store might recover abandoned carts. A clinic might answer price questions and book consultations. A real estate team might qualify buyers who click an ad and pass the warm ones to an agent. Each job tells you what the agent must know, which systems it must touch and what counts as success.

Write the job as a short brief. Name the customer, the trigger that starts the chat, the questions the agent should answer, the actions it may take and the point where a person takes over. For cart recovery, the trigger is an abandoned checkout and the action is a reminder with the cart link.

Then check the job against Meta’s policy. In October 2025, Meta added an “AI providers” section to its WhatsApp Business Solution terms. It bars companies whose main product is an AI assistant from using the Business API to offer that assistant, with enforcement from January 15, 2026. That is why open-ended bots in the style of ChatGPT left the platform. Meta said at the time that the change does not affect businesses using AI to serve their own customers, and gave a travel company’s support bot as an example.

So a marketing agent is fine when it serves your business: answering product questions, recommending items, sending offers people asked for and booking calls. It runs into trouble if it turns into a free general chatbot that answers anything for anyone. Keep the agent’s scope tied to your products and services, and tell it to decline unrelated requests politely.

Europe is a moving target. On June 9, 2026, the European Commission ordered Meta, as an interim measure, to restore WhatsApp access for rival AI chatbot makers, and Meta said it would appeal. Recheck the terms before launch.

Step 2: Choose the WhatsApp Business App or the Business Platform

WhatsApp offers two products for companies, and only one of them suits an AI agent at scale. The WhatsApp Business app is a free phone app for small teams that reply by hand. The WhatsApp Business Platform, which most people call the API, connects WhatsApp to your own software. Meta hosts it as the Cloud API, and that is where you plug in an AI model, a CRM and an inbox for several staff.

The app works when one owner answers a few dozen chats a day. Once you want automated replies driven by an AI model, bulk campaigns to opted-in lists, or reports on what each message earned, you need the Platform.

You may not have to choose. A feature called Coexistence lets a business connect a number already used in the Business app to the Cloud API. Chats sent through the API show up in the app and the other way round, and chat history can be synced, based on 360dialog’s documentation. Messages sent from the app stay free, while API messages follow Cloud API pricing. Not every account qualifies, since eligibility depends on factors such as account age and message quality, and the business has to keep the app active.

There is also a third path now. Meta Business Agent, announced on June 3, 2026, is Meta’s own AI agent for businesses on WhatsApp, Messenger and Instagram. Meta says it answers business questions, recommends products from your catalog, books appointments, qualifies leads and lets you decide when a team member steps in. Meta says getting started is free and that access will move to paid subscriptions. On the Platform, Business Agent messages are billed per token at $2 per million tokens, and Meta estimates that at roughly 4 to 5 cents per message. It suits simple needs, while a custom agent gives more control over data and tone.

whatsappbusiness.com
Meta Business Agent website screenshot
Meta Business Agent

Step 3: Verify Your Business and Register a Phone Number

Every Platform account sits inside a Meta business portfolio. You create the portfolio in Meta Business Suite, add a WhatsApp Business Account, and register the phone number customers will see. Use a number you will keep for the long term, since customers learn to trust it.

Business verification is the next task. Meta reviews official details about your company to confirm it is real, and a BSP can guide you through the forms. Verification matters for marketing because it is one of three ways to raise your messaging limit. New portfolios start at 250 unique customers that you can message outside a customer service window in a moving 24-hour period.

The limit rises in tiers of 2,000, 10,000, 100,000 and then unlimited. You reach 2,000 through business verification, partner verification by the BSP that onboarded you, or by sending 2,000 delivered template messages to unique numbers within 30 days using high-quality templates. Past that, Meta raises the limit one level when you use at least half of your current limit within seven days and your message quality stays high. The limit applies to the whole portfolio, so one busy number can use up the capacity of all your numbers.

Plan campaigns around these tiers. A new brand with a large opted-in list has to warm up with smaller, well-targeted sends and grow into the higher tiers.

Read also: How to Create an AI Agent for Trading: A Step-by-Step Guide

Step 4: Collect Opt-In the Right Way

WhatsApp only allows you to message people who gave you their phone number and agreed to hear from your business. Meta’s opt-in rules ask for two things in the consent itself: the person must clearly understand they are opting in to messages from you, and your business name must be stated clearly. You also have to follow the laws that apply to you.

You can collect opt-in by SMS, on your website, through an IVR phone flow, or in person on paper. In practice, the best sources for a marketing agent are a checkbox at checkout, a signup form with a clear WhatsApp line, a QR code in a store, and Click to WhatsApp ads, where the customer messages you first. Each source should log the date, the wording shown and the categories the person agreed to.

Meta’s best practices go further, and they are worth copying. Tell people what kinds of messages they will get, such as order updates, offers or recommendations. Offer separate opt-ins for each type, give clear opt-out steps and honor them fast. Users can block or report a business, or stop its marketing messages, and WhatsApp may rate-limit numbers whose quality stays low.

Privacy law adds its own layer. In the EU, the GDPR requires a lawful basis for processing personal data, and marketing consent should be specific and easy to withdraw. In India, the Digital Personal Data Protection Rules were notified in November 2025, with obligations phased in over 12 to 18 months. If you sell in either market, ask your legal adviser to review the opt-in wording, your retention period and the data your AI vendor stores.

Step 5: Create Message Templates in the Right Category

A customer service window opens for 24 hours each time a customer messages or calls you, and it resets with every new message. Inside that window, your agent can send free-form replies, buttons, lists, images and documents without pre-approval. Outside it, you can only send templates that Meta has approved. That rule shapes the whole design of a marketing agent, because every outbound campaign starts with a template.

Templates fall into three categories. Marketing templates cover awareness, offers, product launches and retargeting, and any template with mixed or unclear content counts as marketing. Utility templates follow up on something the user did or asked for, such as an order confirmation, and must contain no promotional or persuasive content. Authentication templates carry one-time passcodes and follow strict format rules.

developers.facebook.com
WhatsApp Template Categories website screenshot
WhatsApp Template Categories

Pick the category honestly. Since April 9, 2025, a template you submit as utility that WhatsApp judges to be marketing is simply approved as marketing. Meta also reviews approved templates on a rolling basis, and businesses that keep mislabeling templates face warnings, rate limits and then restrictions. Adding “Use code SAVE10 on your next order” to a shipping update turns the whole message into marketing.

Write templates the way a good salesperson texts. Use the customer’s name and a real detail, such as the product left in the cart. Keep one clear call to action, usually a button that opens a link or starts a reply. A reply turns the template into a conversation, which opens the service window and hands control to your AI agent.

Step 6: Plan Your Budget Around Per-Message Pricing

Meta has charged per delivered message since July 1, 2025, replacing the older 24-hour conversation fee. The rate depends on the message category and the recipient’s country code, and messages that customers send to you are not charged. Meta can change rates only on January 1, April 1, July 1 or October 1, with advance notice.

The October 1, 2026 update matters most for AI agents. Service messages had been free since November 2024, and Meta now charges for them again. Each business phone number gets 1,000 free service messages per month, which do not roll over, and charges begin with the 1,001st. Utility templates sent inside an open service window, which were free from July 2025, are now billed at the normal utility rate. The table sums up how Meta charges for each message type as of November 2026, based on its published pricing page.

Message TypeWhen You Can Send ItHow Meta Charges
Marketing templateAny time, to opted-in usersPer delivered message, at the rate for the recipient’s country
Utility templateAny time, after a user action or requestPer message with monthly volume tiers, including inside the service window since October 1, 2026
Authentication templateAny time, for one-time passcodesPer message with monthly volume tiers
Service messageOnly inside the 24-hour customer service window1,000 free per phone number each month, then per message
Meta Business Agent messageOnly inside the customer service window$2 per million tokens, which Meta puts at about 4 to 5 cents per message
Messages in a free entry point windowAfter a user messages you from a Click to WhatsApp ad and you reply in timeFree, except Meta Business Agent messages

One discount still matters for marketers. When someone messages you from a Click to WhatsApp ad on the Android or iOS app and you reply within the customer service window, Meta opens a free entry point window in which marketing, utility, authentication and service messages are free. That makes ads that start a chat a cheap way to feed your agent warm leads.

developers.facebook.com
WhatsApp Business Platform Pricing website screenshot
WhatsApp Business Platform Pricing

To estimate cost, multiply the number of messages you expect in each category by your market’s rate on Meta’s rate card, then add your BSP’s fees and your AI model’s usage. Utility and authentication rates drop in volume tiers that reset each month. Meta is also testing a max price option for marketing messages through its Marketing Messages API, where you set the most you will pay per delivery. It is in beta, so treat it as an option to watch.

Step 7: Choose a BSP or No-Code Platform and Build the Agent

You can connect to the Cloud API directly as a developer, but most marketing teams use a BSP or a no-code platform. These handle onboarding, template approval, a team inbox and broadcasts, and many include an AI agent builder. They fall into three groups.

  • Developer platforms: Twilio and 360dialog give programmatic access to WhatsApp, and you bring your own AI model and logic. They suit teams with engineers who want full control.
  • No-code WhatsApp marketing tools: WATI, Interakt and AiSensy are popular with small and mid-sized businesses, especially in India. They bundle broadcasts, chatbot flows, team inboxes and AI features in one dashboard.
  • AI agents that add WhatsApp as a channel: Ecommerce and support agents such as Zipchat AI, Klaviyo Customer Agent and HubSpot Breeze Customer Agent list WhatsApp among their channels. Zipchat runs cart-recovery sequences on WhatsApp, while Klaviyo’s agent reads the same customer profiles Klaviyo uses for marketing.

Whichever route you take, the agent itself has the same four parts. The first is a language model with a system prompt that sets the brand voice, the scope from Step 1 and the rules for discounts and claims. The second is a knowledge base built from product pages, pricing, policies and FAQs, which the agent searches before it answers so replies rest on your facts. The third is a set of tools, such as a catalog lookup, an order status check, a discount code generator or a calendar booking link. The fourth is a human handoff.

Handoff deserves the most care. Set clear triggers: a customer asks for a person, raises a complaint, mentions a legal or medical issue, or shows high intent on a large order. When a trigger fires, the agent should say a team member will reply, pass the full chat to your inbox, and stop answering. A handoff that sits unanswered for hours does more harm than no bot at all.

If you build your own, the flow is short. A webhook delivers each incoming message to your server. Your code checks opt-in status and whether the service window is open, sends the message and chat history to the model with your knowledge base, runs any tool the model asks for, and posts the reply through the Cloud API. Our guide to building an AI agent from scratch walks through that loop in Python, and our roundup of no-code AI agent builders covers tools such as n8n that can call the Cloud API from a visual workflow.

Test before customers see it. Run 50 to 100 real questions from your chat history through the agent, check every price and policy it quotes, and try to make it promise things it should not. Confirm that it declines off-topic requests, which also keeps you inside Meta’s AI policy.

Step 8: Launch, Measure and Improve the Agent

Launch to a small, recent segment first, such as customers who bought in the last 90 days. Their interest is real, which protects your quality rating while you learn. Expand to colder lists only after the first sends show healthy reply and block rates.

Track results at three levels. For templates, watch delivery, read, click and reply rates in your BSP dashboard or Meta’s template analytics. For the agent, watch how many chats it resolves without help, how often it hands off, and how often a reviewer finds a wrong answer. For the business, track orders, booked calls or qualified leads per campaign, and divide total cost by those outcomes to get a cost per result you can compare with email or SMS.

Treat your quality rating and opt-out rate as early warnings. A rise in blocks after a campaign usually means the offer was off-target or the send was too frequent. Cut frequency, tighten the audience and rewrite the template before you send again.

Then improve one thing at a time. Add the questions the agent got wrong to the knowledge base, test two versions of your best template, and move frequent handoff topics into new tools when it is safe. For ideas on what mature agents look like, see our AI agent examples and the agents listed under AI agents for marketing. If you sell online, the ecommerce AI agents category shows tools such as Rep AI, whose on-site sales agent can extend to WhatsApp through a beta add-on.

WhatsApp Agent Questions Marketers Ask

Can I Use ChatGPT as a WhatsApp Bot for My Business?

You can use a model like the ones behind ChatGPT inside your own business agent, as long as the agent serves your customers and stays on your products and services. What Meta’s terms bar, from January 15, 2026, is AI companies offering a general-purpose assistant through the Business API. A bot that answers anything for anyone looks like the second case, so keep the scope narrow.

Is the WhatsApp Business API Free?

Messages that customers send you are free, but the messages you send cost money. Meta charges per delivered marketing, utility and authentication template, and since October 1, 2026 it also charges for service messages beyond 1,000 free ones per number each month. BSPs and AI tools add their own fees.

Can I Send WhatsApp Marketing Messages Without Opt-In?

No. Meta allows messages only to people who shared their number and agreed to hear from your business, with your business name clearly stated. Sending to bought or scraped lists breaks the policy and quickly leads to blocks, a lower quality rating and limits on your number.

What Is the 24-Hour Rule on WhatsApp?

It is the customer service window. Each time a customer messages or calls you, a 24-hour timer starts, and it resets with every new message. Inside it, your agent can reply freely. After it closes, you can only send approved templates.

What Is the Difference Between an AI Agent and a Chatbot on WhatsApp?

A classic chatbot follows fixed menus and buttons, while an AI agent reads free text, searches your knowledge base and can take actions such as checking an order or booking a call. Many good WhatsApp setups mix both. Our explainer on AI agents vs AI chatbots covers the difference in more depth.

Related AI Agents

Read also: Best Qualified Piper Alternatives for Inbound Pipeline

Explore Agent Categories

Related Articles

Joydeep Bhattacharya Avatar

Written by