> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateRoutine

> Schedule recurring or one-off work for a model or agent.

# CreateRoutine

Schedule recurring or one-off work for a model or agent. To schedule yourself, use your persona/bot ID as the agent target; to delegate, select an accessible agent from ListAgents using its bot.botId. Routines run as the authenticated user after this session ends, using the selected agent’s tools and configuration. Use Once with a future RFC3339 timestamp for a single run; use Cron for repetition. Returns the saved routine ID and next firing. Do not use reminders for work that should execute. Do not automatically create a new routine on every run of an existing routine.

## Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `configuration` | RoutineConfiguration | Yes | Complete user-editable configuration, independent of execution bookkeeping. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.