Quick Start
Create Multiple Telegram Bots
Create three separate bots with @BotFather:Save each token separately - never reuse tokens between bots.
How Multi-Channel Works
Routing Logic
Each channel routes to its specialized agent:| Channel | Bot Username | Routes To | Specialization |
|---|---|---|---|
telegram_cfo | @your_company_cfo_bot | cfo agent | Financial analysis, budgeting, reporting |
telegram_ops | @your_company_ops_bot | ops agent | Process optimization, workflows |
telegram_content | @your_company_content_bot | content agent | Marketing, copywriting, brand |
Knowledge Architecture
Dual-Brain RAG Pattern
Each agent accesses both shared and private knowledge:Shared Knowledge Base
Shared Knowledge Base
Finance Private Knowledge
Finance Private Knowledge
CFO agent exclusive access:Only accessible via CFO bot (@your_company_cfo_bot).
Operations Private Knowledge
Operations Private Knowledge
Ops agent exclusive access:Only accessible via Ops bot (@your_company_ops_bot).
Content Private Knowledge
Content Private Knowledge
Content agent exclusive access:Only accessible via Content bot (@your_company_content_bot).
Golden Rules for Workforce Deployment
Single Gateway Instance
Critical: Run only one gateway process per machine. Why: Multiple gateways cause conflicts:- Both bind to port 8765 (port collision)
- Both poll same Telegram tokens (409 Conflict errors)
- Session state becomes inconsistent
- Bot stops responding mid-conversation
Unique Tokens per Channel
Each Telegram channel requires its own bot:Response Latency Expectations
Normal behavior: First reply takes 20-30 seconds for RAG queries. Why the delay:- Knowledge base search (5-8 seconds)
- Context preparation (2-3 seconds)
- LLM processing (10-15 seconds)
- Response formatting (1-2 seconds)
- Typing indicator disappears after ~5 seconds (known limitation)
- Do NOT send duplicate messages during processing
- Do NOT restart gateway if response is delayed
- Typing indicator renewal fix is pending in PraisonAI
Advanced Configuration
User Access Control
Configure per-channel user allowlists:Custom Knowledge Tools
Configure specialized search tools per agent:Performance Tuning
Optimize for multi-channel deployment:Monitoring and Troubleshooting
Health Check Interpretation
Comprehensive health monitoring:Common Multi-Channel Issues
Only 1 of 3 bots responding
Only 1 of 3 bots responding
Symptoms: One bot works, others silentCauses:
- Missing environment variables for non-working bots
- Incorrect token in .env file
- BotFather token typos
Bots start then stop (409 Conflict)
Bots start then stop (409 Conflict)
Symptoms:
- All bots work initially
- Random bots stop responding
- Logs show:
Conflict: terminated by other getUpdates request
Knowledge search not working
Knowledge search not working
Symptoms: Agents respond but can’t find company informationDebugging:
Windows-specific encoding errors
Windows-specific encoding errors
Symptoms:Solution:
Log Analysis
Monitor gateway logs for multi-channel issues:Best Practices
Structure bot usernames consistently
Structure bot usernames consistently
Use clear naming conventions:This helps users understand which bot to contact for specific needs.
Set clear bot descriptions
Set clear bot descriptions
Configure helpful bot descriptions in BotFather:
Implement user onboarding
Implement user onboarding
Configure welcome messages for new users:
Monitor resource usage
Monitor resource usage
Track performance for 3-channel deployment:
Migration from Hermes
Configuration Mapping
If migrating from Hermes agent setup:| Hermes Component | PraisonAI Equivalent |
|---|---|
| Hermes Gateway | PraisonAI Gateway (port 8765) |
| Agent definitions | agents: section in gateway.yaml |
| Channel configs | channels: section in gateway.yaml |
| Knowledge bases | File-based knowledge under ~/.praisonai/knowledge/ |
| Tool definitions | Built-in tools: search_knowledge, web search, etc. |
Feature Parity
PraisonAI Gateway provides equivalent functionality: ✅ Supported:- Multi-channel deployment (3+ bots)
- Specialized agent routing
- Shared + private knowledge bases
- WebSocket coordination
- Health monitoring
- User access control
- Knowledge search uses different indexing
- Tool system has different syntax
- Session management works differently
- Real-time typing indicator renewal
- Advanced analytics dashboard
- Multi-tenancy features
Related
Gateway Overview
Core gateway concepts
Windows Deployment
Windows-specific setup guide

