Connect an Instagram Business or Creator account and your flow can answer DMs, reply to comments, and moderate — around the clock, from the same AgentFlow you use everywhere else.
Set the account up first: Instagram credentials. The node reference lives at Instagram trigger and Instagram tool.
What Instagram flows can do
- Answer DMs — text, and voice notes transcribed to text.
- React to comments — reply publicly under the post, or DM the commenter privately.
- Moderate — hide or delete comments that break your rules.
- Read images and video customers send, and pass them to a vision-capable model.
- Step aside for a human — when an operator answers from the Instagram inbox, Flowera notices and stops replying. See Manual mode.
Trigger events: DMs and comments
The Start node subscribes to each event type separately, so one account can feed several flows:
| Event | Fires when |
|---|---|
| Direct message | Someone sends a DM to the account |
| Comment | Someone comments on one of your posts |
| Mention | Someone mentions the account in a comment or caption |
| Story reply | Someone replies to one of your stories |
Subscribe only to the events a flow should handle. A comment-moderation flow that also listens for DMs will run on every DM too — and bill you for it.
Actions available
| Action | Notes |
|---|---|
| Send Direct Message | Plain text DM |
| Send Image Message | Image, video, or audio — images up to 8 MB, video/audio up to 25 MB |
| Reply to Comment | Public reply under the post |
| Send Private Reply | DM to a commenter — once per comment, within 7 days |
| Hide Comment | Hides it from other viewers without deleting it |
| Delete Comment | Removes it permanently |
Even a plain DM answer goes through one of these — Send Direct Message, in a Tool node or attached to an Agent. Direct Reply only writes into the Flowera transcript; it never calls Instagram, so a flow that ends there leaves the customer with no reply.
Recipe: reply to a comment, then DM the commenter
Answer publicly so everyone sees you're responsive, then move the real conversation into DMs.
- Start — Instagram trigger, subscribed to Comment only.
- Agent — reads the comment and writes two things: a short public answer and a longer private one, via structured output.
- Tool (Instagram) — Reply to Comment, fed the public field.
- Tool (Instagram) — Send Private Reply, fed the private field.
Private Reply is what makes this work: it's the only way to open a DM thread with someone who has only ever commented.
Recipe: answer DMs automatically
- Start — Instagram trigger, subscribed to Direct message.
- Retriever — pull the relevant part of your knowledge base.
- Agent — answer from the retrieved text, with a system prompt that says what to do when the answer isn't there.
- Tool (Instagram) — Send Direct Message, with
messageDMset to the Agent's output.
Build this end to end in the Instagram DM autoresponder tutorial.
Limits and gotchas
- Business or Creator accounts only. Instagram's messaging API doesn't work with personal accounts.
- Private Reply is one-shot — one per comment, and only within 7 days of it.
- Tokens expire. If sends start failing with an "access token has expired" error, reconnect the account; the flow picks up the new token with no edits.
- A voice note isn't automatically the question. The transcript is available to the flow, but you have to reference it deliberately — see Uploads and assets.
- Echoes. Messages the account itself sends — including automated greetings attached to ads — arrive as events too. The trigger filters them, but if a flow appears to answer itself, start here.
- Rapid-fire messages. Customers often send three short messages in a row. Flowera batches them so the flow sees one coherent question instead of three fragments.
Related
- Instagram trigger — in-flow configuration
- Instagram tool — every action and its parameters
- Instagram credentials — connecting the account
- Manual mode — handing a conversation to a human