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 put an automation on another post, such as a new Reel, move it with provider_media_id: it keeps its history and stats, so 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 the new wording with them first, then make every change in one call: an automation can only be updated once every few seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Or a web address to link to | |
| keyword | No | The word or short phrase followers comment, e.g. GUIDE. Matched in any case, anywhere in the comment, as whole words: 'Recipes please 🙌' triggers RECIPES, 'myrecipes' does not. Accents and emoji must match exactly. Saved in lowercase. Replies count, the account's own comments never do, and the longest matching keyword on a post wins. | |
| 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 | |
| follow_gate | No | Only send the link to followers of the account | |
| link_message | No | The DM that carries the link, sent once the follower taps the first button. Same language and voice as opening_message. | |
| public_reply | No | New public reply under the comment; an empty string stops it | |
| automation_id | Yes | Automation id | |
| opening_message | No | The first DM, sent right after the comment, with a button asking for the link. In the user's language and voice: the wording is theirs to choose. | |
| link_button_label | No | The button that opens the page or address. Same language. | |
| provider_media_id | No | Move it to this post (from list_instagram_posts) | |
| extra_link_buttons | No | Up to 2 more buttons on the link message, after the page's button: each opens another published page of the user's site (page_id) or any web address (url), e.g. a shop or a YouTube channel. Same language as the other messages. Replaces the current ones; [] removes them. | |
| opening_button_label | No | The first DM's button: tapping it sends link_message. Same language. | |
| follow_request_message | No | Only used when follow_gate is true: the DM asking a non-follower to follow first. Same language as the other messages. | |
| follow_request_button_label | No | Only used when follow_gate is true: the button the follower taps once they follow. Same language as the other messages. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||