n8n

How to Automate WhatsApp RAG Support from Google Drive?

Turn WhatsApp chats into fast, helpful answers for customers. The flow helps retail and service teams reply to questions about products and basic troubleshooting without waiting for a human agent. It fits stores that use WhatsApp for daily support and pre sales.

Here is how it works. Files in a Google Drive folder are split into small chunks, turned into embeddings with OpenAI, and stored in a Qdrant collection. A manual run builds and refreshes this collection. Meta sends WhatsApp messages to a single webhook URL. A filter checks that the event is a real user message. The AI Agent uses an OpenAI chat model and chat memory to compose a clear reply. The message is then sent back over WhatsApp. A verify endpoint echoes back the hub challenge so the webhook can be approved by Meta.

To set it up, set QDRANTURL and COLLECTION, connect your Google Drive folder, and add your OpenAI key. In Meta for Developers, point both verify and respond to the same URL, with GET for verify and POST for messages. Expect faster replies, fewer repetitive questions for agents, and better consistency. Use it for product Q and A, FAQs, and quick troubleshooting guides based on your own documents.

What are the key features?

  • WhatsApp webhook verification that echoes the hub challenge for Meta approval
  • Single webhook endpoint to receive WhatsApp POST events and route only real messages
  • AI Agent powered by an OpenAI chat model with chat memory for context aware replies
  • Google Drive ingestion that downloads files from a chosen folder
  • Token based text splitter to chunk large documents for better retrieval
  • OpenAI embeddings to convert document chunks into vectors
  • Qdrant collection creation and refresh to manage the vector database
  • Direct WhatsApp send action to return the AI reply to the user

What are the benefits?

  • Reduce manual replies from hours to minutes for common questions
  • Automate up to 60 percent of repetitive WhatsApp inquiries
  • Improve answer consistency by using your own documents
  • Handle 5 to 10 times more chat volume without extra staff
  • Connect WhatsApp, Google Drive, OpenAI, and Qdrant in one flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with WhatsApp Business Platform, Google Drive, OpenAI and Qdrant. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the OpenAI Chat Model and Embeddings nodes. In the credential dropdown, click Create new credential, name it OpenAI, and paste your API key from your OpenAI account. Save.
  4. Open the Google Drive Get folder and Download Files nodes. In the credential dropdown, click Create new credential and complete OAuth sign in to your Google account. Select the folder that holds your support documents.
  5. Open the Qdrant Vector Store node and set the Qdrant URL and collection name. Create or select a credential for Qdrant. If your cluster uses an API key, create an HTTP Header Auth credential with an Authorization header.
  6. Open the HTTP Request nodes Create collection and Refresh collection. Update the URLs to match your Qdrant host and collection. Attach the same HTTP Header Auth credential if required.
  7. Set the placeholders QDRANTURL and COLLECTION wherever they appear so all Qdrant nodes point to the same collection.
  8. Open the Verify and Respond webhook nodes. Ensure they share the exact same path. Set Verify to GET and Respond to POST. The Respond to Webhook node connected to Verify returns the hub challenge automatically.
  9. In your Meta for Developers app for WhatsApp, add the Verify URL as the Callback URL and complete the verification. Then add the same URL for message delivery on POST.
  10. Click Execute on the Manual Trigger to create or refresh the Qdrant collection and index your Google Drive files. Check the Qdrant dashboard or logs to confirm points were inserted.
  11. Send a test WhatsApp message to your number. Watch the n8n execution to confirm the If node detects a message and the AI Agent produces a reply that is sent back.
  12. Troubleshoot: If verification fails, confirm the GET Verify URL is reachable and returns the hub challenge. If no replies appear, check WhatsApp app permissions and webhook subscription fields, confirm OpenAI quota, and ensure Google Drive files are accessible.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Google Drive

Sign up

Drive API: $0 (no additional cost; quota-limited)

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Qdrant

Sign up

Free tier: $0, 1 GB free cluster (no credit card), accessible via REST/GRPC API

WhatsApp Business Platform

Sign up

Service conversations: $0 (unlimited; effective Nov 1, 2024)

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.