create_automation_draft
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.
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 |