Skip to content
FlowHubFluxonLab
A
AI Automationfree

Building Your First WhatsApp Chatbot

by Jimleukadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentDDefault Data LoaderEmbeddings OpenAIEmbeddings OpenAIHTTP RequestHTTP RequestOpenAI Chat ModelOpenAI Chat ModelRecursive Character Text SplitterRecursive Character Text SplitterSSimple MemorySimple Vector StoreSimple Vector StoreVector Store Question Answer ToolVector Store Question Answer ToolWhatsApp Business CloudWhatsApp Business Cloud
Share Post Share
WAWhatsApp TriggerOpenAI Chat ModelOpenAI Chat Mod…MBWindow Buffer MemoryWindow Buffer M…TVVector Store ToolVector Store To…Embeddings OpenAIEmbeddings Open…OpenAI Chat Model1OpenAI Chat Mod…MaWhen clicking ‘Test workflow’When clicking ‘…Embeddings OpenAI1Embeddings Open…DDDefault Data LoaderDefault Data Lo…TSRecursive Character Text SplitterRecursive Chara…EFExtract from FileExtract from Fi…HRget Product Brochureget Product Bro…Reply To UserReply To User1VSProduct CatalogueProduct Catalog…VSCreate Product CatalogueCreate Product …SwHandle Message TypesHandle Message …AgAI Sales Agent12345678910
1/5
FLOWS
STEPS · 10
Starts on a Whats App event

This n8n template builds a simple WhatsApp chabot acting as a Sales Agent. The Agent is backed by a product catalog vector store to better answer user's questions. This template is intended to help introduce n8n users interested in building with WhatsApp. How it works This template is in 2 parts: creating the product catalog vector store and building the WhatsApp AI chatbot. A product brochure is imported via HTTP request node and its text contents extracted. The text contents are then uploaded to the in-memory vector store to build a knowledgebase for the chatbot. A WhatsApp trigger is used to capture messages from customers where non-text messages are filtered out. The customer's message is sent to the AI Agent which queries the product catalogue using the vector store tool. The Agent's response is sent back to the user via the WhatsApp node. How to use Once you've setup and configured your WhatsApp account and credentials First, populate the vector store by clicking the "Test Workflow" button. Next, activate the workflow to enable the WhatsApp chatbot. Message your designated WhatsApp number and you should receive a message from the AI sales agent.

Tags

n8nreference-onlyagentdocument-default-data-loaderembeddings-open-ailm-chat-open-aimemory-buffer-windowtext-splitter-recursive-character-text-splittertool-vector-storevector-store-in-memorywhats-app
Connects
AAI AgentDDefault Data LoaderembeddingsopenaiEmbeddings OpenAIWHTTP RequestopenaichatmodelOpenAI Chat ModelrecursivecharactertextsplitterRecursive Character Text Splitter
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes18
AddedOct 17, 2024

Related workflows

See all AI Automation
ACembeddingsopenaiopenaichatmodel
free

Handle WhatsApp sales inquiries with OpenAI, Pinecone, Google Calendar, and Slack

Quick overview This workflow handles inbound WhatsApp Business messages with an OpenAI-powered sales agent that uses Pinecone RAG for product answers and Google Calendar tools for scheduling, then either replies on WhatsApp or hands the conversation to Slack, with Slack-based error alerts. How it works Triggers on every inbound WhatsApp Business message and checks whether the payload contains a text body. Drops non-text messages (such as images or voice notes) and continues only with text conversations. Uses an OpenAI chat model with per-customer session memory to generate a concise sales reply and decide whether a human handoff is needed. Lets the agent query a Pinecone-backed product catalog via OpenAI embeddings to answer pricing, specs, and availability questions. Lets the agent check availability and book appointments in Google Calendar when the customer requests scheduling. Parses the agent’s HANDOFF flag and either posts the customer message plus draft reply to a Slack channel or sends the reply back to the customer on WhatsApp. Sends a Slack alert to an ops channel if any step in the workflow fails. Setup Connect WhatsApp Business Cloud credentials and set the WhatsApp Phon

by Redowan Ahmed Farhan
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team