How I Replied to 446 Old Instagram Comments (and DMed Every One) with Claude

I post a reel. I say "comment link". Hundreds of people comment link. And then I realise I never attached the automation.

This happened to me on two posts this week. A carousel with 275 "link" comments and a reel with 171. That is 446 people who did exactly what I asked and got nothing back.

This post is how I fixed it, and how you can do it yourself without touching a Facebook developer app.

Why your auto-DM tool cannot fix this

I use SuperProfile. I have used ManyChat. They are great. But every one of these tools works the same way: they listen for NEW comments through a webhook and reply when one arrives.

If you attach the automation after the comments already exist, nothing happens. The 446 people are just sitting there. Some tools have a "reply to previous" button, but every one I tried either capped at a handful or silently skipped the older ones.

So I was stuck with two bad options. Reply to 446 comments by hand from my phone, or leave them.

The official way actually exists

Instagram has something called Private Replies in its API. It is the exact mechanism those automation tools use under the hood. Three things matter about it:

  • It works on comments up to 7 days old. Not just new ones.
  • You get one private reply per comment. One DM per commenter, no spam.
  • The documented limit is 750 per hour per account.

So 446 people fits in one hour with room to spare. And because it is the official API, it is not the browser-automation stuff that gets accounts action-blocked. This is the sanctioned path.

The catch is that you need a Meta app with the right Instagram permissions and a token for your account. That is the part most creators will never set up.

What I actually did

I had already built that Meta app for CueEdit, my video tool, because it has an auto-DM feature. So I opened Claude Code and pointed it at that.

It went like this:

  1. Dry run first. Claude listed every comment on both posts, skipped the ones that already had a reply from me, and told me the count: 275 + 171 to do.
  2. Test on 4 people. I checked on Instagram before and after. All 4 had the reply and the DM.
  3. Full run. One public reply ("dm sent, please check") plus the DM, about 6 seconds between people, logged to a file so a second pass could never double-DM anyone.

Total time: about 45 minutes. Rate-limit errors: 0. Undeliverable: 1, a user who has DMs closed. 445 out of 446.

The DM for the reel was just the thing the reel promised, with the course link second:

Hey there!
here is the link https://outbid.lol if you want to learn how to build vibe coding https://www.sanskartiwari.io/vibe-coding

That is it. No new software. A 54-line script that Claude wrote and ran while I watched the counter go up.

How you can do it (no Facebook app needed)

Building the Meta app is the only hard part, and you should not have to. So I am shipping this as a feature in CueEdit this week. CueEdit already holds the approved Instagram app. You connect your account with the normal Instagram login, get an API key, hand it to Claude, and Claude does the rest through CueEdit.

Here are the steps.

Step 1. Sign up at CueEdit and connect your Instagram account. It is the standard Instagram login, about 30 seconds.

Step 2. Go to Settings, then API keys, and create a key. Copy it once, it is only shown once.

Step 3. Install Claude Code if you have not already. When you create the key, CueEdit shows a short snippet with the API (base URL, the five endpoints, the rules). Click "Copy snippet" and paste it into your project's CLAUDE.md, or just paste it straight into Claude. That is the whole setup. No MCP server, no config files.

Step 4. Open Claude Code and say what you want. This is the prompt I use:

reply to all previous comments on my last reel with "dm sent, please check" and DM everyone this link: https://your-link-here

Step 5. Claude will show you the count first (how many comments, how many are still DM-able, how many are past 7 days) and ask you to confirm. Say yes. Then watch the activity tab in CueEdit fill up with every reply and DM as it happens.

The safety rules baked in

This is the part that matters if you care about your account. These are enforced on the CueEdit side, not left to Claude:

  • Dry run before anything is sent. You always see the number first.
  • Dedup. A comment that already got a DM cannot get a second one, even if Claude retries.
  • Pacing. A few seconds between people, and a hard cap well under Instagram's 750 per hour.
  • Stop on first error. A rate limit or a permission error halts the run and tells you exactly what happened.
  • Comments older than 7 days are skipped, because Instagram will not deliver those DMs anyway.

Attach the automation BEFORE you post

The real lesson is not the script. It is that I should have wired the comment-to-DM rule at post time. I now do that through CueEdit on every post, and the catch-up is the backup for the days I forget.

If you want the exact prompts and setup, comment "link" on the reel where I showed the terminal tally. Yes, that one has the automation attached.