Skip to content
ReplyHook
All articles

Published: 6 min read

How Instagram comment-to-DM automation works, and Meta's rules for it

What happens behind the scenes when someone comments your keyword, which limits Meta sets, and how to build your automation around them.

You've seen it on Instagram: “Comment GUIDE to get the free guide.” Someone comments, and a few seconds later a link lands in their DMs. This article explains how that flow works behind the scenes and which rules Meta sets for it. Knowing the rules keeps your account safe and makes sure the message your follower expects actually arrives.

The flow, step by step

  1. Someone comments. Instagram notifies the connected app about the comment (a webhook). ReplyHook also checks your posts at regular intervals, so a comment is still caught if a notification is delayed or lost.
  2. The comment is matched against your rules. Does the keyword appear in the comment, and does the rule apply to this post? Upper/lower case and Turkish İ/ı differences are ignored at this step.
  3. A short reply is posted under the comment (optional), for example “Check your DMs 📩”. If you add several templates, one is picked each time.
  4. A DM is sent in reply to the comment. Meta calls this a private reply: the message is addressed to the comment itself, not to the person's user ID.
  5. If the person replies, a conversation starts. From then on, normal messaging rules apply.

Meta's rules

Meta's private replies documentation sets three key limits for this flow:

  • One message per comment. Only one private reply can be sent to a comment. That's why ReplyHook runs only one rule per comment, even if several rules match.
  • A 7-day window. The message must be sent within 7 days of when the comment was made. Older comments can't receive a DM.
  • Follow-ups need a response. If the person replies to your DM, you can send further messages within 24 hours of their response. If they don't reply, no further messages can be sent after the first one.

This feature works on comments on professional (Business or Creator) Instagram accounts' posts, reels and other content. On Instagram Live, private replies can only be sent while the broadcast is running.

What this means in practice

Your first message has to carry everything. Since you can't send a second message until the person replies, put the link, discount code or requested information in the first DM. ReplyHook can add a link button to the DM; if Instagram rejects the button, the link is added to the message text instead.

No surprises on old posts. When you create a new rule, comments written before the rule existed don't get a DM. Adding a rule to an older post won't suddenly message hundreds of people.

The same person doesn't get the same message twice. Even if someone comments the keyword several times, they receive that rule's DM once.

Your own comments don't trigger rules. Comments written by your own account (such as the automatic replies) are ignored. Test your rule by commenting from a different account.

Ask a question to keep the conversation going. A short question at the end of the first DM invites a reply, which opens the 24-hour conversation window. ReplyHook's AI chat assistant also only replies inside that window, within 24 hours of the person's last message, and says that it is a bot.

Rate limits and viral moments

Meta limits how fast apps can send messages. When a post unexpectedly takes off, hundreds of comments can arrive at once. ReplyHook puts deliveries into a persistent queue; if Meta returns a rate-limit error, the delivery is retried automatically and no comment is silently lost. Failed deliveries are shown in the panel.

Safety: no password, official API

You don't need to give your Instagram password to any tool for comment-to-DM automation. When you connect ReplyHook you use Instagram's own login screen, and only the permissions you approve are shared. Tools that rely on browser automation or unofficial methods go against Instagram's rules and can put your account at risk.

Quick checklist

  • Is your account a professional account?
  • Does the first DM contain everything the person asked for?
  • Is the keyword clearly written in the caption and in the video?
  • Did you test the rule with a comment from another account?

For tips on choosing the keyword itself, read how to pick a good keyword.

Ready to set up your first automation?

We invite people to the closed beta in small groups. Join the waitlist and we'll let you know when it's your turn.

Join the waitlist