Extract Google Drive Documents, Analyze with AI, and Store Results in MySQL
Loading workflow…
Workflow Description
A scheduled automation that retrieves documents from Google Drive, analyzes them using an AI agent powered by Gemini, splits lengthy texts, stores insights in MySQL and Google Sheets, and publishes summaries to X. Combines document extraction, intelligent processing, and multi-platform storage.
How it works
- 1.Schedule periodic execution using Cron
- 2.Extract and automatically load Google Drive file contents
- 3.Analyze documents with AI agent and LLM chains via Gemini
- 4.Split long texts for efficient processing
- 5.Save results to MySQL database
- 6.Publish summaries to Google Sheets and X
Use cases
- Automatically monitor and summarize team documents
- Extract structured data from documents into databases
- Analyze reports and contracts with AI, then share insights
Requirements
- Google account with access to Drive, Sheets, and Docs
- MySQL database (local or cloud-hosted)
- Google Gemini API key or Gemini Pro account
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 (28)
Download Doc File From Google Drive
Google Drive
Doc File Data Loader
Document Default Data Loader
Sticky Note
Sticky Note
Cron
Cron
MySQL -delete all data
My Sql
MySQL - insert all from sheets
My Sql
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Google Drive - Doc File Updated
Google Drive Trigger
Content - Recursive Character Text Splitter
Text Splitter Recursive Character Text Splitter
Google Sheets - Read TechRadar
Google Sheets
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note11
Sticky Note
Code - Simplify Mapping to Original Query
Code
Codes - Simplify Mapping to Original Query
Code
Execute Workflow - Sql Agent
Execute Workflow
Execute Workflow - RAG Agent
Execute Workflow
AI Agent - Output Guardrail
Agent
LLM - Determine - Agent Input Router
LLM Chain
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note12
Sticky Note
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
When Executed by Another Workflow
Execute Workflow Trigger
1_Get DB Schema and Tables List
My Sql Tool
2_Get Table Definition
My Sql Tool
3_Execute actual query
My Sql Tool
AI Agent -DB Sql Agent
Agent
Sticky Note10
Sticky Note
Sticky Note13
Sticky Note
Sticky Note14
Sticky Note
Sticky Note15
Sticky Note
Sticky Note16
Sticky Note
Embeddings - Tech Radar Data Embedding
Gemini Model
Pinecone - Vector Store for Embedding Content
Vector Store Pinecone
AI Chat Model - Claude 3.5 Sonnet
Lm Chat Anthropic
AI Chatmodel - Deepseek 32B
Lm Chat Groq
AI Chat Model - llama3-8b
Lm Chat Groq
API Response - Respond to Webhook
Webhook
API Request - Webhook
Webhook
Determine if is 'RAG'
If
User Conversation history
Memory Buffer Window
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides