Querygen journalSeptember 28, 2026Querygen Team6 min read

Instagram DM Automation: Auto-Reply to Comments

Set up comment-to-DM, DM auto-replies, and story replies on Instagram: what Meta allows, how each automation works, and comment triggers you can copy.

Instagram DM automation lets a business answer comments, DMs, and story replies without someone watching the phone. Done well, a "price?" under a Reel becomes a DM with the price in seconds. Done badly, it looks like spam, or breaks Instagram's rules and gets the account restricted.

This guide covers what Meta allows, how to set up each automation in Querygen, and comment triggers you can copy.

What Instagram lets you automate

Everything below works through Meta's official Instagram API. Querygen connects with Instagram Login and has Meta's Advanced Access for messaging and comments. Tools that log in with your password and click through the app are a different thing, and a risky one.

When a customerYou can sendThe rule
Comments on a post or ReelA public reply, plus one private DMThe DM must go out within 7 days of the comment
Sends you a DMAny replyWithin 24 hours of their last message
Replies to your storyAny reply (it arrives as a DM)Within 24 hours
Has never interacted with youNothingBusinesses can't start Instagram conversations
Automation also needs a professional account (business or creator). Personal accounts can't use the API.

Two consequences matter for selling. First, the comment DM is your one shot until the customer replies, so make it useful. Second, a customer who goes quiet can only be followed up within 24 hours of their last message, so the follow-up has to be automatic too.

Comment-to-DM, step by step

1
Connect a professional account
In Settings, connect your Instagram business or creator account with Instagram Login and grant the messaging and comment permissions.
2
Start a comment automation
In Campaigns, pick the Instagram account, choose Respond to customers, then Comment-to-DM automation.
3
Choose the posts
Pick specific posts and Reels, or every post on the account. An automation for a specific post takes priority over an account-wide one.
4
Add keywords, or don't
Keywords match anywhere in the comment and ignore capital letters, so 'price' also catches 'Price??'. With no keywords, every comment on the chosen posts gets a reply.
5
Write a few public replies
Querygen picks one at random for each comment, so your comment section doesn't repeat the same sentence all day.
6
Write the DM
Use a fixed message with the customer's name, or pull fields such as price, code, and link from the catalog item for the post they commented on. Add quick-reply buttons or a website button.
7
Test, then switch it on
Comment from a second account, check the public reply and the DM, and enable the automation.

The catalog option in step 6 is what makes one automation work across every Reel. Import your posts into the knowledge base once, add the prices, and the DM for a comment on the hamper Reel quotes the hamper, while the DM for the tray Reel quotes the tray. See how to convert Instagram enquiries into sales for how the catalog is set up.

DM and story reply automation

Comments are only half the inbox. For DMs and story replies you have three options, from simplest to most flexible:

  • Welcome message. Goes out when a new conversation starts. Use it to say when you reply and what to send: "Share a screenshot of the product and your city, and we'll send the price and delivery time."
  • Automatic replies. Start from keywords ("size chart", "COD") or from a condition you describe in plain English, like "the customer asks about delivery time".
  • Autopilot. An AI agent that answers open questions from your catalog and FAQs, in the customer's language, and hands the chat to your team for discounts, custom orders, or anything you list.

For customers who go quiet, add a conversation follow-up on Instagram. It nudges after the delay you choose, stops when they reply, and doesn't send once the 24-hour window is nearly over.

Comment triggers you can copy

GoalKeywordPublic replyDM
Price on every Reelprice, rateSent you the details 💌The [product] in this Reel is ₹[price] (code [code]). Want the colour options?
Size or fit questionssizeSize chart is in your DMs!Here's the size chart for this piece: [link]. Tell me your usual size and I'll suggest one.
Lead magnetGUIDECheck your DMs 👀Here's the wedding gifting checklist: [link]. Planning for a date? Tell me and I'll suggest hampers.
Event or class sign-upsJOINLink sent!You're in for Saturday's workshop. Here's the registration link: [link]. Any questions, ask here.
Square brackets are fields you fill in, or that Querygen fills from the catalog item for the post.

Mistakes that make automation look like spam

  • Keywords that are too common. "Nice" or "love" will DM people who were just being friendly. With no keywords, every comment triggers a DM, so use that only on posts built for it.
  • One public reply for everyone. Fifty identical replies under a Reel look automated. Write three or four.
  • A DM that is just a link. Say what the link is and ask one question, so the customer has a reason to reply and keep the conversation open.
  • Promising to message later. "We'll DM you when it's back in stock" isn't possible after 24 hours. Ask for their WhatsApp number for restock alerts instead.
  • No way to reach a person. Always hand off discounts, complaints, and custom requests.

What it costs

In Querygen, incoming Instagram messages and replies your team types are included. Each automated DM or answer uses 1 credit. The plan is ₹9,900 + GST a month with 9,900 credits, and Meta doesn't charge a per-message fee for replying to Instagram DMs.

Selling on WhatsApp as well? The same setup ideas apply there. See how to automate WhatsApp Business replies.

Instagram automation
One comment automation for every Reel you post.
Querygen replies to comments publicly, sends a DM with the right product from your posts, answers DMs and story replies, and follows up inside Instagram's window.

Frequently asked questions

How do I auto-reply to Instagram comments with a DM?

Connect your Instagram professional account to a tool that uses Instagram's Private Replies, such as Querygen. Create a comment automation, choose the posts and keywords, write a few public replies, and set the DM. Each matching comment gets a public reply and one DM, sent within Instagram's seven-day limit.

Is Instagram DM automation allowed?

Yes, through Meta's official Instagram API. Querygen connects with Instagram Login and has Meta's Advanced Access for messaging and comments. Tools that log in with your password or click through the app for you break Instagram's terms and put the account at risk.

Can I send a DM to everyone who commented on an old post?

Only for comments made in the last seven days. Instagram allows one private reply per comment within seven days of the comment. Older commenters can't be messaged unless they write to you.

Can Instagram automation reply to story replies?

Yes. A reply to your story arrives as a DM, so the same automatic replies and Autopilot that handle DMs can answer it within the 24-hour window.

Does DM automation work on a personal Instagram account?

No. Instagram's API only works with professional accounts, meaning business or creator accounts. You can switch a personal account to a professional one in the Instagram app settings.

From the journal

Keep reading

More ideas are waiting in the journal.

Browse all articles

Put the ideas to work

Make every customer conversation move the business forward.

Start 7-day trial