Connect Google Sheets with Gmail
Workflow Description
An automation template that reads data from Google Sheets on a scheduled basis, uses an AI agent powered by OpenAI to analyze and generate custom email content, then sends emails through Gmail in organized batches for safe, efficient delivery.
How it works
- 1.Activate the scheduled trigger to run automation at predefined intervals
- 2.Retrieve data rows from the connected Google Sheets spreadsheet
- 3.Pass data to an AI agent running OpenAI's model for intelligent processing
- 4.Split results into safe batches before delivery to prevent overload
- 5.Parse and format responses using the structured output parser
- 6.Send formatted emails through Gmail automatically in controlled batches
Use cases
- Send automated email alerts whenever key data changes or milestones are reached in your spreadsheet
- Generate daily custom reports from customer or sales data and deliver them via email
- Automate follow-up communications with AI-evaluated opportunities from your leads list
Requirements
- Connected Google account with read/write permissions for both Sheets and Gmail
- Valid OpenAI API key with sufficient credits for recurring agent queries
- Well-organized Google Sheets with clear column headers containing the data to process
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 (21)
If
If
OpenAI Chat Model3
OpenAI
Agent Classification
Agent
Get Sustainability News
Google Sheets
Send to your mailing list
Gmail
Generate Email HTML
Code
Parse Article Blocks
HTML Page
Extract Articles Blocks
HTML Page
Trigger at 08:30 am
Schedule Trigger
Query EU News Website
HTTP Request
Split Out by Article Block
Split Out
Loop Over Articles
Split In Batches
Sustainability Flag
Set
Merge Article + Flag
Merge
Record Results
Google Sheets
Structured Output Parser
Output Parser Structured
Sticky Note1
Sticky Note
Sticky Note
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note