Guide · Instagram automation, DMs and comment-to-DM

Instagram DM bots: what the API sends, and what gets flagged

By Antoine Blanco··8 min read

An Instagram DM bot can only message someone who messaged you in the last 24 hours, plus one private reply per comment within 7 days. That single rule decides everything else: what it sends, how it is built, and why most bots sold as unlimited DMs drive the app instead of the API. Checked on November 24, 2026.

What an Instagram DM bot actually sends

A bot on Instagram does not have an address book. It has threads. Meta's Instagram Messaging API only lets your app write into a conversation that a person opened, and only for as long as that conversation counts as open. There is no endpoint that takes a username and sends a cold DM, and there never has been.

So the real feature list of a working DM bot is short:

Everything beyond that list is either a different product (ads, a chatbot on your own site) or a tool pressing buttons in the Instagram app on your behalf.

The two doors into an Instagram inbox

There are exactly two, and they have different clocks. Both come from Meta's own policy page, updated September 28, 2026, and the private reply doc updated July 2, 2026.

Door Opens when Stays open Messages allowed Promotional content
Standard messaging window The person messages you, taps a CTA, or reacts to a message 24 hours from their last message Unlimited inside the window Allowed
Standard window, after a Click-to-Direct ad They send a first message after clicking the ad Up to 7 days from that message Unlimited inside the window Allowed
Private reply to a comment They comment on a post, reel or ads post 7 days from the comment, or the live broadcast only, for a live Exactly 1 Allowed
Human Agent tag A person needs a human answer A separate 7-day period Manual replies by a human No

Two consequences people learn the hard way. First, the private reply is one shot per comment: a second automation matching the same comment finds the door shut. Second, the private reply only buys a conversation if the person answers it, and their answer is what opens the 24-hour window.

One-time notifications and sponsored messages, which Messenger has for reaching people outside the window, are not available on the Instagram Messaging API. On Instagram, the window is the whole game. Instagram DM automation goes deeper into the window itself and the tags.

Instagram chatbot: the three families, and which one risks your account

Search "instagram chatbot" and you get three different products wearing the same word.

Family How it connects Can it cold DM? Risk to the account
Official API tools Meta app, reviewed, OAuth on a professional account No Low, you are inside the rules
App drivers Your login, a phone farm or a browser session Yes, until it is caught High, this is unauthorized access
Your own code Your Meta app, your webhook server No Low, same rules as above

The middle family is the one that sells best, because it is the only one that can promise what the API refuses. It is also the one that collects your password and types as you. Meta's Platform Terms prohibit accessing the service by anything other than the published APIs, and the enforcement does not land on the tool, it lands on your account.

My own test account picked up a restriction in July 2026 on a day I was pushing an automation too hard. The warning screen is the same one people get for buying followers, and the appeal form does not ask which tool you used. Instagram bots in 2026 has the full taxonomy and what the ban screen looks like.

Chatbot for Instagram: what gets flagged

Flags come from pattern, not from intent. The things that reliably trigger them:

A broadcast is where this goes wrong at scale. Meta refuses an unlabelled message more than 24 hours after the contact's last one, so a broadcast to your whole list fails per recipient, silently, unless the tool filters the audience to the people still inside the window first. That filter is the difference between a 95 percent delivery rate and a flagged account.

You have to say it is a bot

This is the part nobody implements. Meta's policy says that when applicable law requires it, an automated chat experience must disclose that the person is talking to an automated service: at the start of the thread, after a significant lapse of time, and when a conversation moves from a human to a bot. Meta names California and Germany as markets that pay special attention to it.

The disclosure costs you one line: "You are chatting with the [name] bot." Write it into the first message of every automation. It is cheap, it is the rule, and in my experience it does not reduce replies at all.

Building one without writing the OAuth part

The API route for an Instagram DM bot has four parts: a Meta app with instagram_business_basic and instagram_manage_messages, a professional account connected by OAuth, a webhook server for the messages event, and a send call. The app review is the slow part, counted in days, not hours.

If you would rather skip that, a hosted API hands you the same primitives behind one key. With PlugKit the whole bot is three calls: sync or receive the conversation, read it, reply.

# the message arrives as a message.received webhook, or pull it
curl -X POST "https://api.plugkit.co/v1/inbox/conversations/sync?accountId=ACCOUNT_ID" \
  -H "Authorization: Bearer sk_your_key"

# reply inside the 24-hour window
curl -X POST https://api.plugkit.co/v1/inbox/conversations/CONVERSATION_ID/messages \
  -H "Authorization: Bearer sk_your_key" -H "Content-Type: application/json" \
  -d '{ "text": "You are chatting with the Plug bot. Here it is:" }'

Send an Idempotency-Key header on that reply. A network retry that sends the same DM twice is the most common self-inflicted flag I see.

The comment side is a separate object, a comment automation, because the private reply has its own clock and its own one-shot rule. That is the comment-to-DM mechanic, and it is the only way to message someone who has never written to you.

PlugKit is $49 a month for 5 connected accounts, cancel anytime, or $97 for 30, with publishing, inbox, comments, analytics and campaigns included. The first seven days are free, with a card asked for at sign-up and nothing charged before day 7. Prices read on www.plugkit.co and docs.plugkit.co on November 24, 2026.

Letting an agent answer instead of a decision tree

A keyword bot answers what you predicted. An agent reads the thread and answers what was asked, which is a different product even when it uses the same send call.

The practical setup: give the model the inbox as tools rather than a flow chart. Through the PlugKit MCP server that is list_conversations, list_messages and send_message, and the agent decides. Keep the write tools behind an approval for the first week; read-only triage is already worth it, and a wrong DM is public the second it sends.

FAQ

Can an Instagram DM bot send a message to anyone?

No. The API only writes into a conversation the person opened, within 24 hours of their last message, or as a single private reply to a comment they left in the last 7 days. Any tool promising cold DMs to a list of usernames is driving the Instagram app with your login, which is what gets accounts restricted.

Are Instagram DM bots against the rules?

Automating DMs through the official Instagram Messaging API is allowed and documented by Meta. What is against the rules is reaching the inbox by any other means: your password in someone else's tool, a browser extension clicking for you, or a scraper. The rule is about the door you came through, not about whether a robot wrote the words.

How do I make a chatbot for Instagram?

Convert the account to professional, create a Meta app, request instagram_business_basic and instagram_manage_messages, pass the app review, subscribe to the messages webhook and reply with the Send API. Or connect the account to a hosted API and write three calls instead, which is the route most people take after the first review cycle.

Why did my Instagram bot stop sending messages?

Most often the window closed: the contact's last message is more than 24 hours old, so Meta refuses an unlabelled reply. The other frequent causes are a bare link in the body, a comment whose single private reply was already used, and a 429 you kept retrying. Check the per-recipient failure reason rather than the overall send status.

Do I have to tell people they are talking to a bot?

Where the law requires it, yes, and Meta names California and Germany as examples. The disclosure goes at the start of the thread, after a long gap, and when a human hands over to automation. One sentence in the first message covers it.

AB
Antoine BlancoFounder of PlugKit. Runs his own Instagram, YouTube and X accounts through the API and MCP server described here.

One plug for every platform your agent touches

$49 a month for 5 connected accounts, cancel anytime. Every feature in every plan.

Get your API key →
English ▾