create_automation
Create an automation for a sending domain that runs when a specified event occurs, with optional inline steps and connections.
Instructions
Create an automation triggered by an event (POST /automations). Every automation belongs to one sending domain — only send_event calls with the same domain trigger it. Optionally pass an inline step graph (steps + connections).
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": {
"name": "<name>",
"domain": "<domain>"
},
"name": "create_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Automation name. | |
| steps | No | Optional inline steps; each { key?, type, config? }. | |
| domain | Yes | The sending domain this automation belongs to (one of the account's domains, e.g. 'yourdomain.com'). Required. | |
| status | No | Initial status (default 'disabled'). | |
| trigger | No | The event that starts a run: 'contact.created', an engagement event ('email.opened' | 'email.clicked' | 'email.replied' | 'email.bounced' | 'email.delivered'), or any custom event name (usually given as a steps[0] trigger step instead). | |
| connections | No | Optional typed edges between step keys; each { from, to, type? }. |