Instagram auto DM from Grok Build

Tell Grok Build 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 Grok Build is closed.

For Instagram professional accounts · Updated October 2026

One-time setup in Grok Build

Paste this to Grok Build
Read https://www.cueedit.io/agent.md and set up CueEditio for me. Use my email: you@example.com
  1. 1.Paste the line above into Grok Build. It signs up with an email code, adds the server with grok mcp add, and gives you one link.
  2. 2.Open the link, check the email shown, and approve Instagram.
  3. 3.Ask Grok Build for your Instagram accounts.

Ask Grok Build

You

Auto DM people who comment CODE on my latest reel with https://example.com/code

Grok Build

Latest reel: "Ship a SaaS in a weekend". Rule: CODE → DM "Here’s the code: https://example.com/code". Create it?

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. 1.Connect once

    Add the CueEditio MCP to Grok Build and sign in. Connect your Instagram professional account in CueEditio.

  2. 2.Describe the rule

    Name the keyword, the post ("my latest reel") and the message, link included.

  3. 3.Confirm

    Grok Build shows the exact rule and DM text. Nothing is created until you say yes.

  4. 4.It runs on its own

    The rule lives on CueEditio’s servers. It keeps sending after you close Grok Build. Ask Grok Build to pause it any time.

Grok Build runs in your terminal and asks before each tool call. Ask it to show the DM text first.

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. Grok Build 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 Grok Build 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.

No. Grok Build is xAI’s terminal coding agent. Grok Bot runs always-on Bots on a cloud computer and has its own setup; see the Grok Bot page.

Connect CueEditio to Grok Build

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 Grok Build

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