# Instagram Comment-to-DM Automation: How It Works and Meta's Rules

> How Instagram comment-to-DM automation works: what you can automate, what Meta's messaging rules actually require, and where people get it wrong.

Source: https://zavii.app/blog/instagram-comment-to-dm-automation/
Published: 2026-10-11 · Updated: 2026-11-17

Instagram comment-to-DM automation watches your posts and Reels for a keyword such as PRICE, replies publicly under the comment, and sends that person a private DM with the link or offer. It uses Meta's official API. Meta allows 1 private reply per comment, sent within 7 days of the comment, and further messages only after the person replies.

"Comment PRICE below and I'll DM you" is one of the most common calls to action on Instagram Reels. This post explains what happens behind it, and the rules that keep your account safe.

## What does comment-to-DM actually do?

1. Someone comments a keyword (PRICE, LINK, GUIDE, whatever you choose) on a post or Reel.
2. Meta sends your tool a **webhook**: an instant notification that a new comment arrived.
3. The tool checks the comment against your keyword rules.
4. It can reply publicly under the comment, so other viewers see a response.
5. It sends the person a DM with the link, price or file.

All of this runs through the **Graph API**, the official system Meta gives apps to read comments and send messages for an account. You need an Instagram professional account (Business or Creator). A Facebook Page is needed only if the tool connects with Facebook Login.

## Why does this work better than a pinned "link in bio" comment?

A pinned "link in bio" comment is a slower call to action than a keyword that triggers a DM:

- People don't want to leave the app to find your bio link.
- A pinned comment gets buried under newer ones within minutes on a popular post.
- The person has to remember to come back later.

A DM lands in their inbox with the information ready, and it starts a one-to-one conversation. That conversation is also where a sale can close. A public comment can't take payment; a DM with a payment link can.

## Which Meta rules do you actually need to follow?

This part matters more than the setup, because getting it wrong risks your account, not just a failed message.

- **Only message people who engaged first.** Replying to someone who commented or messaged you is allowed. Sending DMs to people who never interacted with you breaks Instagram's policy and reads as spam.
- **1 private reply per comment, within 7 days.** A private reply is a DM sent in answer to a comment. Meta allows one per comment, sent within 7 days of the comment.
- **24 hours after they reply.** Once the person messages you back, you can keep replying for 24 hours after their last message. When that window closes, a normal message can't be sent.
- **Rate limits.** As of November 2026, Meta allows 750 private replies per hour on post and Reel comments per professional account. Most creators never get close.
- **Replies should read like a person wrote them.** Repetitive scripted messages sent at scale are more likely to be flagged by Meta's spam systems.
- **Use the official API, never a password-based bot.** Tools that log in with your Instagram password and copy a browser session break Instagram's terms and are the fastest way to get an account disabled.

## What does good practice look like?

1. Keep the keyword specific. A generic word like "yes" or "info" matches comments that weren't meant to trigger it.
2. Write the public reply so it stands alone ("Sent you a DM!") instead of repeating the full offer in public.
3. Send the DM within seconds. The value of this automation is replacing a delay with an instant reply.
4. Ask the person to reply in the DM. Their reply opens the 24-hour window, so you can follow up or send a file later.
5. Review a sample of triggered DMs every week. If a keyword misfires on unrelated comments, fix the rule.
6. Keep a person on the inbox for questions that don't fit the script. Comment-to-DM should start the conversation, not be the whole conversation.

## How does Zavii help with comment-to-DM?

Zavii connects through Meta's official Instagram API, so every rule above still applies. Zavii handles the keyword matching, the replies and the payment step:

- **Automate keyword rules.** Set a keyword, choose **Contains** or **Exact Match**, and run the rule on **All posts & reels** or on specific posts. Add an optional public comment reply and the DM text.
- **Share product payment link.** Attach a Store product (a PDF, course link, URL or text) and the DM carries a Razorpay checkout link the buyer can pay by UPI, card or netbanking. See [Sell](/sell/).
- **Inbox.** Instagram and WhatsApp chats sit in one [shared inbox](/inbox/), so a person can take over when the script ends.

Auto-DM on one Instagram or WhatsApp channel is on the ₹0 Free plan. See [Auto-DM](/auto-dm/). Zavii does not automate Story replies or Story mentions, and it can't reach people who restrict DMs.

If your rule never fires, work through [Instagram auto DM not working](/blog/instagram-auto-dm-not-working/). If it worked and stopped, read [why Instagram automation stopped sending DMs](/blog/instagram-automation-stopped-sending-dms/). For the selling side, see [how to sell a PDF on Instagram without a website](/blog/sell-pdf-on-instagram-without-a-website/).

## For developers: comment-to-DM in the API

You can skip this section if you use Zavii or another tool; it is for people calling the API directly.

- **Webhook fields:** `comments` for posts and Reels, `live_comments` for Live, `messages` for replies.
- **Permissions:** `instagram_business_manage_comments` and `instagram_business_manage_messages` (Instagram Login), or `instagram_manage_comments` and `instagram_manage_messages` (Facebook Login).
- **Public reply:** `POST /<COMMENT_ID>/replies` with a `message`.
- **Private reply:** `POST /<IG_ID>/messages` with `"recipient": { "comment_id": "<COMMENT_ID>" }`. One per comment, within 7 days. On a Live, private replies work only while the broadcast is on.

**Sources:** [Instagram private replies](https://developers.facebook.com/documentation/instagram-platform/private-replies) · [Instagram messaging API](https://developers.facebook.com/documentation/instagram-platform/instagram-api-with-instagram-login/messaging-api) · [Instagram webhook fields](https://developers.facebook.com/documentation/instagram-platform/webhooks/fields) · [Meta Graph API rate limiting](https://developers.facebook.com/docs/graph-api/overview/rate-limiting) (as of November 2026)

## FAQ

**Can I automate replies to Instagram Stories or Live comments too?**
Live comments arrive through Meta's `live_comments` webhook, and Zavii processes them like post comments, so the same keyword rules apply. Test on a short Live first. Zavii does not automate Story replies or Story mentions.

**Will this work if someone comments but has DMs restricted from accounts they don't follow?**
No. If the commenter's privacy settings block DMs from businesses or strangers, the message can't be delivered. No tool can get around a recipient's own privacy settings.

**Can I send more than one DM after a comment?**
Only after the person replies. Meta allows 1 private reply per comment. Once they message back, you have 24 hours from their last message to keep replying.

**Does the public reply count against my comment visibility?**
No. It's a normal comment reply, shown the same as a manual reply, with no special placement or suppression.

[Auto-DM](/auto-dm/) · [Sell from DMs](/sell/) · [Instagram DM automation for business](/blog/instagram-dm-automation-for-business/) · [Selling in a WhatsApp DM](/blog/whatsapp-payment-link-automation/)
