> For the complete documentation index, see [llms.txt](https://docs.quickreply.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quickreply.ai/product-modules/ai-builder/comment-automation.md).

# Comment Automation

{% embed url="<https://youtu.be/vmA0sLsC_Y8>" %}

Comment Automation allows your Instagram bot to automatically respond to comments and start a Direct Message (DM) conversation with users.

When a user comments on a configured post, QuickReply can:

* Reply to the comment publicly (Auto Reply)
* Send a private DM using the linked playbook

This creates a complete flow from comment to acknowledgement to conversation.

This is ideal for:

* Giveaways (“Comment ‘YES’ to participate”)
* Product launches and teasers
* Coupon distribution
* Lead capture campaigns
* Engagement-driven promotions
* “Comment KEYWORD to get details” campaigns

### How Comment Automation Works

* You specify one or more Instagram Post IDs inside your bot configuration
* You choose how the automation should trigger:
  * All comments, or
  * Specific keywords in comments

When a user comments on any of these posts:

* The system checks if the comment matches your trigger setup
* If enabled, an auto reply is posted on the comment
* The bot sends one automated DM
* The conversation continues based on the flow defined in the first node

{% hint style="warning" %}
**Keep in mind:** Comment to DM sends **only one** automated message per comment.\
So when you add a Post ID, build **the first node** in **one single message** that contains **all the details + quick replies/buttons**. Avoid using multiple text nodes, because only the first message will be sent.
{% endhint %}

#### Auto Reply to Comment

Auto Reply allows you to instantly respond to a user’s comment before moving them to DM.

* Can be enabled or disabled
* Supports multiple reply variants
* Variants are automatically rotated to avoid repetitive replies

Example replies:

* “Thanks! Check your DM”
* “Sent you the details in DM”
* “Please check your inbox for more info”

This helps acknowledge users instantly and guides them to check their messages.

#### Keyword-Based Triggers

You can control when automation runs using comment keywords.

* Supports words and phrases
* Matching is case-insensitive
* Works when the full word is present in the comment

Examples:

* Keyword: price
  * Matches: “price”, “price please”
* Keyword: black
  * Matches: “black friday”
  * Does not match: “blackfriday”

Keywords are matched against the Instagram comment, not DM messages.

{% hint style="info" %}
Comment keywords are different from chatbot keywords used inside conversations.\
Comment keywords decide when automation starts, while chatbot keywords work inside the DM flow.
{% endhint %}

### Prerequisites

Before configuring Comment to DM, ensure:

* Your Instagram account is connected to QuickReply.
* You have created or selected a **Chat** **Bot**.
* You have access to **Meta Business Suite** to retrieve the Instagram Post ID.

### How to use Comment To DM

#### Step 1: Get Your Instagram Post ID

1. Go to **Meta Business Suite**.
2. Open **Posts & Reels**.
3. Select the Instagram post you want to connect.
4. Click on the post and copy the **Post ID** or from the end of the URL.

The Post ID:

* Is usually a long numeric string.
* May appear at the end of a URL like `/posts/{post_id}`.

#### Step 2: Map the Post ID in QuickReply

1. Go to your **QuickReply Dashboard**.
2. Open your **Bot** in AI builder screen.
3. Navigate to the **Configure** tab.

Set up the following:

* Add Post ID
  * Click "**+ Add Post ID"**
  * Paste your Post ID
* Choose Trigger Type
  * All comments (when no keyword is added, it will run on all comments)
  * Keyword-based trigger
* Add Comment Keywords (if using keyword trigger)
  * Enter words or phrases like “price” or “offer”
  * Press enter or comma to add keywords.
* Enable Auto Reply (optional)
  * Add one or more reply messages
  * Variants will rotate automatically

4. Save your configuration

Your bot will now monitor that post for new comments.

### FAQs

<details>

<summary>What happens if a user comments multiple times?</summary>

Each comment can trigger a DM. However, Instagram platform-level messaging restrictions may apply.

</details>

<details>

<summary>Can I use multiple Post IDs?</summary>

Yes. You can add multiple Post IDs under the Configure tab. The same bot will respond to comments on all listed posts.

</details>

<details>

<summary>Can I customize different flows for different posts?</summary>

Yes. Create separate bots or playbooks and map different Post IDs accordingly.

</details>

<details>

<summary>Can I trigger automation only for specific comments?</summary>

Yes. Use keyword-based triggers to run automation only when comments match selected words or phrases.

</details>

<details>

<summary>Can I turn off auto reply and only send a DM?</summary>

Yes. Auto reply is optional and can be disabled.

</details>
