> ## Documentation Index
> Fetch the complete documentation index at: https://agent-docs.magicwebs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram automation

> Reply to Instagram comments automatically, send comment-to-DM messages, moderate comments, and set story mention replies and ice breakers.

Once you [connect an Instagram account](https://agent-docs.magicwebs.ai/build/channels.md#instagram), an **Instagram** section appears in the sidebar. DMs are answered by the account's agent like any other channel. This section adds automation for comments and stories.

![Instagram pages before an account is connected](https://mintcdn.com/magicwebs/lXS3DuVdQz1WpiFT/images/console/instagram-overview.png?fit=max\&auto=format\&n=lXS3DuVdQz1WpiFT\&q=85\&s=aed51681fef05aa3cff263b9041ce9ba)

## Overview

The last seven days at a glance: comments, public replies, DMs sent, comments moderated and story mentions, with links to each tool and recent activity.

## Comment rules

A comment rule answers a matching comment with a public reply, one private DM, or both. A classic example is "comment PRICE and we'll DM you".

Choose **New rule**, or start from a preset: **Comment-to-DM** or **Thank every commenter**.

| Setting | Options |
| - | - |
| **When** | **Comment has a keyword** (whole words, comma-separated), or **Any comment** |
| **Where** | **On every post**, or **On chosen posts** (up to 20) |
| **Public reply** | **Written here** (one per line, picked at random; `{{username}}` is replaced), **AI writes it** (never quotes prices), or **No reply** |
| **Private DM** | The message, plus an optional button with a link. One DM per comment, within 7 days |
| **Once per person** | Answer each person only once |
| **Live** | Switch the rule on or off |

A comment fires only one rule: a keyword rule before a catch-all, and a rule for chosen posts before one for every post. DMs sent this way land in the [inbox](https://agent-docs.magicwebs.ai/inbox/conversations.md), and the agent picks up any reply.

## Moderation

Moderation runs on every new comment **before** any rule.

* **Moderate comments**: the main switch.
* **What happens to a flagged comment**: **Hide** (still visible to the writer and their followers) or **Delete** (gone for good).
* **Block links**, and **Blocked words** (whole words).
* **Screen with AI**: catches insults, hate, threats and spam, and leaves genuine complaints up. Billed as AI usage.

## DM tools

* **Story mention reply**: an automatic thank-you when someone mentions you in their story. Use `{{username}}`.
* **Ice breakers**: up to four questions shown to someone opening a DM with you for the first time.

## Activity

Every comment and story mention, and what was done about it. Kept for 90 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.