Channels Overview
Connect Astonish to external messaging platforms
Channels let Astonish communicate through external messaging platforms. Instead of using the CLI or Studio, you can interact with your agent through Telegram, Email, and other services.
Architecture
Section titled “Architecture”Channels use a plugin-based architecture. Each channel is an adapter that translates between the platform’s protocol and Astonish’s internal chat system. All channels share the same session system, memory, and tools available in CLI and Studio chat.
How Channels Work
Section titled “How Channels Work”- The daemon starts channel listeners based on your configuration.
- Listeners poll for new messages (Telegram uses long polling, Email uses IMAP polling).
- Incoming messages are routed to the AI agent.
- Agent responses are formatted and delivered back through the channel.
Channels require the daemon to be running:
astonish daemon startConfiguration
Section titled “Configuration”The easiest way to set up a channel is the interactive CLI:
astonish channels setup telegramastonish channels setup emailYou can also configure channels through Studio Settings > Channels.
The top-level channels.enabled flag acts as a master switch. Individual channels have their own enabled flag. For the full configuration schema, see the Config File Reference.
Channel Management CLI
Section titled “Channel Management CLI”| Command | Description |
|---|---|
astonish channels status | Check status of all channels |
astonish channels setup <channel> | Interactive setup for a channel |
astonish channels disable <channel> | Disable a channel |
Scheduled Task Delivery
Section titled “Scheduled Task Delivery”Scheduled task results can be broadcast to channels. For example, a daily report can be configured to send its output to Telegram or Email automatically.
Available Channels
Section titled “Available Channels”| Channel | Status |
|---|---|
| Telegram | Available |
| Available | |
| Slack | Planned |
| Discord | Planned |
| Planned | |
| Microsoft Teams | Planned |