Skip to main content
Channels let ZeroClaw communicate through any messaging platform. Implement the Channel trait, register it, and your agent works everywhere.

Overview

Channels implement the Channel trait, which defines how messages are sent, received, and health-checked:

Step-by-Step Guide

Complete Example

Here’s the full implementation from examples/custom_channel.rs:

Advanced Features

Webhook-Based Channels

For platforms that support webhooks, implement webhook handlers instead of long-polling:

Message Threading

Support threaded conversations:

Rich Content

Handle images, files, and other media:

Best Practices

Handle network failures gracefully:
Always validate senders:
Respect API rate limits:
Use wiremock or similar for testing:

Next Steps

Gateway Setup

Configure webhook endpoints for your channel

Creating Tools

Give your agent new capabilities