Skip to content

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.

FieldWhat it does
Credential (required)The Instagram credential of the account you post to.
OperationWhat the component does. See Operations. Default: Send Publication.
Media URLOnly 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 MediaOnly in Send Publication. Image or Video. Videos are posted as reels. Default: Image.
Publication TextOnly in Send Publication. The text that goes with the post. Required.
Publication IdOnly 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

OperationWhat it does
Send PublicationPosts the image or video with its text. For a video, it waits until Instagram finishes processing it before posting.
Get PublicationReturns your posts, or only the one with the given ID.
Get CommentsReturns 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.

  1. The flow reads the address of the bouquet photo and a short description from a spreadsheet.
  2. An agent writes the post’s text from the description.
  3. Add Publication with the Send Publication operation and the florist’s Instagram credential.
  4. Connect the photo address to Media URL, leave Type of Media as Image and connect the agent’s text to Publication Text.
  5. 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.
  • Instagram Webhook: start a flow when you receive a message or a comment on Instagram.