How to send an automatic DM when someone comments on your Instagram post
Comment replies & DMsUpdated Published By Team CommenSense
On this page
- How do I set up a comment-to-DM automation?
- Which kind of DM should I send?
- Can I reply under the comment without sending a DM?
- How do I check what the commenter will see?
- What does the commenter receive?
- Which comments don't trigger the automation?
- What if two automations match the same comment?
- How do I pause or change an automation?
- Common mistakes
This is how creators run "comment GUIDE and I'll send you the link" posts without answering hundreds of comments by hand. The whole automation is set up on one page, in the order the commenter experiences it: their comment, your public reply, any steps before the DM, and the DM itself. This guide walks through it, shows what the commenter actually receives, and covers the limits worth knowing before you announce the post.
How do I set up a comment-to-DM automation?
Choose Comments, then One post, reel or ad, Your next post or reel or Every post and reel.
One post, reel or ad is the usual choice for a giveaway or a "comment for the link" post. Select Choose the post and pick it; your ads are on the Ads tab. Your next post or reel is the same, set up before you publish: it attaches to the first post or reel you publish after creating it (see how to set up an auto-DM before you post). Every post and reel runs on all your posts, including your ads and the ones you publish later (see comments on your ads). (Story replies is for replies to your stories, and works the same way, without the public reply. See how to auto-reply to story replies.)
Already looking at the post? Open Posts, pick the post, go to its Automations tab and select New automation there. It's set to that post automatically.
In When someone comments, type each keyword people should comment and press Enter.
You can add up to 15. A comment starts the automation if it contains any of them, ignoring capital letters. To message everyone who comments, whatever they write, set Which comments? to Every comment instead.
The automation gets a name such as "Comments · 19 Oct" at the top of the page. Select the pencil next to it to give it one you'll recognise in the list later, such as "Free guide DMs".

Steps 1 and 2: the keywords, and the public reply under the comment. Keywords match inside longer words too, so short ones can fire on comments you didn't mean. How keywords work explains how to choose them.
Check Reply under the comment, or switch it off.
With it on, CommenSense also replies publicly under the person's comment, so other people can see they were answered. It comes with three replies already written. Keep at least three, so the replies don't all look the same; one is picked at random each time. The public reply is posted only once your first message has actually reached them.
Most replies on one post sets the most public replies CommenSense posts on one post: 100, 200, 400 or 800; new automations start at 100. After that, people still get the DM, just without the public reply. On a busy post, some comments may not get a public reply even before then, to keep your account safe. For what to write, see replies that don't look like spam.
Optional: under Add a step before the DM, add any extra steps.
Leave these out for the simplest flow: comment in, DM out.
Opening message: a short message with a button. Your DM goes out only when they tap it. Write at least two versions; one is picked at random each time.
Ask to follow: checks that they follow you before sending the DM, and asks them to follow if they don't. See how following first works.
Collect email or phone: asks for their email or phone number before sending the DM, and saves it to Contacts. Basic plan and higher. See how to collect emails and phone numbers.
Each one you add becomes a numbered step before the DM. The bin icon on a step removes it.
In Send a DM, write the message.
The DM starts as Text, a plain message of up to 220 characters. To greet people by name, select the @ button. It adds
{{username}}, which becomes their @username when the message is sent. Select + next to Versions to write a few versions; one is picked at random each time.
Optional steps, then the DM. Select Create automation.
If something is missing, such as the DM text or a keyword, the step is marked and says what to fix. Nothing is saved until you select Create automation, and Cancel leaves without saving.
The automation is live as soon as you create it. It appears in the Automations list with its status switch on.
Which kind of DM should I send?
Select Change next to the format's name in Send a DM to pick how the DM looks. Only the format you pick is sent.

