AI Agents

Automated workflow

18 nodes 210 121 Automatic trigger
Download

Workflow Description

An automated workflow that captures user queries through a chat interface, routes them to an intelligent agent powered by an advanced language model, processes requests in batches, and maintains conversation context in memory to deliver coherent sequential responses.

How it works

  1. 1.Receive user messages through the chat trigger interface
  2. 2.Route inquiries to the intelligent agent connected with an open language model
  3. 3.Divide large requests into manageable batches for processing
  4. 4.Store context and historical data in the buffer memory system
  5. 5.Apply conditional logic to direct workflow paths appropriately
  6. 6.Send customized responses back to the user

Use cases

  • Intelligent chatbot delivering instant answers to customer inquiries
  • Automated request processor learning from prior context to enhance response quality
  • Smart support system distributing tickets by priority and category

Requirements

  • Valid API key for the Open Router service
  • Clearly defined data structure for batch processing
  • Explicit logical rules for routing different query types

Service Value

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

Apps Used

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

Details

Trigger Automatic trigger
Nodes 18
Apps 5
Views 210
Downloads 121

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

/

When chat message received

Chat Trigger

#1

AI Agent

Agent

#2

Loop Over Items

Split In Batches

#3

Extract mentions

Code

#4

Simple Memory

Memory Buffer Window

#5

Set last Assistant message as input

Set

#6

Set user message as input

Set

#7

First loop?

If

#8

Set lastAssistantMessage

Set

#9

Combine and format responses

Code

#10

Define Global Settings

Code

#11

Define Agent Settings

Code

#12

Sticky Note

Sticky Note

#13

Sticky Note1

Sticky Note

#14

Sticky Note2

Sticky Note

#15

Sticky Note3

Sticky Note

#16

Sticky Note4

Sticky Note

#17

OpenRouter Chat Model

Lm Chat Open Router

#18