Instagram auto DM from Cursor
Tell Cursor the keyword, the post and the message. It finds the reel, shows you the exact DM, and after your yes creates an Auto DM rule in CueEditio. From then on every matching comment gets the DM within seconds, even when Cursor is closed.
For Instagram professional accounts · Updated October 2026
One-time setup in Cursor
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.com{
"mcpServers": {
"cueedit": { "url": "https://www.cueedit.io/api/mcp/mcp" }
}
}- 1.Paste the line above into Cursor’s Agent chat. It signs up with an email code and gives you one link.
- 2.Open the link, check the email shown, and approve Instagram.
- 3.Ask it to list your Instagram accounts.
Ask Cursor
You
@launch.md The launch reel is up. Add an auto DM for keyword BETA with the waitlist link from this file.
Cursor
From launch.md: waitlist https://example.com/beta. Rule: BETA on your latest reel → DM "You’re in. Join the beta here: https://example.com/beta". Run create_autodm_rule?
Example conversation. Post names and counts will be your own.
The CueEditio tools that run
list_accountsChecks which Instagram account is connected and whether it can send (Pro).list_postsFinds your latest reel or the post you described, with its id.create_autodm_ruleSaves the rule: keywords, the DM text, which posts, optional public reply and follow gate.list_autodm_rulesReads the rule back so you can see it is active.
How it works
1.Connect once
Add the CueEditio MCP to Cursor and sign in. Connect your Instagram professional account in CueEditio.
2.Describe the rule
Name the keyword, the post ("my latest reel") and the message, link included.
3.Confirm
Cursor shows the exact rule and DM text. Nothing is created until you say yes.
4.It runs on its own
The rule lives on CueEditio’s servers. It keeps sending after you close Cursor. Ask Cursor to pause it any time.
Cursor’s agent asks before running each tool. Keep launch copy in your repo and reference it with @ so the DM text matches the landing page.
Limits to know
- Instagram only lets a business DM someone who commented, as a private reply to that comment. The agent cannot cold-DM people who never commented.
- One DM per comment. A second send to the same comment returns already_dmed unless you tell the agent to force it.
- The comment must be 7 days old or newer. Older comments come back with dm_eligible false.
- At most 600 DMs and 600 public replies per hour per account, below Meta’s ceiling of 750.
- Reading posts, comments and rules works on the free plan. Sending replies, DMs and creating rules needs CueEditio Pro ($6 or ₹459 a month).
Questions
No. Cursor only creates the rule. CueEditio stores it and Instagram’s webhook triggers it, so DMs go out while your computer is off.
Yes. Ask for "any comment" and Cursor sets trigger_mode to any. Keyword rules match when the comment contains the word; ask for an exact match if you need one.
Yes. The rule can post a public reply under the comment, with up to three variations picked at random so the replies do not all look the same.
Yes. CueEditio uses the Instagram API with Instagram Login. Our messaging and comment permissions passed Meta App Review in October 2026.
Yes. cursor-agent reads the same mcp.json. Run cursor-agent mcp login cueedit once, then use it in the terminal or in scripts.
Connect CueEditio to Cursor
Create an account, connect your Instagram professional account, then add the MCP server above. Reading comments is free; sending replies and DMs needs Pro.
Instagram auto DM with other agents
More with Cursor
Comparing tools? CueEditio vs ManyChat, CueEditio vs Postiz, CueEditio vs Blotato.