AI Agents

Test with

21 nodes 287 163 Automatic trigger
Download

Workflow Description

An advanced automation template combining AI agents with data processing, receiving inquiries through a chat interface, processing them with OpenAI models using LLM chains, and logging results to Google Sheets for tracking and analysis.

How it works

  1. 1.Receive inquiry via Chat Trigger and route for processing
  2. 2.Process request using OpenAI and LLM Chain to generate intelligent response
  3. 3.Split and process results through Code and Split Out nodes
  4. 4.Save data and results to Google Sheets
  5. 5.Assign variables and intermediate data via Set nodes
  6. 6.Add timestamps and format final outputs

Use cases

  • Automate customer inquiry responses and maintain comprehensive logs
  • Process computational and analytical requests with automatic documentation
  • Build AI agents to handle conversations and store data systematically

Requirements

  • Valid OpenAI API key configured
  • Access permissions to Google Sheets with data manipulation rights
  • Basic understanding of LLM Chains and advanced n8n workflow patterns

Service Value

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

Apps Used

Chat Trigger OpenAI Google Sheets LLM Chain

Details

Trigger Automatic trigger
Nodes 21
Apps 4
Views 287
Downloads 163

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)

/

Sticky Note

Sticky Note

#1

Get Models

HTTP Request

#2

Sticky Note1

Sticky Note

#3

When chat message received

Chat Trigger

#4

Sticky Note2

Sticky Note

#5

Sticky Note3

Sticky Note

#6

Get timeDifference

Date Time

#7

Sticky Note4

Sticky Note

#8

Sticky Note5

Sticky Note

#9

Sticky Note6

Sticky Note

#10

Run Model with Dunamic Inputs

OpenAI

#11

Analyze LLM Response Metrics

Code

#12

Save Results to Google Sheets

Google Sheets

#13

Capture End Time

Date Time

#14

Capture Start Time

Date Time

#15

Prepare Data for Analysis

Set

#16

Extract Model IDsto Run Separately

Split Out

#17

Sticky Note7

Sticky Note

#18

Add System Prompt

Set

#19

LLM Response Analysis

LLM Chain

#20

Sticky Note8

Sticky Note

#21