Update DM automation
update_automationChange an automation's post, link, keyword, messages or buttons; every omitted field is kept.
Same fields as create_automation. Live automations stay live and the next comment gets the change. To move it to another post (a new Reel), use provider_media_id: it keeps its history and stats; never delete it and create another. When messages change, the wording is the user's to choose: consider asking them, or offering drafts they can edit. Confirm it with them, then make every change in one call: an automation updates at most once every few seconds.
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": {
"automation_id": "<automation_id>"
},
"name": "update_automation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Or a web address to link to | |
| keyword | No | New keyword, the automation's name | |
| page_id | No | A published page to link to instead; or give `url` | |
| url_name | No | With `url`: a short name for it, shown in the user's automations | |
| email_gate | No | Ask for their email address before the link (after follow_gate) | |
| follow_gate | No | Only send the link to followers of the account | |
| link_message | No | New DM with the link. Same language | |
| public_reply | No | New public reply under the comment, or up to 12 to rotate, one per comment; empty stops it | |
| automation_id | Yes | Automation id | |
| extra_keywords | No | Its other keywords, as in create_automation; [] removes them | |
| opening_message | No | New first DM, in the user's language | |
| reminder_message | No | As in create_automation; empty stops reminders | |
| link_button_label | No | The link's button | |
| provider_media_id | No | Move it to this post (from list_instagram_posts) | |
| extra_link_buttons | No | Up to 2 more buttons, as in create_automation. Replaces the current ones; [] removes them. | |
| opening_button_label | No | Its button. Same language | |
| email_request_message | No | With email_gate: the DM asking for the email | |
| follow_request_message | No | With follow_gate: the DM asking to follow. Same language | |
| follow_request_button_label | No | With follow_gate: its button. Same language |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||