update_comment_trigger
Update an existing comment automation trigger by sending only the fields to change. The trigger is re-validated, and activation or pause status can be adjusted.
Instructions
Update a comment trigger. Send only what should change; the rest is kept and the whole trigger is re-validated. active: true activates (refused with plan_limit_reached at the live cap, or flow_conflict if the linked flows are not ready); active: false pauses and pauses the linked flows. Changing button titles or types on a trigger with linked flows pauses those flows and the trigger for branch review; the response carries flow_impact. Edits a trigger that may be live. The whole trigger is re-validated, so a draft needs its DM text and a button before any edit saves. It never switches a trigger on unless you send active: true; confirm with the user before you do.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric id. | |
| name | No | ||
| active | No | true activates, false pauses. | |
| tag_id | No | Tag applied to the commenter when the trigger fires. Pro plans and above; silently ignored below. | |
| buttons | No | Buttons under the DM. Optional, three at most. | |
| post_id | No | Scope to one post (an id from GET /recent-posts). Null means every post. Ignored for story and live. | |
| keywords | No | Any one of these matches. | |
| platform | No | both | |
| post_url | No | Label only; post_id is what scopes the trigger. | |
| dm_use_ai | No | Let the AI write the DM from dm_ai_goal, the knowledge base and the configured tone. Needs dm_ai_goal. | |
| dm_ai_goal | No | What the AI-written DM should achieve. | |
| match_type | No | exact = whole word; contains = anywhere in the text; fuzzy = tolerates a typo or two. | contains |
| dm_file_url | No | https PDF attached to the DM. | |
| source_type | No | comment = post and Reel comments; story = replies to your stories; both = either; live = comments during an Instagram Live. story and live are Instagram only. | comment |
| dm_image_url | No | https image attached to the DM. | |
| dm_templates | No | Up to five DM variations. Required when the mode includes a DM unless dm_use_ai is true. | |
| response_mode | No | both = public reply and DM; public_only; dm_only. | both |
| public_replies | No | Up to five variations, one is picked per fire. {name} is the commenter. Required when the mode includes a public reply. | |
| exclude_keywords | No | If any of these appear the trigger does not fire. | |
| hide_comment_after_dm | No | Hide the comment once the DM is sent (post comments only). |