Description
Intelligent Telegram chatbot with DeepSeek AI & Google Docs memory β context-aware and personalized
π Stop robotic replies β this AI agent uses DeepSeek models to remember past chats, understand context, and provide tailored responses over time
π§ What Problem Does It Solve?
Most AI chatbots forget everything after each session. This workflow solves that by adding memory, context awareness, and multi-model capabilities using DeepSeek's latest reasoning and conversational engines.
It gives you a smarter chatbot that can:
πΉ Recall previous chats
πΉ Respond contextually
πΉ Understand intent over time
πΉ Scale across message types (text, audio, image)
βοΈ How It Works
π€ Listens to Telegram messages using a webhook
π§Ύ Validates user identity before processing
π Routes messages by type (text, audio, image)
πͺ Sends input to DeepSeek-V3 or DeepSeek-R1 based on use case
π Retrieves relevant memories from Google Docs
π Saves new memories after every meaningful interaction
π¬ Sends structured responses back via Telegram
β¨ Key Features
π‘ Telegram-based interface for easy chat access
π§ AI responses powered by DeepSeek-V3 (chat) and DeepSeek-R1 (reasoning)
ποΈ Google Docs used as long-term memory storage
π Memory-aware system prompt guides the agent behavior
π Maintains conversational context with session window buffer
β Built-in error messaging and user validation
πΈ Supports multiple media types: text, audio, and images
π§° What You Need
β
Telegram bot token and webhook URL
β
DeepSeek API key (free or paid)
β
Google Docs API access for storing memories
β
n8n hosted or self-hosted instance
π οΈ Setup Instructions
π Connect the workflow to your Telegram webhook
π Add credentials for DeepSeek API and Google Docs
βοΈ Choose between DeepSeek-V3 and DeepSeek-R1 for different AI tasks
π§ Use the system prompt to define agent tone, memory rules, and fallback behavior
π Set a dedicated Google Doc for memory storage
π§ͺ Test with one user before scaling to groups
π Integrations
Telegram
DeepSeek AI
Google Docs
n8n AI Agent (LangChain wrapper)