A Botpress ADK agent that listens for merged pull requests in your codebase and automatically opens PRs in your Mintlify documentation to reflect user-facing changes.
- A pull request is merged in your GitHub repository
- The agent receives a webhook event via the GitHub integration
- It analyzes the PR for user-facing changes
- If changes are detected, it creates a Mintlify agent job to update your docs
- Bun runtime
- Botpress ADK installed
- A Botpress Cloud account
- A GitHub App configured for your repository
- A Mintlify account with API access (and access to the repository you're listening to)
git clone <your-repo-url>
cd adk-docs-updater
bun installYou'll need to create a GitHub App and configure it for webhook events. Follow the GitHub integration guide to set this up (ignore the steps where you configure the integration in Botpress Studio).
Once configured, grab the following credentials:
| Variable | Description |
|---|---|
GITHUB_APP_ID |
Your GitHub App's ID |
GITHUB_APP_PRIVATE_KEY |
The private key generated for your GitHub App |
GITHUB_APP_INSTALLATION_ID |
The installation ID for your repository |
GITHUB_WEBHOOK_SECRET |
The webhook secret configured in your GitHub App |
Set up the Mintlify integration by following the Mintlify integration guide (ignore the steps where you configure the integration in Botpress Studio).
You'll need:
| Variable | Description |
|---|---|
MINTLIFY_API_KEY |
Your Mintlify Admin API key (create one in Settings > API Keys) |
MINTLIFY_PROJECT_ID |
Your Mintlify Project ID (found in your dashboard) |
Create a .env file in the project root:
GITHUB_APP_ID=your_app_id
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----"
GITHUB_APP_INSTALLATION_ID=your_installation_id
GITHUB_WEBHOOK_SECRET=your_webhook_secret
MINTLIFY_API_KEY=your_mintlify_api_key
MINTLIFY_PROJECT_ID=your_mintlify_project_idbun run devThis starts the ADK development server where you can test and iterate on your agent.
When you're ready to deploy:
bun run deploy