Automated workflow
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.Receive user messages through the chat trigger interface
- 2.Route inquiries to the intelligent agent connected with an open language model
- 3.Divide large requests into manageable batches for processing
- 4.Store context and historical data in the buffer memory system
- 5.Apply conditional logic to direct workflow paths appropriately
- 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
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (18)
When chat message received
Chat Trigger
AI Agent
Agent
Loop Over Items
Split In Batches
Extract mentions
Code
Simple Memory
Memory Buffer Window
Set last Assistant message as input
Set
Set user message as input
Set
First loop?
If
Set lastAssistantMessage
Set
Combine and format responses
Code
Define Global Settings
Code
Define Agent Settings
Code
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
OpenRouter Chat Model
Lm Chat Open Router