Get founding access
Comment replies and DMs

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

How comment-to-DM automation works on Instagram and Facebook: the 7-day private reply rule, the 24-hour window, a setup walk-through and mistakes to avoid.

Dishika · 6 min read
Title card: A comment in, a DM out

Comment-to-DM automation does one job. When someone comments a keyword on your post, such as LINK or GUIDE, it replies to the comment in public and sends the person a direct message with what they asked for. The person gets the link in seconds, the post gets an active comment section, and you do not paste the same link a hundred times.

This guide explains how it works on Instagram and Facebook, the platform rules that shape every tool that does it, how to set one up in PostMesa, and the mistakes that make people ignore the DM. PostMesa is our product and is used for the examples; the rules apply to any tool that uses Meta’s official APIs.

How comment-to-DM works, step by step

Every comment-to-DM automation follows the same five steps:

  1. You publish a post that tells people what to comment: “Comment GUIDE and I will send you the checklist.”
  2. Someone comments a message that contains the keyword, for example “guide please”.
  3. The tool sees the comment through the platform’s API and checks it against your keyword.
  4. It replies in public to the comment (“Sent, check your DMs”) and sends a private reply: a DM linked to that comment.
  5. The person taps a button in the DM, and the tool sends the second message, with the link.

Steps 4 and 5 are where the platform rules come in.

The rules Meta sets

Comment-to-DM on Instagram and Facebook uses a feature Meta calls private replies. Meta’s developer documentation, read on 2026-11-15, sets three rules.

Rule Instagram Facebook Page
When the private reply can be sent Within 7 days of the comment Within 7 days of the post or comment
How many private replies per comment One message One message
When a follow-up can be sent Only after the person responds, within 24 hours of the response Only after the person responds, within the standard 24-hour window

Meta’s messaging policy calls the 24 hours after a person’s message the standard messaging window. Outside it, a business can message only in narrow cases Meta approves.

These rules explain the design of every good comment-to-DM flow:

  • The first DM cannot be the whole conversation. You get one message. If it contains the link and nothing else, there is no way to follow up.
  • A button solves the follow-up. When the person taps the button, that counts as a response, which opens the 24-hour window. The second message, with the link, goes out then.
  • Old comments cannot all get a DM. A comment older than 7 days is outside the private reply window. A public reply is still possible.

On Instagram, the private reply lands in the person’s main inbox if they follow you and in message requests if they do not, according to the same documentation. Telling people “check your requests” in the public reply helps non-followers find it.

PostMesa

Auto-reply to every comment

PostMesa is designed to answer a comment in public and send the link by DM on Instagram and Facebook, within each network's rules.

Get founding access

Quick knowledge check

How long after a comment can a business send its one private reply?

Not quite. Meta's developer documentation says a private reply must be sent within 7 days of the comment being created.

Correct. Meta's developer documentation says a private reply must be sent within 7 days of the comment being created.

Not quite. Meta's developer documentation says a private reply must be sent within 7 days of the comment being created.

What you need before you start

  • An Instagram professional account (Business or Creator) linked to a Facebook Page, or a Facebook Page.
  • Message access for connected tools. In Instagram, open Settings, then Messages and story replies, then Connected tools, and allow access to messages.
  • A post with a clear call to action. One keyword, said plainly in the caption and, for a Reel, on screen.
  • Something worth sending. A checklist, a price list, a booking link, a discount code. If it is not worth a tap, people will not tap.

The connection steps for PostMesa are in the docs: connect Instagram and Facebook.

Setting it up in PostMesa

PostMesa builds a comment-to-DM automation in a five-step wizard with a live preview. PostMesa is not open yet; these steps describe how it is designed to work at launch.

  1. Choose the post or posts to watch. One post is the usual case; a launch might watch several.
  2. Set the trigger keyword, for example GUIDE. Pick one word that people would not type by accident.
  3. Write the public reply. PostMesa can suggest one; you approve it before it is used. Keep it short and human: “Sent, check your DMs (or your message requests)”.
  4. Write the DM and add a button, for example “Send me the checklist”. The second message, with your link, is sent when the person taps.
  5. Send a test comment from a second account, check the preview, then set it live.

