iSales AI

AI Chatbot for Instagram Business

Connecting Your AI Chatbot to Instagram Business

Engage with your audience directly on Instagram by integrating your iSales AI Chatbot. This allows your bot to handle Direct Messages (DMs), and interact with comments (with autoreply), streamlining your customer communication on this vital platform. The setup primarily involves configuring an app on the Meta Developers Platform and linking it with your iSales AI settings.

Instagram Integration Overview in iSales AI:

Your iSales AI dashboard for Instagram Business provides the following:

  • Instagram Account Data:
    • Instagram Access Token: The token that authorizes iSales AI to interact with your Instagram account via the Meta API.
    • Instagram Access Token Expiration: Shows when the current access token will expire and you need to refresh it manually.
  • Webhook for Instagram:
    • Callback URL: A unique URL provided by iSales AI (e.g., https://api.isales.ai/connector/instagram/your-unique-id) where Meta will send message events (DMs, comments).
    • Verify Token: A unique token from iSales AI (e.g., a long JWT string) used by Meta to verify your Callback URL.
    • Webhook Status: (e.g., ✅ Enabled) – Indicates if Meta has successfully verified and is sending events to your Callback URL.
  • Statuses:
    • Instagram Business: (e.g., ✅ Enabled) – Overall status of the Instagram integration.
    • AI Instruction: (e.g., General) – Shows if the bot is using general or personal instructions for Instagram.
    • AI Chatbot for: (e.g., DM) – Specifies whether the bot is active for Direct Messages, Comments, or both (DM+C).
  • Instagram Statistics: Tracks Total Chats, Total Messages, Total Expenses, and Cost per Message specifically for Instagram.
  • Personal AI Chatbot Instruction for Instagram: An area to define custom instructions tailored for Instagram interactions.
  • Management Buttons (from the second screenshot):
    • Enable/Disable Instagram Business integration.
    • Button to Update Instagram Token.
    • Options to switch between General and Personal AI Instructions for Instagram.
    • Selection for Instagram AI Intelligence (Mini AI, Basic AI, Analytical AI, Super Intelligent AGI, or specific models).
    • Options to Activate Instagram AI for: DM, Comments, or DM+C.
    • Update Personal Instruction button.
    • Download Instagram Chat History.

Screenshots Fast track to setup Instagram Integration

Step-by-Step Connection Guide (Meta Developers Platform & iSales AI)

Connecting your iSales AI Chatbot to Instagram Business requires setup on both the Meta Developers Platform (developers.facebook.com) and within your iSales AI settings.

Prerequisites:

  • An Instagram Business Account.
  • A Facebook Page linked to your Instagram Business Account.
  • A Facebook Developer Account.
  • A Meta Business Account that manages both your Facebook Page and Instagram Business Account.

Phase 1: Setting up/Configuring Your App on Meta Developers Platform

  1. Go to Meta for Developers: Navigate to https://developers.facebook.com/ and log in.
  2. Select or Create an App:
    • If you already created an app for WhatsApp Business (as in the previous guide), you can often use the same app. If not, create a new app:
      • Click “My Apps” -> “Create App.”
      • Select “Business” as the app type. Click “Next.”
      • Fill in “App Display Name,” “App Contact Email,” and select your “Meta Business Account.”
      • Click “Create App.”
  3. Add Messenger API for Instagram Product:
    • From your app’s dashboard, scroll to “Add products to your app.”
    • Find “Messenger API for Instagram” (it might just be under “Messenger” and then you configure Instagram within it) and click “Set up.”
  4. Configure Instagram API Settings:
    • You’ll be guided to select the Facebook Page linked to your Instagram Business Account.
    • You will need to grant necessary permissions for managing messages and comments.
  5. Generate an Access Token:
    • Within the “Messenger” -> “Instagram Settings” (or similar section) of your Meta Developer App, you’ll need to generate an access token.
    • Select the linked Facebook Page.
    • Ensure permissions like messages is granted. If you want to manage comments, also include comments.
    • Generate the token. Copy this token. This is your Instagram Access Token for iSales AI. Note: These tokens have an expiration date and may need to be refreshed or replaced with a long-lived token for continuous operation.

Phase 2: Configuring Webhooks in Meta Developer App & iSales AI

  1. Go to iSales AI Instagram Settings:
    • Navigate to the “AI Chatbot for Instagram Business” page in your iSales AI platform.
    • You will find a unique Callback URL and Verify Token provided by iSales AI for Instagram. Copy both of these values. (They might be the same or different from the WhatsApp ones, ensure you use the Instagram-specific ones if provided separately).
  2. Configure Webhook in Meta Developer App for Instagram:
    • Go back to your app on the Meta Developers Platform.
    • In the left navigation, under “Messenger,” click on “Instagram Settings” (or it might be a general “Webhook” section where you add subscriptions for Instagram).
    • Find the “Webhooks” section for Instagram. Click “Edit” or “Add Callback URL.”
    • Paste the Callback URL from iSales AI into the “Callback URL” field.
    • Paste the Verify Token from iSales AI into the “Verify token” field.
    • Click “Verify and Save.”
  3. Subscribe to Webhook Fields for Instagram:
    • Still in the Webhook configuration on Meta for Instagram, click “Edit Subscriptions” or “Manage.”
    • Subscribe to the necessary fields. For DMs, this is typically messages. If you want to manage comments, subscribe to comments.
    • Save your subscriptions.
  4. Verify Webhook Status in iSales AI:
    • Check the Webhook Status on the iSales AI Instagram settings page. It should update to “Enabled” or “Verified.” If there’s a “Verify Webhook” button, click it after configuring in Meta.

Phase 3: Entering Credentials in iSales AI & Enabling

  1. Input Instagram Access Token into iSales AI:
    • On the “AI Chatbot for Instagram Business” page in iSales AI:
      • Click “Update Instagram Token” and paste the Instagram Access Token you generated from Meta.
  2. Enable Instagram Business in iSales AI:
    • Under the “Instagram Business” section, click the “Enable” button.
    • The Instagram Business status should change to ✅ Enabled.
  3. Activate AI for DM/Comments:
    • Under “Activate Instagram AI for“, choose your desired mode:
      • DM: Bot handles Direct Messages only.
      • Comments: Bot handles comments on your posts only and auto reply to user.
      • DM+C: Bot handles both Direct Messages and comments.

Phase 4: Testing and Further Configuration (Optional)

  1. Send a Test Message/Comment:
    • Send a DM to your Instagram Business account from another Instagram account.
    • If comment interaction is enabled, leave a test comment on one of your posts.
    • The iSales AI Chatbot should respond according to its configuration.
  2. Configure AI Instructions for Instagram (Optional):
    • In iSales AI, under “Instagram AI Instruction“, choose General or Personal. If Personal, use “Update Personal Instruction” to tailor bot behavior for Instagram.
  3. Set AI Intelligence for Instagram (Optional):
    • Under “Instagram AI Intelligence“, select the preferred intelligence level or specific LLM model for Instagram.
  4. Monitor Statistics: Use the Instagram Statistics in iSales AI to track performance.

By following these steps, you can successfully integrate your iSales AI Chatbot with your Instagram Business presence, automating responses and engaging your audience effectively.