Channels Overview
Channels are interfaces that allow your agents to communicate through different platforms.
Available Channels
| Channel | Status | Features |
|---|---|---|
| Web UI | ✅ Stable | Full dashboard experience |
| Terminal (TUI) | ✅ Stable | Command-line interface |
| Telegram | ✅ Stable | Bot, voice messages, commands |
| Discord | ✅ Stable | Bot, mentions, embeds |
| Slack | 🟡 Beta | App, mentions, blocks |
| 🟡 Beta | Bridge, basic messaging |
Architecture
┌──────────────────────┐
│ moxxy Gateway │
└──────────────────────┘
│
┌─────────────────────┼─────────────────────┐
│ │ │
▼ ▼ ▼
┌───────────────┐ ┌───────────────────┐ ┌──────────────┐
│ Web UI │ │ Messaging Bots │ │ TUI │
│ (Dashboard) │ │ TG/DC/SLACK/WA │ │ (Terminal) │
└───────────────┘ └───────────────────┘ └──────────────┘
│ │ │
└─────────────────────┼─────────────────────┘
│
▼
┌──────────────────┐
│ Agent Pool │
│ (Brain/Skills) │
└──────────────────┘Channel Features
Web UI
The primary interface for interacting with agents.
Features:
- Real-time chat with streaming
- Skills management
- Memory viewer
- Vault management
- Channel configuration
- Schedule management
Access:
bash
moxxy webTerminal (TUI)
Command-line interface for terminal users.
Features:
- Interactive chat
- Message history
- Slash commands
- Agent switching
Access:
bash
moxxy tuiTelegram
Connect your agent as a Telegram bot.
Features:
- Full bot support
- Voice message transcription
- Bot commands (/start, /skills, /new)
- Pairing mechanism for security
Setup:
bash
moxxy channel telegram --agent defaultDiscord
Connect your agent as a Discord bot.
Features:
- Server integration
- Mention-based triggering
- Rich embeds
- Channel support
Setup:
bash
moxxy channel discord --agent defaultSlack
Connect your agent as a Slack app.
Features:
- Workspace integration
- App mentions
- Block kit support
- DM support
Setup:
bash
moxxy channel slack --agent defaultWhatsApp
Connect via WhatsApp bridge.
Features:
- Personal number integration
- Direct messaging
- Group support
Setup:
bash
moxxy channel whatsapp --agent defaultChannel Configuration
Multi-Channel Agents
An agent can be connected to multiple channels:
bash
# Connect to Telegram
moxxy channel telegram --agent assistant
# Also connect to Discord
moxxy channel discord --agent assistant
# Also connect to Slack
moxxy channel slack --agent assistantChannel-Specific Agents
Different agents for different channels:
bash
# Telegram customer support
moxxy channel telegram --agent support
# Discord community bot
moxxy channel discord --agent community
# Slack team assistant
moxxy channel slack --agent team-assistantChannel Credentials
Store channel tokens in the vault:
bash
# Telegram
moxxy run --agent default --prompt "Store '123456:ABC' in vault as telegram_token"
# Discord
moxxy run --agent default --prompt "Store 'bot_token' in vault as discord_token"
# Slack
moxxy run --agent default --prompt "Store 'xoxb-xxx' in vault as slack_bot_token"Message Flow
Incoming Messages
User Message → Channel → Gateway → Agent Brain → Response → Channel → User- User sends message on channel
- Channel adapter receives and formats
- Gateway routes to appropriate agent
- Brain processes with ReAct loop
- Response sent back to channel
- Channel adapter formats and delivers
Rate Limiting
Channels implement rate limiting:
| Channel | Limit | Strategy |
|---|---|---|
| Telegram | 30/sec | Token bucket |
| Discord | 50/sec | Token bucket |
| Slack | 1/sec per channel | Queue |
| Varies | Exponential backoff |
Channel Commands
Telegram Bot Commands
| Command | Description |
|---|---|
/start | Pair your account with the bot |
/skills | List available skills |
/new | Start a fresh session |
/help | Show help message |
Discord
- Mention the bot to trigger:
@Moxxy Hello! - Bot responds in the same channel
Slack
- Mention the app:
@Moxxy help me with this - DM the app directly
Troubleshooting
Channel Not Responding
Check gateway status:
bashmoxxy gateway statusCheck channel logs:
bashmoxxy logs | grep -i telegramVerify credentials in vault
Connection Lost
- Check network connectivity
- Verify API token is valid
- Restart gateway:bash
moxxy gateway restart
Rate Limited
- Reduce message frequency
- Implement queuing
- Check channel-specific limits
Best Practices
Channel Selection
- Web UI - Development, administration
- TUI - Terminal users, quick access
- Telegram - Personal use, mobile access
- Discord - Community management
- Slack - Team collaboration
- WhatsApp - Direct customer communication
Security
- Use pairing for Telegram
- Limit mentions in Discord/Slack
- Monitor usage via logs
- Rotate tokens regularly
- Use separate agents for different access levels
Performance
- One channel per agent for isolation
- Monitor rate limits
- Queue high-volume messages
- Use webhooks for integrations