Setup
- Basic configuration
- Manual configuration
- Playground
You will need:
- A published bot
- A professional Instagram account. If you have a personal Instagram account, the setup wizard will ask you to switch to a professional account.
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the Instagram integration, then select Install Integration.
- In the Configuration menu, select Authorize Instagram.
- Follow the instructions to connect Botpress to your Instagram account.
You can also manually configure the Instagram integration with your own Meta app.
You will need:
- A published bot
- A Meta developer app. Check out the Meta developer documentation to learn more about the setup process.
- A professional Instagram account. If you have a personal Instagram account, the setup wizard will ask you to switch to a professional account.
1
Install the integration
First, install the integration to your bot:
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the Instagram integration, then select Install Integration.
- In the Configuration menu, open the drop-down menu and select Manual Configuration.
- Copy the webhook URL—it should begin with
webhook.botpress.cloud.
2
Add the Instagram API
To configure your integration, you need to access the Instagram API:
- Login to your Meta developer account.
- Select the app you want to use with the integration.
- From the left navigation bar, select Add Product.
- Under the Instagram section, select Set up.
3
Configure Instagram Tester role
Next, add an Instagram Tester role to your Meta App:
- From the left navigation bar, select App roles, then Roles.
- Select Add People, then Instagram Tester.
- Enter your Instagram username, then select Add.
- Login to your Instagram account, then open the Apps and websites settings.
- Open the Tester Invites tab, then select Accept.
4
Configure the integration
To configure the integration, you need to create a webhook endpoint for the WhatsApp integration. To do this, fill in the integration’s configuration fields:
When you’ve filled in all the fields, select Save Configuration. This will automatically enable your integration.
Client Secret
Client Secret
- From your Meta app’s left sidebar, expand Instagram and select API setup with Instagram login.
Make sure you’re in API setup with Instagram login and not API setup with Facebook login.
- Copy the code under Instagram app secret.
- Go back to the integration’s configuration menu in Botpress.
- Paste the code into the Client Secret field.
Verify Token
Verify Token
Used by Meta to verify that you’re the real owner of the provided webhook. Can be any alphanumeric string.
Access Token
Access Token
- From your Meta app’s left sidebar, expand Instagram and select API setup with Instagram login.
Make sure you’re in API setup with Instagram login and not API setup with Facebook login.
- Expand Generate access tokens, then Generate token.
- Select Allow, then copy the access token.
- Go back to the integration’s configuration menu in Botpress.
- Paste the access token into the Access token field.
Instagram Account ID
Instagram Account ID
- From your Meta app’s left sidebar, expand Instagram and select API setup with Instagram login.
Make sure you’re in API setup with Instagram login and not API setup with Facebook login.
- Expand Generate access tokens. Then, copy the number under your Instagram account handle.
- Go back to the integration’s configuration menu in Botpress.
- Paste the number into the Instagram Account ID field.
5
Set up the Instagram API
Now, you can set up the Instagram API and add the webhook to your Meta app:
- Go back to your Meta developer dashboard, then select Instagram from the left navigation bar.
- Select API setup with Instagram login.
- Under Configure webhooks, paste your Botpress webhook URL into the Callback URL field.
- In the Verify token field, enter the same token you created in the previous step.
- Select Verify and save.
If you receive an error message after selecting Verify and save, make sure you saved your integration’s configuration properly in the previous step.
- Now, select the required subscriptions for your webhook. Select Add Subscriptions, then select:
messagesmessaging_postbacksinstagram_manage_messages(if your app has been reviewed by Meta
- Select Save.
You’ve manually configured your Instagram integration!
Submit your app for Meta review
After setup is complete, you can submit your app for review by Meta, the parent company of WhatsApp. This verification confirms the identity and eligibility of your business to use Meta’s platforms.While the review is pending, your bot will work for admins, developers, and testers of the app only. After your app is approved and made public, it will work for the general public as well.If you want to test your bot’s behaviour in Instagram before going through the actual setup process, you can use the Instagram integration playground.
You will need:
- A published bot
- A professional Instagram account. If you have a personal Instagram account, the setup wizard will ask you to switch to a professional account.
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the Instagram integration, then select Install Integration.
- Select Test your agent on Instagram.
- Follow the instructions to set up the playground.