AI Agents

Extract sheet data and send intelligent email messages

21 nodes 308 153 Scheduled trigger
Download

Workflow Description

Smart automation that reads data from Google Sheets periodically, processes it with an OpenAI-powered AI agent, and sends personalized emails via Gmail based on spreadsheet content and defined conditions.

How it works

  1. 1.Schedule periodic checks for Google Sheets data updates
  2. 2.Process data using an AI agent that understands context and makes decisions
  3. 3.Split data into batches and apply logical conditions
  4. 4.Generate email content through OpenAI language model
  5. 5.Send personalized messages via Gmail

Use cases

  • Send daily client reports based on specific spreadsheet data
  • Trigger smart email alerts when certain data conditions are met
  • Distribute tailored offers to different customer segments from a sheet

Requirements

  • Google Workspace account with access to Gmail and Google Sheets
  • OpenAI API key to enable AI agent functionality
  • Well-organized Google Sheet containing email recipients and content data

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

OpenAI AI Agent Google Sheets Gmail Split In Batches Output Parser

Details

Trigger Scheduled trigger
Nodes 21
Apps 6
Views 308
Downloads 153

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (21)

/

If

If

#1

OpenAI Chat Model3

OpenAI

#2

Agent Classification

Agent

#3

Get Sustainability News

Google Sheets

#4

Send to your mailing list

Gmail

#5

Generate Email HTML

Code

#6

Parse Article Blocks

HTML Page

#7

Extract Articles Blocks

HTML Page

#8

Trigger at 08:30 am

Schedule Trigger

#9

Query EU News Website

HTTP Request

#10

Split Out by Article Block

Split Out

#11

Loop Over Articles

Split In Batches

#12

Sustainability Flag

Set

#13

Merge Article + Flag

Merge

#14

Record Results

Google Sheets

#15

Structured Output Parser

Output Parser Structured

#16

Sticky Note1

Sticky Note

#17

Sticky Note

Sticky Note

#18

Sticky Note2

Sticky Note

#19

Sticky Note3

Sticky Note

#20

Sticky Note4

Sticky Note

#21