# Instagram

> Connect your Instagram professional account so the AI agent and your team answer direct messages, and let flows react to comments.

Source: https://docs.komplian.com/channels/instagram

Where: AI Agent → Channels → Instagram
Who: Owners and admins.

Connect Instagram so direct messages arrive in Smart Inbox and the AI agent answers them. You need an Instagram professional account linked to a Facebook Page.

## Connect Instagram

### 1. Open Instagram
Open **AI Agent → Channels → Instagram**.

### 2. Sign in with Meta
Sign in with the Facebook account that manages your Page.

### 3. Pick the Page
Choose the Facebook Page that has your Instagram professional account linked. Direct messages start arriving in [Smart Inbox](https://docs.komplian.com/inbox/conversations).

## Choose what the agent does

The **AI Skills** of the Instagram page:

| Switch | Default | What it does |
| --- | --- | --- |
| **Auto Reply to DMs** | Off | The agent answers direct messages. Off: your team answers every Instagram conversation. |
| **Read Conversation History** | On | The agent reads the earlier messages of the conversation before answering. |
| **Read Post Comments** | Off | Flows can start when someone comments on a post. |
| **Reply to Comments** | Off | Flows can reply to a comment in public or open one private message. |

The two comment switches act through [flows](https://docs.komplian.com/flows/overview), which need the Growth plan or higher.

## Auto DM: reply privately to whoever comments

Ask your audience to comment a word on your post and Komplian sends them your message privately, right away, with your link on a button. When the person answers, the agent keeps the conversation going.

### 1. Create the template
In **Flows → Templates**, create an Instagram template with the message. It can use `{{contact.name}}`, the commenter's @username.

### 2. Create the flow
Create a workflow with the **Instagram Comment** trigger. Type the **Keywords**, separated by commas, and choose the **Posts** it applies to. With no keywords, it answers every comment. With no posts chosen, it applies to all of them.

### 3. Add the reply
Add the **Reply to Comment by DM** action, choose the template and add up to 3 **Link buttons**. Each button's text has up to 20 characters and its link starts with `https://`.

### 4. Turn comments on and publish
If comments are off, the trigger says so: click **Turn on**. Then **Publish**.

Keywords ignore case, accents and punctuation: "NUBE!" counts as "nube". The private message shows in the [Smart Inbox](https://docs.komplian.com/inbox/conversations) as a conversation with the @username, and the agent answers whatever the person replies.

| Instagram limit | |
| --- | --- |
| Private messages per comment | 1. If someone comments twice, each comment can get its own. |
| Time limit | 7 days from the comment. |
| Continuing the conversation | Only after the person answers, and within 24 hours of their last message. |

To answer in public under the comment, use the **Reply to Comment Publicly** action.

## The 24-hour window

You can write to a person only within 24 hours of their last message. After that, nothing can be sent: Instagram has no template to write later. The same rule applies to the agent, to Smart Inbox and to the flow action **Send Instagram DM**.

## Limits

| | |
| --- | --- |
| Channel limit | Instagram counts as 1 channel of your plan. Messenger on the same Page is a second one. |
| Files you send | Up to 10 MB each, when the channel accepts the file type. |

## Related

- [All channels](https://docs.komplian.com/channels/overview): Channel limits and reply windows.
- [Messenger](https://docs.komplian.com/channels/messenger): The messages of the same Facebook Page.
- [Actions](https://docs.komplian.com/flows/actions): Send Instagram DM and the other actions.
- [Conversations](https://docs.komplian.com/inbox/conversations): Answer from Smart Inbox.
