New: FlowLume Pro · version snapshots, handoff docs, full backups and more. One payment, yours for life. See Pro

🧠 Empower your AI chatbot with long-term memory and dynamic tool routing: n8n template

🧠 Empower your AI chatbot with long-term memory and dynamic tool routing is a free n8n workflow template by Joseph LePage with 22 nodes. It starts with the Execute Workflow Trigger node ("When Executed by Another Workflow") and uses Google Docs, Telegram, Gmail, OpenAI Chat Model and 3 more. You can paste it into your n8n editor in one click with FlowLume.

What this workflow does, step by step

  1. When Executed by Another Workflow (Execute Workflow Trigger node)
  2. Ⓜ️ When chat message received (Chat Trigger node)
  3. Memory Tool Router (Switch node)
  4. 🧠 AI Agent w/Long Term Memory (AI Agent node)
  5. Save Long Term Memories (Google Docs node)
  6. Retrieve Long Term Memories (Google Docs node)
  7. Retrieve Long Term Memories2 (Google Docs node)
  8. Retrieve Long Term Memories3 (Google Docs node)
  9. 🧠Save Memories (Call n8n Workflow Tool node)
  10. 🔎Retrieve Memories (Call n8n Workflow Tool node)
  11. 🤖OpenAI Chat Model (OpenAI Chat Model node)
  12. 🤯Window Buffer Memory (Simple Memory node)
  13. 📫Send Memories to Gmail (Call n8n Workflow Tool node)
  14. 📤Send Memories to Telegram (Call n8n Workflow Tool node)

The full workflow has 22 nodes; this list shows the main path from the trigger.

What you need before you paste it

Connect these accounts in n8n

  • Gmail (OAuth2) · used by Email Workflow Stats
  • Google Docs (OAuth2) · used by Save Long Term Memories, Retrieve Long Term Memories3, Retrieve Long Term Memories, Retrieve Long Term Memories2
  • OpenAI · used by OpenAI Chat Model2, OpenAI Chat Model3, 🤖OpenAI Chat Model
  • Telegram · used by Send Success Message to Telegram

Checked with FlowLume's setup checklist on 2026-11-25. In the extension, FlowLume Pro shows this checklist for any template before you paste.

Template facts

Author
Joseph LePage (verified n8n creator)
Nodes
22
Apps
Google Docs, Telegram, Gmail, OpenAI Chat Model, AI Agent, Chat Trigger, Basic LLM Chain
Uses AI
Yes (n8n AI nodes)
Categories
Support Chatbot, AI Chatbot
Views on n8n.io
37,736
Published
27 February 2025
Price
Free

How to paste it with FlowLume

  1. Install FlowLume. Add the free FlowLume extension to Google Chrome from the Chrome Web Store.
  2. Open n8n. Open a new or existing workflow in your n8n editor (n8n Cloud or self-hosted).
  3. Find the template. Click the FlowLume button at the bottom right and search for "🧠 Empower your AI chatbot with long-term memory and dynamic tool routing".
  4. Paste it. Click Paste to n8n. All nodes and connections land on your canvas.
  5. Connect your accounts. Add your own credentials for Gmail (OAuth2), Google Docs (OAuth2), OpenAI, Telegram, then run the workflow.
Add FlowLume to Chrome, free

Similar n8n templates

Template "🧠 Empower your AI chatbot with long-term memory and dynamic tool routing" by Joseph LePage, published on n8n.io. The template and its description belong to its author; this page only summarises its structure. FlowLume is an independent tool by DrakenLume and is not affiliated with n8n GmbH. n8n is a trademark of n8n GmbH.