WorkflowGoogle DriveOpen

WhatsApp Business n8n RAG chatbot with Qdrant

This n8n workflow is a WhatsApp Business chatbot that answers from your own documents with retrieval augmented generation. It suits companies that want customers on WhatsApp to get answers drawn from files in a Google Drive folder, stored in a Qdrant vector database.

What it does

A test run creates or refreshes a Qdrant collection, downloads files from the Drive folder and embeds them. In live use the Respond webhook receives Meta's POST requests, checks for a user message, and an OpenAI agent answers with context from Qdrant before replying in WhatsApp.

How to use it

Set up Verify and Respond webhooks on the same URL, with Verify on GET and Respond on POST, then add WhatsApp, Google Drive, Qdrant and OpenAI credentials.

Requirements and limits

Replies are custom messages, not WhatsApp Business template messages.

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)

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/1385_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.