How to Auto-DM a Link When Someone Comments a Keyword on Instagram
Set up an Instagram chatbot that DMs people your link the moment they comment a keyword or send it in a DM, with an automatic follow-up if they don't click.
Step by step
1Create an automation
Open Chatbot and, on the Automations tab, click New automation.


2Choose Instagram
Under Where it works, click your Instagram account.


3Pick a ready-made scenario
The easiest way to start is with a ready-made scenario. The messages and follow-up are already written, so you just tweak them to sound like you.
- Keyword lead magnet sends a link to your freebie.
- Consultation booking sends the format, price, and a booking link.
- Keyword sales offer sends your offer and a checkout link.
Below those, you’ll find Simple for building one from scratch and Builder for flows with branching logic. This guide walks through the lead magnet.


4Set the keyword and where it triggers
- Keyword. Add one or more, separated by commas. With Whole word only checked, the bot won’t trigger when the keyword is part of another word, like “guides” instead of “guide.” With Any word, it replies to every comment.
- Trigger on. Turn Direct message and Comment on a Reel or post on or off separately. In DMs, the automation always needs a keyword. Otherwise, the bot would reply to every message you get.
- Under which post. Choose Any post, or One post if the keyword is tied to a specific Reel.
- Reply to the comment under the post. The bot replies publicly to let them know to check their DMs. Add a few variations so your replies don’t all look identical.
On desktop, the preview on the right shows exactly what your followers will see, and it updates as you type.


5Check the first message
First, people get a short message with a button. When they tap it, they receive the main message with your link.
Why the extra step? Instagram doesn’t let you DM a link right away to someone who commented but doesn’t follow you. Without this first message, those people would get nothing.
If your freebie is for followers only, turn on Require a follow first. Non-followers will be asked to follow you first, then tap the button again to get the link.


6Add your link and set up the follow-up
- Main message. Edit the text to fit your voice. + Name inserts the person’s name.
- Button. Paste your link into the https://… field. Without it, people get a message with nothing to click.
- Follow-up. Message 2 goes out after the delay you set. Send it to everyone, or only to people who didn’t tap the button.


7Click Activate automation
Your automation goes live right away. In your list of automations, you’ll see how many times it was triggered and how many people tapped the button.
How to test it
From a different Instagram account, DM your keyword to your own account. The bot will reply exactly the way it would to anyone else.
Troubleshooting
- You see “Not connected” instead of your Instagram. Connect your account in Settings under Social accounts (step-by-step guide).
- The bot didn’t reply. Make sure the automation is turned on in your list and the keyword is spelled exactly as in your settings. With Whole word only checked, variations like plurals won’t trigger it.
- You can’t schedule the follow-up more than 23 hours out. That’s a limit set by Instagram.