Answer WhatsApp questions from PDF documents using RAG, Google Drive and Pinecone
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on WhatsApp events (messages) (plus 2 other triggers). Along the way it connects Google Drive, Pinecone Vector Store, Embeddings OpenAI and Google Gemini Chat Model and 1 more.
How it runs
Trigger: On WhatsApp events (messages) (plus 2 other triggers).
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Pinecone Vector Store); memory: Simple Memory
- Download file (Google Drive): download
- Send message (WhatsApp Business Cloud): send
- Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger
From the author
Good to know: This workflow creates a WhatsApp chatbot that answers questions using your own PDFs through RAG (Retrieval-Augmented Generation). Every time you upload a document to Google Drive, it is processed into embeddings and stored in Pinecone—allowing…