Extract and Analyze Google Drive Documents with AI and Save Results to Sheets
Workflow Description
Advanced workflow that retrieves documents from Google Drive, processes them with OpenAI models, splits text into indexable chunks, stores them in a vector database, interacts through an AI agent with memory, and automatically logs findings in Google Sheets for easy reference and tracking.
How it works
- 1.Load documents from specified Google Drive folder
- 2.Process and split text content into indexed segments
- 3.Convert segments into Pinecone vectors for semantic search
- 4.Route user queries through OpenAI-powered agent with persistent memory
- 5.Search documents and extract relevant answers from stored vectors
- 6.Record results and metadata into Google Sheets spreadsheet
Use cases
- Process corporate contracts and reports with minimal manual effort
- Build intelligent document search engine with automatic archiving
- Summarize PDF and text files while maintaining searchable history
Requirements
- Google account with access permissions to Drive and Sheets
- OpenAI API key to power language model operations
- Pinecone account for vector storage and semantic indexing
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (26)
OpenAI Chat Model
OpenAI
OpenAI Chat Model1
OpenAI
Google Drive
Google Drive
Get File Content
Google Drive
Default Data Loader
Document Default Data Loader
Character Text Splitter
Text Splitter Character Text Splitter
Extract from File
Extract From File
Embeddings OpenAI1
OpenAI
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Embeddings OpenAI2
OpenAI
Vector Store Tool
Tool Vector Store
Pinecone Vector Store1
Vector Store Pinecone
Pinecone Vector Store
Vector Store Pinecone
When chat message received
Chat Trigger
Captures session id
Set
RAG AI Agent
Agent
SerpAPI
Tool Serp Api
Zep
Memory Zep
HTTP Request
HTTP Request
Code
Code
HTTP Request1
HTTP Request
Code1
Code
Code2
Code
Google Sheets
Google Sheets
Window Buffer Memory
Memory Buffer Window