Autopilot requires a Pro or Enterprise plan.
Prerequisites
- A Mintlify project connected to a GitHub repository. Autopilot does not support GitLab or other Git providers.
- The Mintlify GitHub App installed on your docs repository and on any source code repositories you want Autopilot to use.
Enable Autopilot
- Open the Autopilot page in your dashboard.
- Switch on the toggle on the Autopilot card.
Connect repositories and tools
The Integrations section of the Autopilot page lists the sources Autopilot reads to learn how your team ships and what your documentation addresses.GitHub repositories
If you haven’t connected GitHub, click Connect in the GitHub row to install the Mintlify GitHub App. To choose the repositories Autopilot uses as context:- Click Configure in the GitHub row.
- Under Additional repositories, select the source code repositories you want Autopilot to use.
- Click Save.
Slack and other integrations
Click Connect in the Slack row so Autopilot can build context from conversations. If you disconnect Slack from the Autopilot page, it removes the Mintlify Slack app from your workspace for every product that uses it, including automations. The section also lists supported shared integrations available to your organization, such as Linear, Jira, Notion, Confluence, PostHog, Zendesk, Intercom, Plain, and Pylon. Autopilot reads the ones you connect as context.How Autopilot opens pull requests
Autopilot commits its changes to a new branch and opens a pull request. It never pushes directly to your deploy branch or to the repository’s default branch. Pull requests target your deploy branch by default. If your team merges changes into a different branch than the one your site deploys from, tell Autopilot in a chat, and it targets that branch instead.Reviewers and emails
By default, Autopilot assigns each pull request to the teammate it identifies as the owner of the code that changed, requests their review, and emails them about the pull request. To request reviews from more people or change who reviews changes, tell Autopilot in a chat. Autopilot sends emails fromautopilot@mintlify.com. Add this address to your email contacts to avoid spam filters.
Autopilot only emails members of your Mintlify organization or addresses at a company email domain that your organization’s members use.
Review suggestions
Autopilot’s open pull requests appear under Suggestions on the Autopilot page of your dashboard. Click a suggestion to open it. Each suggestion shows the pull request’s title, repository, branch, and changed files with line counts. When a preview deployment exists, click Preview to view the changes on your site.- Click Accept to merge the pull request.
- Click Close to close the pull request without merging it.
- Send a message to ask for changes. Autopilot updates the pull request.
Chat with Autopilot
On the Autopilot page, click Chat to configure on the Autopilot card to start a conversation with Autopilot in the agent panel. In a chat, you can ask questions about Autopilot’s work, give instructions for future work, and pause or resume a kind of work. When you resume scheduled work, it runs at its next scheduled time. Some examples of chats you can have with Autopilot include:- Ask what Autopilot did and why, such as why it opened a specific pull request.
- Ask when Autopilot runs and which repositories and integrations it uses.
- Tell Autopilot to have a specific teammate review a pull request.
- Ask Autopilot to run a weekly check for broken links.
Pause Autopilot
To pause Autopilot, switch off the toggle on the Autopilot card. When you resume Autopilot, it builds context on changes that happened while it was paused, but it does not create updates for them.Automatic pauses
Before each run, Autopilot checks your plan and credits. It pauses itself instead of running in either of these cases:- Your organization runs out of credits. Add credits, then switch the toggle back on.
- Your plan no longer includes Autopilot. To resume, upgrade to a plan that includes Autopilot.