Commands

Commands are reusable prompts — predefined messages that you write once and trigger repeatedly through cron jobs and webhooks. Instead of duplicating the same prompt across multiple triggers, you define it as a command and reference it wherever you need it.

Admin UI — Commands

Why commands exist

Imagine you have a daily report that needs to be generated every morning. The prompt is always the same: “Generate a summary of yesterday’s sales data, including total revenue, top products, and notable trends.” Without commands, you’d have to write this prompt into every cron job or webhook that triggers it. If you want to change the wording, you’d need to update it in multiple places.

With commands, you write the prompt once. Every cron job or webhook that uses it just references the command by ID. Change the prompt in one place, and all triggers use the updated version.

Creating a command

In the Admin UI, go to Commands and click New:

Admin UI — Edit Command dialog
FieldDescription
nameDisplay name — appears in cron and webhook selectors
descriptionOptional note about what this command does
promptThe text to send to the agent when the command is triggered
agentIdWhich agent (or flow) processes this command

The prompt is the message that gets sent to the agent as if a user had typed it. The agent receives this prompt, processes it using its LLM, system prompt, memory, and tools, then produces a response.

The agent field determines who handles the command. This can be a single agent or a flow. If it’s a flow, the prompt enters the pipeline and is processed by all agents in the flow.

Example commands

NameAgentPrompt
Daily Sales ReportAnalytics Agent“Generate a summary of yesterday’s sales. Include total revenue, top 5 products, and any anomalies.”
Security CheckSecurity Agent“Check for any failed login attempts, unusual network activity, or expired certificates in the last 24 hours.”
News DigestResearch Pipeline (flow)“Research and summarize the top 5 technology news stories from today.”
Health CheckDevOps Agent“Check the status of all monitored services and report any that are down or degraded.”

Using commands

Commands are used by two client types:

In cron jobs

A cron client runs a command on a schedule. You select the command and set the cron expression — the command fires automatically at the specified times. See Cron for details.

In webhooks (command mode)

A webhook client in command mode runs a predefined command when its endpoint is hit. The HTTP request body is ignored — the prompt always comes from the command. See Webhooks for details.

Commands are optional — you don’t need them if you only use the Voice UI, Telegram, or webhooks in passthrough mode. They become useful when you want to automate tasks that always use the same prompt.