Build a Multi-Platform AI Agent with Memory and Tools
Workflow Description
Advanced automation integrating an OpenAI-powered intelligent agent with Redis-based memory storage and multi-channel activation via Twitter, Telegram, and MCP interfaces. Enables sophisticated query processing and distributed task execution with contextual awareness.
How it works
- 1.Activate agent via Telegram, X, or MCP while storing conversation context in Redis
- 2.Process queries through OpenAI model with access to external tools and APIs
- 3.Route responses and execute sequential tasks based on request type and agent decisions
Use cases
- Manage unified social inquiries while maintaining historical context across channels
- Build a multi-channel smart assistant that learns from previous interactions and refines responses
Requirements
- Active OpenAI account with API access configured
- Running Redis server for persistent memory and session storage
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 (46)
Simplify Workflows
Set
When Executed by Another Workflow
Execute Workflow Trigger
Operations
Switch
Get MCP-tagged Workflows
N8N
Filter Matching Ids
Filter
Store In Memory
Redis
AddTool Success
Set
AddTool Error
Set
Get Memory
Redis
Split Out
Split Out
Filter Matching IDs
Filter
Store In Memory1
Redis
Remove Tool Success
Set
Convert to JSON
Set
listTools Success
Set
Get MCP-tagged Workflows1
N8N
Simplify Workflows1
Set
listTools Success1
Aggregate
Get Parameters
Set
executeTool Result
Aggregate
AI Agent
Agent
When chat message received
Chat Trigger
MCP Client
Mcp Client Tool
Simple Memory
Memory Buffer Window
Convert to JSON1
Set
Has Workflow Available?
If
ExecuteTool Error
Set
Workflow Exists?
If
N8N Workflows MCP Server
Mcp Trigger
Add Workflow
Tool Workflow
RemoveWorkflow
Tool Workflow
List Workflows
Tool Workflow
SearchWorkflows
Tool Workflow
ExecuteWorkflow
Tool Workflow
Sticky Note
Sticky Note
Execute Workflow with PassThrough Variables
Execute Workflow
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
OpenAI Chat Model
OpenAI
Is Empty Array?
If
Delete Key
Redis
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note