> 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). Agents can also search and read this documentation through its [MCP server](https://docs.quickreply.ai/~gitbook/mcp).

# Comment Automation

### Overview

Instagram Comment Automation allows you to automatically send a direct message (DM) to users who comment on a configured Instagram post. You can use this feature to engage with users, share product information, promote offers, and generate leads through Instagram conversations.

When a user comments on a configured post, QuickReply checks whether the comment meets the configured trigger conditions. Depending on your configuration, the automation can:

* Send an automated DM to the user.
* Publish an optional public reply to the comment.
* Start a conversation through the configured Instagram DM Playbook.

Use cases

* Giveaways: Send participants instructions or details about a giveaway.
* Product launches: Share product information with users who comment on a launch post.
* Promotional campaigns: Send offer details or coupon information.
* Lead generation: Start a conversation with users who express interest in a product or service.

{% tabs %}
{% tab title="Step By Step Instructions" %}

### Prerequisites

Before setting up Comment-to-DM, ensure that:

* You have an Instagram Professional account (Business or Creator).
* Your Instagram account is linked to a Facebook Page through Meta Business Suite.
* The Instagram account is connected to QuickReply.ai, with Instagram DMs enabled.
* You have access to Meta Business Suite to retrieve the Instagram Post ID.
* You have created or selected the Instagram DM Playbook you want to use for the automation.

Note: If your Instagram account is not connected to QuickReply.ai, complete the[ Instagram and Facebook Messenger connection setup](https://docs.quickreply.ai/overview/messaging-channels/instagram-and-messenger/connect) before proceeding.

### Set Up Instagram Comment Automation

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

1. Log in to[ Meta Business Suite](https://business.facebook.com/).
2. Select the relevant business and Instagram account.
3. Navigate to Content and open Posts and reels.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FTbavfftwgfvSot8w886o%2Funknown.png?alt=media&amp;token=d3226c05-5053-46a6-95c2-02d104e7d2dc" alt="" height="289" width="624">

4. Locate the Instagram post you want to use for Comment-to-DM.
5. Click the three-dot menu next to the post.
6. Select Instagram post and then Copy Post ID/ Copy Reel ID, where available.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2Fnn5VlmuPWrKjwUKTiS4m%2Funknown.png?alt=media&amp;token=06a9c468-4c7a-40f3-83cd-e78e8d72d709" alt="" height="287" width="624">

Keep the copied Post ID ready for the next step.

Note: Make sure you copy the ID for the correct Instagram post. The Post ID is used to identify which post QuickReply should monitor for comments.

#### Step 2: Configure the Instagram Post ID in QuickReply

1. Navigate to AI Builder in your QuickReply dashboard.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FDeJdErtcwDHO1ZoDfSaI%2Funknown.png?alt=media&amp;token=7b4bc26c-5cf6-498f-a61e-0aab583283c1" alt="" height="288" width="624">

2. Under Instagram DM Playbooks, click Create Playbook.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FtD1XvxgeB6kfMkUwXxgr%2Funknown.png?alt=media&amp;token=5fb327ab-30de-4922-9b8d-4ac11c73c08e" alt="" height="289" width="624">

3. Enter a name and click Add.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FJVX8mwMoM3bu16iEEoN6%2Funknown.png?alt=media&amp;token=c1911882-d6d0-437f-9bfe-9bac24380ec9" alt="" height="287" width="624">

4. Alternatively, select an existing Playbook from the list.

Configure the message flow:

1. Open the Build tab of your selected Playbook.
2. Click the + icon to add a node.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2F96ENJW1YjwV6zkA0fLds%2Funknown.png?alt=media&amp;token=6de7778b-f242-4fa1-bbe4-0322ccf5fc43" alt="" height="285" width="624">

3. Select Quick Reply under Collect User Data. Enter the message you want users to receive and add the relevant quick reply options.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FQsQ5Fewh14PZSDfeQzc0%2Funknown.png?alt=media&amp;token=6f3cbbe7-cd5a-46a8-a499-d839e53c38ce" alt="" height="285" width="624">

4. To showcase products or multiple items, you can optionally add a Gallery node after the Quick Reply node. Click the + icon below the node, select More, and choose Gallery.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FvK2MKuRahXf2PhPedvmH%2Funknown.png?alt=media&amp;token=2be7f51e-22d5-4ac3-b3b8-254d06d7a663" alt="" height="288" width="624">

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FrkU3uQBjTVPKWiuOSnDk%2Funknown.png?alt=media&amp;token=3a859193-97c1-487a-8bd4-01a581f53401" alt="" height="284" width="624">

5. Add the relevant product images, titles, descriptions, and buttons to your Gallery cards. Click Save.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FcPLPjHGKqFRg1Y6CbyGx%2Funknown.png?alt=media&amp;token=0406ac4b-7dfc-462b-be77-d440a17bd331" alt="" height="287" width="624">

Note: The first node must be a Quick Reply node for Comment-to-DM. Meta allows only one automated private reply per comment, so include the essential information in this first message. Any follow-up messages can be sent only after the user responds to the private reply.

6. Open the Configure tab.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FHfzDWkK7XsAanEY8sYti%2Funknown.png?alt=media&amp;token=06438f9e-9251-4e11-82af-0403534844ae" alt="" height="287" width="624">

7. Locate the Instagram Post IDs section labelled Specify Instagram Post IDs that this bot will send a DM if anyone comments (Comment to DM).
8. Click + Add Post ID.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FJ1mOFS07TIMKQSfsATMU%2Funknown.png?alt=media&amp;token=cdf3ea2e-efd9-493e-9933-d9883c1a9607" alt="" height="287" width="624">

9. Paste the Post ID copied from Meta Business Suite.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FN5NvJKRrL40lumTNarK9%2Funknown.png?alt=media&amp;token=74bab44c-239d-40d2-8ac8-0b9abf8bcc29" alt="" height="288" width="624">

10. Click the checkmark beside the entry to confirm it.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FBGYqJ5WebLZCLKRA1iFr%2Funknown.png?alt=media&amp;token=5d998ea3-aa31-4b06-b21e-33e9da694491" alt="" height="288" width="624">

The selected Instagram post is now configured for Comment-to-DM in the Playbook.

You can also remove a particular ID by clicking on the delete icon alongside.

#### Step 3: Configure Keyword-Based Triggers (Optional)

You can restrict Comment-to-DM so that it runs only when a comment contains one or more specified keywords.

1. In the Configure tab, expand Advanced options.
2. Locate the setting Trigger Comment-to-DM Only When Comment Matches Following Keywords.
3. Enter the keywords you want to match.
4. Press Enter after each keyword to add it.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FfoFKEpz9TINuJgpXKXw0%2Funknown.png?alt=media&amp;token=5fc3f973-71e8-4ae2-8454-4965b45096a5" alt="" height="287" width="624">

When keyword-based triggering is enabled, Comment-to-DM runs only if at least one configured keyword matches the Instagram comment.

Example: If you configure price, comments such as “price” or “price please” can match the keyword.

Notes:

* Keyword matching is case-insensitive.
* These keywords are checked against the Instagram comment text. They are different from chatbot keywords used within an ongoing conversation.
* If you want the automation to run without restricting comments to specific keywords, leave the keyword-based trigger disabled.

#### Step 4: Configure an Optional Public Comment Reply

You can also configure QuickReply to publish a public reply to the user's Instagram comment.

1. In the configuration options, enable Auto Reply to Comment.
2. Enter the reply in Auto Reply Text.
3. If required, add reply variants.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FPNgCh6qEbxDqS3m1xfJc%2Funknown.png?alt=media&amp;token=49af8f09-7569-4758-ad40-82ddf391ffdc" alt="" height="287" width="624">

Reply variants allow you to configure alternative public replies. When multiple variants are configured, QuickReply rotates between them automatically. Each reply message can contain up to 1,000 characters.

Note: The public comment reply and the private DM are separate. The public reply appears under the Instagram comment, while the DM is sent to the user's Instagram inbox. Auto Reply is optional; you can configure Comment-to-DM without enabling it.

#### Step 5: Configure the Playbook Message Flow

Configure the selected Instagram DM Playbook to deliver the message users should receive when the automation is triggered.

1. Open the Playbook's Build view.
2. Review the first message node and configure the message you want to send.
3. Add quick replies or buttons where users need to choose an option or respond.
4. Configure any subsequent steps that should run after the user interacts with the message.

Important: Comment-to-DM sends only one automated private reply per comment. Make the first message self-contained and include the essential information you want the user to receive. You can include quick replies or buttons to let the user interact and continue the conversation.

Avoid placing essential information across multiple consecutive text nodes in the initial flow, because only the first automated message is sent as the private reply. Subsequent steps should depend on the user's interaction where applicable.

### What Happens When Someone Comments?

Once Comment-to-DM is configured:

1. A user comments on the configured Instagram post.
2. QuickReply checks whether the comment meets the configured keyword conditions, if keyword-based triggering is enabled.
3. If Auto Reply to Comment is enabled, QuickReply publishes the configured public reply.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2FHz6CyUP2fTRagba9hdLB%2Funknown.png?alt=media&amp;token=d6da7045-a51e-4ecf-989a-1484f9cc3c17" alt="" height="433" width="545">

4. QuickReply sends the automated private reply to the user's Instagram inbox.

<img src="https://1325107618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FePPO97Ju334NhhCzTEZP%2Fuploads%2F6EDayyaQAtzAUyBs1maR%2Funknown.png?alt=media&amp;token=ab946dde-4851-42cd-bd99-abd486d5a99f" alt="" height="454" width="230">

5. If the user interacts with the message, the conversation can continue through the configured Playbook, subject to Meta's messaging rules.

### Important Guidelines

* One automated private reply per comment: Comment-to-DM sends only one automated private reply for each comment. Include the essential information in the first message.
* Keyword conditions: If keyword-based triggering is enabled, the comment must match at least one configured keyword.
* Public replies are optional: Enable Auto Reply to Comment only if you want to publish a reply under the Instagram comment.
* Public reply variants: Multiple configured variants rotate automatically. Each reply can contain up to 1,000 characters.
* Further conversation: Additional Playbook steps should be designed around user interaction and applicable Meta messaging restrictions.
  {% endtab %}

{% tab title="Video" %}
{% embed url="<https://www.youtube.com/watch?t=3s&v=vmA0sLsC_Y8>" %}

{% endtab %}
{% endtabs %}

### FAQs

<details>

<summary>Can I configure more than one Instagram post?</summary>

Yes. You can add Instagram Post IDs in the configuration to specify the posts monitored by Comment-to-DM.

</details>

<details>

<summary>Can I send a DM to everyone who comments on a post?</summary>

Yes, if keyword-based triggering is disabled. If it is enabled, only comments matching at least one configured keyword trigger the automation.

</details>

<details>

<summary>Is a public comment reply mandatory?</summary>

No. Auto Reply to Comment is optional. You can configure the private DM automation without enabling a public reply.

</details>

<details>

<summary>Are Comment-to-DM keywords the same as chatbot keywords?</summary>

No. Comment-to-DM keywords are checked against the text of the Instagram comment. Chatbot keywords are used within conversations and serve a different purpose.

</details>

<details>

<summary>Will the entire Playbook be sent automatically when a user comments?</summary>

No. Comment-to-DM sends only one automated private reply per comment. The initial message should contain the essential information, with quick replies or buttons where appropriate. Further steps can run after the user interacts, subject to the applicable messaging restrictions.

</details>
