create_automation_draft
Creates a switched-off automation draft named [AI draft], letting account owners review and enable it before anything is sent.
Instructions
Requires an Advance plan key. Creates an automation as a DRAFT: saved switched OFF and named "[AI draft] ...". Nothing is sent until the account owner reviews it and turns it on in the WALoops app (Automations page). Tell the user this.
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>",
"app_key": "<app_key>",
"event_key": "<event_key>"
},
"name": "create_automation_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| stage | No | ||
| app_key | Yes | App key from list_connected_apps. | |
| event_key | Yes | Event key from list_connected_apps. | |
| conditions | No | ||
| action_type | No | ||
| instance_id | No | instance_id from list_connected_apps; needed when the account has more than one store of that app. | |
| template_id | No | WALoops template id from list_templates. | |
| action_config | No | ||
| field_mapping | No | Template variable number to event field path. | |
| schedule_type | No | ||
| action_app_key | No | ||
| recipient_mode | No | ||
| condition_match | No | ||
| recipient_phone | No | ||
| action_instance_id | No | Action app instance_id from list_connected_apps; needed when there are multiple stores. | |
| schedule_delay_unit | No | ||
| schedule_delay_value | No |