Skip to main content
I

IvanCore

2
Workflows

Workflows by IvanCore

Workflow preview: Automated Telegram UserBot session monitoring & recovery with TelePilot
Free advanced

Automated Telegram UserBot session monitoring & recovery with TelePilot

![image.png](fileId:1786) **Disclaimer:** *This workflow contains community nodes that are only compatible with the self-hosted version of n8n.* **Important distinction:** This template manages **Telegram Copilot**'s UserBots (client accounts), not Telegram Bots. # UserBot vs. Bot: Key Differences ## 🔹 Telegram Copilot's UserBots - Authenticate as real user accounts (phone number required) - Can join groups/channels without "Bot" label - Subject to Telegram's client API limits - Require manual login (MFA supported) ## 🔹 Telegram Bots - Use @BotFather-created tokens - Limited to bot API functionality - Can't initiate chats with unbidden users - No phone number required This template solves the unique challenges of **UserBot** management through: # Core Functionality ## 🛡️ Session Reliability - Automatic crash recovery (5-step restart sequence) - Persistent session monitoring (checks every 6h) - Database cleanup via /clear command ## 📱 Multi-Device Support - Manages sessions independently from mobile clients - Tracks active devices via /stat command - Isolates session data per credential ## 🔔 Smart Notifications - Real-time alerts to admin chat - Detailed error context with authState snapshots - Success confirmations with session metadata # Setup Guide ## Prerequisites - Self-hosted n8n instance (community node required) - Valid Telegram account for UserBot - Telegram bot token for notifications - TelePilot credentials with api_id/api_hash ## Configuration Steps ### Credential Setup - Add TelePilot credentials in n8n - Configure Telegram bot token in notification nodes - Set admin chat ID for alerts ### Monitoring Customization - Adjust check frequency in Schedule Trigger - Modify alert thresholds in Filter nodes - Configure retry logic in recovery sequence ### Session Management - Test /start command flow - Verify /stat output format - Confirm notification delivery ## Workflow Customization ### Advanced Options - Add secondary notification channels (Email, Slack) - Implement escalating alert system - Integrate with monitoring dashboards - Customize recovery attempt limits ### Compliance Notes - UserBots must comply with Telegram's Terms of Service - Not intended for bulk messaging or spam - Recommended for legitimate automation use cases **Note:** UserBots must comply with Telegram ToS. Not for spam/mass messaging. **Why This Matters:** UserBots enable automation scenarios impossible with regular bots (e.g., group management as normal user, reacting as human account). This workflow keeps them reliably online 24/7.

I
IvanCore
DevOps
11 Jul 2025
636
0
Workflow preview: Multilingual voice & text Telegram bot with ElevenLabs TTS and LangChain agents
Free advanced

Multilingual voice & text Telegram bot with ElevenLabs TTS and LangChain agents

*This workflow contains community nodes that are only compatible with the self-hosted version of n8n.* # Telegram Voice AI Assistant This n8n template creates a **multimodal Telegram bot** that dynamically responds to users: - **Replies with voice** when receiving voice messages (using ElevenLabs TTS) - **Replies with text** for text-based queries - Supports **custom AI tools** (e.g., crypto APIs, databases, or custom functions) Built with **LangChain Agents**, it can integrate any external API or data source into conversations. ## Key Features 🎙️ **Smart Response Logic** - **Voice Query? → Voice Reply** 1. Transcribes audio via ElevenLabs STT 2. Processes with AI (Groq/Gemini) 3. Converts text response to natural speech (ElevenLabs TTS) - **Text Query? → Text Reply** Bypasses TTS/STT for faster responses 🛠️ **Extensible AI Tools** Add your own tools: - Database lookups - Weather/stock APIs - Custom Python functions - RAG (document retrieval) Supports **multi-step tool chaining** (e.g., "Get BTC price → analyze trends → summarize") 🌐 **Language & Context** - Auto-detects user language (via Telegram’s *language_code*) - Maintains **session memory** (remembers conversation history) ## Use Cases - **Voice-first customer support** - **Crypto/analytics assistants** (e.g., "What’s Ethereum’s current gas fee?") - **Multilingual FAQ bots** - **Educational tutors** (voice-interactive learning) ## Requirements - **Telegram Bot Token** - **ElevenLabs API Key** (For TTS/STT) - **Groq API Key** or **Google Gemini API Key** ## Customization Tips - **Change AI personality**: Modify the *systemMessage* in the Voice Assistant node - **Add more models**: Swap Groq/Gemini for OpenAI, Anthropic, etc. - **Extend functionality**: Add RAG (Retrieval-Augmented Generation) for document queries Take this template to create a **Siri-like AI assistant** for Telegram in minutes! 🚀

I
IvanCore
Support Chatbot
1 Jul 2025
2894
0