Deploy a powerful sales agent on WhatsApp using n8n. This advanced n8n workflow integrates OpenAI RAG capabilities with a PDF product catalog, leveraging the WhatsApp n8n trigger and AI Agent n8n node for real-time customer support.
Download this n8n workflow template and start using it instantly.
Providing instant, accurate answers to product inquiries is critical for modern sales teams. This n8n workflow solves the challenge of turning static marketing materials (like PDFs) into an interactive knowledge base accessible through a familiar channel: WhatsApp. By building a vector store from a product brochure, the AI Sales Agent can pull factual information and contextually relevant details, ensuring high-quality responses. This comprehensive n8n solution is split into two phases: first, creating the product catalog knowledge base, and second, deploying the live chatbot powered by the WhatsApp n8n trigger. This structure ensures your AI is always knowledgeable and your customer interactions are seamless.
This robust n8n workflow operates in two distinct phases: Knowledge Base Creation and Live Chat Response.
To utilize this complex n8n workflow template, follow these steps:
This n8n workflow makes heavy use of LangChain nodes for advanced AI functionality:
WhatsApp Trigger: The starting n8n trigger, configured to listen specifically for messages updates. It passes the incoming message and sender details to the flow.
HTTP Request (get Product Brochure): Used to programmatically fetch the external PDF document containing the product catalog data. This flexible n8n node handles the initial data retrieval.
Extract from File: Essential for RAG, this n8n node parses the binary PDF data to extract the readable text, preparing it for vectorization.
Recursive Character Text Splitter: Splits the large text document into manageable chunks (configured for 2000 characters) to ensure efficient embedding and retrieval.
Create Product Catalogue (Vector Store In-Memory): This n8n node inserts the vector data. Key setting: memoryKey: whatsapp-75 and mode: insert with clearStore: true on initialization.
Handle Message Types (Switch): A core logic n8n node that routes the execution based on the incoming message type from the n8n trigger payload. It only allows 'text' type messages to proceed to the AI Agent.
AI Sales Agent (Agent): The brain of the operation. It uses GPT-4o and is configured with a detailed system message defining its advisory role. It ties together the memory and tool systems.
Window Buffer Memory: Maintains stateful conversations by using the recipient's phone number to create a unique sessionKey, allowing the AI Agent n8n node to remember previous dialogue.
Vector Store Tool (queryproductbrochure): This tool allows the AI Agent to access the 'Product Catalogue' vector store, retrieving relevant snippets to answer specific product questions factually.
WhatsApp Node (Reply To User): The final action n8n node, responsible for sending the Agent's generated response back to the customer using the extracted recipient phone number.
Deploy a powerful movie recommendation RAG chatbot using an n8n workflow, Qdrant vector database, and OpenAI embeddings. This advanced n8n template handles data ingestion and live chat queries.

Build a secure SQLite MCP server using this powerful n8n workflow. Integrate AI agents (like Claude) with your local database for data retrieval and modification. This n8n template enforces security against raw SQL injection.

Use this advanced n8n workflow to build a custom Qdrant Vector Store MCP server. Leverage the n8n node ecosystem to add Group Search and Recommendation APIs for specialized AI agents.

Automate bulk video creation using prompts from Google Sheets and the Freepik Minimax Hailuo API. This powerful n8n workflow manages asynchronous polling and saves the resulting video files directly to Google Drive, providing scalable AI media generation.

Automate video publishing to TikTok, Instagram, and YouTube using an advanced n8n workflow. Analyze videos with Gemini AI, generate unique copy, and manage client approvals in Google Sheets.


Freelance consultant based in the UK specialising in AI-powered automations. I work with select clients tackling their most challenging projects. For business enquiries, send me an email at [email protected] LinkedIn: https://www.linkedin.com/in/jimleuk/ X/Twitter: https://x.com/jimle_uk







































