Integrate Instagram with your chatbot to enhance its capabilities by reaching users on one of the world's most popular social media platforms.
Prerequisites
Before integrating Instagram with your chatbot, ensure you have the following prerequisites in place:
- Meta Developer App: Meta Developer App to manage connections between Instagram and Chatbot, including webhooks and access tokens.
- Facebook Page Roles: Administrator or Developer roles for a Facebook Page since Instagram accounts need to be linked to a Facebook page for using the Facebook Graph API.
- Instagram Professional Account: An Instagram Professional Account is required to access features specific to professional accounts.
Setting Up Instagram Integration
1. Create a Facebook Page
If you don't have a Facebook page:
- Create a Facebook Page.
- Ensure you have an administrator or developer role to link your chatbot.
2. Create a Meta Developer App
- Log in to Facebook for Developers.
- Select My Apps and create a new app.
- Choose Business as the App Type.
- Assign a name to your app.
3. Page ID and Access Token
- In Messenger settings, under Instagram Settings, click Add or Remove Pages.
- Add your Facebook page and copy the number under your page name for the Page ID.
- Click Generate Token and copy it for the Access Token.
4.Setup Instagram Webhook
Follow these steps to set up your Instagram Webhook:
- Copy Webhook URL
- Navigate to the bot setup page
- Locate and copy the webhook URL
- Configure Messenger Settings
- Go to Messenger settings
- Under Instagram Settings, paste the copied webhook URL
- For the verify token, use a random character string
порада
Make sure to save this random character string securely, as you'll need it for verification.
- Subscribe to Webhook Fields
- In the same settings area, locate the webhook field subscription section
- Select the appropriate fields to subscribe to
Submitting Your App for Meta Review
During Development Mode, your bot is accessible to admins, developers, and testers only. After approval and public release, it becomes available to the general public.
Learn more about the App Review process.
примітка
For troubleshooting, follow this documentation if your app got rejected.
Knowledge Base Setup
- Choose a knowledge base for your chatbot.
- If none is selected, it will default to a GPT-like model.
Save Your Data
- Don't forget to save all your settings after setup!