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 Automation | Instagram Comment trigger | |
|---|---|---|
| Where you set it up | Settings > Channels > Instagram | A block in Studio |
| What happens after the DM | The conversation waits in the Inbox for your team | A bot flow continues the conversation |
| Bot required | No | Yes, connected to the Instagram account |
| Best for | Sending a link or offer, then chatting by hand | Qualifying 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
- A follower comments on your post or reel
- ChatMaxima checks the comment against your rules: which post it is on, and whether it matches your keywords
- If you turned it on, ChatMaxima posts a public reply under the comment (for example, "Check your DMs!")
- ChatMaxima sends a DM to the commenter. Instagram delivers this first message as a private reply to the comment, which opens the DM thread
- 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
- Go to Settings > Channels > Instagram
- In Active Instagram Accounts, open the Actions dropdown for your account
- Click Comment Automation
- Click Add rule and fill in the fields below
- Leave Active on and click Save Rule
Rule settings
| Setting | Description |
|---|---|
| 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 URL | Shown 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) |
| Keywords | Comma-separated keywords, matched case-insensitively |
| Also post a public reply on the comment | Turn on to reply publicly under the comment |
| Public reply text | The public reply, for example "Check your DMs! 📩" |
| DM message | The DM sent to the commenter. Text only, up to 1,000 characters |
| Active | Turn a rule off without deleting it |
Keyword matching
| Option | Fires when the comment... |
|---|---|
| Contains any of these keywords | Includes any keyword anywhere in the text |
| Exactly matches a keyword | Is exactly one of the keywords, nothing more |
| Starts with a keyword | Begins with one of the keywords |
| Ends with a keyword | Ends 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
- Open your bot in Studio. The bot must be connected to the Instagram account (see Connect a Bot)
- From the Logic & Flow section of the block palette, drag Instagram Comment onto the canvas
- Click the block to open Configure Comment Trigger
- Set Which posts?, When a comment..., and Keywords, the same options as Comment Automation
- Optionally turn on Also post a public reply on the comment and enter the Public reply text
- Click Save Block
- Connect the block's output to the first step of your flow, for example a Text block with your welcome message
- Save the bot. The trigger takes effect after you save the bot
| Setting | Description |
|---|---|
| Which posts? | Any post or reel on the account, or A specific post or reel |
| Post / reel ID | The 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 |
| Keywords | Comma-separated, matched case-insensitively |
| Public reply | Optional 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
- Check that the rule is Active and the comment matches its keywords and post target
- Make sure the comment was not posted by your own account, since those are ignored
- If the account has a bot with an Instagram Comment block, the Comment Automation rules are skipped
- Instagram allows one private reply per comment and rejects replies to old comments. Test with a fresh comment from a different account
- 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
- Check that Also post a public reply on the comment is on and the reply text is filled in
- Reconnect the account so ChatMaxima has the latest permissions
The Studio trigger does not fire
- Confirm the bot with the trigger is connected to the Instagram account
- Confirm the block's output is connected to another block
- Save the bot after changing the block
- Make sure the account was connected with Instagram Login
Next Steps
Instagram DM Messages - Agent and Bot Mode
Handle Instagram DMs in the ChatMaxima Inbox with a bot, a human agent, or both. Connect a bot, take over a chat, and hand it back to automation.
Instagram మరియు Meta సెక్యూరిటీ చెక్లిస్ట్
పాస్వర్డ్లు, 2FA, కనెక్టెడ్ యాప్లు మరియు టీమ్ యాక్సెస్ను కవర్ చేసే ఈ స్టెప్-బై-స్టెప్ చెక్లిస్ట్తో మీ Instagram మరియు Meta Business Manager అకౌంట్లను సురక్షితం చేయండి.