Automate Business WhatsApp Support with n8n AI Chatbot

Struggling to manage customer queries on WhatsApp efficiently? This n8n workflow creates an AI-powered WhatsApp chatbot using Meta webhooks, OpenAI, and Qdrant vector search to deliver fast, accurate customer support for an electronics store.
respondToWebhook
agent
stickyNote
+12
Workflow Identifier: 1077
NODES in Use: respondToWebhook, agent, stickyNote, lmChatOpenAi, manualTrigger, vectorStoreQdrant, httpRequest, googleDrive, embeddingsOpenAi, documentDefaultDataLoader, textSplitterTokenSplitter, webhook, if, whatsApp, memoryBufferWindow
Automate WhatsApp support with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

What this workflow does

This workflow helps an electronics store answer WhatsApp customer questions fast and right.
It gets messages sent by customers, looks up product documents from Google Drive, and uses AI to make smart answers.
Then, it sends the reply back on WhatsApp without needing extra staff.

This stops slow replies and mistakes. Customers get quick, correct info about electronics products and support.


Tools and services used

  • Meta for Developers WhatsApp API: Gets WhatsApp message events and sends replies.
  • Google Drive: Where product manuals and support docs are stored.
  • Qdrant vector search API: Holds document vectors for quick semantic search.
  • OpenAI GPT-4o-mini model: Generates context-aware chatbot answers.
  • n8n automation platform: Connects all parts and runs the workflow.

Who should use this workflow

This is for electronics stores that get many WhatsApp questions about products and support.
Stores needing faster replies without extra staff will find it helpful.
It’s also good for anyone wanting an AI chatbot that reads their product files and chats on WhatsApp.


Inputs, processing, and outputs

Inputs

  • WhatsApp text messages sent by customers through Meta webhook.
  • Product and support documents from a Google Drive folder.

Processing steps

  • Webhook verification to make sure Meta can send data.
  • Filter incoming WhatsApp events to get only customer messages.
  • Download product documents from Google Drive and convert to plain text.
  • Create and refresh a Qdrant collection to store document vector embeddings.
  • Generate text embeddings from documents using OpenAI embedding model.
  • Insert embeddings into Qdrant vector store for quick semantic search.
  • Use an AI agent with GPT-4o-mini and conversation memory to answer customer queries based on the vector search.
  • Send AI-generated reply back to customer on WhatsApp using WhatsApp Business API.
  • If message is not text or no message, send a polite default reply.

Outputs

  • Quick AI-powered text replies sent back on WhatsApp to customers.
  • Updated vector store with latest product info for semantic search.

Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and click on “Import from File.”
  3. Choose the downloaded workflow and import it.

Step 2: Configure credentials and settings

  1. Add API keys and credentials for OpenAI, Qdrant, Google Drive, and WhatsApp Business API in n8n Credentials.
  2. Update the Google Drive node Get folder with your correct folder ID that holds product docs.
  3. Change the Qdrant URL and collection name in HTTP nodes Create collection and Refresh collection to your Qdrant account details.
  4. If needed, edit system prompt in the AI Agent node to change how AI answers customers.
  5. Check the Verify webhook node has the correct path and method for Meta’s webhook verification.

Step 3: Test the workflow

  1. Manually trigger nodes like Create collection and Refresh collection to set up Qdrant.
  2. Test uploading documents by running the Google Drive Get folder and Download Files nodes.
  3. Send a WhatsApp message from a test customer number and watch the reply sent from n8n.

Step 4: Activate for production

  1. Turn on the workflow toggle button to enable live processing.
  2. Set Meta webhook URL in Meta for Developers to point to your n8n webhook URL.
  3. Monitor workflow runs through n8n dashboard for errors or failures.
  4. Schedule regular document refresh and vector update if product files change.

For better control, you may consider self-host n8n to run this workflow on your own server.


Customization ideas

  • Edit the AI Agent node system prompt to match your store’s voice or product lineup.
  • Change document folder in Google Drive node to use different support files.
  • Switch OpenAI chat model to other versions like gpt-4 for better or cheaper responses.
  • Add handling for media messages or templates in WhatsApp by extending the message filter node.
  • Build multi-language answers by introducing language detection and changing AI prompts dynamically.

Failure and edge cases handling

If webhook verification fails, check that Verify node and the connected Respond to Webhook node return the exact hub.challenge parameter from Meta.

If no customer message gets processed, verify the IF node path matches latest Meta webhook JSON structure.

If OpenAI API runs out of quota, monitor quota on OpenAI dashboard and throttle API calls or upgrade plan.

If unsupported media or non-text messages arrive, a default polite message reply is sent indicating only text is supported.


Summary of results

Fast and accurate WhatsApp replies using AI based on store documents.
✓ Saves hours of manual replying and reduces mistakes.
✓ Automatically updates knowledge base and vector store from Google Drive.
✓ Works without needing extra staff or complex setups.
✓ Easy to customize for different languages or products.


Automate WhatsApp support with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

No, the workflow only processes text messages. Media messages receive a default polite reply indicating only text is supported.
It downloads product and support documents from a specified Google Drive folder, converts them to text, then creates vector embeddings stored in Qdrant for AI semantic search.
The user must add API credentials for OpenAI, Qdrant, Google Drive, and WhatsApp Business API. Also update Google Drive folder ID, Qdrant URLs, and system prompt if needed.
A Verify webhook node handles the GET request from Meta, responding with the exact hub.challenge value required for verification.

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.