Publication
Publication is the Instagram component that posts an image or a video with its text to your Instagram account, and looks up your posts and the comments they receive.
It is useful to keep your account up to date from other processes, for example by posting product photos you already have in the cloud with a text an AI agent writes, or to review the comments on your posts without opening the app.
When to use it
- You want to post every new product in your store with its photo and a text an agent writes.
- You prepare the week’s posts in a spreadsheet and want a flow to publish them.
- You want an agent to read the comments on a post and summarise what your customers think.
- You want to save your posts with their likes and comments in a spreadsheet.
Configuration
You need an Instagram credential with your Instagram account’s identifier and an access token from a Meta app with permission to publish and read comments. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The Instagram credential of the account you post to. |
| Operation | What the component does. See Operations. Default: Send Publication. |
| Media URL | Only in Send Publication. The public address of the image or video you want to post. Instagram must be able to download it without signing in. Required. |
| Type of Media | Only in Send Publication. Image or Video. Videos are posted as reels. Default: Image. |
| Publication Text | Only in Send Publication. The text that goes with the post. Required. |
| Publication Id | Only in Get Publication and Get Comments. The post’s ID. Required in Get Comments; in Get Publication, leaving it empty returns all your posts. |
Operations
| Operation | What it does |
|---|---|
Send Publication | Posts the image or video with its text. For a video, it waits until Instagram finishes processing it before posting. |
Get Publication | Returns your posts, or only the one with the given ID. |
Get Comments | Returns the comments on a post. |
Output
The Data output depends on the operation:
Send Publication: the new post’s ID.Get Publication: one item per post with its ID, text, type, the address of the image or video, its link, date, account name and number of likes and comments.Get Comments: one item per comment with its ID, text and date. If there are no comments, it says so.
You can connect the result to an agent, a spreadsheet or a messaging component. The component can also be connected to an Agent as a tool. See Tool Mode.
Example
A florist posts the bouquet of the week every Monday.
- The flow reads the address of the bouquet photo and a short description from a spreadsheet.
- An agent writes the post’s text from the description.
- Add Publication with the
Send Publicationoperation and the florist’s Instagram credential. - Connect the photo address to Media URL, leave Type of Media as
Imageand connect the agent’s text to Publication Text. - Schedule the flow to run every Monday morning.
Good practices
- Use images and videos in the formats and sizes Instagram accepts. If the format is not valid, the post fails.
- Keep the ID of every post you create: you need it to look up its comments.
Related components
- Instagram Webhook: start a flow when you receive a message or a comment on Instagram.