In Botpress Studio, select Explore Hub in the upper-right corner.
2
Search for the GitHub integration, then select Install Integration.
3
In the Configuration menu, select Authorize GitHub.
4
Follow the instructions to connect Botpress to your GitHub account.
When using this configuration mode, a Botpress-managed GitHub App connects to your GitHub organizations and repositories. The app has the necessary permissions to listen to pull request and issue events and to create comments on issues, pull requests, and discussions.If you need more granular control over permissions or prefer to use your own GitHub App, choose one of the manual configuration options instead.
For advanced use cases, you can use your own GitHub App with our integration.
Finally, fill in the integration’s configuration fields:
GitHub App ID
In your GitHub App’s General tab, find the App ID field.
Copy the App ID and paste it into the GitHub App ID field in Botpress.
GitHub App Private Key
Open the .pem file you downloaded earlier and paste its entire contents into the GitHub App Private Key field.
GitHub Webhook Secret
Paste the webhook secret key you generated in Step 2 into the GitHub Webhook Secret field.
GitHub App Installation ID
Navigate to your organization’s Settings > Installed GitHub Apps.
Find your newly installed GitHub App and select Configure.
Look at the URL—it should end with /installations/:installation_id. For example, in https://github.com/organizations/my-org/settings/installations/123456, the installation ID is 123456.
Copy the installation ID and paste it into the GitHub App Installation ID field in Botpress.
When you’ve filled in all the fields, select Save Configuration. This will automatically enable your integration.
You’ve manually configured your GitHub integration with a GitHub App!
You can also use a Personal Access Token (PAT) to connect your GitHub account to Botpress.
When you use a PAT, actions taken by the bot will be attributed to your personal GitHub account. If you want actions attributed to your organization, use the GitHub App configuration instead.GitHub Apps also don’t consume a seat in your organization and offer more granular permissions—we recommend using them for production use cases.