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

# Label Instagram comments with AI

> Let Boom label each comment on your Instagram posts (question, complaint, praise, language) and send it down the customer journey that fits.

Comments on your Instagram posts pile up fast, and in the feed a question about
sizes, a complaint about a late order and an insult all look the same. Boom can
read each comment, give it a label you define, and send it down the right
branch of a [customer journey](https://docs.useboom.ai/journeys.md): reply in private to a question, hand a
complaint to your team, hide an insult.

This guide has two playbooks. Each one shows how to build it in the builder and
how to ask your AI agent to build it for you over [MCP](https://docs.useboom.ai/use-mcp.md).

> [!TIP]
>
> Looking for keyword rules instead of AI labels? A comment trigger can also
> match words on its own, and the **Hide or delete comment** step can act on
> those matches. See [Moderate Instagram comments](https://docs.useboom.ai/journeys.md#moderate-instagram-comments).

## Before you start

* **An Instagram account connected to Boom with permission to read comments.**
  Connect it in **Settings › Channels**. An account connected before comment
  triggers reached your workspace may lack that permission. You'll know: when
  you pick it in the trigger, the builder shows **Reconnect "your account" to
  enable comment triggers** with a link to the channel settings. Reconnect it
  there and accept every permission Meta asks for. Until then, its comments never
  start a run.
* **An initiative for the customer journey.** Every customer journey belongs to an
  initiative, and when a commenter answers your private reply, that
  initiative's AI agent picks up the conversation.
* **To build it with an agent**: Boom's [MCP server](https://docs.useboom.ai/use-mcp.md) connected to your
  AI tool, and Boom's [skills](https://docs.useboom.ai/skills.md) installed (`npx @useboom/skills-setup` in
  Claude Code). The `design-journey` skill knows these steps and both playbooks.

Comment customer journeys are available in every workspace. Both steps live in the
builder's step list, in the **Instagram comments** section.

## How labelling works

The **Classify comment** step reads the comment that started the run and picks
the label it fits. Each label is a branch with a name and a short description of
what those comments look like. The AI decides from both, so a specific
description works better than a one-word name. You can have up to 8 labels.

There is always one more branch, **Unsure**. A run takes it when no label
reaches the **Minimum confidence** (70% by default, between 50% and 95%), when no
label fits, or when the AI can't answer. Leave Unsure alone or end the run there.
Never put a reply or a **Hide or delete comment** step behind Unsure.

Use **Try it** in the step's settings to type a comment and see which branch it
would take, and how sure the AI is about each label. Its **Many comments** tab
tests up to 200 at once: paste them one per line, or drop a CSV with a `comment`
column. Nothing is saved. Your agent can do the same with
`journeys_classify_comment_test` over [MCP](https://docs.useboom.ai/use-mcp.md).

A label or Unsure left unconnected ends the run. The builder warns you about an
unconnected label so it's a choice, not an accident.

## Playbook A: label comments and act on each label

Four labels, each with its own action:

| Label | Description (what the AI reads) | What happens |
| - | - | - |
| **Question** | Asks about price, sizes, stock, shipping or how something works. | A private reply invites them to keep talking; your agent answers |
| **Complaint** | Unhappy with a product, order or service, written in good faith. | A private reply, then the conversation goes to your team |
| **Positive** | Praise, thanks, love for the product or the post. | Nothing: the run ends |
| **Aggressive** | Insults, harassment or threats toward the brand, staff or other people. | The comment is hidden |

### Build it in the builder

1. In your initiative, open the customer journey and set the trigger to
   **Incoming activity**. Under **Listen to**, choose **Post comments**, pick your
   Instagram account under **To these channels**, and leave **Answers** on
   **Every message** so every comment is labelled.
2. Add **Classify comment** from **Instagram comments**. Add the four labels
   above with their descriptions and keep **Minimum confidence** at 70%. Paste
   a batch of real comments into **Try it** › **Many comments**.
3. From **Question**, add **Send Instagram message** from the same account, for
   example: "Hi! Thanks for asking. Reply here and we'll help you right away."
   Connect both of its exits to an **Exit**.
4. From **Complaint**, add **Send Instagram message**: "Sorry about this. Tell us
   what happened here and someone from our team will help." Connect its sent exit
   to **Handle conversation** with **To a human** (pick a teammate under **Assign
   to**, or leave **Nobody (team inbox)**) and connect both of its exits to an
   **Exit**. Connect the message's window-closed exit to an **Exit** too.
5. From **Aggressive**, add **Hide or delete comment** with **Hide**. Connect
   **Done** to an **Exit**, or leave it: an unconnected **Done** ends the run
   successfully. **Skipped** and **Failed** appear when you hover the card;
   connect them to an **Exit** too. A comment that is already hidden or gone
   counts as **Done**.
6. Connect **Positive** and **Unsure** to an **Exit**, then **Activate**.

The first Instagram message in a run a comment started goes out as a **private
reply** to that comment: Instagram allows one per comment, within 7 days of it.
If the person answers, it becomes a normal Instagram conversation in your inbox.
After **Handle conversation** with **To a human**, their answers land in your
team's inbox and the AI agent stays out of it.

**Hide** keeps the comment visible to the person who wrote it, so they don't
notice, and hides it from everyone else. You can unhide it in Instagram. Your
inbox still shows the hidden comment, with its text, in the person's **Recent
activity**.

**Publishing with no keywords.** A trigger without keywords starts a run for
every comment on the account. A customer journey that hides or deletes comments can only
publish that way when **Classify comment** comes before the **Hide or delete
comment** step, so only comments with that label are hidden. With keywords and
no Classify step, the keywords are the only filter.

If you choose **Delete** instead of Hide, put any private reply **before** the
delete: once a comment is gone, Instagram won't let you message the person about
it. Delete can't be undone.

### Build it with your agent

Paste this into Claude (or any AI tool connected to Boom's MCP), with your own
initiative and account names:

```text theme={null}
Build a customer journey in my Boom initiative "Instagram comments" that labels each Instagram comment with AI and acts on each label.

1. Trigger: post comments (INSTAGRAM_COMMENT) on my Instagram account @yourbrand, with no keywords, so every comment enters.
2. A Classify comment step (CLASSIFY_COMMENT), minimum confidence 70%, with these labels:
   - Question: asks about price, sizes, stock, shipping or how something works.
   - Complaint: unhappy with a product, order or service, written in good faith.
   - Positive: praise, thanks, love for the product or the post.
   - Aggressive: insults, harassment or threats toward the brand, staff or other people.
3. Question: Send Instagram message (SEND_INSTAGRAM) from the same account: "Hi! Thanks for asking. Reply here and we'll help you right away." Wire SENT and WINDOW_CLOSED to an Exit.
4. Complaint: Send Instagram message: "Sorry about this. Tell us what happened here and someone from our team will help." SENT goes to Handle conversation (MANAGE_CONVERSATION) in ESCALATE mode, to a human; wire its CLOSED and STALE to an Exit. WINDOW_CLOSED goes to an Exit.
5. Aggressive: Hide or delete comment (MODERATE_COMMENT) with action HIDE. Wire SUCCESS, SKIPPED and FAILED to an Exit.
6. Positive and Unsure go to an Exit.

Validate the draft and show me the journey and every issue before publishing. Do not publish.
```

The agent finds the account with `journeys_message_channels`, builds the draft,
and runs `journeys_validate`. Nothing goes live until you tell it to publish.

## Playbook B: detect a comment's language

Labels can be about anything the comment text shows, including its language.
Here, each language gets a private reply written in it, so "¿Tienen talla M en
negro?" gets an answer in Spanish:

| Label | Description |
| - | - |
| **English** | The comment is written in English. |
| **Spanish** | The comment is written in Spanish. |
| **Portuguese** | The comment is written in Portuguese. |

### Build it in the builder

1. Set the trigger to **Incoming activity** › **Post comments** on your Instagram
   account.
2. Add **Classify comment** with the three labels above.
3. From each label, add **Send Instagram message** in that language. For
   Spanish: "¡Hola! Gracias por tu comentario. Escríbenos por aquí y te
   ayudamos." Connect both exits of each message to an **Exit**.
4. Connect **Unsure** to an **Exit**, then **Activate**.

Know what this can't do:

* **Emoji-only comments go to Unsure.** "🔥🔥🔥" or a tagged friend alone
  carries no language, so nothing is sent. That is the safe direction. A very
  short word can still get a language: "ok" reads as English.
* **Mixed-language comments can go either way.** "Love it!! pero cuánto
  cuesta?" reads as Spanish, while "Hola, how much is it?" goes to Unsure
  because no language clears the minimum confidence. Try your own in **Try it**
  before you activate.
* **One catch-all comment customer journey per account.** Only one published customer journey can
  take every comment on an account; publishing a second one is refused. To run
  both playbooks on the same account, add the language labels to Playbook A's
  customer journey (for example, split **Question** into a question per language), or give
  one of them keywords.

### Build it with your agent

```text theme={null}
Build a customer journey in my Boom initiative "Comment languages" that replies to each Instagram comment in its own language.

1. Trigger: post comments (INSTAGRAM_COMMENT) on my Instagram account @yourbrand, with no keywords.
2. A Classify comment step (CLASSIFY_COMMENT), minimum confidence 70%, with these labels:
   - English: the comment is written in English.
   - Spanish: the comment is written in Spanish.
   - Portuguese: the comment is written in Portuguese.
3. From each label, a Send Instagram message (SEND_INSTAGRAM) from the same account, written in that language:
   - English: "Hi! Thanks for your comment. Message us here and we'll help."
   - Spanish: "¡Hola! Gracias por tu comentario. Escríbenos por aquí y te ayudamos."
   - Portuguese: "Oi! Obrigado pelo seu comentário. Fale com a gente por aqui que ajudamos."
   Wire SENT and WINDOW_CLOSED of each message to an Exit.
4. Unsure goes to an Exit.

Validate the draft and show me the journey and every issue before publishing. Do not publish.
```

## Limits

* **Instagram comments only.** Hide or delete comment acts on Instagram, and
  only on the comment that started the run.
* **The AI sees only the comment text**, clipped to its first 500 characters.
  Never the person's name, handle, profile or the post. Images and stickers
  aren't read.
* **When in doubt, Unsure.** Below the minimum confidence, or if the AI can't
  answer within a few seconds, the run takes Unsure and nothing is replied to or
  hidden unless you connected Unsure yourself.
* **Hourly limits**, across every customer journey in your workspace: up to 1,000
  comments classified an hour (past that, runs take **Unsure**), and up to 200
  hidden or deleted an hour (past that, the step takes **Skipped** and the
  comment stays as it is).
* **One private reply per comment**, within 7 days of it. A second Instagram
  message before the person answers takes the window-closed exit.

## Related

> [card] [Customer journeys](https://docs.useboom.ai/journeys.md)
>
> Every step, its exits and the publish rules, including Classify comment and Hide or delete comment.

> [card] [Skills](https://docs.useboom.ai/skills.md)
>
> Install Boom's skills so your agent can build these customer journeys for you.


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