XSquareHub

WhatsApp AI Chatbot Trained on Your Documents: Setup Guide (2026)

WhatsApp AI Chatbot Trained on Your Documents: Setup Guide (2026)

Most customer questions on WhatsApp are already answered somewhere in your business: the price list, the product catalogue, the returns policy, the FAQ sheet your team keeps pinned. An AI chatbot trained on those documents can answer them at any hour, in plain language, without you scripting every question.

This guide explains how a knowledge-base AI chatbot works on WhatsApp, how to prepare your documents, how to keep the answers accurate, what Meta allows, and what it costs. If you would rather build a guided menu with buttons, read our no-code AI chatbot builder guide first; most businesses end up using both.

Quick answer: Upload your catalogue, price sheet and FAQs, write a short set of instructions (tone, rules, when to hand over), and switch the AI on. It replies to customer questions from that data on your official WhatsApp API number. Keep documents current, give the bot clear limits, and always offer a person. Replies inside the 24-hour customer service window are service messages in Meta’s pricing.

How a knowledge-base chatbot works

A customer asks a question in WhatsApp, such as “Do you deliver to Pune?” or “What is the price of the 2 kg pack?”. The AI reads the question, looks up the relevant parts of the documents you uploaded, and writes an answer in natural language. It follows the instructions you gave it about tone and rules, and it can greet the customer using your business name.

In XSquareHub, this lives in AI Chatbot Settings in the Flow Builder. The Knowledge Base accepts PDF, Excel (.xlsx, .xls), CSV and TXT files of up to 10 MB each. In the app’s words: “Upload your business catalogs, pricing sheets, product lists, or FAQs. The AI Chatbot automatically answers customer WhatsApp questions using this authoritative data.” The System Prompt & Behavior section is where you set the tone and business rules. If you delete a document, the AI stops using it.

Flows or AI: which answers when

XSquareHub’s AI chatbot auto-replies to messages when no flow is active. If a customer is inside a flow, for example a booking flow collecting a date and time, the flow stays in control. That gives you a clean split:

JobBest handled byWhy
Collecting details (name, date, order number)FlowFixed steps, clean data saved as variables
Menus and bookingsFlowButtons are faster than typing
Open questions about products, prices, policiesAI from the knowledge baseCustomers word things a hundred ways
Complaints, refunds, negotiationsA person in the team inboxNeeds judgement and authority

Prepare your documents

  • One topic per file. A clean price list and a separate policies file work better than a 60-page brochure.
  • Use tables for prices. An Excel or CSV sheet with product, size, price and stock columns is easy for the AI to read correctly.
  • Write FAQs as question and answer. Copy the real questions customers ask, in their words, with your approved answer.
  • Remove what is out of date. Old offers and discontinued products are the biggest source of wrong answers.
  • Leave out private data. Do not upload customer lists, staff details or anything you would not say to a customer.

Write the instructions

The instructions tell the AI who it is and what it must not do. Keep them short and specific. For example:

You are the WhatsApp assistant for Sharma Organics. Reply in the language the customer uses, in two or three short sentences. Use only the prices and policies in the knowledge base. If you do not know, say so and offer to connect the customer to our team. Never promise delivery dates or discounts that are not in the documents. Say you are an automated assistant if asked.

Keep answers accurate

  • Test before going live. Ask your 20 most common questions from a personal number and check every answer against the documents.
  • Ask the awkward ones too. Questions about products you do not sell, angry messages and off-topic requests show whether your rules hold.
  • Read real chats weekly. Look for wrong or vague answers and fix the document behind them.
  • Update documents when prices change. The AI is only as current as its knowledge base.
  • Make the human route obvious. Chats that need a person should land in your shared team inbox.

What Meta allows

Meta’s WhatsApp Business Solution Terms, updated on January 15, 2026, bar “AI Providers” from offering general-purpose AI assistants on the platform, except where Meta is legally required to allow it. That rule is aimed at companies distributing chatbots like a general assistant. A business using AI to answer its own customers about its own products is a different case: Meta’s pricing page describes service messages as non-template replies that “can be powered by a 3rd-party AI solution or people”. Sources: Meta’s AI Providers policy page and Meta’s WhatsApp pricing page, read 27 November 2026.

  • Replies only inside the window. Free-form replies, including AI replies, can be sent only within an open 24-hour customer service window, which opens and resets with each customer message.
  • Outreach still needs templates. To message someone first, or after the window closes, you need an approved template.
  • Be honest about automation. Tell customers they are chatting with an automated assistant and how to reach a person.

What it costs

XSquareHub lists AI Automation 24/7 on both the Standard (WhatsApp) plan at ₹3,999/month and All-in-One Enterprise at ₹6,999/month. Meta charges separately: AI replies from a third-party solution are service messages, so in India the first 1,000 a month per number are free and each one after that costs ₹0.115 (Meta’s INR rate card effective October 1, 2026). Meta’s own Meta Business Agent is billed differently, per token; see our guide to WhatsApp AI agents.

Frequently asked questions

Can I train a WhatsApp chatbot on my own documents?

Yes. In XSquareHub you upload PDF, Excel, CSV or TXT files (up to 10 MB each) to the AI Knowledge Base, and the AI chatbot answers customer WhatsApp questions using that data.

Will the AI interrupt my chatbot flows?

No. XSquareHub’s AI chatbot auto-replies only when no flow is active, so a customer in a booking or lead flow stays in that flow.

Is an AI chatbot allowed on WhatsApp?

A business can use AI to serve its own customers. Meta’s terms from January 15, 2026 restrict AI Providers offering general-purpose AI assistants, except where Meta is legally required to allow it. AI replies are sent inside the 24-hour customer service window.

How much do AI replies cost on WhatsApp?

Meta treats replies from a third-party AI as service messages. In India, each business number gets 1,000 free service messages a month, then ₹0.115 each (rate card effective October 1, 2026). Your platform plan is separate.

What if the AI does not know the answer?

Tell it in the instructions to say so and offer a person. The chat then goes to your team inbox.

What does XSquareHub cost?

Standard (WhatsApp) is ₹3,999/month (₹45,988/year) with a 7-day free trial, and All-in-One Enterprise is ₹6,999/month (₹79,988/year). Every plan includes up to 10,000 messages a day. Billing is available in INR, AED, USD, GBP, EUR, SAR, CAD and AUD. Meta’s message fees are separate.

Try XSquareHub free for 7 days

The 7-day free trial is on the Standard (WhatsApp) plan. Compare every plan, or see how we stack up against other platforms.

Scroll to Top