| Format | What it is | Good for |
|---|---|---|
| Text | A plain message, up to 220 characters. | A short answer or a single link. |
| Text and buttons | A message with up to 3 link buttons, such as "Get the guide". | Links people tap, with a count of how often they're opened. |
| Picture card | A picture, a title, an optional subtitle and up to 3 link buttons. The picture is a PNG or JPG of up to 8 MB, cropped to a square. | One product or one freebie, with an image. |
| Carousel | 2 to 10 picture cards people swipe through, each with its own title and up to 3 link buttons. | Several products or links at once. |
| Instagram post | One of your own posts, reels or carousels, shared as a post card. | Sending people to the post, or to your newest reel. |
| Picture | 1 to 5 pictures, with no text. Several arrive as a stack that opens into a grid. | A menu or a price list. |
| File | One PDF of up to 10 MB, shown with its name and size. | A guide people keep. |
| Voice note | A voice message, recorded in CommenSense or uploaded. | A thank-you in your own voice. |
The first four are on every plan. Instagram post, Picture, File and Voice note are included in the Basic plan and higher; see how to send pictures, a PDF or a voice note.
A few things to know:
- Buttons are capped at 3 by Instagram, per message, or per card in a carousel. Each button label can be up to 20 characters.
- Carousels only show in the Instagram app. On a computer, Instagram shows "Unsupported message" instead.
- Links in buttons are counted. The Clicks column in the Automations list shows how often the buttons were opened, which plain text links don't give you. See what the numbers mean.
- Text, Text and buttons, and Picture card DMs can have several versions, picked at random. A carousel is one fixed set of cards.
Can I reply under the comment without sending a DM?
Yes. Switch off Send a DM and keep Reply under the comment on. The automation then only replies publicly, which is useful for thanking people on a post with no link to share. If you haven't changed the ready-made replies, switching the DM off changes them to thank-yous, since "check your inbox" would no longer be true. At least one of the two must stay on.
How do I check what the commenter will see?
While you edit, the Preview shows the post, the comment with your public reply, and the DM. On a wide screen it sits next to the steps; on a narrower one, select the Preview button at the bottom right. Switch between Post, Comment and DM at the bottom of the preview.

To test it for real, comment one of your keywords on the post from a different Instagram account. Comments made by your own account are ignored, so testing from the account you connected never triggers anything.
What does the commenter receive?
- A DM from your account. Instagram calls this first message a "private reply" to their comment (see what is a private reply?). According to Meta's documentation, it lands in their main inbox if they follow you, and in their message requests if they don't.
- Your public reply under their comment, if Reply under the comment is on.
- On the Free plan, a short "Sent using commensense.in" line at the end of the DM. Paid plans don't add it.
Each comment gets the DM at most once per automation, even if the comment is processed again. If the same person comments again later, that new comment counts on its own. Every plan, Free included, has unlimited DMs; see what counts as a DM.
Which comments don't trigger the automation?
- Comments that don't contain any of your keywords (unless it runs on Every comment).
- Replies inside a comment thread. Only top-level comments trigger automations.
- Comments with no text at all, such as a lone GIF or sticker.
- Comments from your own account.
- Comments made before you created the automation. On the Pro and Business plans, a one-post automation can be run on the last 7 days of comments with Re-run on past comments, from the More menu in the Automations list. See how to re-run an automation.
- Comments from people on your Restricted people list.
What if two automations match the same comment?
Only one automation of each type runs on a comment, so nobody gets two DMs for one comment. CommenSense picks it in this order:
- An automation for this post whose keyword matched.
- An automation for this post set to run on every comment.
- An All posts automation (one set to Every post and reel) whose keyword matched.
- An All posts automation set to run on every comment.
A Next post automation counts as one for this post once it has attached to it.
If two automations are equally specific, the one you edited most recently wins. An automation that only replies under the comment (its DM switched off) is a different type from one that sends a DM, so both can run on the same comment. The Type column in the Automations list shows which is which: Reply to comment or Comment to DM.
How do I pause or change an automation?
In Automations, each automation has a status switch: Live or Inactive. Switch it off to pause it without losing anything. Select the pencil to open it on the same page you created it on, change anything, and select Save changes. The bin deletes it.
Common mistakes
- Testing from your own account. Use a second account, or ask a friend.
- Keywords that are too short. "hi" also matches "this" and "shipping". Use distinctive words.
- Asking people to comment a word you didn't add. If your caption says "comment GUIDE", make sure guide is in the keywords. Capital letters don't matter.
- Promising an instant reply on a giveaway. On a very busy post, say the DM can take a few minutes.
If it still isn't working, go through why an automation didn't reply or send a DM.
Related guides
How to send your automation to people who commented before you set it up
Set up your comment-to-DM automation late? Re-run it on the last 7 days of comments, and see exactly who gets a message and who is skipped.
Updated
How keywords work in CommenSense (and how to choose good ones)
Why a keyword can match the wrong comment, how CommenSense matches keywords in automations and hide rules, and how to pick ones that work.
Updated
Why didn't my automation reply or send a DM?
Work out why a CommenSense automation skipped a comment, from keyword matches and status to follow checks, plan limits and Instagram delays.
Updated
Instagram's rules for automated replies and DMs, explained
How many automated DMs Instagram allows, the 7-day and 24-hour windows, and which limits are Meta's and which are CommenSense's own settings.
Updated
How to collect emails and phone numbers from Instagram comments
Ask everyone who comments a keyword for their email or phone number in a DM, check the answer, and save it to a list you can download.
Updated
How to send pictures, a PDF or a voice note in an automatic Instagram DM
Send up to 5 pictures, a PDF, a voice note or one of your posts when someone comments a keyword, with an optional message just before it.
Updated
