An Instagram comment like "price?", "link?" or "how do I book?" is a customer raising a hand in public. Answer in the first few minutes and many of them buy. Answer the next day and most have moved on. Comment-to-DM automation answers every one of those comments in a private message, instantly, with the exact thing the person asked for.

This guide covers how it works, what Instagram allows, how to set it up step by step, and the mistakes that make it feel robotic.

What is Instagram comment-to-DM automation?

It is a rule that watches the comments on your posts. When a comment matches a keyword you choose, it does two things:

  1. Replies to the comment publicly, for example "Sent you the details in DM", so the person and everyone reading know you answered.
  2. Sends the person a private message with what they asked for: the price, the link, the menu, the booking page or the discount code.

The public reply shows your account is active and responsive. The private message lets the customer ask questions and take the next step without sharing personal details in the comments.

It is popular because it turns a post into a lead source: "Comment GUIDE and we'll send it to you" gets more comments than "link in bio", and every comment becomes a conversation you can follow up on.

What Instagram allows (the rules that matter)

Comment-to-DM tools use Instagram's official private replies feature. Meta's rules for it are strict, and any tool that ignores them puts your account at risk:

  • Professional account only. Your Instagram account must be a business or creator account connected through Meta's official API.
  • One private reply per comment. You can send the commenter one message in reply to their comment.
  • Within 7 days. That message must go out within 7 days of the comment, on posts, Reels and ad posts.
  • Live is different. On Instagram Live, a private reply can only be sent while the broadcast is still running.
  • More messages need a reply from them. After your first message, you can only continue if the person answers, and then within 24 hours of their answer.
  • Where it lands. If they follow you, the message goes to their inbox. If they don't, it goes to their message requests.

The last two rules shape good flows. Your first message should be worth opening, and it should invite a reply, usually with a button, so the conversation can continue.

How to set it up, step by step

1. Pick the posts

Start with posts where people are already asking the same question: a product launch, a price reveal, a menu, an event, a free guide. You can run the rule on one post or on every post. Starting with one post makes it easy to see what works.

2. Choose keywords that show intent

Automate the comments that have a useful answer, not every emoji. Group keywords by what the person expects:

They want

Example keywords

Price

price, how much, cost, السعر, بكم, كم السعر

A link

link, send, where, الرابط, ابي الرابط, وين

A booking

book, appointment, available, حجز, موعد, متاح

The free thing you promised

the word in your caption, for example GUIDE or دليل

Add the common spellings and dialects your customers really type. Keyword matching usually works on the text as written (Hamla ignores capital letters but not spelling), so "السعر" and "سعر" are different keywords. List both.

3. Write the public reply

Keep it short and honest: "Sent you the details in DM 📩" or "Check your messages, the booking link is there." Write three to five versions so the comment section doesn't look copy-pasted. Never put personal or order details in a public reply.

4. Write the first private message

Deliver exactly what the comment asked for, before asking for anything. If they asked for the price, give the price. If they asked for the link, send the link. Then offer one clear next step, such as a button to the product, the booking page or "Want this on WhatsApp too?".

Because Instagram only lets you continue after the person replies, a button in the first message matters: a tap counts as a reply and opens the 24-hour window for the rest of the conversation.

5. Ask before you collect contact details

If you want an email, phone or WhatsApp number, ask for it clearly and say what you will send. "Reply with your WhatsApp number and we'll message you when it's back in stock" is honest and specific. Save the answer with the consent the person gave, so later messages respect it.

6. Decide what happens next

A comment-to-DM flow should not end at the DM. Decide in advance: does the person get a follow-up email tomorrow, a WhatsApp reminder if they don't book, or a discount if they don't buy within a few days? Without a next step, you collected a contact and did nothing with it.

Examples by type of business

Online store. A post reveals a new product. Keyword: "price". Public reply: "Sent you the price and link 📩". DM: the price, sizes and a button to the product page.

Restaurant. A post shows the new menu. Keyword: "menu". DM: the menu link and a button to reserve a table.

Clinic or salon. A post explains a treatment. Keywords: "book", "حجز", "موعد". DM: the next available times and a booking button. Collect the phone number with consent to send a reminder before the appointment.

Creator or SaaS. A post offers a free guide or template. Keyword: the word in the caption. DM: the download link, then an offer to get the next guide by email.

Mistakes that make it feel robotic

  • Replying to every comment. Compliments and tags between friends don't need a funnel. An automatic DM to "😍" feels like spam.
  • One generic message for every keyword. If someone asked the price and got a link to your homepage, the automation ignored their question.
  • Forcing a follow before sending. Some tools can hold the reward until the person follows you. It can grow followers, but it also annoys people who just wanted the price. Use it for free giveaways, not for basic questions.
  • No way to reach a person. Some questions need a human. Make it easy to say "talk to someone" and make sure someone reads the inbox.
  • Measuring replies instead of results. Thousands of automatic DMs mean nothing on their own. Measure how many became conversations, clicks, bookings, sign-ups and sales.

How Hamla runs comment-to-DM

Hamla connects to your Instagram professional account and Facebook Page through Meta's official API. You can set the flow up yourself or ask Hamla in plain words, for example "When someone comments 'price' on my new post, send them the price and a link to the product", and Hamla builds the campaign for you to review.

What a Hamla comment-to-DM campaign can do:

  • Run on every post or only the posts you choose, on Instagram and Facebook.
  • Match keywords exactly, anywhere in the comment, or reply to any comment.
  • Reply publicly with several versions that rotate, so replies don't look identical.
  • Send the private message with an opening button, then the reward: text, a link button and, on Instagram, an image.
  • Ask for a follow first on Instagram, if you choose to, with a friendly reminder for people who haven't followed yet.
  • Collect up to four details, such as email, phone, WhatsApp number or a custom answer, with your consent text shown before anything is saved.
  • Save the person as a contact, with where they came from and the keyword they used, and continue the journey, for example with an email the next day.
  • Measure results: conversations started, contacts captured and the visits and sales that came from the links, because Hamla tags each link automatically.

Hamla also checks every automatic reply against your "never say" list, and holds back any message that breaks it.

See how it fits with the rest of your marketing on the comment-to-DM use case page, or compare it with a dedicated chatbot tool in Hamla vs ManyChat.

Frequently asked questions

Is comment-to-DM automation allowed by Instagram?

Yes, when it uses Instagram's official API and follows its rules: one private reply per comment, within 7 days, and further messages only after the person replies. Tools that log in with your password or imitate a person break Instagram's terms.

Does it work on Reels?

Instagram's private replies work on comments on posts, Reels and ad posts. On Live, they only work during the broadcast.

Why didn't the person see my message?

If they don't follow you, the message goes to their message requests instead of their inbox. A clear public reply ("check your requests") helps them find it.

Can I send them more messages later?

Only if they reply. Once they answer or tap a button, you can keep the conversation going for 24 hours after their latest message. For anything later, ask for their consent to reach them by email or WhatsApp.

Do I need a separate tool for this?

Not if your marketing tool already handles it. With Hamla, the comment-to-DM flow is one step in the same campaign as your emails, WhatsApp messages and website pop-ups, so a comment can lead to a booking or a sale without moving the person between tools.

Start with one post

Pick the post that already gets the most "price?" comments, set one keyword and one honest reply, and watch what happens for a week. Connect Instagram to Hamla and ask Hamla to set it up for you.