AI-enable the provider with long-term memory and dynamic tool routing
Workflow Description
Advanced AI agent template with long-term memory and dynamic tool routing. Integrates communication platforms and email services to enhance user interactions and automate complex tasks intelligently with context awareness.
How it works
- 1.Trigger the agent via chat or webhook to receive and process user requests
- 2.Process requests using an advanced language model with access to persistent memory
- 3.Dynamically route the request to the most appropriate tool or service
- 4.Execute the selected tool and retrieve results back to the agent
- 5.Store context and outcomes in memory for pattern recognition and future optimization
Use cases
- Intelligent customer assistant that learns from past interactions and improves responses over time
- Multi-step workflow automation across email, messaging, and document management based on conversation context
Requirements
- API keys for OpenAI, Google services, Gmail, Telegram, and Twitter/X integration
- Full permissions for document access, email management, and account operations
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 (39)
When Executed by Another Workflow
Execute Workflow Trigger
Save Long Term Memories
Google Docs
Saved response
Set
Respond with long term memories
Set
Retrieve Long Term Memories3
Google Docs
Send Success Message to Telegram
Set
Email Workflow Stats
Gmail
OpenAI Chat Model2
OpenAI
OpenAI Chat Model3
OpenAI
📤Send Memories to Telegram
Tool Workflow
📫Send Memories to Gmail
Tool Workflow
🧠Save Memories
Tool Workflow
🔎Retrieve Memories
Tool Workflow
🤯Window Buffer Memory
Memory Buffer Window
🧠 AI Agent w/Long Term Memory
Agent
🤖OpenAI Chat Model
OpenAI
Ⓜ️ When chat message received
Chat Trigger
Prepare Telegram Message
LLM Chain
Prepare Gmail Message
LLM Chain
Sticky Note
Sticky Note
Retrieve Long Term Memories
Google Docs
Memory Tool Router
Switch
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
Sticky Note10
Sticky Note
Sticky Note11
Sticky Note
Retrieve Long Term Memories2
Google Docs
Sticky Note12
Sticky Note
Sticky Note13
Sticky Note
Sticky Note14
Sticky Note
Sticky Note15
Sticky Note
Sticky Note16
Sticky Note