Automate customer service on WhatsApp using this n8n workflow. Deploy an AI Sales Agent powered by GPT-4o and a PDF-based RAG knowledge base for instant product query answers using the n8n trigger.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow provides a powerful solution for automating product support via WhatsApp. It leverages advanced AI techniques, specifically RAG, to ensure answers are factual and based directly on your supplied product documentation (a PDF brochure). Instead of deploying complex, expensive chatbot infrastructure, you can use this simple n8n setup. The workflow first creates a high-quality vector store from the PDF. Then, using the WhatsApp n8n trigger, it intercepts incoming messages. The core AI Sales Agent n8n node utilizes conversation memory and the custom RAG tool to pull relevant information before generating a helpful, professional response using the GPT-4o model. This approach significantly reduces human support load while improving response quality and speed.
This n8n workflow operates in two main phases: setup and live execution.
Extract from File n8n node processes the PDF, converting its contents into raw text.Embeddings OpenAI1 n8n node (text-embedding-3-small), and then stored in the Product Catalogue (In-Memory Vector Store). This prepares the RAG knowledge base.WhatsApp Trigger n8n node when a customer sends a message.AI Sales Agent n8n node.Window Buffer Memory to maintain conversation context with the specific user. It then calls the Vector Store Tool, which queries the Product Catalogue vector store to retrieve contextually relevant information from the PDF.OpenAI Chat Model (GPT-4o) n8n node synthesizes the user query, the conversation history, and the retrieved facts to generate a precise answer.To deploy these n8n templates successfully, follow these steps:
OpenAI Chat Model and Embeddings OpenAI n8n nodes.WhatsApp Trigger and subsequent WhatsApp sending n8n nodes, ensuring webhooks are properly configured to receive incoming messages.get Product Brochure HTTP Request n8n node points to your correct product PDF.WhatsApp Trigger n8n node. WhatsApp Trigger: This crucial n8n trigger monitors your specified WhatsApp webhook for new incoming messages, launching the n8n workflow upon detection.
get Product Brochure (HTTP Request): Downloads the raw PDF file containing the product catalog knowledge base.
Extract from File: Specifically configured for operation: pdf, this n8n node parses the binary PDF data and extracts all the text content.
Recursive Character Text Splitter: Used during the setup phase to break the large text document into smaller, optimized chunks for better vector embedding and Retrieval-Augmented Generation (RAG).
Embeddings OpenAI: Utilizes the text-embedding-3-small model to convert the text chunks into dense vector representations.
Create Product Catalogue (Vector Store In-Memory): This n8n node acts as the in-memory database, storing the vector embeddings of the product information. It is set to mode: insert and clears existing data before insertion.
AI Sales Agent (Agent n8n node): The primary logic handler. It receives the user's message, manages context via memory, and determines if it needs to use the Vector Store Tool before consulting the GPT-4o model.
Window Buffer Memory: Manages the multi-turn conversation, ensuring the AI agent remembers previous questions and answers during the current customer session.
Vector Store Tool: An integral part of the RAG system. This tool allows the AI Sales Agent n8n node to dynamically query the product catalogue vector store for relevant facts, limiting hallucinations.
OpenAI Chat Model (GPT-4o): Provides the core linguistic intelligence for the agent, generating high-quality, conversational, and factual replies based on the retrieved context.
Handle Message Types (Switch n8n node): Implements flow control logic, diverting non-text messages to a different path to ensure the AI agent only processes supported text input.
Reply To User (WhatsApp): The final action n8n node, responsible for sending the AI agent’s generated response back to the original WhatsApp sender.
Use this powerful n8n workflow to deploy a Retrieval-Augmented Generation (RAG) powered Code of Conduct Q&A chatbot directly into Slack using GPT-4 and vector storage. Easily customize this n8n template.

Use this efficient n8n workflow to automatically anonymize faces and license plates in uploaded media. This n8n template utilizes the BlurIt API for high-volume privacy compliance.

Automate recruitment processing with this powerful n8n workflow. Extract, anonymize, and log CV data using the Google Gemini AI n8n node and robust Google Sheets integration.

Deploy a powerful n8n workflow using BigQuery and OpenAI for RAG. Answer user questions instantly based on your documentation using this advanced n8n template.

Deploy a cutting-edge Retrieval-Augmented Generation (RAG) system using this advanced n8n workflow. Integrate Supabase, OpenAI embeddings, and Cohere reranking for precise, context-aware answers from your documents.

A Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.







































