Skip to content

Add Detect-Gender Action

Tool name: add-automation-gender-detection-action

Adds an automation gender-detection action that guesses from the source first-name field (customFieldID). It writes only an empty single-line text target field (customField2ID, not the source), and/or assigns manual tags; it needs a target with values or at least one tag. Guesses can be wrong. Requires an unscheduled, inactive automation and its current revision from get-automation; dryRun previews without saving. Place it with afterActionId and branch (next after a regular action, yes/no after a decision).

Input schema

automationIdinteger, >= 1required
revisionstring^[a-f0-9]{64}$required
afterActionIdinteger, >= 1required
branchstringrequired
Enum:"next""yes""no"
settingsobjectrequired
dryRunboolean
Default:false
accountIdnull or integer, >= 1
Default:null
Input example
{ "automationId": 1, "revision": "string", "afterActionId": 1, "branch": "next", "settings": { "customField2ID": "string", "customFieldValue": "string", "customFieldValue2": "string", "customFieldValue3": "string", "tagID": 0, "tag2ID": 0, "tag3ID": 0, "name": "string", "color": "", "customFieldID": "string" }, "dryRun": false, "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": [ {} ] }