Skip to content
FlowHubFluxonLab
A
AI Automationfree

πŸ€–πŸ§  AI Agent Chatbot + LONG TERM Memory + Note Storage + Telegram

by Joseph LePageadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentGoogle DocsGoogle DocsOpenAI Chat ModelOpenAI Chat ModelSSimple MemoryTelegramTelegram
Share Post Share
ChWhen chat message receivedWhen chat messa…gpt-4o-miniSeChat ResponseMBWindow Buffer MemoryWindow Buffer M…GDSave Long Term MemoriesSave Long Term …Retrieve Long Term MemoriesRetrieve Long T…Telegram ResponseTelegram Respon…DeepSeek-V3 ChatAgAI Tools AgentGDSave NotesRetrieve NotesAgAggregateMeMerge123456789101112
1/5
FLOWS
STEPS Β· 12
Starts from a chat message

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

Tags

n8nreference-onlyagentgoogle-docslm-chat-open-aimemory-buffer-windowtelegram
Connects
AAI AgentgoogledocsGoogle DocsopenaichatmodelOpenAI Chat ModelSSimple MemorytelegramTelegram
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes13
AddedFeb 9, 2025
AopenaichatmodelS
free

Run a Telegram voice and chat assistant with OpenAI, Gmail, Calendar, and Notion

Quick overview This workflow turns a Telegram bot into a personal assistant that understands text or voice notes (transcribed with OpenAI), can read Gmail and Google Calendar, look up Notion tasks and contacts, and can draft and send emails with an approval step in Telegram. How it works Triggers when a new Telegram message arrives. Loads assistant settings (name, OpenAI model, languages, memory window) and checks whether the message is a voice note or plain text. If it is a voice note, downloads the audio from Telegram and transcribes it with OpenAI; otherwise it uses the message text as the user input. Sends the user input to an OpenAI-powered agent that keeps short-term chat memory and decides whether to call Gmail, Google Calendar, or Notion tools to answer the request. If the agent decides to send an email via Gmail, it asks for explicit approval in Telegram before proceeding. Sends the agent’s final response back to the user in Telegram. Setup Create a Telegram bot with @BotFather, add your Telegram credentials in n8n, and start a chat with the bot so it can reply to you. Add an OpenAI API credential and set the desired chat model and transcription language in the Configurati

by Dr. Firas
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI agent chat

This workflow employs OpenAI's language models and SerpAPI to create a responsive, intelligent conversational agent. It comes equipped with manual chat triggers and memory buffer capabilities to ensure seamless interactions. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team