🤖🧠 AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram

Go to Workflow
51,670 views
Built by Joseph LePage Joseph LePage
Created on June 06, 2026

Description

This workflow template creates an AI agent chatbot with long-term memory and note storage using Google Docs and Telegram integration.

Google Docs Integration 📄
n8n Google Docs Node Setup
Google Credentials

Telegram Integration 💬
Telegram Setup

Core Features 🌟

AI Agent Integration 🤖
Implements a sophisticated AI agent with memory management capabilities
Uses GPT-4o-mini and DeepSeek models for intelligent conversation handling
Maintains context awareness through session management

Memory System 🧠
Long-term memory storage using Google Docs
Separate note storage system for specific information
Window buffer memory for maintaining conversation context
Intelligent memory retrieval and storage mechanisms

Communication Interface 💬
Telegram integration for message handling
Real-time message processing and response generation

Technical Components 🔧

Memory Architecture 📚
Dual storage system separating memories from notes
Automated memory retrieval before each interaction
Structured memory saving with timestamps

AI Models 🤖
Primary GPT-4o-mini mini model for general interactions
DeepSeek-V3 Chat for specialized processing
Custom agent system with tool integration

Storage Integration 💾
Google Docs integration for persistent storage
Separate document management for memories and notes
Automated document updates and retrievals

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Docs
n8n-nodes-base.googleDocs
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Telegram
n8n-nodes-base.telegram