# Triggers and channels Triggers and channels message an agent from outside, waking it. Each delivery counts as one inbound message for the [platform fee](managed-agents.html). ## Webhooks and schedules ```sh harebox trigger new AGENT_ID --kind webhook --prompt "A new order arrived:" harebox trigger new AGENT_ID --kind schedule --every-seconds 86400 --prompt "Send me the daily summary." ``` A webhook trigger prints its `url` and a `secret`, shown once. Post to the URL with the secret in `X-HareBox-Token` (or `?token=`): the trigger's prompt and the request body go to the agent as one message. A wrong secret gets `404`, as a missing trigger would. A schedule runs on HareBox's clock, not inside the sleeping machine, every 60 seconds to 31 days. ## Channels ```sh harebox channel connect AGENT_ID --kind telegram ``` A channel gives the agent an inbound URL and secret for Slack, Telegram, Discord or email. A bot relay posts `{"text": ...}` to it. **Partly built:** inbound delivery works; connecting the bots themselves needs registered bot accounts, which aren't connected yet.