Overview
Build an n8n workflow that indexes your company's public web pages into a vector store and lets an AI agent answer incoming WhatsApp questions from them, passing call requests and anything it cannot answer to staff.
Problem or Objective
- Which tools build a searchable knowledge base from your documents?
- Which agents answer customer questions from your own help content?
More in Sales, Marketing and Support
AI Agents and Models
Tools and Integrations
- Tools
- n8n · WhatsApp Business
- Prerequisites
- An n8n instance (self-hosted or cloud), WhatsApp Business Cloud credentials, a chat model and an embedding model. Check Meta's WhatsApp Business requirements and fees.
How It Works
In n8n, build an indexing workflow first: fetch the public pages you want the assistant to use (check which n8n node suits fetching them; the cited RAG page covers inserting documents) (services, prices, opening hours, FAQs), split them into chunks with a Default Data Loader and insert them into a vector store with an embedding model. Then build the reply workflow: a WhatsApp Trigger node listening for message events, an AI Agent node with the vector store attached as a tool, and the WhatsApp Business Cloud node to send the answer (n8n's trigger page points to this app node; check its documentation for the send operation). In the agent's instructions, tell it to answer only from the retrieved pages, to say it is an automated assistant, and, when a question is not covered or the person asks for a call, to reply that a member of staff will follow up and write the name, number and question to a review sheet instead of promising anything. Test with your own number until a person has read the test conversations and approved them, then publish the workflow. Rerun the indexing workflow whenever the website changes, and have staff work through the review sheet every day.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, WhatsApp Business.
- Check the prerequisitesAn n8n instance (self-hosted or cloud), WhatsApp Business Cloud credentials, a chat model and an embedding model. Check Meta's WhatsApp Business requirements and fees.
- Gather your detailsCollect what the prompt asks for: Your business name, What the assistant may answer, When staff will follow up.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Answer WhatsApp questions from our pages
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You are the automated WhatsApp assistant for [Your business name]. Say in your first reply that you are an automated assistant. Answer only from what the knowledge base tool returns about [What the assistant may answer], in short plain sentences. If the answer is not in the knowledge base, or the person asks for a call, do not guess or promise anything: reply that a member of staff will follow up within [When staff will follow up], and save their name, number and question to the review sheet. Never quote prices or terms that the knowledge base does not contain.A person reads and approves the test conversations before the workflow is published. Staff work through the review sheet daily and make every call themselves.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. n8n's documentation describes a WhatsApp Trigger node that responds to message events, a separate WhatsApp Business Cloud app node, and RAG workflows that insert documents into a vector store and query it from an AI agent. No cited page reports answer accuracy or sales results, and WhatsApp's own account rules were not checked here.
Limitations and Considerations
Check WhatsApp Business account requirements, messaging rules and any per-message fees with Meta before going live, and only reply to people who wrote to you first. A person approves the test conversations before publishing, and staff handle every call request and unanswered question. WhatsApp allows only one registered webhook per app, so testing and the published workflow cannot both receive messages at once. Answers are only as current as the last indexing run. Model, embedding and hosting costs depend on your provider. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- WhatsApp Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 23:44 UTC
What this source supports
- Use the WhatsApp Trigger node to respond to events in WhatsApp and integrate WhatsApp with other applications.
- n8n provides an app node for WhatsApp. Refer to the WhatsApp Business Cloud node documentation for more information.
- WhatsApp only allows you to register a single webhook per app.
- Retrieve relevant context | Build | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 11:21 UTC
What this source supports
- RAG (Retrieval-Augmented Generation) in n8n grounds AI answers in your own data: you insert documents into a vector store, then query it from an AI agent or directly.
- Add a Default Data Loader node, which splits your content into chunks.
- Add the vector store as a tool and give it a description to help the agent understand when to use it.

