Create an automation from a template
create_automation_from_templateInstantiate a template as a new flow, adapted to this business. overrides rewrites any field of any node (the greeting, the question, the tags, the buttons) and trigger replaces the trigger, so the flow comes out configured instead of generic. Call list_automation_templates first to see each node's id and current values. Created INACTIVE: review it with preview_automation and turn it on with set_automation_active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Custom name. Optional. | |
| trigger | No | Replace the trigger, e.g. {"type":"keyword","keywords":["price","info"]}. See get_automation_node_types for the shape of each trigger type. | |
| overrides | No | Per-node field overrides keyed by node id, e.g. {"intro":{"text":"Hi! Want the price list?"},"tag":{"tags":["lead","summer"]}}. Only the fields you pass change; `id` and `type` cannot be changed. Node ids come from the template graph. | |
| templateId | Yes | Id from list_automation_templates. | |
| workspaceId | No | Workspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |