{"product_id":"whatsapp-rag-chatbot-n8n-workflow-supabase-gemini-flash","title":"WhatsApp RAG Chatbot n8n Workflow: Supabase, Gemini Flash","description":"\u003ch3\u003eTurn WhatsApp into a searchable AI knowledge assistant with RAG—using n8n, Supabase, and Gemini\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow lets you build a \u003cstrong\u003eWhatsApp-based RAG chatbot\u003c\/strong\u003e that answers questions by retrieving relevant information stored in \u003cstrong\u003eSupabase\u003c\/strong\u003e. It processes messages in real-time, creates semantic embeddings with \u003cstrong\u003eOpenAI embeddings\u003c\/strong\u003e, and generates friendly responses using \u003cstrong\u003eGemini 2.5 Flash\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWhatsApp trigger:\u003c\/strong\u003e A new WhatsApp message starts the workflow via webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMessage check:\u003c\/strong\u003e The workflow uses a switch step to determine whether the user sent a \u003cem\u003equery\u003c\/em\u003e or a \u003cem\u003edocument upload\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDocument handling:\u003c\/strong\u003e It fetches the file URL from WhatsApp, converts the binary file to text, generates \u003cstrong\u003eOpenAI embeddings\u003c\/strong\u003e for the content, and stores them in \u003cstrong\u003eSupabase\u003c\/strong\u003e for semantic retrieval.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQuery handling:\u003c\/strong\u003e For user questions, it generates \u003cstrong\u003equery embeddings\u003c\/strong\u003e with OpenAI and retrieves the most relevant context from Supabase.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnswer generation:\u003c\/strong\u003e The workflow sends the retrieved context to \u003cstrong\u003eGemini 2.5 Flash\u003c\/strong\u003e to produce user-friendly answers and sends them back directly to WhatsApp.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eModular design:\u003c\/strong\u003e Document ingestion and query handling are structured so you can split them for larger setups.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAnswer \u003cstrong\u003eFAQ\u003c\/strong\u003e questions in WhatsApp using your existing internal documents.\u003c\/li\u003e\n  \u003cli\u003eProvide \u003cstrong\u003ecustomer support\u003c\/strong\u003e responses based on policies, product manuals, or help articles.\u003c\/li\u003e\n  \u003cli\u003eLet teams query \u003cstrong\u003einternal knowledge\u003c\/strong\u003e by uploading documents through WhatsApp.\u003c\/li\u003e\n  \u003cli\u003eDeploy a simple \u003cstrong\u003eRAG chatbot\u003c\/strong\u003e without coding by configuring credentials and running the template.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore nodes:\u003c\/strong\u003e WhatsApp trigger, switch, HTTP Request (file URL fetching), and an n8n LangChain agent node (\u003cem\u003en8nn8n-nodes-langchainagent\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRAG stack:\u003c\/strong\u003e \u003cstrong\u003eOpenAI embeddings\u003c\/strong\u003e for both document and query embeddings + \u003cstrong\u003eSupabase\u003c\/strong\u003e for storage and retrieval.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLLM:\u003c\/strong\u003e \u003cstrong\u003eGemini 2.5 Flash\u003c\/strong\u003e to generate responses from retrieved context.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRequirements:\u003c\/strong\u003e Configure Supabase and WhatsApp API credentials before running.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45755363098803,"sku":"N8N-6771","price":31.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/f4au81C7y8_7Mzr5ZlcLM_b4WhFfIe.png?v=1785662187","url":"https:\/\/buyflowscripts.com\/products\/whatsapp-rag-chatbot-n8n-workflow-supabase-gemini-flash","provider":"N8N Commerce","version":"1.0","type":"link"}