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

# Automations

> Run a defined Struct Agent task on a schedule and inspect its results.

Configure recurring Struct Agent work only when it has been requested, such as an on-call handoff or alert digest. Inspect existing schedules, choose the intended delivery destination and verify the saved task.

## Inspect existing schedules

```bash theme={null}
struct automations list --json
struct automations presets --json
```

Read a matching automation with `struct automations show AUTOMATION_ID --json`. Update it rather than creating a duplicate.

## Create the requested task

For an explicitly requested weekly alert digest:

```bash theme={null}
struct automations create --title "Weekly alerts" --preset alert_digest --deliver-slack '#eng-oncall' --weekly mon@09:00 --tz America/New_York --json
```

Replace the example destination, time and timezone with the person's choices. Use `--instructions-file task.md` for a custom task. Source and delivery are separate: `--source slack:CHANNEL` limits its source, while `--all-sources` spans connected sources. Use `--help` for email and other scheduling options.

Any workspace member can create an automation when the plan allows it. Public Slack channels can be joined during setup; private channels require an invitation. New or changed cron schedules must be at least an hour apart.

## Verify the next run and result

```bash theme={null}
struct automations show AUTOMATION_ID --json
struct automations runs AUTOMATION_ID --json
```

Check the next run, timezone, instructions and recipients. `struct automations run AUTOMATION_ID` runs immediately and can send messages and use credits; do it only when the person requested a test run. Inspect the result and actual delivery independently.

If the Slack delivery channel becomes unavailable, Struct skips the run without charging credits. After three consecutive delivery skips it disables the automation and emails its creator. Correct access and verify the schedule before re-enabling.


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