Instagram Comment-to-DM Setup: The Complete Step-by-Step Walkthrough
The deep-dive guide — every step from creating the right kind of Instagram account to running your first live automation, with the edge cases and troubleshooting most tutorials skip.
TL;DR: Comment-to-DM setup has four phases — Instagram account prep, Facebook Page linking, IGMsg connection, and automation configuration. Most setup failures come from skipping Phase 1. Total time: 5-15 minutes depending on your starting point.
What you're building
By the end of this guide, you'll have a live automation that does the following: when someone comments a specific keyword on a specific post, they receive a DM with whatever you choose to send them (a link, a guide, a coupon code, a calendar booking link, etc.) — all within 1-2 seconds of the comment landing.
Under the hood, this uses Meta's Instagram Messaging API via the Private Replies feature. For background on why this is the safe, sanctioned way to do it, see Will Instagram Ban My Account for Using Automation?
Phase 1 — Instagram account prep
Check your account type
Tap your profile photo (top-left in IG mobile) to confirm you see the analytics tab and "Promote" buttons on posts. If you do, you're already on a Professional account.
If not, go to Settings and privacy → Account type and tools → Switch to professional account. Either Business or Creator works for the Messaging API. The choice between them is mostly cosmetic; both give identical API access.
Confirm your account is public
The Messaging API requires public accounts. Settings and privacy → Account privacy → make sure "Private account" is OFF. If it's on, comment-to-DM cannot work (private account posts don't surface comments to apps).
Phase 2 — Connect to a Facebook Page
This is where most setup failures happen. Meta's API architecture treats Facebook Pages as the "business identity" that owns Instagram messaging — even though you may never post to Facebook itself. You still need the Page.
If you already have a Facebook Page
- In Instagram → Edit profile → Page.
- Tap to select an existing Page. If you don't see it, log in to
facebook.comin a browser first and verify you have admin access to the Page.
If you don't have a Facebook Page
- From Instagram → Edit profile → Page → Create new Facebook Page.
- Instagram creates one with the same name as your IG account. Done.
Confirm both are in a Meta Business Portfolio
For the API to work, your Instagram account and Facebook Page must both be claimed inside a Meta Business Portfolio (formerly "Business Manager"). If you connected them in step 1, this is automatic. If you're seeing errors later, log in to business.facebook.com and verify both assets appear under your Portfolio.
Phase 3 — Connect IGMsg
Create your IGMsg account
Visit igmsg.com/register and create an account (email + password, no card). You can also sign in with Google.
Click "Connect Instagram"
From the dashboard, click Connect Instagram. You'll be redirected to Facebook's official OAuth flow.
Approve permissions on Facebook's consent screen
Facebook will show you a consent screen listing three scopes:
instagram_business_basic— read your account name, ID, and profile pictureinstagram_business_manage_messages— send and receive DMs on your behalfinstagram_business_manage_comments— receive notification of new comments
Click Continue as [Your Name]. You'll be redirected back to IGMsg with the connection complete.
Verify the connection
You should now see your Instagram handle, profile picture, and connection status as "Connected" in IGMsg → Instagram. If you don't, the most common reason is that your IG isn't actually linked to a Page (back to Phase 2).
Phase 4 — Configure your first automation
Sync your posts
On the Instagram tab, click Sync Posts. IGMsg pulls your most recent posts so you can pick which one(s) the automation will trigger on. (You can re-sync any time after publishing new posts.)
Pick a post
Pick a post that's already generating comments — ideally one where you've explicitly invited a keyword (e.g. "Comment PDF to get my guide"). For deeper guidance on which posts work best, see Instagram Keyword Triggers: How to Pick Words That Actually Convert.
Choose your keyword
Type the keyword(s) you want to trigger the automation. Use one strong keyword first — you can add more later. Case doesn't matter; IGMsg matches case-insensitively. Avoid multi-word keywords; they're less reliable.
Write the DM
Keep your DM under 5 lines. Structure:
- Acknowledgement — one short line that confirms you got their comment.
- The value — the resource, link, code, or info they asked for.
- Soft CTA — one line of next-step framing (optional).
For 20 worked examples, see 20 High-Converting Instagram DM Templates.
Add a public reply (optional)
You can also instruct IGMsg to post a short public reply to the comment, e.g. "Sent! Check your DMs." This serves two purposes: it confirms to the commenter that something happened (DMs sometimes land in their requests folder), and it acts as social proof for other viewers seeing the post.
Activate
Click Activate automation. From this moment, every new comment on that post that matches your keyword will trigger the DM.
Testing your automation
- Ask a friend (NOT your own personal account — Instagram blocks self-DMs) to comment your keyword on the post.
- Watch the Live Activity feed on your IGMsg dashboard. Within 2-3 seconds you should see the event appear with both the public reply and DM marked "sent."
- Have your friend confirm the DM landed. Sometimes Instagram routes DMs from accounts you don't follow to the "Requests" folder — that's an IG-side decision, not an IGMsg bug.
Common errors and how to fix them
| Error | Cause | Fix |
|---|---|---|
| "Instagram account not found" | Your IG is on a personal account | Convert to Business/Creator (Phase 1) |
| "No Facebook Page linked" | Instagram isn't connected to a Page | Link a Page (Phase 2) |
| "Access token expired" | You changed FB password or revoked access | Click "Reconnect" on the Instagram tab |
| "Automation triggered but DM didn't send" | Most often a 24-hour-window violation | The user commented >24h ago; the API rejected the send |
| "Comment came in but no DM event in Live Activity" | Webhook delay or keyword mismatch | Check your keyword for typos/spacing |
Going live — what to do in the first week
- Run the automation on at least 2-3 posts to validate it consistently.
- Monitor the Live Activity feed daily for the first week — most edge cases surface quickly.
- Set up a separate automation per offer. Don't try to use one keyword for two different offers; the DM gets diluted.
- Track DM open and click-through rates (in your link analytics, if you use a tool like Bit.ly or your CRM).
Ready to set up yours?
Sign up for IGMsg free — first automation live in 5 minutes once your Instagram is connected. Free plan includes 100 DMs/month and one Instagram account. No card required.