Duplicate an automation
duplicate_automationCopy an existing flow, graph and all, so you only have to change what differs — typically the keyword and the post. The copy is created TURNED OFF on purpose: two live flows listening for the same keyword on the same post would send every commenter two DMs. Change what you need, then turn it on with set_automation_active. Run counters and A/B stats start clean; the copy lands in the same workspace as the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the copy. Defaults to the original plus "(copy)". | |
| flowId | Yes | The flow to copy (from list_automations). | |
| 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. |