Skip to content
FlexiPedia logo

Instagram API Action

Discover how Flexito OmniAI's Instagram integration can streamline your social media management. Automate interactions, engage with followers, and efficiently handle your Instagram account with a suite of powerful actions. This guide provides detailed information on the actions a

Flexito OmniAI
Beginnerv5
Read in:

Listen to an audio overview

A short, AI-generated podcast-style summary of this article.

Discover how Flexito OmniAI's Instagram integration can streamline your social media management. Automate interactions, engage with followers, and efficiently handle your Instagram account with a suite of powerful actions.

This guide provides detailed information on the actions available through the Flexito OmniAI Instagram integration. It helps you automate tasks, engage with followers, and manage your account efficiently.

Requirements

  • Flexito OmniAI account

  • Instagram Business account

Setting Up the Flexito OmniAI Integration

Sign in to your Flexito OmniAI account.

Go to "Settings" and then select "Channels."

Click "Add Channel" and choose "Instagram."

For further details on the integration process, click the link below:

Instagram Channel ()

Adding the Action Node to Your Flow

Add an Action Node to your flow and proceed to Advanced Actions.

Choose the Instagram API option.

Actions You Can Perform

Flexito OmniAI provides various actions to help automate tasks and engage with Instagram users.

Video Tutorial

Replying to Comments on Instagram

This feature lets you respond to comments on Instagram posts. You can also save the reply as a bot message, making it visible in chat history.

Parameters/Fields

  • comment_id: Comment ID (required).

  • message: Message for the comment reply (required).

  • Save as Bot Message: If enabled, the comment will be added to chat messages but not for prior training.

Step-by-Step Instructions

Step 1: Adding the Reply to Comment Action

  1. Go to the flow editor and select the Instagram API.

  2. Choose the "Reply to Comment" action.

  1. Link the flow with your Comment Keyword Automation. (additional documentation: Comment Keywords () )

Step 2: Configuring the Action

  1. In the action settings, enter the Comment ID.

  2. Type the Message to be sent as a reply.

  3. Activate the "Save as Bot Message" option if you want the reply to appear in chat history.

(Refer to Image 2: Action Configuration Panel)

Step 3: Viewing the Comment in Chat History

  1. After the bot replies, go to the chat history.

  2. The bot’s reply will appear in the conversation thread.

  3. This helps in tracking and referencing bot responses.

This ensures that replies generated by the bot to Instagram comments are logged in the chat history for enhanced visibility and tracking.

  1. Retrieve Instagram User Info

  • Description: Fetches details about a specific Instagram user.

  • Response:

  • name: The user's name.

  • username: The Instagram username.

  • profile_pic: URL of the profile picture.

  • is_verified_user: Shows if the user is verified.

  • follower_count: Total followers.

  • is_user_follow_business: Indicates if the user follows the business account.

  • is_business_follow_user: Indicates if the business account follows the user.

  • id: Instagram account ID.

  1. Retrieve Instagram Account Info

  • Description: Fetches details about an Instagram account.

  • Parameters/Fields:

  • fields (optional): List of fields to return, separated by commas (e.g., media_count,followers_count).

  • Response:

  • id: Instagram account ID.

  • username: Instagram username.

  • name: Instagram account name.

  • media_count: Number of media posts.

  • follows_count: Number of users the account follows.

  • followers_count: Number of account followers.

  • profile_picture_url: URL of the profile picture.

  1. List Instagram Account Media

  • Description: Fetches a list of media posts from an Instagram account.

  • Parameters/Fields:

  • fields (optional): List of fields to return, separated by commas (e.g., media_url,like_count).

  • limit: Restricts the number of media posts returned.

  • Response:

  • data: List of media posts, each containing:

  • id: Media post ID.

  • caption: Post caption.

  • comments_count: Number of comments.

  • like_count: Number of likes.

  • media_product_type: Type of media (e.g., FEED).

  • media_type: Media type (e.g., IMAGE).

  • permalink: Permanent URL of the post.

  • shortcode: Shortcode of the post.

  • timestamp: Post timestamp.

  • username: Instagram username.

  • media_url: Media URL.

  • paging: Information for retrieving more media posts.

  1. List Live Media from Instagram Account

  • Description: Fetches details about live media (live broadcasts) from an Instagram account.

  • Parameters/Fields:

  • fields (optional): List of fields to return, separated by commas (e.g., media_url,like_count).

  • Response:

  • id: Live media ID.

  • media_url: URL of the live broadcast.

  • viewer_count: Number of viewers.

  • comments_count: Number of comments.

  • like_count: Number of likes.

  • timestamp: Live timestamp.

  1. Retrieve Instagram Media Details

  • Description: Fetches detailed information about a specific media post from an Instagram account.

  • Parameters/Fields:

  • id: Media post ID (required).

  • fields (optional): List of fields to return, separated by commas (e.g., comments_count,like_count).

  • Response:

  • Detailed information of the media post, including:

  • id: Media post ID.

  • caption: Post caption.

  • comments_count: Number of comments.

  • like_count: Number of likes.

  • media_product_type: Type of media (e.g., FEED).

  • media_type: Media type (e.g., IMAGE).

  • permalink: Permanent URL of the post.

  • shortcode: Shortcode of the post.

  • timestamp: Post timestamp.

  • username: Instagram username.

  • media_url: Media URL.

  1. List Comment Replies on Instagram

  • Description: Fetches a list of replies to a specific comment on an Instagram post.

  • Parameters/Fields:

  • comment_id: Comment ID (required).

  • fields (optional): List of fields to return, separated by commas (e.g., time_stamp,text).

  • Response:

  • id: Comment reply ID.

  • text: Text of the comment reply.

  • time_stamp: Timestamp of the comment reply.

  • like_count: Number of likes.

  • from: Details about the user who replied (includes id, username).

  1. Reply to Comment on Instagram

  • Description: Allows you to reply to a comment on an Instagram post.

  • Parameters/Fields:

  • comment_id: Comment ID (required).

  • message: Message to reply with (required).

  • Response:

  • id: Comment reply ID.

  1. Hide Comment on Instagram

  • Description: Hides a comment on an Instagram post.

  • Parameters/Fields:

  • comment_id: Comment ID (required).

  • Response:

  • Success or error message.

  1. Delete Comment on Instagram

  • Description: Deletes a comment on an Instagram post.

  • Parameters/Fields:

  • comment_id: Comment ID (required).

  • Response:

  • Success or error message.