<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BuzzWire</title>
    <description>The latest articles on DEV Community by BuzzWire (buzzwire).</description>
    <link>https://dev.to/buzzwire</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F15778%2F16063e9a-1c3f-4ad8-8229-94c0cd5c2e6c.png</url>
      <title>DEV Community: BuzzWire</title>
      <link>https://dev.to/buzzwire</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/buzzwire"/>
    <language>en</language>
    <item>
      <title>Instagram comment-to-DM automation: build it on the API, or ship it today for free</title>
      <dc:creator>BuzzWire</dc:creator>
      <pubDate>Mon, 02 Nov 2026 10:21:52 +0000</pubDate>
      <link>https://dev.to/buzzwire/instagram-comment-to-dm-automation-build-it-on-the-api-or-ship-it-today-for-free-38hf</link>
      <guid>https://dev.to/buzzwire/instagram-comment-to-dm-automation-build-it-on-the-api-or-ship-it-today-for-free-38hf</guid>
      <description>&lt;p&gt;Sooner or later a client, a marketing team or a creator friend asks you: &lt;em&gt;"Can we do the thing where people comment GUIDE and get the link in their DMs?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Yes, you can. It runs on Meta's official Instagram API, and this post shows exactly how it works. It also shows the shortcut: &lt;a href="https://buzzwire.io?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=comment-to-dm-api" rel="noopener noreferrer"&gt;BuzzWire&lt;/a&gt;, the comment-to-DM tool we build, which does all of it on the official API and is free for unlimited DMs on one account.&lt;/p&gt;

&lt;h2&gt;
  
  
  How comment-to-DM works under the hood
&lt;/h2&gt;

&lt;p&gt;Four pieces of Meta's official API, no scraping:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Login and token.&lt;/strong&gt; The creator connects their Instagram professional account on Meta's own login screen. The app gets an access token, never a password.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhook.&lt;/strong&gt; Instagram notifies the app the moment someone comments, replies to a story or sends a DM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyword match.&lt;/strong&gt; The app checks the comment against the creator's keywords.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Private reply.&lt;/strong&gt; One call sends the DM, referencing the comment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here's the private-reply request from Meta's docs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"https://graph.instagram.com/v24.0/&amp;lt;IG_ID&amp;gt;/messages"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &amp;lt;INSTAGRAM_USER_ACCESS_TOKEN&amp;gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
        "recipient": { "comment_id": "&amp;lt;COMMENT_ID&amp;gt;" },
        "message":   { "text": "Here you go: https://example.com/guide" }
      }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the platform rules that shape every good flow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One private reply per comment, within 7 days&lt;/strong&gt;, so the link belongs in that first DM&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A 24-hour messaging window&lt;/strong&gt; opens when someone replies or messages, which is where follow-ups and email capture happen&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consent first&lt;/strong&gt;: every DM goes to someone who commented, replied or messaged, so audiences welcome these messages&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What building it yourself involves
&lt;/h2&gt;

&lt;p&gt;The API calls are the easy part. A production comment-to-DM setup also needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A Meta app through App Review&lt;/strong&gt; with Advanced Access to the comments and messaging permissions, so it can serve accounts beyond your own test accounts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webhook infrastructure&lt;/strong&gt; that verifies Meta's signatures, responds fast and handles every event exactly once&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Token management&lt;/strong&gt; for each connected account&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keyword matching people can trust&lt;/strong&gt;: whole words, any capitalization, emoji, common misspellings, different keywords per post&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pacing and message variety&lt;/strong&gt; so automated replies feel like a creator replying&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A dashboard a non-technical creator can use&lt;/strong&gt;, with a preview of the DM before it goes live&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's a real product. If your goal is the result rather than the build, there's a faster path.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shortcut: BuzzWire
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://buzzwire.io?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=comment-to-dm-api" rel="noopener noreferrer"&gt;BuzzWire&lt;/a&gt; is a comment-to-DM tool on Meta's official Instagram API. BuzzWire is a Verified Meta Tech Provider, and it connects through Meta's login, never a password.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set up in three steps:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Connect the Instagram professional account through Meta's login&lt;/li&gt;
&lt;li&gt;Pick a keyword (like GUIDE) and write the DM with your link, with a live iPhone preview&lt;/li&gt;
&lt;li&gt;Post your Reel with "Comment GUIDE for the link". Every matching comment gets the DM automatically&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Free forever, on one Instagram account:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unlimited DMs and unlimited automations&lt;/li&gt;
&lt;li&gt;All three triggers: comment keywords on posts and Reels, story replies, and DM keywords&lt;/li&gt;
&lt;li&gt;An optional public reply under the comment ("Sent! Check your DMs")&lt;/li&gt;
&lt;li&gt;Message variations, so no two DMs read exactly alike&lt;/li&gt;
&lt;li&gt;Replies and buttons in any language&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Pro, $9.99/month or $79/year:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Follow Gate:&lt;/strong&gt; invite people to follow you as part of the DM, with gentle reminders: people who go quiet get one nudge, then their link&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-DM lead capture:&lt;/strong&gt; collect names and emails right in the chat and export them as a CSV to the email tool you already use&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Image-card DMs&lt;/strong&gt; that make the link stand out&lt;/li&gt;
&lt;li&gt;Priority support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every new account starts with &lt;strong&gt;14 days of Pro, no card needed&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who uses it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Creators&lt;/strong&gt; who say "comment LINK" on Reels and want every commenter answered in seconds&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brands and online stores&lt;/strong&gt; turning product comments into link clicks and email leads&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Developers and freelancers&lt;/strong&gt; setting it up for clients without maintaining a Meta app&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://app.buzzwire.io/auth/signup?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=comment-to-dm-api" rel="noopener noreferrer"&gt;Start free on BuzzWire&lt;/a&gt;: connect an account, set a keyword and have your first automated DM live in a few minutes.&lt;/p&gt;

&lt;p&gt;Want the full non-technical walkthrough to share with a client? It's on our blog: &lt;a href="https://buzzwire.io/blog/how-instagram-dm-automation-works?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=comment-to-dm-api" rel="noopener noreferrer"&gt;How Instagram DM automation works, step by step&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sources
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developers.facebook.com/documentation/instagram-platform/private-replies" rel="noopener noreferrer"&gt;Meta: Private replies (Instagram Login)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.facebook.com/documentation/instagram-platform/instagram-api-with-instagram-login/messaging-api" rel="noopener noreferrer"&gt;Meta: Send messages with Instagram Login&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.facebook.com/docs/instagram-platform/webhooks" rel="noopener noreferrer"&gt;Meta: Instagram webhooks&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;BuzzWire is a Verified Meta Tech Provider. It isn't affiliated with or endorsed by Meta or Instagram.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>automation</category>
      <category>instagram</category>
      <category>marketing</category>
    </item>
  </channel>
</rss>
