> ## Documentation Index
> Fetch the complete documentation index at: https://help.aichat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram Comment Automation

Automatically reply to Instagram comments and send follow-up messages through Instagram DM to engage users directly from your Instagram posts.

## Before You Begin

Ensure your Facebook Page is integrated with your AiChat chatbot.

If you have not connected your Instagram account yet, complete the [Instagram connection setup](/social-messaging-channels/instagram/connecting-instagram) first.

## How Instagram Comment Automation Works

When a user comments on a monitored Instagram post:

<img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image-(27).png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=cb6fd0314d5437a7d35892bd278646a8" alt="Image (27)" width="1695" height="928" data-path="images/image-(27).png" />

1. AiChat detects the comment
2. The automation checks if the comment matches your trigger rules
3. AiChat replies publicly to the comment (optional)
4. AiChat sends a private message to the user’s Instagram DM (optional)

**Limitations:**

* **First Level Only:** The bot only replies to new comments, not replies made to existing comments.
* **DM Limit:** To prevent spam, the bot will only send one private Messenger DM per trigger event.

## Configuration Guide

### Step 1: Create & Select Your Post

* **Navigate:** Go to **Flows → Comment Automation** and click **Create comment automation**.
* **Name it:** Enter an Automation Name and an optional description.
* **Pick Content:** Select the published or scheduled Posts or Reels you want to monitor. You can use the search bar to find posts by their post caption or ID.

<img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image.png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=103fd6857bc72d06cf8f7063b413db3b" alt="Image" title="Image" style={{ width:"59%" }} width="728" height="933" data-path="images/image.png" />

### Step 2: Define the Trigger

Decide exactly what a user needs to type to start the automation.

* **Rule Type:** Choose Any Comment (triggers for everyone) or Keywords (triggers only for specific words).
* **Keywords:** List variations like "#interested", "price", or "details".
* **AI Matching:** Enable Contextual Matching so the bot understands intent even if the user has a typo.
  <img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image-(12).png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=0ec815198767b376550c3a96d84445a1" alt="Image (12)" title="Image (12)" style={{ width:"63%" }} width="762" height="475" data-path="images/image-(12).png" />
* **Media (Optional):** You can require users to include an Image or Video in their comment to trigger a response.
  <img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image-(13).png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=1cfa9d962bcfc0b88bbbceb2185ca07e" alt="Image (13)" title="Image (13)" style={{ width:"65%" }} width="715" height="201" data-path="images/image-(13).png" />
* **Fallback:** Set a Default Reply for comments that don't match your keywords or arrive outside of your schedule.
  <img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image-(14).png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=237bf3c1f7e06b0a193a5ba4c8f8a0f3" alt="Image (14)" title="Image (14)" style={{ width:"64%" }} width="902" height="416" data-path="images/image-(14).png" />

### Step 3: Set Your Responses

Choose how the bot will interact with the user.

* **Public Reply:** Type a message that appears directly under the user's comment (e.g: "We've sent you a DM!").
* **Private DM:** Select a Custom Message or a pre-made Automated Flow to be sent to the user's Messenger inbox.
* **Note:** Only one Messenger DM can be sent per trigger.
  <img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image-(15).png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=a01f72ecec88ea71d6c5634611a407c0" alt="Image (15)" title="Image (15)" style={{ width:"63%" }} width="807" height="645" data-path="images/image-(15).png" />

### Step 4: Schedule & Launch

Review your settings and turn the bot on.

* **Timing:** Choose to Start Immediately or Schedule for later with a specific date and time.
* **Activate:** Click Activate Automation to go live.
  <img src="https://mintcdn.com/aichat/iRMzc6mTqZ14qTDV/images/image-(16).png?fit=max&auto=format&n=iRMzc6mTqZ14qTDV&q=85&s=330a9cc1bc86f5ff54ef6cb618af455e" alt="Image (16)" title="Image (16)" style={{ width:"66%" }} width="772" height="395" data-path="images/image-(16).png" />

Once activated:

* Users can trigger the automation by commenting on the selected post
* Public replies will appear automatically
* Messenger messages will be delivered based on your response setup

### Test the Automation

After activation:

1. Open the monitored Instagram post
2. Add a test comment
3. Verify:
   * The public reply appears correctly
   * The Instagram DM is delivered
   * Keywords trigger correctly
   * Media requirements work as expected

## Campaign Best Practices

To avoid multiple automated responses being triggered for the same user comment, avoid creating campaigns that use:

* The same Instagram post
* The same keywords
* Overlapping campaign dates

**Example:** If two campaigns use the keyword `DM` on the same Instagram post during overlapping periods, multiple automated replies or DM flows may be triggered for the same comment.
