Create a Business WhatsApp AI Chatbot with n8n and Qdrant

Struggling to handle customer questions efficiently on WhatsApp? This unique n8n workflow integrates WhatsApp Business API with OpenAI and Qdrant to automate precise AI responses using your own knowledge base. Save hours and improve customer support accuracy with this powerful AI chatbot setup.
agent
webhook
whatsApp
+10
Workflow Identifier: 1305
NODES in Use: respondToWebhook, webhook, if, whatsApp, httpRequest, googleDrive, embeddingsOpenAi, vectorStoreQdrant, lmChatOpenAi, agent, memoryBufferWindow, stickyNote, manualTrigger

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow reads text messages sent to a WhatsApp Business number.

It uses AI to give fast, correct answers based on stored company documents.

It stops slow replies and mistakes from manual handling.

Users get quick and helpful replies about products or support.


Who should use this workflow

Any business with many customer questions on WhatsApp.

This is good for stores which want to answer fast and without errors.

People who want their company documents to guide AI answers will benefit.


Tools and services used

  • WhatsApp Business API: To receive and send WhatsApp messages.
  • Google Drive: Stores company documents like manuals and FAQs.
  • OpenAI API: Creates text embeddings and chat AI responses.
  • Qdrant vector database: Holds vectorized company knowledge for AI search.
  • n8n automation platform: Runs the whole workflow and connects nodes.

Workflow inputs, processing, and outputs

Inputs

  • Incoming text messages from WhatsApp users.
  • Company documents from Google Drive folder.

Processing steps

  • Webhook node verifies WhatsApp message and checks if text.
  • Google Drive nodes download documents as text files.
  • Token Splitter node breaks documents into smaller parts.
  • OpenAI Embeddings node turns document chunks into vectors.
  • Qdrant Vector Store node saves vectors for retrieval.
  • AI Agent node receives WhatsApp user messages and searches vector data.
  • Window Buffer Memory node keeps track of chat history to keep replies relevant.
  • AI generates reply based on user message and company knowledge.
  • Send node posts AI answer back to user via WhatsApp.

Outputs

  • Quick, personalized WhatsApp replies to customers.
  • Reduced manual work and faster customer support.

Beginner step-by-step: How to build this in n8n

Step 1: Import the workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open your n8n editor.
  3. Use the menu option “Import from File” to upload the workflow.

Step 2: Configure credentials

  1. Go to each node requiring authentication and add API Keys or login info.
  2. Update any placeholders like Google Drive folder ID, WhatsApp phone number, Qdrant URL, and collection name.
  3. Check the OpenAI API key is set in the respective nodes.

Step 3: Test the workflow

  1. Trigger the Qdrant collection creation node to make sure it works.
  2. Send a test message to WhatsApp and watch if a reply comes back.
  3. Look at the nodes’ output panels for errors or missing info.

Step 4: Activate workflow for production

  1. Switch the workflow from draft to active mode in n8n.
  2. Make sure webhook URLs are set in the Meta Developer Console for live WhatsApp messages.
  3. Monitor logs in n8n cloud or server for steady running.

If self hosting n8n, see self-host n8n for options.


Edge cases and failure points

  • If webhook verification fails, check the Verify

    node returns the exact challenge token Meta needs on HTTP GET requests.

  • If messages do not appear, ensure webhook is subscribed to message events and If node correctly detects message payload.
  • If embeddings fail to insert into Qdrant, verify API keys and collection names.
  • Make sure Google Drive permissions allow file download by n8n.

Customization ideas

  • Change wording or tone in the system prompt of AI Agent node.
  • Add support to send images or documents via WhatsApp by changing message type in Send node.
  • Include more document folders or cloud storage for broader knowledge.
  • Set a scheduled refresh to update vectors with new documents.
  • Modify the AI prompt and use chat models that support multiple languages.

Summary

✓ The workflow automates answering WhatsApp customer texts quickly.

✓ It builds AI responses using company documents and chat context.

→ Saves time and avoids missed or slow replies.

→ Makes customer support easier and more accurate.


Frequently Asked Questions

Make sure the Verify webhook node returns the correct challenge token from the GET request as plain text exactly as Meta requires.
Confirm the webhook subscribes to message events and the If node checks for the existence of value.messages[0] in the incoming data.
These errors can occur due to wrong API keys or collection names; verify all credentials and test embedding nodes separately.
Download the workflow file, import it in n8n editor, fill in all API keys and IDs, test with a sample message, then activate the workflow and configure webhook URLs in the Meta Developer Console.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free