AI Sales Agent for WhatsApp (RAG with Product PDFs)
Integrates with:
Overview
Unlock 24/7 Sales & Support with this AI Agent
This workflow transforms your static product PDFs into a dynamic, conversational AI Sales Agent on WhatsApp. It uses a Retrieval-Augmented Generation (RAG) approach, allowing the agent to provide factual, context-aware answers based solely on your provided documents. Customers can ask questions in natural language and get instant, accurate responses about product specs, features, and pricing, directly within their favorite messaging app.
Key Features & Benefits
- AI-driven Q&A: The agent uses OpenAI's GPT-4o to understand and respond to user queries.
- Factual & Secure: Leverages a vector store built from your PDF, ensuring the agent's answers are grounded in your data, preventing hallucinations.
- Stateful Conversations: Remembers the context of each conversation per user, providing a natural and helpful chat experience.
- 24/7 Availability: Automates responses to common questions anytime, freeing up your human agents for more complex interactions.
- Easy to Adapt: Simply swap the source PDF to create a knowledge base for any product line, user manual, or FAQ document.
Use Cases
- Provide instant, 24/7 answers to product questions on WhatsApp, reducing support tickets and guiding B2C customers to purchase.
- Equip your B2B sales team with an AI assistant that can instantly pull specs from technical documentation for prospects.
- Automate responses to frequently asked questions from user manuals, freeing up your support team for high-value tasks.
- Offer interactive, on-demand product information by allowing users to query your brochures in real-time via WhatsApp.
Prerequisites
- An n8n instance (Cloud or self-hosted).
- OpenAI API Key with access to a chat model (e.g., gpt-4o) and an embedding model (e.g., text-embedding-3-small).
- A Meta for Developers account with a configured WhatsApp Business App and phone number.
- A product brochure or knowledge base in PDF format, accessible via a public URL.
Setup Instructions
- Import the workflow into your n8n instance.
- Create the Knowledge Base (Run Once): a. In the 'get Product Brochure' node, replace the sample URL with a link to your own product PDF. b. Manually execute the workflow using the 'When clicking ‘Test workflow’' trigger. This will download, process, and save your document into the agent's memory (vector store).
- Configure the AI Agent: a. Select each of the OpenAI nodes ('Embeddings OpenAI', 'OpenAI Chat Model', etc.) and add your OpenAI API credential. b. In the 'AI Sales Agent' node, review and customize the system prompt to define your agent's persona and instructions.
- Connect WhatsApp: a. Configure the 'WhatsApp Trigger' node with your WhatsApp Cloud API credentials and webhook verification. b. Configure the 'Reply To User' node with the same credentials and your Phone Number ID.
- Activate Workflow: Enable the workflow to go live. Your AI agent is now ready to answer customer questions on WhatsApp.
Want your own unique AI agent?
Talk to us - we know how to build custom AI agents for your specific needs.
Request a Consultation