Comment "LINK" to get it in DMs: how Instagram auto-replies actually work under the hood
You've seen these posts everywhere on Instagram. A creator says "comment LINK and I'll send it to you" and a few seconds later there's a DM sitting in your inbox. I used to think there was some guy with three phones doing this manually. There isn't. I ended up building this exact feature for my own product, so here's what's actually going on behind it, minus the marketing fluff. It's not a bot…
Instagram allows businesses to automatically reply to comments with a direct message, using a simple process. When a user comments on a post, Instagram sends a webhook to a business's server containing the comment text, ID, and post ID. The server then checks for specific keywords like "link," "price," or "info" in the comment. After normalizing the text by converting it to lowercase, removing extra spaces, and stripping emojis, the system sends a private reply to the commenter.
This reply must be sent within seven days of the comment and can only occur once per comment. From this point, users can engage in a 24-hour conversation window with the business. This automated system prevents spamming and ensures compliance with Meta's guidelines. By utilizing Instagram's official API, businesses can effectively capture leads and engage with users in real-time, even when they are not actively monitoring the platform.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.