PlaybooksNov 19, 2026Ovia team7 min read

Comment-to-DM automation on Instagram and Facebook: how it works and the rules to follow

What happens between a keyword comment and the DM, Meta's rules for private replies and the messaging window with links to the docs, a setup checklist and copy you can use.

Comment-to-DM automation sends a private message to anyone who comments a chosen keyword on your Instagram or Facebook post, usually with the link or resource they asked for. It runs on Meta's private replies feature, which has firm limits: the message must be sent within 7 days of the comment, the business can send only one message to the commenter, and the conversation can continue only if the person replies, inside a 24-hour window.

Below: how it works step by step, Meta's rules with links to the official docs, a setup checklist, copy you can use and a troubleshooting table.

How does comment-to-DM automation work?

  1. You publish a post with a call to action, such as "Comment GUIDE and we'll send it to you."
  2. Someone comments with the keyword.
  3. Meta notifies your automation tool about the new comment through its API.
  4. The tool checks the comment for your keyword.
  5. It replies publicly to the comment. This is optional, but it shows other people the offer is real.
  6. It sends one private reply to the commenter with the link, or a button to it.
  7. If the person replies to that message, the conversation is open, and the tool or a person on your team can keep talking inside the messaging window.
Choosing a trigger for a new DM flow in Ovia
Starting a flow in Ovia: send a link when someone comments, answer a keyword in DMs, welcome first-time messages, thank people for story mentions or answer conversation starters.

Meta's rules for comment-to-DM

These come from Meta's developer documentation, linked in the sources at the end of this post. Tools that send private replies have to work inside them.

Instagram private replies

  • They work for Instagram professional accounts.
  • The message must be sent within 7 days of the comment being made.
  • Only one message can be sent to the commenter.
  • Follow-up messages can only be sent if the person responds, and must be sent within 24 hours of their response.
  • Meta's overview lists comments on the account's posts, reels, stories, Live broadcasts and ads. For Live, private replies can only be sent while the broadcast is running.

Facebook Page private replies

  • The message must be sent within 7 days from when the post or comment was created.
  • Only one message can be sent to the person who commented.
  • The conversation can continue only after the person responds, inside the 24-hour messaging window.

The messaging window

  • For most user actions, the standard messaging window lasts 24 hours.
  • Conversations started from some Click-to-Messenger and Click-to-Direct ads can extend that to 7 days.
  • The Human Agent tag lets a person on your team reply manually within a separate 7-day period. Message tags are limited to approved use cases, and Meta warns that using them outside those cases may restrict your ability to send messages.
  • Messages sent inside the standard window may include promotional content.
  • Outside private replies and the other entry points, Instagram's messaging API only lets a business message someone after that person has messaged the business.
  • Instagram message text must be 1,000 bytes or less.
RuleInstagramFacebook Page
Time to send the private replyWithin 7 days of the commentWithin 7 days of the post or comment
Private replies per commenterOne messageOne message
Continue the conversationOnly after they respond, within 24 hoursOnly after they respond, within the 24-hour window
Manual replies after the windowHuman Agent tag, separate 7-day periodHuman Agent tag, separate 7-day period

Other ways to start a DM conversation

Comment keywords are one entry point. These others open a conversation too:

  • A keyword sent by DM. The person messages first, so the window opens.
  • Story mentions and story replies.
  • Ice breakers. Questions people can tap to start a chat. Meta allows a maximum of 4 questions, and notes the feature is not available on desktop.
  • Click-to-Messenger and Click-to-Direct ads.

How to set up a comment-to-DM flow

  • Connect an Instagram professional account or a Facebook Page through a tool that uses Meta's API, never one that asks for your password
  • Choose the post, or every post, the flow should run on
  • Pick a keyword that is short, easy to spell and unlikely to appear by accident
  • Add the variants people will type, such as plurals
  • Put the keyword in the caption and on the image or video
  • Write three to five public reply variations
  • Write the private reply: thank them, deliver what you promised, one link
  • Decide whether you will ask for an email first, and say why you want it
  • Add UTM tags to the link so you can see the traffic in your analytics
  • Test from a second account before the post goes live
  • Check the flow's log in the first hour after publishing

