Connect Google Drive with Cron andMySQL
Workflow Description
Advanced automation template integrating Google Drive with scheduled triggers to extract and analyze documents using an AI agent powered by language models, storing structured data in MySQL while publishing insights across Twitter and Google Sheets.
How it works
- 1.Execute workflow automatically on a defined schedule using Cron trigger
- 2.Extract documents from Google Drive and process them with the default data loader
- 3.Split extracted text using advanced recursive character-based algorithm
- 4.Analyze content through an intelligent agent supported by language model chains and persist results in MySQL
- 5.Perform semantic search via Pinecone and generate smart responses using Gemini embeddings
- 6.Publish extracted insights to Google Sheets and Twitter/X for immediate team updates
Use cases
- Periodically process client files in Drive and store summaries in database for compliance tracking
- Monitor contracts and policy documents, automatically alerting sales teams through social media channels
Requirements
- Active Google account with Drive, Sheets, and Docs permissions configured
- Running MySQL server with pre-configured database and tables for data persistence
- API keys for Gemini, Pinecone, and Twitter/X account for automated publishing workflows
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 (53)
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
Google Sheets - Tech Radar
Google Sheets
Code - Transform table into rows
Code
Google Docs - Update GDoc
Google Docs
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
Pinecone Vector Store (Retrieval)
Vector Store Pinecone
4_RagTool
Tool Vector Store
Sticky Note14
Sticky Note
AI Agent - RAG
Agent
Sticky Note15
Sticky Note
Sticky Note16
Sticky Note
Embeddings - Tech Radar Data Embedding
Gemini Model
Pinecone - Vector Store for Embedding Content
Vector Store Pinecone
Retrieve Embeddings - Tech Radar Vector DB
Gemini Model
AI Agent - Retrieval
Gemini Model
AI Chat Model - Claude 3.5 Sonnet
Lm Chat Anthropic
AI Chat Model - QwQ 32b
Lm Chat Groq
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