Update comment DM rule
update_comment_dm_ruleChanges an Instagram comment DM rule, or turns it on or off with enabled. Only the fields you pass change. Turning a rule off always works, even on a lapsed plan. People who already got the rule's DM don't get it again after an edit.
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>",
"rule_id": "<rule_id>"
},
"name": "update_comment_dm_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | No | A step before the link. none (default): the first DM has the link. follow: checks they follow the account first (after 3 tries the link goes out anyway). email: asks for their email and saves it to the workspace's contacts (list_dm_contacts). follow_email: both. With a step or files, the first DM ends with a button (gate_button_label); tapping it starts the next step, because Instagram allows one DM per comment until the person answers. | |
| link | No | The link you're sending, up to 500 characters. Fills {link}, and goes under every AI-written DM. https:// is added when missing. | |
| name | No | Optional name for the rule, shown in ShortSync's rule lists instead of its keywords (up to 60 characters). null or an empty string clears it. | |
| ai_faqs | No | Up to 20 questions and answers the AI follows closely when it answers replies (followup_enabled). Questions up to 200 characters, answers up to 1,000. Replaces the list. | |
| enabled | No | True to send, false to pause. | |
| message | No | One DM text, up to 1,000 bytes. Use messages for several versions; setting message replaces them all with this one. Include a line saying it's automated, such as 'This is an automated message.' Some places, like California and Germany, require that. The result's disclosure_missing is true when there's no such line. | |
| post_id | No | One Instagram post id from list_comment_dm_posts (ignored when post_ids is set). Null or left out on create watches every post. | |
| rule_id | Yes | Rule id from list_comment_dm_rules. | |
| trigger | No | One trigger, the shape from before triggers (ignored when triggers is set). What starts the rule. comment (default): a comment on a post (post_id picks one post). story_reply: a reply to any of the account's stories. dm_keyword: a DM sent to the account that isn't part of another automation. live_comment: a comment during an Instagram Live, answered while it's on. Keywords are matched in the text either way; each person gets the rule's DM once. Public replies are for comment rules only. | |
| ai_brief | No | Required when message_mode is ai: a sentence or two on what the DM should say, up to 500 characters. | |
| delivery | No | How the link is sent. text (default): inside the message. button: the message (up to 640 characters) with a link button; {link} is left out of the text. card: a card with card_title, card_subtitle and a link button (image cards are set up in ShortSync). Button and card need a link. If Instagram doesn't accept a button or card in a reply to a comment, the message goes out as text with the link. | |
| keywords | No | Up to 20 words or phrases people comment to get the DM. Whole words, any case: 'link' matches 'Link please' but not 'linked'. Emoji work too. Empty only for a rule whose sole trigger is story_mention. | |
| messages | No | Up to 5 versions of the DM; each person gets one picked at random, so DMs don't all read the same. Use instead of message. Placeholders: {username} (the commenter as @name on Instagram, their name on Facebook), {first_name} (first name on Facebook, @name on Instagram), {keyword} (the keyword they matched), {link} (the rule's link). Each version up to 1,000 bytes with the placeholders filled in. In AI mode these are the fallback, sent when the AI can't write one or the month's AI DMs are used up. | |
| platform | No | instagram (default) or facebook: the workspace's connected Facebook Page (needs it reconnected with the pages_manage_metadata permission). Facebook rules start from post comments or Messenger DMs (dm_keyword), and skip the follow check. Set when creating; post_id is a Facebook post id (pageid_postid). | |
| post_ids | No | Instagram post ids from list_comment_dm_posts (up to 50): the comment trigger only answers comments on these posts. Null or [] watches every post. Story replies, DMs and Live comments aren't limited by it. | |
| triggers | No | Everything that starts the rule, one or more: comment (a comment on a post; post_ids can limit it to chosen posts), story_reply, dm_keyword, live_comment, story_mention (someone mentions the account in their story; no keyword needed, keywords may be empty when it's the only trigger). One rule can listen to several, for example ["comment", "story_reply"]. Facebook rules take comment and dm_keyword (a Messenger DM to the Page). Use instead of trigger. Each person still gets the rule's DM once. | |
| card_title | No | Required for card: up to 80 characters. {username} and {keyword} work here. | |
| reply_word | No | If Instagram refuses the button: 'Reply <word> and I'll send it'. Up to 30 characters, default YES. | |
| button_label | No | Button text for button and card, up to 20 characters. Defaults to 'Open link'. | |
| email_prompt | No | Asks for the email; say what it's used for. Up to 640 characters. | |
| followup_max | No | AI answers per person, default 3. | |
| message_mode | No | variants (default): send one of your versions. ai: AI writes each DM from ai_brief, greets the person and answers their comment in their language; it never adds links or claims you didn't give, and ends with an automated-message line. Counts toward the organization's monthly AI DM allowance. | |
| track_clicks | No | Default true: the link goes through a https://www.shortsync.app/l/ short link so clicks are counted (clicked_count, variant_stats, ai_stats in the rule). | |
| workspace_id | Yes | Workspace with the Instagram connection. Required. Get one from list_workspaces. | |
| card_subtitle | No | Optional for card: up to 80 characters. | |
| follow_prompt | No | Sent when they don't follow yet, with an 'I followed' button. Up to 640 characters. | |
| question_text | No | A question asked after the follow and email steps, before the link, with question_options as tap buttons, for example 'Where are you at right now?'. They can also reply with an answer or its number. null removes it. | |
| ai_source_urls | No | Up to 3 web pages (for example a pricing or FAQ page) the AI answers replies from. ShortSync reads them when the rule is saved and again when the text is a day old. Replaces the list. | |
| public_replies | No | Up to 5 public replies, up to 300 characters each; each comment gets one. {username} and {keyword} work here. Kept while public_reply_enabled is false. | |
| delivery_message | No | One message sent with the link after the tap. Use delivery_messages for versions; ignored when that is set. | |
| followup_enabled | No | AI answers their replies for 24 hours after the link, from ai_brief (required). Stops when someone replies from the inbox, the person asks for a human, or after followup_max answers. Counts toward the monthly AI DMs. | |
| question_options | No | 2 or 3 answers to question_text, each with its own link or the rule's. After two unclear replies the rule's link goes out. | |
| delivery_ai_brief | No | What the AI-written message with the link says. Required when delivery_message_mode is ai. Up to 500 characters. | |
| delivery_messages | No | Versions of the message sent with the link (and files) after the tap, up to 5, each up to 640 characters; one is picked at random. {username}, {first_name}, {keyword} and {link} work here. Empty: 'Here you go!'. | |
| gate_button_label | No | The first DM's button with a step or files, up to 20 characters. Defaults to 'Send me the link'. | |
| public_reply_enabled | No | Also post a short public reply under the comment, so people know to check their message requests. | |
| delivery_message_mode | No | variants (default): one of delivery_messages. ai: AI writes the message from delivery_ai_brief, with delivery_messages as the backup. Counts toward the monthly AI DMs. |