Build a comment-to-DM funnel with Codex
A "comment GUIDE" reel needs three things: a rule for new comments, a public reply so the comment section looks answered, and a sweep for the people who commented before the rule was live. Codex sets up all three through the CueEditio MCP in one conversation.
For Instagram professional accounts · Updated October 2026
One-time setup in Codex
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.comcodex mcp add cueedit --url https://www.cueedit.io/api/mcp/mcp
codex mcp login cueedit- 1.Paste the line above into Codex. 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 Codex to list your Instagram accounts.
Ask Codex
You
Build the comment funnel from funnel.json (keyword, link, follow gate) on the reel id inside it, then DM people who already commented.
Codex
funnel.json: keyword AUDIT, follow required, link https://example.com/audit, reel 1803…. Rule ready to create. 9 existing AUDIT comments are DM-eligible. Create the rule and send the 9 DMs?
Example conversation. Post names and counts will be your own.
The CueEditio tools that run
list_postsFinds the reel that asks people to comment.create_autodm_ruleKeyword rule with require_follow (asks people to follow before the guide arrives) and comment_replies for the public "sent" reply.list_commentsFinds people who already commented the keyword, with dm_eligible for the 7-day window.send_dmSends the guide to those earlier commenters, one DM per comment.reply_to_commentLeaves the public reply under the earlier comments too.
How it works
1.Post the reel
Your caption says "comment GUIDE". The link can be a page, a PDF or a calendar.
2.Ask Codex to wire it
Keyword, guide link, whether to require a follow, and the public reply text.
3.Catch up
Codex DMs everyone who commented before the rule existed, if the comment is under 7 days old.
4.Check later
Ask "how many GUIDE comments are still unhandled?" any time to see what is left.
Codex works well for repeatable jobs: keep the instructions in a file, run them with codex exec, and read the tally it prints at the end.
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
With require_follow on, the first DM asks the commenter to follow and tap a button. CueEditio checks the follow and then sends the guide. People who already follow get the guide straight away.
Rules only react to new comments. Codex handles the earlier ones by listing comments on the reel and DMing each match with send_dm, as long as the comment is 7 days old or newer.
Yes. Each rule can target specific posts by id. Ask Codex for a GUIDE rule on one reel and a PRICE rule on another.
Yes. The DM is plain text up to 1,000 characters, and links are allowed.
codex mcp add writes the server to ~/.codex/config.toml under [mcp_servers.cueedit]. Codex stores the sign-in itself.
Connect CueEditio to Codex
Create an account, connect your Instagram professional account, then add the MCP server above. Reading comments is free; sending replies and DMs needs Pro.
Comment-to-DM funnel with other agents
More with Codex
Comparing tools? CueEditio vs ManyChat, CueEditio vs Postiz, CueEditio vs Blotato.