duplicate_automation
Copy an automation, settings and all, as a new PAUSED one named " (copy)".
Paused on purpose: an identical active twin would DM every trigger twice (Instagram allows one private reply per comment, so one of them fails), and copying would otherwise walk past the plan's active-automation limit. Review the copy with get_automation, change what should differ with update_automation, then activate it with update_automation(status="active"), which re-runs the conflict and plan checks. Counters start at zero.
Needs the automations permission.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>",
"automation_id": "<automation_id>"
},
"name": "duplicate_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| automation_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| stats | No | What happened after this automation ran. `dms_failed` is a send that was tried and did not land (dead token, Meta rate limit, policy rejection) — read it next to `events_received` before concluding an automation 'works'. | |
| status | Yes | ||
| ai_goal | Yes | ||
| ai_link | Yes | ||
| ai_tone | Yes | ||
| stalled | No | ||
| dms_sent | Yes | ||
| keywords | Yes | ||
| post_ids | Yes | ||
| ai_context | Yes | ||
| dm_buttons | No | ||
| post_target | Yes | ||
| ice_breakers | Yes | ||
| trigger_type | Yes | ||
| keyword_match | Yes | ||
| ask_for_follow | Yes | ||
| ai_exit_condition | Yes | ||
| follow_up_enabled | No | ||
| follow_up_message | No | ||
| dm_link_button_url | Yes | ||
| follow_gate_message | Yes | ||
| ice_breaker_replies | No | ||
| private_dm_messages | Yes | ||
| public_replies_sent | Yes | ||
| dm_link_button_label | Yes | ||
| public_reply_messages | Yes | ||
| follow_up_delay_seconds | No | ||
| ice_breakers_sync_error | No |