AI Agents

Easily compare using OpenAI and Google Sheets

21 nodes 196 107 Automatic trigger
Download

Workflow Description

An advanced automation template that combines an AI agent with Google Sheets to automatically compare and analyze data. It receives inquiries through a chat interface, processes them in batches, maintains context in memory, and records comparison results in spreadsheets with full audit trails.

How it works

  1. 1.Receive comparison requests via chat trigger interface
  2. 2.Partition incoming data into batches for parallel processing
  3. 3.Retrieve and load prior conversation context from memory buffer
  4. 4.Execute AI agent to perform data comparison and analysis
  5. 5.Aggregate results and generate summaries of comparisons
  6. 6.Write validated comparison results to Google Sheets

Use cases

  • Compare products, prices, and specifications across multiple sources with automatic spreadsheet updates
  • Analyze historical data and customer feedback while maintaining conversation context across multiple sessions

Requirements

  • Valid API key for OpenAI or compatible language model provider via Open Router
  • Google account with read and write access to target Google Sheets

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Chat Trigger Split In Batches Memory Lm Chat Open Router AI Agent Google Sheets

Details

Trigger Automatic trigger
Nodes 21
Apps 6
Views 196
Downloads 107

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)

/

When chat message received

Chat Trigger

#1

Loop Over Items

Split In Batches

#2

Simple Memory

Memory Buffer Window

#3

Chat Memory Manager

Memory Manager

#4

Sticky Note

Sticky Note

#5

OpenRouter Chat Model

Lm Chat Open Router

#6

Sticky Note1

Sticky Note

#7

Sticky Note2

Sticky Note

#8

Set model, sessionId, chatInput, sessionIdBase

Set

#9

AI Agent

Agent

#10

Sticky Note3

Sticky Note

#11

Sticky Note4

Sticky Note

#12

Sticky Note5

Sticky Note

#13

Concatenate Chat Answers

Summarize

#14

Sticky Note6

Sticky Note

#15

Group Model Outputs for Evaluation

Aggregate

#16

Add Model Results to Google Sheet

Google Sheets

#17

Prepare Data for Chat and Google Sheets

Set

#18

Define Models to Compare

Set

#19

Split Models into Items

Split Out

#20

Set Output for Chat UI

Set

#21