Create an AI Routine
Create a new AI Routine that runs a saved prompt on a schedule and delivers the AI response through email or Slack. To run a routine when a condition is met, provide a condition in the request body.
Each scheduled run executes once using the routine owner’s permissions, and every recipient receives the same result.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Query Parameters
Organization API key required. Target user membership ID.
Body
The UUID of the model the prompt runs against. Must be a shared model, or a shared-extension model usable as a workbook base.
"770e8400-e29b-41d4-a716-446655440002"
Customer-visible name of the routine. Used as the email subject for email destinations, and shown on Slack deliveries.
1 - 512"Weekly user signups"
Natural language prompt Omni runs on each scheduled run. Run a skill as part of the routine by including a skill's /identifier, which will resolve as the routine owner when the routine fires.
1"How many users signed up last week?"
Six-field cron expression (minute, hour, day-of-month, month, day-of-week, year; use ? for an unspecified day field).
Minimum frequency is once per hour; contact Omni support if you need more frequent scheduling.
1"0 9 ? * MON *"
IANA timezone identifier used to evaluate the schedule.
"America/New_York"
Single delivery destination for the routine — email or Slack. To send results to multiple destinations, create one routine per destination.
- Option 1
- Option 2
Branch of the shared model the prompt runs against, or null.
Optional human-readable notes about the routine. Display-only — never used as model input.
2000"Weekly signups summary for the growth team."
Topic name to scope query generation. If omitted, the AI picks the best topic.
256"users"
Delivers only when this condition is met. Omni authors and verifies a semantic query from the condition text before creating the routine.
Omit for a routine that delivers on every scheduled run.

