AI Agents

Query Google Drive Documents via WhatsApp with AI Agent

24 nodes 291 137 Webhook
Download

Workflow Description

An intelligent automation that enables WhatsApp users to ask questions about files stored in Google Drive. The system analyzes documents using an AI agent powered by OpenAI, stores data in a vector database, and returns answers directly through WhatsApp messages, maintaining conversation history.

How it works

  1. 1.Receive user query via webhook and route it to the AI agent
  2. 2.Load and process Google Drive documents, split text, and generate embeddings
  3. 3.Search the vector database to find relevant document sections
  4. 4.Generate accurate answer using OpenAI language model
  5. 5.Send response back to WhatsApp user with conversation context

Use cases

  • Enable employees to ask questions about company policies stored in Drive
  • Instantly retrieve project information and contract details via WhatsApp
  • Extract data from reports and technical documents conversationally

Requirements

  • Google Drive account with documents to be indexed and searched
  • WhatsApp Business API account properly configured and active
  • Valid OpenAI API key with sufficient usage credits
  • Active webhook endpoint and stable internet connection

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

AI Agent OpenAI Vector Store Google Drive Document Default Data Loader Text Splitter WhatsApp Memory

Details

Trigger Webhook
Nodes 24
Apps 8
Views 291
Downloads 137

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (24)

/

Respond to Webhook

Webhook

#1

AI Agent

Agent

#2

Sticky Note

Sticky Note

#3

OpenAI Chat Model

OpenAI

#4

When clicking ‘Test workflow’

Manual Trigger

#5

Qdrant Vector Store

Vector Store Qdrant

#6

Create collection

HTTP Request

#7

Refresh collection

HTTP Request

#8

Get folder

Google Drive

#9

Download Files

Google Drive

#10

Embeddings OpenAI

OpenAI

#11

Default Data Loader

Document Default Data Loader

#12

Token Splitter

Text Splitter Token Splitter

#13

Sticky Note2

Sticky Note

#14

Sticky Note1

Sticky Note

#15

Verify

Webhook

#16

Respond

Webhook

#17

is Message?

If

#18

Only message

Whats App

#19

Send

Whats App

#20

Window Buffer Memory

Memory Buffer Window

#21

Sticky Note3

Sticky Note

#22

Sticky Note4

Sticky Note

#23

Sticky Note5

Sticky Note

#24