Built-in Commands
/status
Shows agent name, model, platform, and uptime.
/new
Resets the conversation session. Starts a fresh chat with the agent.
/stop
Cancels the current agent task. Requires run control to be enabled.
/help
Lists all available commands (built-in + custom) with descriptions.
Quick Start
Platform Examples
Command Details
/status
Shows current bot information:| Field | Description |
|---|---|
| Agent | Name of the AI agent |
| Model | LLM model being used |
| Platform | telegram, discord, slack, or whatsapp |
| Uptime | How long the bot has been running |
| Running | Whether the bot is currently active |
/new
Resets the conversation:- Clears all previous messages from the agent’s session
- Replies with a confirmation message
- Next message starts a completely new conversation
/stop
Cancels the current agent task immediately:- Immediately interrupts the current agent processing
- Clears any pending messages in the queue
- Replies with confirmation that the task was cancelled
- Next message starts a fresh task
The
/stop command requires Bot Run Control to be enabled. Set busy_mode to any value other than the default to enable this feature./help
Lists all available commands — both built-in and custom — with their descriptions.Custom Commands
Register your own commands usingregister_command(). Available on all bot adapters.
register_command() API
| Parameter | Type | Required | Description |
|---|---|---|---|
name | str | Yes | Command name without / prefix |
handler | Callable | Yes | Function to call. Receives a BotMessage argument |
description | str | No | Human-readable description (shown in /help) |
usage | str | No | Usage example string |
channels | list[str] | No | Restrict to specific platforms (e.g., ["telegram", "slack"]). Empty = all platforms |
list_commands()
Get all registered commands:Security & Allowlists
Built-in commands (/status, /new, /help) and custom commands registered via register_command() go through the same security pipeline as regular text messages. If allowed_users is set and the sender is not in it, the command is silently dropped with no reply. If unknown_user_policy="pair", unknown senders get the pairing flow before the command runs. If group_policy="mention_only", commands in groups still need a mention.
Python Usage
Start bots programmatically — built-in commands are always available:Bot tokens should never be hardcoded. Use environment variables or a
.env file to store them securely.
