Build an intelligent agent processing inquiries with memory and tools
Workflow Description
Advanced template creating an AI-powered agent that receives chat inquiries, processes them through intelligent language model chains, maintains conversation context, searches Wikipedia for accurate answers, and handles multiple requests in parallel batches.
How it works
- 1.Receive messages through real-time chat trigger
- 2.Process queries via collaborative language model chain
- 3.Search Wikipedia and retrieve relevant information
- 4.Maintain conversation context in memory buffer
- 5.Handle multiple requests in parallel batches
- 6.Deliver intelligent responses directly to users
Use cases
- Smart assistant answering employee questions with current information
- Customer support bot preserving conversation history and context
- Internal search engine gathering data from reliable sources
Requirements
- Configure OpenRouter API key for language model access
- Enable Wikipedia search tool integration
- Understand basic intelligent agent design and memory management
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