<aside> โœ…

Download the n8n Workflow Template

https://workflowsdiy.gumroad.com/l/Empower-Your-n8n-AI-Chatbot-with-Long-Term-Memory-and-Dynamic-Tool-Routing

</aside>

<aside> โœ…

n8n Community Template

https://n8n.io/workflows/3025-empower-your-ai-chatbot-with-long-term-memory-and-dynamic-tool-routing/

</aside>

image.png

Comprehensive Setup Guide

๐Ÿ“ Introduction

This guide provides detailed setup instructions for an n8n workflow that creates an AI agent with long-term memory capabilities. The workflow leverages OpenAI's language models, Google Docs for persistent storage, and offers multiple communication channels through Telegram and Gmail.

<aside> โžก๏ธ

By following this guide, you'll create an intelligent assistant that can:

๐Ÿ’พ Save important information for future reference

๐Ÿ” Retrieve memories when needed

๐Ÿ“ฒ Send memory summaries via Telegram or Gmail

๐Ÿงต Maintain context across conversations

</aside>

Let's get started with the step-by-step setup! ๐Ÿ

โœ… Prerequisites

Before beginning, ensure you have:

An n8n account

<aside> โœ…

https://n8n.io/

</aside>

OpenAI API credentials ๐Ÿ”‘