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
Automate WhatsApp chat with n8n and Qdrant

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

Learn how to Build this Workflow with AI:

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.


Automate WhatsApp chat with n8n and Qdrant

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.