Skip to content
New Describe an automation in plain words, and AI builds it for you.
Instagram automation

Instagram comment-to-DM automation: send a DM when someone comments

Turn "comment PRICE" into leads. How keyword comment-to-DM works under Instagram's rules, how to set it up, and DMs that get replies.

Cover illustration for Instagram comment-to-DM automation: send a DM when someone comments

You've seen the captions: "Comment GUIDE and I'll send it to you." A few seconds later the link appears in your DMs. That's comment-to-DM automation, and it's one of the simplest ways to turn Instagram views into leads, sales and bookings. This guide explains how it works under Instagram's rules, how to set it up, and the mistakes that make people ignore the message.

The short answer: Instagram comment-to-DM automation watches the comments on your posts and reels. When someone comments a keyword you choose, such as "PRICE", it sends them one private message straight away. Instagram's rules allow one private reply per comment, sent within 7 days of the comment. If the person replies to that DM, a normal conversation opens and you can keep chatting for 24 hours after each of their messages. You need an Instagram professional (business or creator) account and a tool connected through Meta's official API.

Key takeaways

  • A keyword comment triggers one private DM. That's an Instagram rule, not a tool limit.
  • The DM must be sent within 7 days of the comment. On a live broadcast, only while it's live.
  • Get the person to reply to your first DM, for example with a button or a question. That opens a 24-hour window for follow-ups.
  • Use one short keyword per offer, put it in the caption and on the video, and deliver exactly what you promised in the first message.

How comment-to-DM works

  1. You post a reel"Comment PRICE for the full price list"
  2. Someone comments"price 🙌"
  3. Tool matches the keywordAny comment containing "price"
  4. DM sent in secondsPlus an optional public reply

Here's what that looks like for the person who commented:

Comment on your reel

price please 🙏

Public reply under the commentSent you a DM, check your inbox! ✨

Private reply · 1 allowed per comment

Hi! Here's our full price list for bridal makeup 👇 [link]. Want me to check if your date is free?Buttons: Check my date · Not now

Check my date

They replied · 24-hour window opens

Great! Which date is the wedding, and which city? 📅Follow-ups are now allowed for 24 hours after each reply

Instagram's rules you need to know

RuleWhat it means for you
One private reply per commentYour first DM must contain everything the person asked for. You can't send a second one unless they reply.
Within 7 days of the commentComments on old posts can still be answered for a week. After that, the private reply is blocked.
Live videos: only during the livePrivate replies to comments on an Instagram Live can only be sent while the broadcast is running.
24-hour window after they replyOnce the person sends you a message, you can reply freely for 24 hours from their latest message.
Professional account + official APIPersonal accounts can't use automation. Tools must connect through Meta's Instagram messaging API.
Stay away from "auto-DM everyone" tools Tools that log in with your password, or message people who never commented or messaged you, aren't using Meta's API. They risk action blocks and account restrictions. Comment-to-DM through the official API is built for exactly this use.

How to set it up

  1. Switch to a professional account In Instagram settings, choose a business or creator account and link it to a Facebook Page if your tool asks for it.
  2. Connect Instagram to your automation tool Log in with Meta and allow messaging permissions. Your tool should never ask for your Instagram password.
  3. Pick the post or reel Run the rule on one post, or on every post for an always-on keyword like "PRICE".
  4. Set the keyword Use one short word that's easy to spell on a phone. Add common variations, like "price" and "prices".
  5. Write the public reply (optional) A short "Check your DMs ✨" under the comment shows others the automation works, which brings more comments.
  6. Write the DM Deliver the promised link or info first, then ask one question or add a button to start a conversation.
  7. Test it Comment from a second account, using capitals, emojis and a misspelling. Check the DM arrives and the link works.

Keyword ideas that work

PRICEPrice list or menu. Good for salons, studios, clinics, food
LINKProduct link from a reel. Good for online stores
GUIDEFree PDF or checklist. Good for coaches and creators
BOOKBooking link or available slots. Good for services

Use a different keyword for each offer so you can see which post brought which leads. Avoid words people type anyway, like "nice" or "wow", or the automation will fire on regular comments.

3 DM templates you can copy

Online store · keyword LINK

Hey! Here's the link to the oversized linen shirt from the reel 👇 [link]

Sizes S to XL are in stock today. Want me to send the size guide too?

Coach or creator · keyword GUIDE

Here's your free 7-day meal plan 📄 [link]

Quick question so I can send you the right recipes next: are you vegetarian? Reply YES or NO.

Salon or clinic · keyword BOOK

Hi! These are this week's open slots for a hair spa 💆‍♀️ [booking link]

Prefer a weekend? Reply with the day and I'll check for you.

Mistakes that kill results

Weak setup

  • Keyword only in the caption, which most viewers never open
  • First DM says "Thanks! How can we help?" and nothing else
  • Long or tricky keyword, like "WORKSHOP2026"
  • No question or button, so the conversation ends after one message

Strong setup

  • Keyword said in the video, shown on screen and in the caption
  • First DM delivers the link or info right away
  • Short keyword, like "PLAN"
  • One clear question or button that invites a reply

Take it further: story replies and WhatsApp

For welcome messages, keyword replies and story automations in DMs, see Instagram DM auto reply.

The same idea works on stories. When someone replies to your story with a keyword, or mentions you, an automation can answer. And when a lead is ready to buy, many businesses move the chat to WhatsApp, where order updates and reminders work better. In Flowleb, Instagram DMs and WhatsApp chats land in the same team inbox and can run through the same flows, so a lead from a reel is followed up the same way as one from WhatsApp.

Turn comments into conversationsSet up comment-to-DM on any post or reel with Flowleb: keywords, a public reply, and a follow-up flow when they answer.

See how it works

Frequently asked questions

How do I automatically send a DM when someone comments on Instagram?

Connect your Instagram professional account to an automation tool that uses Meta's official messaging API, choose a post or reel, set a keyword, and write the message. When someone comments the keyword, the tool sends them one private reply automatically.

How many DMs can I send to someone who commented?

Instagram allows one private reply per comment. If the person replies to your DM, a 24-hour window opens and you can keep messaging them normally within 24 hours of their latest message.

How long after a comment can I send the private reply?

Within 7 days of the comment on posts, reels and ads. For comments on an Instagram Live, the private reply can only be sent while the broadcast is live.

Is Instagram comment-to-DM automation allowed?

Yes, when it runs through Meta's official Instagram messaging API and only messages people who commented. Tools that log in with your password or mass-message people who never contacted you can get your account restricted.

Do I need a business account for Instagram DM automation?

You need an Instagram professional account, which can be a business or creator account. Personal accounts can't connect to the messaging API.

Sources

  1. Meta for Developers: Send a private reply to a commenter (Instagram Platform)
  2. Meta for Developers: Private replies (Instagram messaging)
  3. Meta for Developers: Instagram messaging overview
  • Instagram comment to DM
  • Instagram DM automation
  • Private replies
  • Keyword automation
Share this article

Written by

Flowleb team

We build Flowleb, the WhatsApp automation platform for small teams. Our guides are written from what we see setting up real accounts, and we check every rule against Meta's own documentation before we publish.

Put this into practice. Start free today.

Build the workflow from this guide in Flowleb, starting on the free plan.

  • Live in minutes
  • Official WhatsApp API
  • No coding needed