Description
Β Build an intelligent AI agent chatbot with session-based memory, long-term note retention, and real-time communicationβall inside Telegram. This n8n workflow connects OpenAI, DeepSeek, Google Docs, and Telegram for a seamless memory-enhanced chatbot experience.
π§ How It Works:
β π¬ Telegram Bot Integration β Handles real-time message input/output via n8nβs Telegram node β π€ AI Agent Pipeline β GPT-4o-mini manages general conversations; DeepSeek handles advanced reasoning β π Long-Term Memory Management β Uses Google Docs as a persistent vector-like storage system β π§Ύ Note Storage System β Separates structured note-taking from general memory logs β π§ Window Buffer Context β Tracks and maintains short-term memory for contextual responses
π It Automates:
β Processing user messages and routing through AI agents β Storing long-term memory logs with timestamps in Google Docs β Managing notes in a separate document for retrieval and editing β Injecting past memory context into each AI response β Updating Google Docs with the latest conversations and changes
π‘ Why Choose This Workflow:
β Create a memory-aware chatbot with persistent understanding β Store both general memory and structured notes over time β Modular design using GPT and DeepSeek for multi-model control β Integrated with Telegram for real-time user interaction β Fully no-code with Google Docs and n8n
π€ Who Is This For:
β Developers building personal or business assistant bots β Productivity users who want bots that remember past sessions β AI hobbyists experimenting with memory-driven agents β Telegram automation fans looking for intelligent, responsive bots β Knowledge managers who want AI to take & recall notes
π Integrations:
β Telegram Bot API (via n8n Telegram node) β OpenAI GPT-4o-mini (for lightweight reasoning) β DeepSeek-V3 Chat (for deeper, tool-augmented tasks) β Google Docs (for memory & note storage)
π§ Setup Instructions:
π± Set up Telegram Bot and connect via n8n's Telegram Trigger node π Add Google Docs credentials via n8n OAuth π Create two Docs: one for Memory Logs, one for Notes π€ Configure GPT-4o-mini and DeepSeek-V3 API keys π§ Add memory storage/retrieval logic with timestamps π€ Process incoming Telegram messages β Retrieve memory β Generate AI response β Save new memory
π Memory-Powered Conversations at Scale This intelligent chatbot goes beyond basic Q&A by remembering what matters. Whether you're chatting casually or offloading ideas as notes, this AI agent handles itβpersistently, intelligently, and in real-time on Telegram.
Link : https://lovable.dev/projects/247e16c7-5732-487f-b93b-ae336e203bc2













