AI Agents

Automated workflow

17 nodes 212 121 Automatic trigger
Download

Workflow Description

An intelligent workflow that combines chat triggers with LLM chains and an AI agent to handle complex queries intelligently. It processes large requests in batches while maintaining context through memory buffers and integrates external tools for enhanced responses.

How it works

  1. 1.Receive incoming chat messages via trigger
  2. 2.Pass input to LLM chain using Open Router model
  3. 3.Process tasks through intelligent AI agent
  4. 4.Split large queries into manageable batches
  5. 5.Maintain conversation context using memory buffer
  6. 6.Retrieve supplementary information from Wikipedia tool

Use cases

  • Automated handling of complex customer inquiries
  • Processing high-volume requests while preserving conversation history
  • Intelligent search and information aggregation from external sources

Requirements

  • Open Router API key configured
  • n8n chat platform integration enabled
  • Memory and context settings for extended sessions

Service Value

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

Apps Used

Chat Trigger LLM Chain Lm Chat Open Router AI Agent Split In Batches Memory Tool

Details

Trigger Automatic trigger
Nodes 17
Apps 7
Views 212
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 (17)

/

Chat Message Trigger

Chat Trigger

#1

Generate Search Queries using LLM

LLM Chain

#2

LLM Response Provider (OpenRouter)

Lm Chat Open Router

#3

Parse and Chunk JSON Data

Code

#4

Perform SerpAPI Search Request

HTTP Request

#5

Perform Jina AI Analysis Request

HTTP Request

#6

Format SerpAPI Organic Results

Code

#7

Extract Relevant Context via LLM

Agent

#8

Generate Comprehensive Research Report

Agent

#9

Split Data for SerpAPI Batching

Split In Batches

#10

Split Data for Jina AI Batching

Split In Batches

#11

LLM Memory Buffer (Input Context)

Memory Buffer Window

#12

LLM Memory Buffer (Report Context)

Memory Buffer Window

#13

Fetch Wikipedia Information

Tool Wikipedia

#14

Sticky Note: SerpAPI Setup

Sticky Note

#15

Sticky Note: Jina AI Setup

Sticky Note

#16

Sticky Note: OpenRouter API Setup

Sticky Note

#17