You're In! Here Is The Whole Instagram DM Machine
Both prompts, every tool with my discount codes, the send limits that keep your account alive, and the setup in order. Work top to bottom and you will have it running today.
1. Find the accounts
Filter Instagram profiles by the words in their bio and their follower range, or scrape who an account follows and who comments on its posts.
2. Qualify and research
Pull each profile, run it through the qualifier prompt, then research whoever passes so the opening line is about them and not about you.
3. Write each message
The copywriter prompt writes one unique message per person in a fixed five line format, with a list of words it is not allowed to use.
4. Send, then reply
Send in small batches on a human schedule, then answer replies, including threads from months ago that Instagram normally locks you out of.
The 2 prompts
These are the two I actually run. The first decides who is worth messaging. The second writes the message. Copy them exactly.
Prompt 1: the qualifier
Feed it one scraped profile. It returns PASS or FAIL, a one line reason, and a cleaned up bio that will not break the next API call.
{{ $json.* }} lines are n8n expressions that pull fields off the scraped profile. If you are running this in Claude Code or another agent instead, replace each one with the actual value.Prompt 2: the personalized copywriter
Give it the qualified profile plus your research. It writes one message in a fixed five line format. The format is doing most of the work, so the AI only has to fill in the compliment and the one specific way this person could use the system.
The tools
You do not need all of these. The list, and what each one is actually for.
Consulti Instagram lead database
PaidCode IGDM50 · 50% off with the linkReplaces the whole scraping step. Filter hundreds of thousands of Instagram profiles by bio keyword, include and exclude terms, follower range and post count, then export a CSV. This is the fastest way to get a qualified list.
Open ConsultiApify account
Paid, usage basedCode 30JAY · 30% offRuns the two actors below. Sign up through this link and the discount code applies to your plan.
Open ApifyApify: Instagram DM sender
Paid per runSends the messages from your account using your logged in browser session. Several actors do this job. If this one is ever broken or overpriced, pick another with strong reviews that is actively maintained.
Open the DM senderApify: Instagram profile scraper
Paid per profilePulls the bio, follower counts, category and privacy flag for each account, which is exactly what the qualifier prompt reads.
Open the profile scraperUnipile
About $5 per account per monthThe piece most people are missing. It rebuilds the private Instagram and LinkedIn messaging APIs, so your agent can read and answer conversations of ANY age, comment on posts, and reply to comments. The approved tools cut you off after 24 hours. It also keeps the connection logged in for you.
Open UnipilePerplexity
Free tier, paid APIThe research pass. It finds the one true detail about the person that the first line of the DM is built on.
Open Perplexityn8n
Free self hostedOptional. It runs the steps on a schedule so you never think about it. You can hand the same prompts and rules to Claude Code or any agent instead and get the same result.
Open n8nThe limits that keep your account alive
This is the part people skip, and it is the only part that decides whether you still have an account next month. None of the rest matters if you get this wrong.
Stay under 50 messages a day
This is the number. Do not test what happens above it on an account you care about.
5 at a time, about 10 runs a day
Break the day into small batches at uneven times instead of one large send.
Wait 60 to 360 seconds between messages
A random gap in that range reads as a person typing. A fixed delay reads as a script.
Never send the same message twice
The copywriter prompt already handles this. Every message is written for one person.
Residential proxy at minimum
Use a residential IP in the country you actually log in from. Mobile IPs are better. Apify does not sell mobile proxies, so bring your own if you want them.
Replies are a different game
These caps are for cold first messages. Answering someone who already wrote to you is far safer and does not need the same restraint.
The honest version. This is against Meta's terms of service. ManyChat and GoHighLevel automations run on endpoints Meta approves and hands out. This does not. It uses your own logged in session, which is why the limits above exist and why there is real risk to the account.
I have run this for over a year across multiple accounts without a problem, but I also pay for verification, spend real money on ads, and use the accounts normally every day. If your account is brand new, unverified, has never run an ad, and has no normal activity, you are the profile that gets suspended. Get the badge, run some ads, be a real user first.
Setup, in order
Four stages. Open each one as you get to it.
Get stuck? Ask in the free community
The free AI Automation Insiders community is where people building this exact system compare notes on what is working, which actors are healthy, and what is getting accounts flagged.
Join The Free CommunityWant the built version instead of the build? AI Automation Insiders
Everything above is the system explained. Inside AI Automation Insiders you download it instead.
- The n8n workflows for this DM engine, imported in a click
- The AI agent install that runs your DMs, emails and LinkedIn all day
- The GitHub repo downloads behind every system
- The social media app that reviews and sends every AI reply
- Every other AI system, plus weekly coaching with me for life
Lifetime access, including everything added later.