Skip to content

Create Automation Draft

Tool name: create-automation-draft

Creates an inactive automation draft with a start action. copyFromId also copies a graph and its split-test settings but reuses referenced emails. Entry conditions are configured with update-automation-start-action, further actions with the automation action tools. Does not schedule or send.

Input schema

namestring, [ 1 .. 250 ] charactersrequired
copyFromIdnull or integer, >= 1
Default:null
accountIdnull or integer, >= 1
Default:null
Input example
{ "name": "string", "copyFromId": null, "accountId": null }

Output schema

automationIdintegerrequired
namestringrequired
revisionstringrequired
statusstringrequired
editorUrlstringrequired
graphobjectrequired
findingsArray of objectsrequired
editablebooleanrequired
dryRunbooleanrequired
settingsArray of any or objectrequired
splitTestsArray of objectsrequired
Output example
{ "automationId": 0, "name": "string", "revision": "string", "status": "string", "editorUrl": "string", "graph": { "start": 0, "goals": [ 0 ], "states": [ {} ] }, "findings": [ { "actionId": 0, "code": "string", "message": "string", "warning": true, "variantId": 0 } ], "editable": true, "dryRun": true, "settings": {}, "splitTests": [ {} ] }