WorkflowGoogle DriveOpen

WhatsApp chatbot n8n workflow answering from Google Drive docs

This n8n workflow, a second version in the collection, connects WhatsApp Business to an AI agent that searches your Google Drive documents before replying. It is for support teams who want accurate answers on WhatsApp based on their own manuals or policies.

What it does

Files from a Drive folder are downloaded and loaded into a Qdrant collection through HTTP requests. Incoming WhatsApp messages from Meta reach a webhook, the flow confirms they hold user text, and the OpenAI chat model answers using the vector store.

How to use it

Point both webhook nodes at one URL, verifying with GET and responding with POST, and fill in the Drive folder and Qdrant collection names.

Requirements and limits

Needs a Meta WhatsApp Business setup, a Qdrant instance and an OpenAI key.

More in Google Drive and the n8n workflow library.

Full text

Front matter
name: Business WhatsApp AI RAG Chatbot
description: Triggered by a webhook. Connects Condition, Google Drive, HTTP request, Respond To Webhook, Webhook, WhatsApp. # STEP 4 ## RAG System * *Respond* webhook receives various POST Requests from Meta regarding WhatsApp messages (user messages + status notifications) * Check if the incoming JSON contains user message * Echo back the text message to the user. This is a custom message, not a WhatsApp Business template message ## Important! ### Configure the webhook nodes this way: * Make sure that both *Verify* and *Respond* have the same URL * *Verify* should have GET HTTP Method * *Respond* shou
category: Automation
kind: Workflow
software: Condition|Google Drive|HTTP request|Respond To Webhook|Webhook|WhatsApp

Business WhatsApp AI RAG Chatbot

Triggered by a webhook. Connects Condition, Google Drive, HTTP request, Respond To Webhook, Webhook, WhatsApp. # STEP 4

RAG System

  • Respond webhook receives various POST Requests from Meta regarding WhatsApp messages (user messages + status notifications)
  • Check if the incoming JSON contains user message
  • Echo back the text message to the user. This is a custom message, not a WhatsApp Business template message

## Important!

Configure the webhook nodes this way:

  • Make sure that both Verify and Respond have the same URL
  • Verify should have GET HTTP Method
  • Respond shou

Steps

  • Respond to Webhook (respondToWebhook)
  • AI Agent (noOp)
  • Sticky Note (stickyNote)
  • OpenAI Chat Model (noOp)
  • When clicking ‘Test workflow’ (manualTrigger)
  • Qdrant Vector Store (noOp)
  • Create collection (httpRequest)
  • Refresh collection (httpRequest)
  • Get folder (googleDrive)
  • Download Files (googleDrive)
  • Embeddings OpenAI (noOp)
  • Default Data Loader (noOp)
  • Token Splitter (noOp)
  • Sticky Note2 (stickyNote)
  • Sticky Note1 (stickyNote)
  • Verify (webhook)
  • Respond (webhook)
  • is Message? (if)
  • Only message (whatsApp)
  • Send (whatsApp)
  • Window Buffer Memory (noOp)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • OpenAI Chat Model1 (noOp)
  • Retrive Qdrant Vector Store (noOp)
  • Embeddings OpenAI2 (noOp)
  • RAG (noOp)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Webhook/1561_Webhook_Respondtowebhook_Automate_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.