Switch an automation on or off
set_automation_enabledSwitch one built-in automation on or off (keys from get_automation_overview). Turning one ON sends nothing at that moment, but from then on it automatically EMAILS the site's real customers whenever its trigger happens (a completed booking, a new lead, a paid order…) — say so plainly to the user before asking them to approve. Turning one off stops further sends. For a custom multi-step sequence use draft_journey.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true = on (starts emailing matching customers), false = off | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| automation | Yes | Which automation |