Create automation
create_automationCreate a new automation. Pick an existing email template + sender by id (from email_templates / email_senders), or pass template_id:"custom" together with a custom payload to save a new named template inline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | Day of send: weekday name (weekly, e.g. "monday") or day-of-month (monthly, e.g. "2") | |
| name | Yes | Automation name | |
| hours | Yes | Hour of send (e.g. "9") | |
| custom | No | Required when template_id === "custom" — saved as a new named email template | |
| minutes | Yes | Minute of send (e.g. "00") | |
| timezone | Yes | IANA timezone (e.g. America/New_York) | |
| date_text | Yes | Date-range preset label for the report | |
| frequency | Yes | Send frequency | |
| parent_id | Yes | Parent report ID this automation belongs to (from list_reports) | |
| sender_id | Yes | Saved email sender id | |
| recipients | Yes | Recipient email addresses | |
| template_id | Yes | Saved email template id, or the literal "custom" to save a new template from the `custom` payload | |
| time_format | No | Meridiem for the send time |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The new automation — id, name, schedule, recipients and next_run_at. It is created active, so pause it if the user has not confirmed the first send. | |
| success | Yes | True when the call succeeded. A failure comes back as an error result instead. |