# 18 · Instagram and Messenger in your inbox, and automatic replies to post comments

**Purpose:** connect your Instagram account and Facebook Page so their messages arrive in the same inbox as WhatsApp, and answer people who comment on your posts with an automatic private message.

## Before you start

- A plan that includes **Instagram & Messenger**. If you do not see **Instagram & Messenger** and **Comment replies** under **Channels** in the sidebar, your plan does not include it yet.
- You are an owner or admin of the workspace. Members can look at these pages, but only owners and admins can connect accounts or change rules.
- For Instagram: an Instagram **Business** or **Creator** account. Personal accounts are refused.
- For Messenger: a Facebook Page that you manage.

**Watch first (4:00, Malay narration):** [Instagram, Messenger and comment replies](https://wsapme.com/guide-media/video/18-instagram-messenger-and-comment-replies-malay.mp4). The Instagram & Messenger page and its two Connect buttons, where the chats arrive, the Comment replies page, and a draft workflow that starts on a comment and is tested in the simulator. No account is connected and nothing is published or sent.

> The demo workspace used for this guide has **no Instagram account or Facebook Page connected**, and nothing was connected for it. The screenshots show the real pages before an account is connected. Every step after a **Connect** button (the Instagram and Facebook sign-in, choosing Pages, a connected account, the rule form, the statistics and Instagram or Messenger chats in the inbox) is described **from the documentation, not captured**, and is marked that way below.

## Part 1 · Connect an Instagram account

1. In the sidebar, under **Channels**, click **Instagram & Messenger**. Until you connect something, the page says **No accounts connected yet**.

   ![The Instagram & Messenger page with its two Connect buttons](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/01-channels-connect.webp)

2. Click **Connect Instagram**. *The steps from here on were not clicked in this guide.*
3. Instagram opens. Log in to your Business or Creator account and allow everything it asks for. The list includes the permission for comments, which **Comment replies** needs (Part 5). *(from the documentation, not captured)*
4. You come back to Wsapme with the message "Instagram … is connected." and the account is listed with the status **Connected**. *(from the documentation, not captured)*

Good to know:

- If you cancel on Instagram's screen, Wsapme says **Connection cancelled.** and nothing changes.
- A personal Instagram account gets this message: "Only Instagram Business or Creator accounts can be connected. Switch the account to a professional account in the Instagram app first."
- An account can be connected to one Wsapme workspace only. Otherwise you see "This account is already connected to another Wsapme workspace."
- Instagram and Facebook accounts do not use your WhatsApp device slots. If your plan limits how many you can connect, the page shows a line such as "1 of 2 accounts used on your plan." *(from the documentation, not captured: the demo plan has no limit, so the line is not shown)*

## Part 2 · Connect a Facebook Page (Messenger)

1. On **Instagram & Messenger**, click **Connect Facebook Page**. *Not clicked in this guide.*
2. Facebook opens. Log in and choose the Page or Pages you want to share with Wsapme. *(from the documentation, not captured)*
3. Back in Wsapme, the **Choose Facebook Pages** screen lists those Pages. Tick the ones whose messages should arrive in your inbox. A Page marked **Used by another workspace** cannot be ticked. *(from the documentation, not captured)*
4. Click **Connect Page** (or **Connect Pages**). Each Page is listed with the status **Connected**. *(from the documentation, not captured)*

If Facebook shared no Page, you see "No Facebook Pages were shared. Connect again and choose at least one Page." If you wait too long on the **Choose Facebook Pages** screen (about 15 minutes), you see "That Facebook sign-in has expired. Connect again."

## Part 3 · Check that an account stays connected

*(This part is from the documentation, not captured: the demo workspace has no connected account.)*

Each connected account has a status next to its name:

| Status | What it means | What to do |
|---|---|---|
| **Connected** | Messages are arriving. | Nothing. |
| **Expires soon** | Instagram access normally renews by itself. This shows when it is within 7 days of ending. | Click **Reconnect**. |
| **Reconnect needed** | Access has ended, for example because the password changed or Wsapme was removed on Instagram or Facebook. New messages do not arrive. | Click **Reconnect** and sign in again. |
| **Error** | Something else went wrong. The reason is shown in red under the name. | Click **Reconnect**. |

- For Instagram, the line under the name says "Access renews automatically · expires in N days". Facebook Page access does not expire.
- **Last event** tells you when Wsapme last heard from that account.
- **Check connection** asks Meta whether the account still works and switches message delivery on again. Use it when you see "Messages are not arriving yet" or "Comments are not arriving".
- "Reconnect to enable comment replies" means the account was connected without the comment permissions. Click **Reconnect** and allow everything.
- The bin button removes the account from Wsapme. New messages stop arriving; the conversations you already have stay.

If connecting keeps failing, follow the **Connection problems?** box at the bottom of the page: remove **Wsapme Pro** from your account on Facebook (**Business integrations**) or Instagram (**Apps and websites**), then connect again, so that you are asked for every permission from the start. Removing the app on Facebook also disconnects Lead Ads for that account until you connect it again.

![The Connection problems box](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/02-connection-problems.webp)

## Part 4 · Instagram and Messenger chats in your inbox

*(This part is from the documentation, not captured.)*

Messages to a connected Instagram account or Facebook Page arrive in **Inbox**, next to your WhatsApp chats. General inbox use is in [02 · Team inbox](https://wsapme.com/guides/team-inbox.md); only the differences are listed here.

- Each chat carries a small **Instagram** or **Messenger** badge, and the name of the account it came in on.
- A new person becomes a contact with their Instagram or Facebook name. These contacts have no phone number.
- Photos, videos, voice messages, story replies and shared posts show in the chat. On Messenger, files show too.
- You can reply with text, pictures, videos and audio. Messenger also accepts documents.
- A reply you send from the Instagram or Facebook app itself also appears in the chat.

**Meta's reply window.** Meta decides how long you may answer:

| Time since the customer's last message | Who can reply | What the inbox shows above the message box |
|---|---|---|
| Up to 24 hours | Your team and automatic replies (workflows, comment replies) | "Reply window open · closes in N h" |
| 24 hours to 7 days | A person on your team only | "Only a person can reply now · until (date)" |
| More than 7 days | Nobody, until the customer writes again | "Instagram only allows replies within 7 days of the customer's last message." (or "Messenger only allows …") |

## Part 5 · Reply to post comments automatically

A comment reply rule sends **one private message** to a person who comments on your post, and can also answer publicly under their comment.

1. In the sidebar, under **Channels**, click **Comment replies**. Without a connected account, the page says **Connect an account first**.

   ![The Comment replies page before an account is connected](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/03-comment-replies.webp)

The rest of this part is *from the documentation, not captured*, because the **New rule** button only appears once an account is connected.

2. Click **New rule** (or **Add rule** next to an account). The **New comment reply** form opens.
3. Choose the **Account** and, if you like, type a **Name (optional)** such as "Price list".
4. Under **Which posts**, choose **All posts** (every post of this account, including new ones and ads) or **Chosen posts**. With **Chosen posts**, tick the posts in the grid; use **Reload posts** if a new post is missing. You can choose up to 30.
5. Under **Reply to**, choose **Comments with a keyword** and type each keyword followed by Enter, for example `price` and `harga`. A comment that contains any of these words gets the reply; upper and lower case do not matter, and only whole words count ("price" does not match "prices"). Or choose **Any comment**.
6. Write the **Private message**. `{{first_name}}` becomes the person's name, and `{Hi|Hello}` picks one of the words at random. The counter on the right shows how much room Meta allows.
7. Optional: under **Link button (optional)**, type a button text and a link that starts with `https://`. Messenger shows a button; Instagram shows the link at the end of the message.
8. Optional: tick **Also reply publicly under the comment** and write up to three wordings, for example "Sent you a DM!". One is picked at random for each comment. The public reply is posted only after the private message was sent.
9. Leave **Rule is on** ticked and click **Save**.

Each rule then shows what it has done: comments matched, private messages sent, public replies and, if any, how many failed. Use the arrow buttons to move a rule up or down, **Turn off** to pause it, and **Edit** to change it.

**Recent comments answered** lists the last 20 comments that got a reply, with **Private message sent** or **failed** and the reason, and **Open chat** to jump to the conversation. Only owners and admins see this list.

The **How it works** box on the page sums up how rules are applied:

- Rules are checked from top to bottom; the first rule that matches the comment replies.
- Meta allows one private message per comment, within 7 days of the comment. When the person replies, the chat continues in your Inbox.
- If your plan includes workflows: a comment that no rule matches can start a workflow with the trigger "Comment on post" (in the workflow it is called **Comment on an Instagram or Facebook post**, see Part 6). A rule always goes first.

Also good to know:

- Because the first matching rule wins, put the most specific rule on top.
- The private message appears in **Inbox** as a closed conversation, so busy posts do not fill your inbox. When the person answers, the chat opens and continues like any other.
- Your own comments and replies are ignored.

## Part 6 · Hand a comment to a workflow

A rule sends one message. When you want a longer conversation (ask a question, tag the contact, hand over to your team), use a workflow that starts on a comment. A comment that matches a rule is always answered by the rule; a workflow only starts for comments that **no rule matches**.

This needs a canvas workflow (see [04 · Chatbot and workflows](https://wsapme.com/guides/chatbot-workflows.md)); simple sequences cannot start on a comment.

1. Click **Workflows**, then **New workflow** and **Blank workflow** (or open a draft).
2. Under **Starts when**, choose **Comment on an Instagram or Facebook post**.

   ![The trigger of a workflow that starts on a comment](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/04-workflow-trigger.webp)

3. Under **Accounts**, tick the accounts to watch. None ticked means every connected Instagram account and Facebook Page. To limit the workflow to certain posts, tick exactly one account and choose the posts under **Posts**. *(In the demo workspace the list says "Nothing to choose from yet.", because no account is connected; ticking accounts and choosing posts is from the documentation, not captured.)*
4. Under **Keywords (optional)**, type one keyword per line. With no keyword, any comment starts the workflow. Click **Save**.
5. Click **Edit steps**. Select **Start**, click **Add step** and choose **Reply privately to comment**.

   ![Add step with the two comment steps](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/05-add-step.webp)

6. Write the **Private message**. You can use `{{first_name}}`, `{{comment}}`, `{{commenter}}` and `{{post_url}}`, and add a button text and link.

   ![The Reply privately to comment step](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/06-reply-privately.webp)

7. Optional: add **Reply publicly to comment** and write one to three wordings.

   ![The Reply publicly to comment step](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/07-reply-publicly.webp)

8. Instagram and Messenger let the workflow write again only after the person answers the private message. So add **Wait**, choose **Waits for a reply**, and put the next steps (for example **Send message**) after it. On the canvas the step is then called **Wait for a reply**.

   ![The end of the flow on the canvas: Reply publicly to comment, then Wait for a reply, then Send message after Replied](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/08-flow-canvas.webp)

9. Click **Save draft**, then **Test**. Type a comment in **First message (optional)**, for example "harga berapa?", and click **Start test chat**. The test chat is a simulation: it shows the private message, a note with the public reply it would post, and then waits for the reply. No comment is answered and no message is sent.

   ![The test chat](https://wsapme.com/guide-media/img/instagram-messenger-and-comment-replies/09-test-chat.webp)

10. When you are happy with it, click **Publish**, or **Switch on** on the workflow's page. *Not done in this guide: the workflow stayed a draft.*

## Common problems

| Problem | What to do |
|---|---|
| **Instagram & Messenger** is not in the sidebar | Your plan does not include it. See [09 · Account, team and billing](https://wsapme.com/guides/account-team-billing.md). |
| "Only Instagram Business or Creator accounts can be connected." | In the Instagram app, switch the account to a professional account, then click **Connect Instagram** again. |
| "No Facebook Pages were shared." | Click **Connect Facebook Page** again and choose at least one Page on Facebook's screen. If it keeps happening, follow the **Connection problems?** box. |
| The status is **Reconnect needed** | Click **Reconnect** and sign in again. Messages sent to you in the meantime may not arrive. |
| Messages do not arrive although the status is **Connected** | Click **Check connection**. |
| "Reconnect to enable comment replies" or the badge **Comments off** | Click **Reconnect** and allow every permission. If it stays, follow the **Connection problems?** box. |
| A comment got no reply | Check that the rule is **On**, the keyword is a whole word in the comment, and the post is one of the rule's posts. Comments older than 7 days, your own comments and comments on other people's posts that only mention you are not answered. On Instagram, comments are only delivered for public professional accounts. |
| You cannot reply to a chat | Meta's reply window has closed (Part 4). You can reply again when the customer writes. |
| The workflow never starts on a comment | A comment reply rule matched first, the workflow is still a draft or switched off, or the same person is already in a flow on that account. |

## Related

- [02 · Team inbox](https://wsapme.com/guides/team-inbox.md)
- [04 · Chatbot and workflows](https://wsapme.com/guides/chatbot-workflows.md)
- [05 · AI agent and knowledge](https://wsapme.com/guides/ai-agent-and-knowledge.md)
- [08 · Integrations](https://wsapme.com/guides/integrations.md) for Meta Lead Ads forms
