Automation
Automation
Run an agent in the background, on demand or on a schedule, and check each run later.
Run your agent with no user waiting: nightly reports, inbox triage, data refreshes. You save the job once as a task, start it from your code or on a schedule, and read each run's result when it is done.
Explore automation
Tasks
Save a job for an agent to run in the background.
Task runs
Start a run, check its status, read the result, or cancel it.
Schedules
Run a task once at a set time, every few minutes, or on a cron.
Choose how to start work
| You want to | Use |
|---|---|
| Start work from your code, without duplicates | An on-demand task and a task run with an idempotency key |
| Run at one known time | A one-time schedule |
| Repeat every few minutes or hours | An interval schedule |
| Follow the calendar, such as weekdays at 9:00 | A cron schedule |
Each run that executes gets its own fresh session, so you can read its transcript and any artifacts it published.
Next
- Create your first task.
- Limits and reliability for retries and cancellation.