Build RAG-Powered WhatsApp Chatbots for Docs with GPT-4-mini and MongoDB - n8n Workflow | Neura Market

    Build RAG-Powered WhatsApp Chatbots for Docs with GPT-4-mini and MongoDB

    **Who is this for?** This template is designed for internal support teams, product specialists, and knowledge managers in technology companies who want to automate ingestion of product documentation and enable AI-driven, retrieval-augmented question answering via WhatsApp. **What problem is this workflow solving?** Support agents often spend too much time manually searching through lengthy documentation, leading to inconsistent or delayed answers. This solution automates importing, chunking, and indexing product manuals, then uses retrieval-augmented generation (RAG) to answer user queries accurately and quickly with AI via WhatsApp messaging. **What these workflows do** **Workflow 1: Document Ingestion & Indexing** - Manually triggered to import product documentation from Google Docs. - Automatically splits large documents into chunks for efficient searching. - Generates vector embeddings for each chunk using OpenAI embeddings. - Inserts the embedded chunks and metadata into a MongoDB Atlas vector store, enabling fast semantic search. **Workflow 2: AI-Powered Query & Response via WhatsApp** - Listens for incoming WhatsApp user messages, supporting various types: - Text messages: Plain text queries from users. - Audio messages: Voice notes transcribed into text for processing. - Image messages: Photos or screenshots analyzed to provide contextual answers. - Document messages: PDFs, spreadsheets, or other files parsed for relevant content. - Converts incoming queries to vector embeddings and performs similarity search on the MongoDB vector store. - Uses OpenAI's GPT-4-mini model with retrieval-augmented generation to produce concise, context-aware answers. - Maintains conversation context across multiple turns using a memory buffer node. - Routes different message types to appropriate processing nodes to maximize answer quality. **Setup** **Setting up vector embeddings** 1. Authenticate Google Docs and connect your Google Docs URL containing the product documentation you want to index. 2. Authenticate MongoDB Atlas and connect the collection where you want to store the vector embeddings. Create a search index on this collection to support vector similarity queries. 3. Ensure the index name matches the one configured in n8n (data_index). See the example MongoDB search index template below for reference. **Setting up chat** 1. Authenticate the WhatsApp node with your Meta account credentials to enable message receiving and sending. 2. Connect the MongoDB collection containing embedded product documentation to the MongoDB Vector Search node used for similarity queries. 3. Set up the system prompt in the Knowledge Base Agent node to reflect your company's tone, answering style, and any business rules, ensuring it references the connected MongoDB collection for context retrieval. **Make sure** Both MongoDB nodes (in ingestion and chat workflows) are connected to the same collection with: - An embedding field storing vector data, - Relevant metadata fields (e.g., document ID, source), and - The same vector index name configured (e.g., data_index).

    Platform
    n8n
    Category
    Customer Support
    Price
    Free
    Creator
    Muhammad Shahzaib Shahid
    • set
    • code
    • switch
    • whatsApp
    • googleDocs
    • stickyNote
    • httpRequest
    • manualTrigger
    • agent
    • extractFromFile
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related Customer Support workflows

    • Automate Multilingual Customer Support with AI Voice Agent and Calendar IntegrationFree
    • Automate Multichannel Customer Support with AI in Chatwoot
    Free
  1. Automate Customer Support on WhatsApp Using Google Docs and AIFree
  2. Automate Daily Jira Ticket Summaries with AI and Email DeliveryFree
  3. Automate Facebook Comment Responses with AI and Notion IntegrationFree
  4. AI Customer Support Assistant: WhatsApp Ready, Works for Any BusinessFree
  5. All Customer Support workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.