Add an email to an automation
add_automation_emailOn one site of the account, named in site. An email at the end of the automation: a new one from a title and Markdown (a post of kind email, never on the site), or a post that exists by its post_id (a draft, or one that went out), which the automation sends and never copies. It goes its wait after the step before. edit_post changes a new email later.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"automation": "<automation>"
},
"name": "add_automation_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site to work on, as list_sites names it | |
| title | No | A new email's subject line | |
| post_id | No | Instead: a post that exists, by its id | |
| markdown | No | A new email's body | |
| wait_unit | No | minutes, hours or days; days when left out | |
| automation | Yes | The automation's id, or its name in any case | |
| wait_amount | No | How long it waits after the step before it (the first step: after the trigger). Left out: at once for the first step, a day for the others |