Build an intelligent agent that processes inquiries with memory context
Workflow Description
A template that provides an advanced intelligent agent receiving inquiries through a chat interface, processing them using OpenRouter language models, maintaining conversation context via memory system, and retrieving external information from Wikipedia when needed.
How it works
- 1.Receive user inquiry through interactive chat interface
- 2.Process request using intelligent agent and language chain
- 3.Query Wikipedia for information when necessary
- 4.Maintain previous conversation context in memory system
- 5.Return processed response to user
Use cases
- Create an intelligent assistant that answers questions while remembering previous context
- Build a research agent that gathers information from external sources and presents it in structured format
- Develop smart customer support that learns from previous interactions
Requirements
- Valid API key for OpenRouter platform
- Memory configuration to retain conversation history
- Stable internet connection for information retrieval
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
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 (17)
Chat Message Trigger
Chat Trigger
Generate Search Queries using LLM
LLM Chain
LLM Response Provider (OpenRouter)
Lm Chat Open Router
Parse and Chunk JSON Data
Code
Perform SerpAPI Search Request
HTTP Request
Perform Jina AI Analysis Request
HTTP Request
Format SerpAPI Organic Results
Code
Extract Relevant Context via LLM
Agent
Generate Comprehensive Research Report
Agent
Split Data for SerpAPI Batching
Split In Batches
Split Data for Jina AI Batching
Split In Batches
LLM Memory Buffer (Input Context)
Memory Buffer Window
LLM Memory Buffer (Report Context)
Memory Buffer Window
Fetch Wikipedia Information
Tool Wikipedia
Sticky Note: SerpAPI Setup
Sticky Note
Sticky Note: Jina AI Setup
Sticky Note
Sticky Note: OpenRouter API Setup
Sticky Note