Create an automation
create_automationOn one site of the account, named in site. A new automation, off. Its trigger: newsletter.joined (name the newsletter), member.signed_up, label.added (name the label; a new name becomes one), membership.started or membership.canceled. A member enters when the trigger comes, one time only. Then add its emails and actions; the person reads them and turns it on, on its page — no tool turns one on.
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>",
"name": "<name>",
"trigger": "<trigger>"
},
"name": "create_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the person calls it: "Welcome surfers" | |
| site | Yes | The site to work on, as list_sites names it | |
| label | No | For label.added: the label's name | |
| trigger | Yes | ||
| conditions | No | Who of the trigger's members get it, every part a must; given, it replaces all the conditions; {} removes them | |
| newsletter | No | For newsletter.joined: the newsletter's name |