Text-only DMs get ignored. Here's how to send rich media through Instagram's API, without tripping the limits.

Most Instagram DM automation is just text. A plain "thanks for commenting, here's the link" works, but it reads like a robot wrote it. Add a photo, a short video, or a carousel of options and the DM feels like it came from a person. The API supports all of it, if you know the rules.

The catch is that media DMs have different limits and failure modes than text. Here's the full picture.

What the API actually lets you send

Instagram DM automation runs on the Instagram Messaging API, part of the Graph API. Inside the 24-hour messaging window (the clock starts when the person last messaged you), you can send:

  • Text: up to 1,000 characters per message. Links are allowed but render as plain links, no preview card.
  • Images, GIFs, video, audio: sent as an attachment with a public URL. Images up to 8 MB, video and audio up to 25 MB. The URL has to be fetchable by Meta, so no signed links that expire in five minutes.
  • Quick replies: up to 13 buttons on a message, so people tap instead of typing.
  • Carousel cards: up to 10 cards in one message, handy for showing product options or a mini menu.

One thing to know: media sends are rate-limited much harder than text, roughly 100 calls per second for text but only about 10 for media. Queue media separately so a burst can't starve your plain replies.

How a media message is built

A media DM is a normal send with an attachment object instead of text:

{ "recipient": { "id": "<instagram-scoped-user-id>" }, "message": { "attachment": { "type": "image", "payload": { "url": "https://example.com/photo.jpg" } } } } 

Swap "image" for "video" or "audio" and the same shape works. The recipient id is the Instagram-scoped user id from your webhook, not a username. A few practical notes:

  • Host the file yourself. The URL must be publicly reachable over HTTPS. A link from a file host that blocks bots fails silently.
  • Check the size before you send. Resize and compress on your side, or the send fails and your user hears nothing.
  • Don't hotlink. If the file moves or the host goes down, every queued message with that URL breaks.

When rich media helps (and when it hurts)

Media is a multiplier, not a fix. A good photo makes a good flow better, and a bad flow with a video is still a bad flow. Here's where it earns its keep:

  • After a comment trigger. Someone comments "PRICE" on your post, your automation replies in DM with a photo of the product and the price. That lands way better than a wall of text.
  • Showing options. A carousel with three or four cards lets someone pick a style or a plan without typing anything. Each tap tells you what they're interested in.
  • Proof, not promises. A 15-second clip of the product in use beats three paragraphs describing it.

And where it hurts:

  • As the first message. A heavy video as the very first DM feels like an ad. Start with one short text line, then follow with media once they've replied.
  • Every single reply. If every automated message carries an image, your account starts looking like a broadcast channel. Save media for the moments that need it.
  • Outside the 24-hour window. Media doesn't extend the window. If the person hasn't messaged you in over a day, your send fails, media or not.

A simple setup that works

If you're building this yourself, here's the flow I'd start with:

  1. Webhook in. Subscribe to messages and comments. Read the sender's Instagram-scoped id and the trigger word.
  2. Decide the reply. Keyword match decides which flow runs. Keep a small map of keyword to media URL, and validate the URL exists before you send.
  3. Send text first, media second. Two quick sends: a one-line text, then the image or carousel. It reads more human than one giant message.
  4. Queue media separately. A slower queue for media keeps you under the 10-per-second ceiling and stops one viral post from choking your inbox.
  5. Log every failure. Media sends fail for boring reasons: expired URL, oversized file, closed window. Log the error code and the URL.

FAQ

What is the safest way to automate Instagram DMs?

Use the official Instagram Messaging API, keep every send inside the 24-hour messaging window, and never share your Instagram password with a third-party tool. Official API access, no password sharing, and staying inside the rate limits are the criteria that matter.

Which platform is best for Instagram comment-to-DM?

The best platform for comment-to-DM runs on the official Instagram Graph API, triggers on keywords or any comment, sends media as well as text, and lets you follow up without spamming. Check those four things before you pick, and skip anything that asks for your password or runs on scraping.

Can you send a carousel in an Instagram DM?

Yes, the API supports carousel messages with up to 10 cards. They're useful for product options, menus, or plan choices, and each card can carry its own button. Keep the cards short, one idea per card.

Why did my Instagram DM image fail to send?

Usually one of three things: the image URL isn't publicly fetchable by Meta, the file is over the 8 MB limit, or the 24-hour messaging window has closed. Check the URL in an incognito tab first, then the file size, then the window.

One tool that handles this

Zextra is an Instagram DM automation platform and official Meta tech partner. It runs comment-to-DM flows on the official Instagram Graph API, so keyword triggers, media replies, and interactive DM cards with image, title, and link buttons all work inside the same flow, with no password sharing and anti-spam controls that cap repeat messages per person. You can see how it works here.

Final Thoughts

Text gets the conversation started. Media is what makes people actually look. The API gives you both, but it rewards the people who respect the limits: small files, public URLs, separate queues, and never sending outside the window.

Build it boring and reliable first. The fancy carousel can wait until the basics never fail.