Build a comment-to-DM funnel with Gemini CLI

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. Gemini CLI sets up all three through the CueEditio MCP in one conversation.

For Instagram professional accounts · Updated October 2026

One-time setup in Gemini CLI

Paste this to Gemini CLI
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.com
Or add it yourself
gemini mcp add --transport http --scope user cueedit https://www.cueedit.io/api/mcp/mcp
# then in Gemini CLI: /mcp auth cueedit
  1. 1.Paste the line above into Gemini CLI. It signs up with an email code and gives you one link.
  2. 2.Open the link, check the email shown, and approve Instagram.
  3. 3.Ask Gemini to list your Instagram accounts.

Ask Gemini CLI

You

Turn my latest reel into a funnel: keyword NOTES, follow required, DM https://example.com/notes, then catch up earlier commenters.

Gemini CLI

Rule ready. 8 earlier NOTES comments, all within 7 days. Create the rule and DM the 8?

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. 1.Post the reel

    Your caption says "comment GUIDE". The link can be a page, a PDF or a calendar.

  2. 2.Ask Gemini CLI to wire it

    Keyword, guide link, whether to require a follow, and the public reply text.

  3. 3.Catch up

    Gemini CLI DMs everyone who commented before the rule existed, if the comment is under 7 days old.

  4. 4.Check later

    Ask "how many GUIDE comments are still unhandled?" any time to see what is left.

Gemini CLI asks before each tool call unless you trust the server. Leave confirmations on for replies and DMs.

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. Gemini CLI 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 Gemini CLI 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.

This page covers Gemini CLI. Custom MCP apps in the consumer Gemini app are limited by region and plan, so use Gemini CLI if you do not see them.

Connect CueEditio to Gemini CLI

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 Gemini CLI

Comparing tools? CueEditio vs ManyChat, CueEditio vs Postiz, CueEditio vs Blotato.