Skip to content
FlowHubFluxonLab
A
AI Automationfree

🐋🤖 DeepSeek AI Agent + Telegram + LONG TERM Memory 🧠

by Joseph LePageadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentGoogle DocsGoogle DocsOpenAI Chat ModelOpenAI Chat ModelSSimple MemoryTelegramTelegram
Share Post Share
IfCheck User & Chat IDCheck User & Ch…Error messageWeListen for Telegram EventsListen for Tele…SeValidationSwMessage RouterAgAI AgentMeMergeMBWindow Buffer MemoryWindow Buffer M…ChWhen chat message receivedWhen chat messa…Telegram ResponseTelegram Respon…GDSave Long Term MemoriesSave Long Term …Retrieve Long Term MemoriesRetrieve Long T…Response Error messageResponse Error …DeepSeek-R1 ReasoningDeepSeek-R1 Rea…DeepSeek-V3 Chat12345678910111213
1/5
FLOWS
STEPS · 13
Starts on an incoming request

This n8n workflow template is designed to integrate a DeepSeek AI agent with Telegram, incorporating long-term memory capabilities for personalized and context-aware responses. Here's a detailed breakdown: Core Features Telegram Integration Uses a webhook to receive messages from Telegram users. Validates user identity and message content before processing. AI-Powered Responses Employs DeepSeek's AI models for conversational interactions. Includes memory capabilities to personalize responses based on past interactions. Error Handling Sends an error message if the input cannot be processed. Model Options 🧠 DeepSeek-V3 Chat**: Handles general conversational tasks. DeepSeek-R1 Reasoning**: Provides advanced reasoning capabilities for complex queries. Memory Buffer Window**: Maintains session context for ongoing conversations. Quick Setup 🛠️ Telegram Webhook Configuration Set up a webhook using the Telegram Bot API: https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to} Replace {my_bot_token} with your bot's token and {url_to_send_updates_to} with your n8n webhook URL.

Tags

n8nreference-onlyagentgoogle-docslm-chat-open-aimemory-buffer-windowtelegram
Connects
AAI AgentgoogledocsGoogle DocsopenaichatmodelOpenAI Chat ModelSSimple MemorytelegramTelegram
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes15
AddedFeb 8, 2025

Related workflows

See all AI Automation
Acalculatoropenaichatmodel
free

Run a Telegram voice assistant with OpenAI GPT-5 Mini and Google Calendar

Quick overview This workflow turns a Telegram bot into a personal assistant that accepts text or voice notes, transcribes audio with OpenAI, uses a memory-enabled AI agent for replies and calculations, and creates Google Calendar reminder events from natural-language requests. How it works Triggers whenever a new Telegram message is received by your bot. Routes the message based on type, sending text directly to the assistant, voice notes to transcription, and other message types to a fallback reply. For voice notes, downloads the audio from Telegram and transcribes it to text using OpenAI. Sends the user’s text (typed or transcribed) to an OpenAI chat model powered agent that remembers the last 15 messages per chat and can use a calculator tool. When the user asks for a reminder or event, the agent creates a Google Calendar event with AI-generated title and start/end times. Sends the agent’s final response back to the originating Telegram chat. Setup Create a Telegram bot with @BotFather, add a Telegram credential in n8n, and enable updates for the Telegram Trigger. Add an OpenAI credential with access to the chat model and audio transcription used in the workflow. Add a Google Ca

by Manik Chandra Dhor
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
Agmailopenaichatmodeltelegram
free

Send daily AI news digests from RSS feeds with OpenAI, Telegram and Gmail

Quick overview This workflow runs every morning at 8 AM, pulls articles from multiple RSS feeds, deduplicates and trims the list, uses OpenAI (GPT-5 Mini) to write a short plain-text news digest, and delivers the same digest to a Telegram chat and a Gmail inbox. How it works Runs daily at 8:00 AM on a schedule. Splits your configured RSS feed URL list into individual feeds and fetches the latest articles from each one, continuing even if a feed fails. Removes duplicate articles by link, keeps only the newest items up to your maxArticles limit, and trims each item to title, link, publish date, and a short snippet. Combines all cleaned articles into a single JSON list and sends it to OpenAI (GPT-5 Mini) to select 5–8 top stories and generate a single plain-text digest under 3,500 characters. Sends the generated digest to your specified Telegram chat. Emails the same digest as a plain-text message through Gmail. Setup Add an OpenAI credential and ensure the GPT-5 Mini model is available in your account. Create a Telegram bot with @BotFather, add the Telegram credential in n8n, and set your target telegramChatId (for example by using @get_id_bot). Connect a Gmail account in n8n and set

by Manik Chandra Dhor