Skip to main content

Automation Commands

The omni automations command group manages event-driven automations. Automations listen for trigger events (like incoming messages), evaluate conditions, and execute actions (webhooks, agent calls, message sends).

omni automations list

List all automations.

omni automations get

Get full details of an automation.

omni automations create

Create a new automation.

Action Types

Examples

omni automations update

Update an existing automation’s metadata.

omni automations delete

Delete an automation permanently.

omni automations enable

Enable a disabled automation.

omni automations disable

Disable an automation without deleting it.

omni automations test

Test an automation with a mock event. Evaluates conditions and simulates the action without actually executing it.

omni automations execute

Execute an automation with a provided event. Unlike test, this actually runs the action.
execute runs the real action (sends messages, calls webhooks, invokes agents). Use test first to verify conditions match as expected.

omni automations logs

View execution logs for an automation.

Trigger reliability

Each registered trigger event type (e.g. message.received, chat.idle_timeout, chat.archived, handoff, follow_up.*) is backed by a durable NATS consumer named automation-engine-<eventType>. Durable consumers persist across restarts and survive arbitrary idle windows, so low-frequency triggers fire reliably even if no event arrives for hours.
Older builds (pre-2.260418.1) used ephemeral consumers that the NATS server garbage-collected after 5 seconds of idle. The for-await loop exited silently and every subsequent publish was accepted by the stream but delivered to nobody. If you upgraded from before 2.260418.1, low-frequency automations now actually run — review your action wiring before re-enabling chat.idle_timeout, chat.archived, handoff, and follow_up.* automations.
Durable names are sanitised to NATS-safe characters; if you create a custom trigger event type with unusual characters, the engine still produces a stable durable name.