Once it is live, the per-comment activity log is designed to show what happened to each comment and why: replied, skipped because the keyword was missing, or failed with a reason. If a network flags an automation for policy reasons, PostMesa is designed to pause it and tell you. The full reference is in the comment-to-DM docs.

Quick knowledge check, part 2

Why does a comment-to-DM message carry a button?

Not quite. Only one private reply is allowed per comment. A follow-up, such as the message with your link, can be sent only after the person responds, within 24 hours.

Correct. Only one private reply is allowed per comment. A follow-up, such as the message with your link, can be sent only after the person responds, within 24 hours.

Not quite. Only one private reply is allowed per comment. A follow-up, such as the message with your link, can be sent only after the person responds, within 24 hours.

A worked example: a recipe creator

A food creator posts a Reel of a 15-minute dinner. The caption says: “Comment RECIPE and I will DM you the full recipe card.”

  • Keyword: RECIPE.
  • Public reply: “Sent you the card, check your DMs.”
  • First DM (the private reply): “Here is the 15-minute dinner. Tap below for the printable card.”
  • Button: “Send the recipe card”.
  • Second message, after the tap: the link to the recipe page.

Someone who comments “recipe please” gets the public reply and the DM within seconds. Someone who comments “this looks amazing” gets no automated reply, because the keyword is missing, and the creator can answer by hand. Someone who comments ten days later gets a public reply only, because the 7-day private reply window has passed.

Mistakes that make people ignore the DM

  • A keyword people type anyway. “YES” or “LOVE” trigger on comments that were not requests. Use a specific word.
  • Hiding the keyword. If it is only at the end of a long caption, people will not see it. Put it on screen in the first seconds of a Reel.
  • A DM that sounds like spam. Several links, all capitals or a hard sell in the first message make people close it. Say what they asked for and offer the button.
  • No public reply. The public reply shows other viewers that the offer is real, and tells the commenter where to look.
  • Forgetting message requests. Non-followers may find the DM in requests. Say so.
  • Never testing. A typo in the keyword or a broken link wastes a post that did well. Test with a second account every time.

What comment-to-DM is not

It is not a chatbot. A comment-to-DM automation answers one request with one message and one link. It does not hold a conversation. PostMesa’s AI only drafts reply suggestions; a person approves each one, and the AI never chats with people on its own. If you need multi-step flows, broadcasts or WhatsApp, a messaging platform is the better fit; the dated PostMesa vs ManyChat comparison and our guide to ManyChat alternatives show where each tool is stronger.

It is also not available on every network. In PostMesa, comment-to-DM covers Instagram and Facebook; YouTube gets public comment replies only, and TikTok and LinkedIn are publishing only.

Plan limits in PostMesa

From the PostMesa pricing page, the number of active automations depends on the plan: 1 on Free, 10 on Creator, and unlimited on Pro and Agency. Contacts, replies and DMs are never metered, so a post that pulls a thousand keyword comments does not raise the bill. Plans and prices are on the pricing page, and every feature, with when it arrives, is on the features page. For more guides, see the blog.

Frequently asked questions

Is comment-to-DM automation allowed on Instagram?

Yes, through Meta's official messaging APIs, within their rules: one private reply per comment, sent within 7 days, and follow-ups only inside the 24-hour window after the person responds. Tools that work outside the official APIs risk your account.

Do I need a business account?

Your Instagram account must be a professional account (Business or Creator) linked to a Facebook Page, and you need to allow connected tools to access your messages in Instagram's settings.

Does comment-to-DM work on TikTok, YouTube or LinkedIn in PostMesa?

No. In PostMesa, comment-to-DM covers Instagram and Facebook. YouTube gets public comment replies only, with no DMs. TikTok and LinkedIn are publishing only.

What happens to comments that arrived before I set up the rule?

PostMesa's backfill option is designed to reply to older unanswered comments. A DM is still possible only for comments less than 7 days old, because of Meta's private reply rule.

Will the automation reply to every comment?

Only to comments that contain your keyword. Other comments are left for you to answer, so a question or a complaint gets a human reply.

Sources

Related and Latest articles
PostMesa

Stop typing the same reply

PostMesa is designed to answer a comment in public and send the link by DM on Instagram and Facebook, within each network's rules.

Get founding access

Get founding access

Free. Reserves a Founding Creator spot.