AI Agents

Extract and organize Drive files into Sheets with AI intelligence

19 nodes 309 159 Automatic trigger
Download

Workflow Description

Automation that uses an intelligent agent to read files from Google Drive, analyze their content via OpenAI, then automatically organize extracted data into structured Google Sheets tables, with batch processing for large files.

How it works

  1. 1.Trigger the automation manually or by schedule to select files from Google Drive
  2. 2.Read file contents and extract essential data from documents
  3. 3.Send data to an AI agent that analyzes it using OpenAI's language model
  4. 4.Split results into batches and apply filters for valid data
  5. 5.Write organized data directly into Google Sheets tables

Use cases

  • Convert invoices and contracts from Drive into organized spreadsheets
  • Automatically extract data from PDF reports and text files
  • Sort and organize documents based on intelligent criteria
  • Build dynamic databases from multiple files

Requirements

  • Google account with Drive and Sheets permissions
  • OpenAI API key
  • Files in Google Drive in readable formats (PDF, text documents)

Service Value

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

Apps Used

OpenAI Google Drive Split In Batches AI Agent Google Sheets

Details

Trigger Automatic trigger
Nodes 19
Apps 5
Views 309
Downloads 159

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

/

When clicking ‘Test workflow’

Manual Trigger

#1

Extract from File

Extract From File

#2

If is archived is false

If

#3

OpenAI Chat Model

OpenAI

#4

If extension is json

Filter

#5

Sticky Note

Sticky Note

#6

Search in "Keep" folder

Google Drive

#7

Loop every 10 items

Split In Batches

#8

Download the files

Google Drive

#9

Put some AI treatment here if you need it

Agent

#10

Set the fields for export

Set

#11

Add to google sheet

Google Sheets

#12

Filter

If

#13

Sticky Note1

Sticky Note

#14

Sticky Note2

Sticky Note

#15

Sticky Note3

Sticky Note

#16

Sticky Note4

Sticky Note

#17

Sticky Note5

Sticky Note

#18

Sticky Note6

Sticky Note

#19