AI Agents

Connect Google Drive with Google Sheets andOpenAI

28 nodes 221 156 Scheduled trigger
Download

Workflow Description

An automation template that retrieves files from Google Drive, processes them through OpenAI's intelligent chain, parses and structures the results, then automatically publishes extracted data to Google Sheets on a scheduled basis.

How it works

  1. 1.Activate scheduled trigger to initiate processing at defined intervals
  2. 2.Fetch files from selected Google Drive folders and retrieve their contents
  3. 3.Send file content through OpenAI LLM Chain for intelligent analysis and extraction
  4. 4.Parse and structure the AI output using a structured output parser
  5. 5.Split results into batches and merge them into an organized dataset
  6. 6.Write processed data directly to connected Google Sheets spreadsheets

Use cases

  • Extract and automatically organize key information from PDF reports and text documents stored in Google Drive into structured tables
  • Classify and analyze customer or product documents using AI intelligence, updating performance tracking sheets in Sheets
  • Process large batches of files on a recurring schedule, summarizing extracted content into comprehensive Google Sheets reports

Requirements

  • Active Google account with full permissions on both Google Drive and Google Sheets
  • Valid and active OpenAI API key configured properly
  • Pre-configured Google Sheets with defined columns to receive extracted data
  • Designated Google Drive folders containing files ready for automated processing

Service Value

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

Apps Used

LLM Chain OpenAI Output Parser Split In Batches Google Drive Google Sheets

Details

Trigger Scheduled trigger
Nodes 28
Apps 6
Views 221
Downloads 156

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

/

Basic LLM Chain

LLM Chain

#1

OpenAI Chat Model

OpenAI

#2

Structured Output Parser

Output Parser Structured

#3

Split Out

Split Out

#4

HTTP Request

HTTP Request

#5

Sticky Note

Sticky Note

#6

Wait

Wait

#7

HTTP Request1

HTTP Request

#8

HTTP Request2

HTTP Request

#9

Loop Over Items

Split In Batches

#10

Sticky Note2

Sticky Note

#11

Google Drive

Google Drive

#12

Google Drive1

Google Drive

#13

Generate Videos

HTTP Request

#14

Merge

Merge

#15

Aggregate

Aggregate

#16

Google Drive2

Google Drive

#17

Schedule Trigger

Schedule Trigger

#18

Google Sheets

Google Sheets

#19

Google Sheets1

Google Sheets

#20

HTTP Request3

HTTP Request

#21

Google Drive3

Google Drive

#22

Wait1

Wait

#23

Edit Fields

Set

#24

Google Drive4

Google Drive

#25

Google Drive5

Google Drive

#26

OpenAI

OpenAI

#27

Google Sheets2

Google Sheets

#28