Copy you can use

Caption call to action
Want the full checklist? Comment CHECKLIST and we'll send it to you by DM.
Public reply variations
1. Sent! Check your DMs.
2. Just messaged you the checklist.
3. It's in your inbox now.
4. Done. Look for a message from us.
5. On its way to your DMs.
Private reply (link first)
Hi! Here's the checklist you asked for: [link]
Any questions about it? Reply here and we'll help.
Private reply (email first)
Happy to send it! What's the best email for the checklist?
We'll send the checklist and our monthly tips email. Unsubscribe any time.

[When they reply with an email:]
Thanks! Here's the checklist: [link]

The email-first version fits the one-message rule: the private reply asks the question, and the person's answer opens the 24-hour window for the second message with the link.

Best practices that keep automation from hurting the account

  • Deliver exactly what the caption promised, in the first message. People commented for the link, not a sales pitch.
  • Respect the one-message rule. If someone does not reply, do not try to reach them again.
  • Vary the public replies. Rotating a few versions reads better than the same line under every comment.
  • Route real questions to a person. Complaints and detailed questions in the comments need a human reply, not a link.
  • Turn the flow off when the offer ends, or update the link so it never points to an expired page.

Why comment-to-DM flows fail

ProblemLikely causeFix
No DM was sentThe comment is older than 7 days, the account is not a professional account, or the tool lost its permissionsCheck the comment date, the account type and the connection
Keyword missedA typo, a plural or an emoji next to the wordAdd variants and match without case
The person replied but got no answerThe 24-hour window closedReply manually, using the Human Agent tag if your case qualifies
DMs sent but few clicksThe message does not match the promise, or the link is buriedPut the link first and make it the only one
Same person messaged twiceThe flow has no per-person limitLimit each person to one message per flow in a set period

How to run comment-to-DM in Ovia

DM flows run on Instagram and Facebook:

  • Five ways to start: a keyword in a comment, a keyword in a DM, a story mention, a first message or a conversation starter, with up to four conversation starters per account.
  • Run a flow on every post or one post, with up to twenty keywords.
  • Reply publicly with up to five rotating variations, then send a DM with up to three link buttons.
  • Ask for an email, or on Instagram a follow, before the link is sent.
  • See every send, skip and click. Each person gets one DM per flow every 24 hours, and Ovia asks at most twice.

The Social Inbox keeps comments from Facebook, Instagram, LinkedIn, YouTube and Google Business, and DMs from Facebook and Instagram, in one shared inbox, with owners, saved replies and a countdown on the DM reply window.

The Social Inbox in Ovia with comments and a reply composer
The Social Inbox: comments with the post they belong to, sentiment labels and replies in one place.

Frequently asked questions

Short answers to the questions people ask most about comment-to-DM automation.

Is comment-to-DM automation allowed on Instagram?

Meta provides private replies through its official API, with limits: one message to the commenter, sent within 7 days of the comment. Use a tool that connects through Meta's API rather than one that asks for your password.

Can I send a DM to someone who commented weeks ago?

Not as a private reply. Meta's documentation says the private reply must be sent within 7 days of the comment.

Can I send more than one message after a comment?

Only one private reply can be sent to the commenter. If they respond, you can continue the conversation, and on Instagram follow-ups must be sent within 24 hours of their response.

Does comment-to-DM work on Facebook Pages?

Yes. Facebook Pages can send a private reply to a person who commented, within 7 days, with one message until the person responds.

Can I collect emails with comment-to-DM?

Yes. Ask for the email in the private reply. When the person answers, the messaging window opens and you can send the link in the next message.

Related posts.

Turn comments into conversations.

Try it free for 7 days, connect Instagram and Facebook, and set up your first keyword flow.