← ClaudeAtlas

telegram-agent-routerlisted

Multi-agent Telegram bot architecture with PostgreSQL-native state management. 10+ specialized agents, intent-based routing, persistent cross-session memory, and production-grade conversation state machines. Activate when building or debugging Telegram bots with multiple agents, routing logic, conversation context, or persistent memory. Trigger phrases: "telegram bot agents", "multi-agent telegram", "route messages to agents", "telegram bot router", "conversation state telegram", "persistent memory bot", "telegram intent classification", "agent handoff telegram", "telegram session state", "specialize telegram bot", "telegram webhook architecture".
Thanane15M/telegram-agent-router · ★ 0 · AI & Automation · score 72
Install: claude install-skill Thanane15M/telegram-agent-router
# Telegram Agent Router — Multi-Agent Architecture > **Core thesis**: A Telegram bot is not a chatbot. It is a routing layer > over a team of specialists, backed by a PostgreSQL state machine. > Every message is a dispatch decision. Every conversation is a session. > Every session has memory. This skill documents the architecture, patterns, and production code for building Telegram bots that coordinate multiple specialized AI agents with PostgreSQL-native state, intent-based routing, and persistent cross-session memory. **Targets production multi-agent Telegram deployments with durable PostgreSQL state.** --- ## ARCHITECTURE OVERVIEW ``` User │ ▼ HTTPS (Telegram sends to your endpoint) ┌────────────────────────────────────────────┐ │ WEBHOOK RECEIVER │ │ /telegram/webhook │ │ Validates token · Deduplicates · Queues │ └──────────────┬─────────────────────────────┘ │ ▼ ┌────────────────────────────────────────────┐ │ INTENT CLASSIFIER │ │ command → direct dispatch │ │ free text → LLM classification │ │ ambiguous → confidence check │ └──────────────┬─────────────────────────────┘ │ ▼ ┌────────────────────────────────────────────┐ │ ROUTER │ │ Loads session state from PostgreSQL │ │ Selects target agent │ │ Injects memory context