Guides
WhatsApp chatbot for WordPress: the button, the bot and WooCommerce
A WhatsApp chatbot for WordPress has two parts: a chat button on your site that opens WhatsApp with a pre-filled message, and a bot on your WhatsApp Business API number that answers. Paste the button code before the closing body tag (a footer-code plugin or a Custom HTML block); build the bot in your WhatsApp platform. Autochatix has no WordPress plugin; the embed code works on any theme.
How the button and the bot fit together, three ways to add the button, how to build the bot, what WooCommerce stores get today, when the Cloud API makes sense, and the costs.
Start free trial Discuss your setupThe short answer: a chat button on WordPress, a bot on WhatsApp
“WhatsApp chatbot for WordPress” sounds like one product, but it is two parts that live in different places:
- The button on your WordPress site. A floating “Chat on WhatsApp” button that opens WhatsApp on the visitor’s phone or computer, with a message already typed (“Hi, I want to know the price of the 2BHK on Sector 21”).
- The chatbot that answers. It does not run inside WordPress. It runs on your WhatsApp Business API number, on a platform such as Autochatix, and replies inside WhatsApp: it asks questions, shows options, books an appointment or takes an order, and hands over to a person when needed.
So the WordPress side is simple and light: one link with a pre-filled message. All the intelligence sits on the WhatsApp side, which is also why the same bot keeps answering when a customer comes from Instagram, a QR code or an ad instead of your website. If you need the site itself, see website development.
Is there an Autochatix WordPress plugin? No. Autochatix does not publish a WordPress plugin today, and we will not call the embed code one. What we give you is a short piece of HTML (or an optional hosted launcher script) that you paste into WordPress once. It works on any theme and with any page builder.
How a visitor goes from your page to the bot
- A visitor reads your service page on WordPress and taps the WhatsApp button.
- WhatsApp opens with your business number and a pre-filled message. The visitor taps send.
- The message reaches your WhatsApp Business API number. Because the customer wrote first, a 24-hour customer service window opens, and your replies inside it are service messages: no template needed, and the cheapest kind under Meta’s pricing (1,000 free a month per number, then ₹0.115 in India).
- The bot on your number reads the message and starts the flow you built: a menu, a few questions, a booking slot, a catalogue, a payment link or an AI answer from your own knowledge base.
- When the bot cannot help, or the customer asks for a person, the chat is assigned to someone in your team inbox with the whole conversation visible.
Two details make this work much better than a bare “WhatsApp us” link:
- A different pre-filled message per page. “Hi, I am interested in the dental implant package” on one page and “Hi, I want to book a cleaning” on another. The bot can start the right flow from the first message, and your team knows which page the lead came from.
- A bot that answers instantly at night. Most website enquiries arrive outside working hours. A bot that replies in seconds and collects the details is the difference between a lead and a missed chat.
Add the WhatsApp button to WordPress: three ways
First, get the code. You have two sources, and both produce a plain link that opens WhatsApp:
- Our free WhatsApp chat button generator: enter the number, the pre-filled message, the position and a label, and copy the code. The default is plain HTML and CSS with no script, so it has no effect on page speed.
- Inside Autochatix: on your WhatsApp channel, open Website WhatsApp launcher, set the button label, pre-filled message, position (left or right) and colour, then Save settings and generate code and copy the embed code. This version loads our small launcher script from autochatix.com and still works as a normal link if JavaScript is blocked. It sets no cookies and sends no tracking.
Then paste it into WordPress in one of these places. The code belongs just before the closing </body> tag.
| Method | Where | Best for |
|---|---|---|
| A header-and-footer code plugin | Install any plugin that adds code to the site footer, paste the code in its footer box, save | Most sites; survives theme updates |
| Your theme’s footer setting | Many themes have a “footer scripts” or custom code field under Appearance → Customize or the theme options | Sites that already use that field |
| A Custom HTML block | Add a Custom HTML block on one page or in a reusable footer pattern | A button on selected pages only, with a page-specific message |
Avoid editing footer.php in a parent theme: the next theme update overwrites it. If you must edit theme files, use a child theme.
After pasting, open the site on your phone, tap the button and check that WhatsApp opens with the right number and message. Then check that the bot replies. See WhatsApp chatbot basics, costs and examples.
Build the bot that answers
The bot is built on the WhatsApp side. In Autochatix that means:
- Connect your number to the WhatsApp Business API (Autochatix walks you through Meta’s embedded sign-up). The number must be on the API; a bot cannot reply automatically from the free WhatsApp Business app.
- Build a flow in the visual builder: a welcome message, buttons or a list for the main choices, questions that save the answers to the contact, and steps for bookings, catalogues or payments. See how to build a WhatsApp chatbot for the full method.
- Start the flow from the pre-filled message. Use a keyword trigger that matches the text your WordPress button sends, so each page can start its own flow.
- Add an AI agent if you want free-text answers. It answers from your own documents and website pages and hands over when it is unsure (AI agent).
- Set the handover. Decide who gets the chat when the bot stops, and in which hours.
Example for a coaching institute: the course page button sends “Hi, I want details of the NEET 2027 batch”. The flow sends the batch dates and fee, asks the student’s class and city, offers a free demo class slot, and assigns the chat to the counsellor with all answers saved.
WooCommerce stores: what is and is not included
A WooCommerce store usually wants two different things, and it helps to separate them:
- Pre-sale chat (questions about sizes, delivery, stock). The WhatsApp button and a bot cover this today, exactly as above.
- Automatic order messages (order confirmation, shipping update, cash-on-delivery confirmation, abandoned cart). These need the store to tell WhatsApp that an order happened. Autochatix has no native WooCommerce connector in the current release; this is a custom setup using WooCommerce webhooks and our API, scoped before you buy. See WooCommerce + WhatsApp integration for the scoping checklist.
Be careful with plugins that promise “WhatsApp order notifications” from a normal phone. Sending automated messages from the WhatsApp or WhatsApp Business app breaks WhatsApp’s terms and is how numbers get banned. Automated order messages belong on the official API, as approved utility templates. See how Autochatix connects a number to the official API.
WhatsApp Cloud API and WordPress: do you need it?
Some people search for “WhatsApp Cloud API WordPress” expecting to connect WordPress straight to Meta. You can, but it is a developer project: you create a Meta app, generate a permanent system-user token, set up a webhook endpoint that Meta can reach and verify, and write the code that sends and receives messages (Meta’s Cloud API get-started guide). WordPress is not built to be that webhook server, and every bot, inbox and template feature would have to be written from scratch. What the Cloud API costs and how to set it up: WhatsApp Cloud API guide.
For most businesses the better split is: WordPress shows the button, a platform on the Cloud API runs the bot and inbox. If you do have a developer and a specific need, read WhatsApp API for developers for when to call Meta directly and when to use a platform’s API.
Mistakes that make the button useless
- Wrong number format. The link needs the full number with country code and no plus sign, spaces or leading zero: 91 followed by the 10-digit number (91XXXXXXXXXX), not +91 XXXXX XXXXX.
- The same message on every page. “Hi” tells neither the bot nor your team what the visitor wanted.
- A number that is not on the API. The button works, but nobody answers at 11 pm and no bot can.
- Two buttons on top of each other. An old plugin’s button and the new code both showing. Remove the old one.
- The button covering the cookie banner or “Add to cart” on mobile. Check on a real phone; switch the side if needed.
- Treating website chats as broadcast consent. A person who asked one question has not agreed to marketing. Ask for opt-in inside the chat before sending campaigns, as the WhatsApp Business Messaging Policy requires.
What it costs
- The button: free, from our generator or the launcher in the app.
- Conversations started from the button: the customer writes first, so your replies within 24 hours are service messages: Meta gives each number 1,000 free a month, then charges ₹0.115 each in India; on Autochatix they are billed from your wallet at your account’s rate.
- The platform: Autochatix plans start at ₹499 a month per WhatsApp number plus GST, with a 7-day free trial and no card (pricing). AI replies are paid per use from the wallet.
- Templates you send later (reminders, offers) are charged by Meta per delivered message by category; see WhatsApp Business API pricing.
Product walkthrough
See this part of the workflow






Frequently asked questions
No. Autochatix does not publish a WordPress plugin. You paste a short embed code (plain HTML, or our launcher script) into your site footer once; the chatbot itself runs on your WhatsApp Business API number, not inside WordPress.
Add a WhatsApp chat button with a pre-filled message (from our free generator or the Website WhatsApp launcher in Autochatix), paste it before the closing body tag with a footer-code plugin or a Custom HTML block, and build the bot on your API number with a keyword trigger matching that message.
Only as a developer project: a Meta app, a permanent token, a verified webhook endpoint and your own code for sending and receiving. Most businesses keep WordPress for the button and run the bot on a Cloud API platform.
The plain HTML version makes no extra request, so it does not affect page speed. The hosted launcher loads one small script from autochatix.com and still works as a link if the script is blocked.
Not through a native connector: there is none in the current release. It can be built as a custom setup with WooCommerce webhooks and the Autochatix API, scoped before purchase. Pre-sale chat with the button and a bot works today.
The customer writes first, so your replies within 24 hours are service messages, the cheapest kind: Meta gives 1,000 free a month per number, then ₹0.115 each in India. On Autochatix they come from your wallet at your account’s rate, plus your plan.