AI Agents

Extract Drive files, summarize with AI, and email summaries automatically

22 nodes 249 125 Automatic trigger
Download

Workflow Description

An intelligent workflow that monitors Google Drive for document changes, uses OpenAI to extract and analyze content, generates concise summaries through LLM processing, and automatically distributes them via Gmail without manual intervention.

How it works

  1. 1.Monitor Google Drive folders for new or modified files
  2. 2.Extract text content from files and prepare it for AI processing
  3. 3.Generate intelligent summaries using OpenAI and LLM Chain
  4. 4.Compose personalized email messages with the summaries
  5. 5.Send emails to designated recipients via Gmail

Use cases

  • Automatically summarize reports and distribute them to team members
  • Monitor client proposals in Drive and email summaries to management
  • Process invoices and contracts, extract key data, and route to stakeholders

Requirements

  • Google account with access permissions to Drive and Gmail
  • OpenAI API key for language model operations
  • Configuration of target folders, file types, and recipient email addresses

Service Value

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

Apps Used

Google Drive OpenAI Gmail LLM Chain

Details

Trigger Automatic trigger
Nodes 22
Apps 4
Views 249
Downloads 125

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 (22)

/

List Files

Google Drive

#1

OpenAI Chat Model

OpenAI

#2

is XLSX

If

#3

Get File

Google Drive

#4

Merge XLSX and CSV

Merge

#5

Format Data

Code

#6

Set fileName

Set

#7

Sticky Note2

Sticky Note

#8

Sticky Note3

Sticky Note

#9

Sticky Note5

Sticky Note

#10

Sticky Note6

Sticky Note

#11

Sticky Note7

Sticky Note

#12

Preserve File Name

Set

#13

Email Optimizations

Gmail

#14

Extract XLSX Data

Extract From File

#15

Extract CSV Data

Extract From File

#16

Preserve CSV File Name

Set

#17

When clicking ‘Test workflow’

Manual Trigger

#18

Sticky Note

Sticky Note

#19

Email Options

Set

#20

Sticky Note1

Sticky Note

#21

AI Analyze

LLM Chain

#22