🧠 Give Your AI Agent Chatbot Long Term Memory Tools Router

Automated workflow: 🧠 Give Your AI Agent Chatbot Long Term Memory Tools Router. This workflow integrates 14 different services: stickyNote, telegram, agent, chainLlm, switch. It contains 47 nodes and follows best practices for error handling and security.

Workflow Structure (23 nodes)
100%
No Op
🤖OpenAI Chat Model
No Op
Ⓜ️ When chat message received
No Op
🤯Window Buffer Memory
No Op
🧠Save Memories
No Op
🧠 AI Agent w/Long Term Memory
No Op
🔎Retrieve Memories
No Op
📤Send Memories to Telegram
No Op
📫Send Memories to Gmail
Execute Workflow Trigger
When Executed by Another Workflow
Switch
Memory Tool Router
Stop And Error
Error Handler
Google Docs
Save Long Term Memories
Google Docs
Retrieve Long Term Memories3
Google Docs
Retrieve Long Term Memories
Google Docs
Retrieve Long Term Memories2
Set
Saved response
Set
Respond with long term memories
No Op
Prepare Telegram Message
No Op
Prepare Gmail Message
No Op
OpenAI Chat Model2
No Op
OpenAI Chat Model3
Telegram
Send Success Message to Telegram
Gmail
Email Workflow Stats
Node Types:
trigger
action
transform
default
logic
Requires credentials

Prerequisites

Required Credentials (4)

Gmail

Used by: Email Workflow Stats

Docs

Google Docs

Used by: Save Long Term Memories, Retrieve Long Term Memories3 +2 more

Docs

OpenAI

Used by: OpenAI Chat Model2, OpenAI Chat Model3 +1 more

Docs

Telegram

Used by: Send Success Message to Telegram

Docs

Multiple services required

This workflow needs 4 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~55 min
Score: 70/100
Conditional Logic
6 Integrations

When to Use This Workflow

Email Automation

Automate email responses, forwarding, or organization based on rules.

Handle routine email tasks automatically and focus on what matters.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "p7xESnT1xMZD2hRk",
  "meta": {
    "instanceId": "workflow-5c1b28ff",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:57.914389",
    "updatedAt": "2025-09-29T07:07:57.914409",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "🧠 Give Your AI Agent Chatbot Long Term Memory Tools Router",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
...

Workflow Details

Nodes
40
Trigger
Event
Source
community
Added
Sep 29, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition

Automated workflow: ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition. This workflow inte...

Executeworkflow
Http-request
Gmail
Google-docs
100 nodesEvent

Agent Workflow

Automated workflow: Agent Workflow. This workflow integrates 97 different services: vectorStoreInMemory, if, gumroadTrig...

Bitly
Dropbox
Gmail
Google-calendar
113 nodesEvent

✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition

Automated workflow: ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition. This workflow inte...

Executeworkflow
Http-request
Gmail
Google-docs
56 nodesEvent

🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting

Automated workflow: 🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting. This workflow integrates 22 different s...

Http-request
Executeworkflow
Readwritefile
Schedule
49 nodesEvent

Automated Research Report Generation with OpenAI, Wikipedia, Google Search, and Gmail/Telegram

Automated workflow: Automated Research Report Generation with OpenAI, Wikipedia, Google Search, and Gmail/Telegram. This...

Google-sheets
Http-request
Gmail
Telegram
26 nodesEvent

🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting

Automated workflow: 🤖🧑‍💻 AI Agent for Top n8n Creators Leaderboard Reporting. This workflow integrates 22 different s...

Http-request
Executeworkflow
Readwritefile
Schedule
49 nodesEvent