DibalasAI Docs logo

Instagram: Comment to DM

Send an automatic DM, and optionally a public reply, when someone comments on your Instagram posts or reels.

Comment to DM sends a Direct Message to people who comment on your Instagram posts or reels. You decide which posts it watches, which comments trigger it and what the DM says. You can also reply to the comment publicly, and ask people to follow your account before they get the DM content.

Typical uses: "Comment INFO and we'll DM you the price list", or a giveaway where commenters receive a link.

Only the team Owner and Managers see the Automation menu and can set it up.

Before you start

  • Your Instagram account must be a Professional account (Business or Creator). In the Instagram app, open Settings → Account type and tools → Switch to professional account.
  • Each connected automation account uses one slot of the Connections quota in your package. This is separate from the Instagram connection of a chatbot: if the same Instagram account is connected to a chatbot and to Automation, it uses two slots. See Plans & Pricing.

1. Connect your Instagram account

  1. Open Automation in the left sidebar. Under Instagram, click Accounts.
  2. Click Connect Account (or Connect your first account if no account is connected yet).
  3. Instagram opens and asks you to log in, even if you are already logged in. Log in with the account you want to automate and allow DibalasAI to access it.
  4. You return to DibalasAI. The account appears as a card with its name, @username, number of followers, status Connected and the date it was connected.

Connecting the same account again only refreshes its access; it does not use another slot.

Account card actions

  • Deactivate / Activate (switch): pauses the account. Deactivating also switches off all rules of that account, and they stay off when you activate the account again, so turn each rule back on afterwards. Activating needs a free slot in your Connections quota.
  • Disconnect: removes the account from DibalasAI. All its rules stop working.

2. Create a rule

  1. Under Instagram, click Comment to DM. If you have more than one account, pick the account at the top.
  2. Click Create Rule.
  3. Fill in the form. A preview on the right (on larger screens) shows how the post, comment and DM will look.

Rule Name A name for your own reference, for example "Promo Giveaway".

Target Posts

  • All posts & reels (default): every post and reel, including ones you publish later.
  • Reels only: reels only.
  • Specific posts: choose posts or reels from your account. You can search by caption and load more posts.

Trigger Type

  • Any comment (default): every comment triggers the rule.
  • Contains keyword: the comment contains one of your keywords anywhere. Capital letters don't matter. Note that a keyword also matches inside longer words: "info" matches "information".
  • Exact match: the whole comment is exactly one of your keywords (capital letters don't matter).

For the keyword types, type a keyword and press Enter or click Add. You can add as many as you need.

DM Message (required) The message sent privately to the person who commented.

DM Quick Reply Buttons (optional, up to 3)

  • Quick Reply: a button that sends its text back as a reply.
  • URL: a button that opens a link.

With a URL button, Instagram shows the DM as a card, and the message is limited to 160 characters. The form shows a counter and won't save a longer message.

Comment Reply (optional) A public reply posted under the comment. Leave it empty if you only want to send the DM.

Must Follow Turn this on to send the DM content only to people who follow your account. See How Must Follow works below.

  • Must Follow Message: the message sent to people who don't follow you yet. If you leave it empty, a default English message is used: "Uh oh, looks like you haven't followed us yet 👀 Head over to our profile and tap follow, then tap the button below 😊".
  • Follow Prompt Buttons (up to 3): if you leave them empty, two buttons are used: Visit Profile (opens your profile) and I'm following ✅. If none of your own buttons is a Quick Reply, the I'm following ✅ button is added anyway.
  1. Click Create Rule. New rules are active right away.

There is no limit on the number of rules per connected account, and rules don't use your package quota. Only the account itself uses a Connections slot.

Managing rules

  • Each rule card shows the target, the trigger keywords, a DM preview and two counters: Comments Matched (how many comments triggered the rule) and DMs Sent (how many DMs with your content were delivered; follow prompts are not counted).
  • Open a rule to edit it. The Active switch at the top of the edit window turns the rule on or off.
  • Delete Rule removes the rule permanently.
  • A rule can't be created or turned on while its account is inactive.

How a rule runs

When someone comments on your post:

  1. DibalasAI ignores comments made by your own account.
  2. It checks the active rules of that account. Only one rule runs per comment. If several rules match, DibalasAI uses the most specific one (see When several rules match).
  3. If the rule has a Comment Reply, it is posted publicly under the comment. Instagram can take a while to show it.
  4. If Must Follow is off, the DM is sent with your buttons.

Each matching comment triggers its own DM. If the same person comments again, they get the DM again.

Instagram allows a business to send only one private reply to a comment. After that, you can't message the person again until they reply to you.

When several rules match

DibalasAI picks the rule in this order:

  1. Target Posts: a Specific posts rule comes first, then Reels only, then All posts & reels.
  2. Trigger Type, among rules with the same target: Exact match first, then Contains keyword, then Any comment.
  3. If two rules have the same target and trigger, the older rule is used.

Target comes before trigger. Example: rule A targets all posts with the exact keyword "PRICE", and rule B targets one specific post with Any comment. A comment "PRICE" on that post gets rule B, because B was made for that post.

This lets you combine a general rule with exceptions. For example, an All posts & reels rule can send your price list, while a Specific posts rule on a giveaway post sends the giveaway link instead.

How Must Follow works

  1. When a matching comment arrives, DibalasAI sends the Must Follow Message with the follow prompt buttons instead of the DM content.
  2. The person follows your account and taps I'm following ✅ (or sends any message).
  3. DibalasAI checks whether they follow you now:
    • Following: the DM content is sent.
    • Not following yet: the follow prompt is sent again.
  4. DibalasAI waits up to 24 hours for the person to follow. After that, they have to comment again.

If the account also has a chatbot

If the same Instagram account is also connected to a chatbot (see Adding Connections):

  • Messages the person types in the DM are answered by the chatbot as usual, also while a Must Follow check is waiting.
  • Taps on the follow prompt buttons go only to the Must Follow check; the chatbot doesn't answer them.

If the account has no chatbot, Automation only sends the DMs from your rules. Other messages in the DM are not answered automatically.


When your package expires

Automation accounts count toward the Connections quota. If your package expires and you have more connections than the remaining quota allows, chatbot connections keep their slots first. Automation accounts beyond the quota are deactivated (the oldest connected accounts are kept), and their rules are switched off. After you buy a package with enough quota, activate the account and each rule again.