AI Agents

Connect Google Drive with OpenAI

22 nodes 200 124 Automatic trigger
Download

Workflow Description

Automation template connecting Google Drive with OpenAI to process and analyze documents intelligently. Retrieves files from Drive, splits text into chunks, generates embeddings using OpenAI, and stores them in memory for instant retrieval and querying.

How it works

  1. 1.Trigger manual activation and fetch documents from Google Drive
  2. 2.Load document and split text into intelligent chunks using recursive character splitting
  3. 3.Generate OpenAI embeddings and store them in vector memory store
  4. 4.Query stored information and return matching results with context

Use cases

  • Extract relevant information from contracts, policies, and legal documents stored in Drive
  • Analyze lengthy reports and automatically answer domain-specific questions

Requirements

  • Connected Google Drive account with complete API authentication
  • OpenAI API key with embeddings and text completion permissions

Service Value

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

Apps Used

Google Drive Document Default Data Loader Text Splitter OpenAI Memory

Details

Trigger Automatic trigger
Nodes 22
Apps 5
Views 200
Downloads 124

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)

/

When clicking "Test workflow"

Manual Trigger

#1

Google Drive

Google Drive

#2

Get Color Information

Edit Image

#3

Resize Image

Edit Image

#4

Default Data Loader

Document Default Data Loader

#5

Recursive Character Text Splitter

Text Splitter Recursive Character Text Splitter

#6

Sticky Note

Sticky Note

#7

Sticky Note1

Sticky Note

#8

Sticky Note2

Sticky Note

#9

Combine Image Analysis

Merge

#10

Document for Embedding

Set

#11

Sticky Note3

Sticky Note

#12

Sticky Note4

Sticky Note

#13

Sticky Note5

Sticky Note

#14

Sticky Note6

Sticky Note

#15

Embeddings OpenAI1

OpenAI

#16

Sticky Note7

Sticky Note

#17

Sticky Note8

Sticky Note

#18

In-Memory Vector Store

Vector Store In Memory

#19

Embeddings OpenAI

OpenAI

#20

Search for Image

Vector Store In Memory

#21

Get Image Keywords

OpenAI

#22