Create Comment to DM rule
create_comment_dm_ruleSet up a Comment to DM automation on an Instagram account or a Facebook Page: when someone comments one of the keywords on the post (or on any post of the account), Breakreach sends them the DM through a private reply (Instagram Direct, or Messenger from the Page), and can post a public reply under their comment. Both networks allow one private reply per comment within 7 days; each person gets the DM once per rule. Target a post with mediaId (the Instagram or Facebook post id, e.g. postId from list_recent_comments) or postId (a Breakreach post published on that account); omit both for every post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | contains (default) = the keyword appears as a whole word or phrase in the comment; exact = the comment is just the keyword | |
| active | No | false pauses the rule | |
| dmText | Yes | The DM sent to the person who commented (up to 1000 characters, links allowed). {username} becomes their @handle on Instagram, their first name on Facebook | |
| postId | No | A Breakreach post id (from list_posts) published on this account, instead of mediaId | |
| mediaId | No | Instagram or Facebook post id (postId in list_recent_comments). Omit, with postId, for every post of the account | |
| keywords | No | Words or phrases that trigger the DM (up to 20). Case and accents are ignored. Empty or omitted = every comment triggers it | |
| accountId | Yes | Instagram account or Facebook Page id from list_accounts | |
| workspace | No | Workspace slug (optional) | |
| publicReplies | No | Optional public replies posted under the comment once the DM is sent, one picked at random (up to 5), e.g. "Sent! Check your DMs". {username} becomes their @handle on Instagram, their first name on Facebook |