ChatMaxima Docs

Instagram DM Automation - Comment-to-DM Rules

Automate Instagram DMs with ChatMaxima. Turn post and reel comments into DMs using Comment Automation rules or the Instagram Comment trigger in Studio.

Overview

Instagram DM automation in ChatMaxima turns engagement into conversations. When someone comments on your post or reel, ChatMaxima can reply publicly and send that person a DM automatically. This is often called comment-to-DM.

There are two ways to set it up:

Comment AutomationInstagram Comment trigger
Where you set it upSettings > Channels > InstagramA block in Studio
What happens after the DMThe conversation waits in the Inbox for your teamA bot flow continues the conversation
Bot requiredNoYes, connected to the Instagram account
Best forSending a link or offer, then chatting by handQualifying leads, booking, or answering FAQs automatically

To automate replies to DMs that customers send you directly, connect a bot to the account. See Instagram DM Messages.

Prerequisites

Before you begin, ensure you have:

  • A connected Instagram Business or Creator account - See Instagram Setup. Connecting with Instagram Login is recommended, and the Studio trigger requires it
  • Public posts or reels - Comments are matched on posts and reels published by the connected account
  • A bot connected to the account - Only for the Studio trigger option

How Comment-to-DM Works

  1. A follower comments on your post or reel
  2. ChatMaxima checks the comment against your rules: which post it is on, and whether it matches your keywords
  3. If you turned it on, ChatMaxima posts a public reply under the comment (for example, "Check your DMs!")
  4. ChatMaxima sends a DM to the commenter. Instagram delivers this first message as a private reply to the comment, which opens the DM thread
  5. The commenter is added as a contact, and the conversation appears in your Inbox

Note: Instagram allows one private reply per comment, and the first DM cannot contain buttons. Keep it text only, up to 1,000 characters. Buttons can follow once the commenter replies.

Comments posted by your own account, including ChatMaxima's public replies, are ignored, so a rule never triggers itself.

Option 1: Comment Automation (No Bot)

Use Comment Automation to send a fixed DM to commenters and handle the rest of the chat in the Inbox.

Create a rule

  1. Go to Settings > Channels > Instagram
  2. In Active Instagram Accounts, open the Actions dropdown for your account
  3. Click Comment Automation
  4. Click Add rule and fill in the fields below
  5. Leave Active on and click Save Rule

Rule settings

SettingDescription
Rule name (optional)A label for your own reference, for example "Pricing comments"
Which posts?Any post or reel on the account, or A specific post or reel
Post / reel URLShown for a specific post. Paste the post or reel link, or its numeric media ID
When a comment...How the comment is matched (see the table below)
KeywordsComma-separated keywords, matched case-insensitively
Also post a public reply on the commentTurn on to reply publicly under the comment
Public reply textThe public reply, for example "Check your DMs! 📩"
DM messageThe DM sent to the commenter. Text only, up to 1,000 characters
ActiveTurn a rule off without deleting it

Keyword matching

OptionFires when the comment...
Contains any of these keywordsIncludes any keyword anywhere in the text
Exactly matches a keywordIs exactly one of the keywords, nothing more
Starts with a keywordBegins with one of the keywords
Ends with a keywordEnds with one of the keywords
Any comment (no keyword needed)Is any comment at all

Manage rules

  • Every rule appears in the Comment Automation list with its post target, match type, and keywords
  • Click the Edit icon to change a rule, or the Delete icon to remove it
  • The first matching rule wins, so each comment gets one DM at most. The most specific rules are checked first: rules for a specific post before rules for any post, and keyword rules before Any comment rules. Among equal rules, the oldest goes first
  • Two rules for the same post cannot use the same keyword with the same match type. Edit the existing rule, or use a different keyword

Note: Comment Automation is also available for Facebook Pages, from the same Actions menu on Settings > Channels > Facebook.

Option 2: Instagram Comment Trigger in Studio (Bot Flow)

Use the Instagram Comment block when you want a bot to continue the conversation after the first DM.

Add the trigger

  1. Open your bot in Studio. The bot must be connected to the Instagram account (see Connect a Bot)
  2. From the Logic & Flow section of the block palette, drag Instagram Comment onto the canvas
  3. Click the block to open Configure Comment Trigger
  4. Set Which posts?, When a comment..., and Keywords, the same options as Comment Automation
  5. Optionally turn on Also post a public reply on the comment and enter the Public reply text
  6. Click Save Block
  7. Connect the block's output to the first step of your flow, for example a Text block with your welcome message
  8. Save the bot. The trigger takes effect after you save the bot
SettingDescription
Which posts?Any post or reel on the account, or A specific post or reel
Post / reel IDThe media ID of the post or reel to watch (a post link also works)
When a comment...Contains, exactly matches, starts with, ends with, or any comment
KeywordsComma-separated, matched case-insensitively
Public replyOptional public reply posted under the comment

What happens when it fires

The block connected to the trigger runs first, and its message is delivered as the opening DM. That first message cannot include buttons, so put buttons on a later block. After the commenter replies, the bot continues the flow like any other Instagram conversation. Your team can take over at any time from the Inbox.

You can add more than one Instagram Comment block to a bot, for example one per campaign post. When a comment matches several blocks, the first match runs.

Comment Automation vs the Studio trigger

If any bot connected to an Instagram account contains an Instagram Comment block, that account's comments are handled by the bot. The account's Comment Automation rules are then not used. To go back to Comment Automation, remove the Instagram Comment blocks from the bot and save it.

Example Use Cases

  • Price on request - Rule: comment contains "price, cost, how much". DM: the price list link. Public reply: "Sent you the details in DM!"
  • Giveaway entry - Rule: any comment on the giveaway reel. DM: the entry confirmation and rules
  • Lead magnet - Studio trigger: comment is exactly "GUIDE". Flow: send the guide, ask for an email address, and save it to the contact
  • Product launch - Studio trigger on a specific post. Flow: show product options, then hand over to sales with Talk to Agent

Best Practices

  • Tell people the keyword - Put the keyword in your caption ("Comment GUIDE to get it") so comments match your rule
  • Keep the first DM useful on its own - It cannot carry buttons, so include the link or answer directly
  • Use a public reply - A short public reply shows other followers that commenting works, and avoids confusion when DMs land in message requests
  • Target specific posts for campaigns - Use A specific post or reel so a campaign keyword does not fire on older posts
  • Keep a catch-all as a fallback - An Any comment rule is checked after keyword rules, so it only answers comments that no keyword rule matched

Troubleshooting

The commenter did not get a DM

  1. Check that the rule is Active and the comment matches its keywords and post target
  2. Make sure the comment was not posted by your own account, since those are ignored
  3. If the account has a bot with an Instagram Comment block, the Comment Automation rules are skipped
  4. Instagram allows one private reply per comment and rejects replies to old comments. Test with a fresh comment from a different account
  5. If the account shows Reconnect Account, reconnect it, then test again

You received a "DM message too long" alert

The DM in one of your rules is longer than Instagram allows (1,000 characters). Open Comment Automation, shorten the DM message, and save the rule. Workspace owners and admins get this alert in the dashboard and by email.

The public reply was not posted

  1. Check that Also post a public reply on the comment is on and the reply text is filled in
  2. Reconnect the account so ChatMaxima has the latest permissions

The Studio trigger does not fire

  1. Confirm the bot with the trigger is connected to the Instagram account
  2. Confirm the block's output is connected to another block
  3. Save the bot after changing the block
  4. Make sure the account was connected with Instagram Login

Next Steps

في هذه الصفحة