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

# Instagram

> Answer the DMs people send your Instagram accounts

Instagram in Autotakt is for conversations people start. When someone sends one of your business accounts a DM, it lands on their contact and in the [Inbox](https://help.autotakt.dev/contacts/inbox.md), next to their WhatsApp and SMS messages, and you or a chat agent answer from Autotakt. A workspace can connect as many Instagram accounts as it runs, say one for courses and one for accommodation. A rule can send a single private reply from a text template when someone comments on a post you choose.

## Connecting

Admins connect Instagram in **Settings → Connections**, on the **Instagram** card. Your Instagram has to be a professional account (business or creator) linked to a Facebook Page.

Every connected account is listed at the top of the card. Each has **Check again**, which reconnects it and renews Instagram's subscription, and **Remove**. Removing an account stops its messages arriving and its replies going out; its contacts and their history stay.

### Connect with Facebook

1. Press **Connect with Facebook** and sign in with a Facebook account that manages your Page.
2. Facebook shows the app as Autotakt, the company behind Autotakt. Pick your business, your Page and its Instagram account, and confirm.
3. You land back on Connections with the account shown as @username. If you picked more than one Page with Instagram, choose the one to use under **Choose a Page**.

You don't need a Meta app of your own. The connection doesn't expire when someone logs out of Facebook. It ends when you press **Disconnect**, or when your business removes Autotakt from its connected apps in Meta's Business settings.

We switch this button on per workspace. If your card doesn't show it, ask us. If your workspace runs on [your own backend](https://help.autotakt.dev/own-backend/how-it-works.md), use your own Meta app instead.

If it doesn't connect, the message on the card says why:

* **The sign-in was cancelled**: start again and finish the Facebook steps.
* **The sign-in took too long**: you have 15 minutes from pressing the button.
* **None of the Pages has an Instagram professional account linked**: link the account to the Page in Instagram's settings, then connect again.
* **Meta refused the Page**: the account row on the card shows Meta's reason.

### Your own Meta app

If your business already runs a Meta app, for example the one behind your [WhatsApp Cloud API numbers](https://help.autotakt.dev/channels/whatsapp.md#cloud-api-numbers), open **Use your own Meta app** on the same card. Enter the Facebook Page ID and press **Connect**; the token and app secret can stay empty to use WhatsApp's. To add another account, enter its Page ID (or paste its Instagram token) and press **Connect** again: it joins the list. All your accounts share the one Meta app, so the app secret and verify token stay the same, and so does the webhook address. Then paste the **Webhook address** from the card into your Meta app's Webhooks with the verify token, subscribed to messages, message reactions, and comments. Your app needs Meta's approval for Instagram messaging before DMs from the public arrive.

## Who a DM belongs to

A phone number or email someone types in a DM doesn't link them to a contact you already have, because anyone could type a client's email. When you recognise them, add that phone or email to their Instagram contact, or add their Instagram handle to the existing contact, and the conversation moves onto the existing contact.

Someone who writes to two of your accounts is one contact. Instagram gives them a different ID on each account, so Autotakt matches them by their Instagram username and keeps both conversations on the same contact.

With **Someone new becomes a contact** on, a person you don't have yet becomes a new contact named after their Instagram name. With it off, and always on HubSpot workspaces, their messages wait under **Waiting for a match**.

On a native workspace, an email address or phone number someone types in a
DM fills the matching field on their contact when it is empty and no other
contact has those details. Details your team already saved take precedence.

## Post comments

Top-level comments on your posts show in the contact's Chat and in the Inbox.
Click **Open post** on a comment to see the original post when Instagram
provides a link. Comments follow the same contact matching settings as DMs.

A comment leaves any running follow-ups in place. The 24-hour reply window
and the chat agent start when the person sends you a DM.

If you already connected your own Meta app, subscribe to **comments** in
Meta and use **Check again** on the Instagram connection to renew the
subscription. Your app needs permission to receive comments.

## Replying

Open the contact's **Chat** and pick Instagram in the channel menu of the message box. Your reply goes out from the account they last wrote to; with several accounts, the box names it under the text. In the Inbox, every conversation is filed under the account it came in on. Instagram allows a reply for 24 hours after the person's last message to that account; after that the box says so, and they need to write again first, or you switch to WhatsApp or SMS.

Replies are text only and short: about 1,000 characters, fewer with accented letters or emoji. Photos, voice messages, story replies and shared posts show as a label in the thread, such as \[Photo]. A shared reel or post also gets an **Open on Instagram** link that opens it on Instagram. The contact page shows the person's Instagram handle as an **Instagram** row; click it to open their profile, or the pencil to change it. If they rename their account, the new handle shows after their next message.

You can add someone's Instagram handle to any contact yourself. Instagram only tells us who an account is once it writes to you, so a handle you add says *connects when they message you* until their first DM or comment, which then lands on that contact. Replacing a handle unlinks the old account: its messages stay on the contact, and its next message starts a new conversation. Clearing the field unlinks it. A handle already on another contact is refused. A reaction shows on the message it reacted to, and a message the person unsent says so.

## Chat agents

Each [chat agent](https://help.autotakt.dev/channels/assistant.md) has its own **Instagram mode**: Off, Suggest or Live, saved the moment you change it. On Suggest, the agent's reply waits above the Instagram message box until someone sends it. The mode covers all your Instagram accounts, and the agent answers from the account the person wrote to. The agent remembers the contact across WhatsApp, email and Instagram, replies only inside the 24-hour window, and asks once for a phone number when the contact has none. It also sees the person's comments on your posts, so it knows what a private reply was about.

## Automations

A rule can react to what someone writes on Instagram with the **Instagram reply** condition, offered once Instagram is connected. A DM also stops any follow-up sequence running for that contact, like a WhatsApp reply does.

To set up a private reply, add an automation that starts with **Commented on
an Instagram post**. Choose the post and the text template. With several accounts, the post list shows every account's posts, each with its @username, and the reply goes out from the account the post is on. Enter a keyword
like **GUIDE**, or leave it blank to match every top-level comment on the
post. The rule matches whole words regardless of capitalization. Every
matching comment gets the private reply, so someone who comments again
because they missed the first message gets it again. A second comment within
24 hours gets no second reply. If a reply fails to send, their next comment
tries again. To use the same keyword on two posts, make a rule for each post.

The private reply goes to the person's Instagram messages, or to their
message requests if they don't follow you. It appears in Autotakt as **Private
reply**, with the automation's name. Instagram allows one private reply per
comment within seven days. If they reply to it, you and your chat agent can
continue the conversation in the usual 24-hour window.

You can also send that private reply yourself. When someone has commented
but hasn't sent you a DM, the reply box on their contact stays open for seven
days and says **One private reply to their comment**. Whatever you send goes to
them as a private message about their newest comment. The comment in the thread
shows which post it was on; click the post's name to open it.


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