n8n

How to Automate WhatsApp RAG Support with Google Drive and Qdrant?

Turn WhatsApp into a smart help channel that answers customer questions with your own files. It is great for support teams and retail stores that want fast and accurate replies without hiring more agents.

Here is how it works. A manual setup path builds a Qdrant collection, pulls documents from Google Drive, splits them into chunks, and creates OpenAI embeddings. The live chat path listens to Meta webhooks, checks if the event is a real message, and sends the text to an AI agent. The agent uses a system prompt for an electronics store, chat memory, and a RAG search over Qdrant to craft helpful answers. It sends replies back through WhatsApp, while status updates are filtered out. Having the same URL for verification and message delivery makes the webhook setup simple.

You will need access to WhatsApp Cloud API, a Meta app for webhooks, Google Drive, OpenAI, and a Qdrant endpoint. Expect faster responses, fewer repeat questions, and consistent answers pulled from your files. Common uses include product Q and A, order help, troubleshooting, and store policy questions. Setup is clear and can be tested in steps, so teams can go live with confidence.

What are the key features?

  • Webhook verification and response with the same URL for simple Meta setup
  • Filter to detect real WhatsApp messages and ignore status events
  • AI agent with a custom system prompt tuned for an electronics store
  • Chat memory to keep context across messages in a conversation
  • Google Drive folder fetch and file download for knowledge intake
  • Token based text splitter and default document loader
  • OpenAI embeddings and Qdrant vector store insert and retrieval
  • Manual path to create and refresh the Qdrant collection before going live
  • Direct reply to customers through WhatsApp send actions

What are the benefits?

  • Reduce first response time from minutes to seconds
  • Automate up to 70% of repetitive WhatsApp questions
  • Improve answer accuracy by referencing your own files
  • Handle 3 times more concurrent chats without extra staff
  • Connect WhatsApp, Google Drive, OpenAI, and Qdrant in one flow
  • Keep answers consistent with a defined system prompt

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 Cloud API, Google Drive, OpenAI, Qdrant and Meta Webhooks. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create OpenAI credentials. If unsure, double click the OpenAI nodes and in the credential dropdown click Create new credential, then follow the on screen steps and paste your API key from the OpenAI API page.
  4. Create Qdrant credentials. Double click the Qdrant nodes, choose Create new credential, then enter your Qdrant URL and API key from your Qdrant dashboard.
  5. Connect Google Drive. Open the Google Drive nodes, click Create new credential, and complete the OAuth prompt with a Google account that has access to the target folder.
  6. Set WhatsApp Cloud API credentials. Open the WhatsApp nodes, create new credentials, and paste your WhatsApp Cloud API token from your Meta for Developers app.
  7. Configure Qdrant endpoints. In the Create collection and Refresh collection HTTP Request nodes, replace QDRANTURL and COLLECTION with your actual endpoint and collection name. Keep Content Type as application/json.
  8. Point the Google Drive Get folder node to the folder that holds your knowledge files. Confirm the Download Files node pulls the expected file types.
  9. Check the embeddings path. Ensure the Token Splitter flows into Default Data Loader, then into the Qdrant Vector Store. Verify the Embeddings OpenAI node connects to the vector store for insert.
  10. Open the AI Agent node and set the system message to match your brand voice and product scope. Confirm the connected OpenAI Chat Model is the model you want to use.
  11. Set up Meta webhooks. In your Meta app, add the same webhook URL shown in the n8n Verify and Respond webhook nodes. Set Verify to GET and Respond to POST. During verification, Meta will send a code that n8n returns to confirm the webhook.
  12. Run the manual trigger once to create or refresh the Qdrant collection and ingest your Google Drive files. Check the execution log to confirm points were inserted.
  13. Test the live path. Send a WhatsApp message to your number. The If node should route only real messages to the AI Agent. You should receive a reply based on your files.
  14. Troubleshoot common issues. If verification fails, confirm both webhook nodes share the exact same URL and the methods are correct. If no answers return, check Qdrant URL, API key, and that embeddings were created. If messages are not detected, review the JSON path in the AI Agent input and the If node condition.

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)

Meta Webhooks

Sign up

Free: $0 — Meta Webhooks themselves are free; WhatsApp service (non‑template) messages are free since Nov 1, 2024, and utility template messages are free within the 24‑hour customer service window since Apr 1, 2025; other messages billed per current rate cards/per‑message pricing.

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 Cloud API

Sign up

Free: Service messages $0 per message (unlimited). Utility templates within 24h customer service window: $0. Other templates billed per message by country.

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.