Trigger Receive Instagram
Description
Section titled “Description”The instagramReceive module is a trigger that starts the workflow when the business Instagram account receives a direct message (DM), via Meta’s Messenger Platform. It extracts the sender and the text into a uniform shape (igSenderId, content, message_id) so downstream nodes —for example the Agent team (router)— identify the channel as instagram and reply to the right user.
Requirements
Section titled “Requirements”- An Instagram Business or Creator account linked to a Facebook page.
- A Meta App (developers.facebook.com) with the Instagram / Messenger product.
- An access token with the
instagram_manage_messagespermission and the Instagram account ID (IG user id).
How to set it up (step by step)
Section titled “How to set it up (step by step)”-
Prepare the account. Switch your Instagram to Business/Creator and link it to a Facebook page.
-
Create the Meta App. At developers.facebook.com create an App, add the Instagram (or Messenger) product and get an access token with
instagram_manage_messages. Note the IG user id too. -
Create the credential in Floogos. Under Credentials → New, save
{ accessToken, igId }. -
Load the credential in the node. In
Trigger Receive Instagram, select that Instagram credential. -
Generate the webhook URL. In the node, generate the Webhook URL (Floogos’s public endpoint).
-
Register the webhook in Meta. In your App → Webhooks → Instagram, paste the URL, set the verify token and subscribe to the
messagesfield. Also subscribe the page/account to the App. -
Verify and activate. Send a DM to the account: the workflow fires. Set the workflow to Active.
Output
Section titled “Output”{ "nextModule": "next_module", "data": { "channel": "instagram", "type": "text", "igSenderId": "17841400000000000", "igRecipientId": "17841499999999999", "content": "Hi, I want an invoice", "message_id": "aWdfZG1f...", "metadata": { "message_id": "aWdfZG1f...", "is_echo": false } }}Replying to the user
Section titled “Replying to the user”To reply, add an Instagram node afterwards: by default it replies to data.igSenderId (the user who wrote). For a conversational assistant, place the Agent team (router) node in between and send {{reply}}.
- Session identity is isolated by
igSenderId, so each user has their own memory. - Instagram only allows replies within Meta’s standard messaging window.
Related Nodes
Section titled “Related Nodes”- Instagram (send DM)
- Agent team (router) (per-channel agent team)