Prerequisites
- A Mintlify project connected to a GitHub or GitLab repository
- For GitHub: the Mintlify GitHub App installed on every repository you plan to use in the automation
- For GitLab: a connected GitLab account (see GitLab setup below)
Enable an automation
- Open the Automations page in your dashboard.
-
Click the toggle beside an automation to enable it.
If the automation can run with default settings, it activates immediately. Otherwise, the automation’s configure page opens so you can fill in any required configurations.
- If the configure page opens, fill in the required fields and click Save.
Configurations
Trigger
Each automation has a default trigger that controls when it runs. To change the trigger, select a different trigger type on the automation’s configure page.- Content update: Runs whenever you push content to your project repository, including pull request merges and direct pushes.
- Code change: Runs when a pull request merges in a connected source code repository. You must specify at least one source repository.
- Custom schedule: Runs on a recurring schedule you define. Pick a preset (Daily, Every Monday, Every Friday, or Twice weekly) and a start hour, or select Custom cron and enter a standard 5-field cron expression (
minute hour day month weekday). Automations queue within 10 minutes of the scheduled time. - Integration: Runs when a selected event occurs in a connected shared integration or when a new message posts to a selected Slack channel. Available for custom automations. Select the integration and event, then complete any additional event fields that appear. For Slack triggers, pick one or more channels that you have added the Mintlify Slack app to.
Update mode
Each automation has a default mode for how it makes updates: either directly merging changes into your content repository, or opening a pull request for review. Select the mode in the After automation runs section of the automation’s configure page. Select Update and merge changes to merge changes automatically. Select Modify and wait for review to require a review before changes go live.For GitHub repositories, automatic updates require the Mintlify GitHub App to have bypass permissions on every ruleset targeting your deploy branch, including organization-level and repository-level rulesets. See Configure automerge for setup instructions.For GitLab repositories, automerge uses the GitLab OAuth connection and requires at least the Maintainer role on each project.
Context repositories
For custom automations and some predefined automations, you can add context repositories—additional source code repositories the agent reads when the automation runs. This is useful when your automation prompt references code, APIs, or other content that lives outside your project repository. You can add up to 10 context repositories per automation. For each GitHub repository, install the Mintlify GitHub App. Add repositories on the GitHub App settings page.Integrations
For custom automations and supported predefined automations, enable connected integrations. The agent pulls context from shared tools like Notion, Jira, or Linear when the automation runs. To enable integrations for an automation, open its configure page and select the integrations you want to use in Tools. If you select Integration as the trigger for a custom automation, the triggering integration is always a tool for that automation. See Integrations for connection scopes, supported events, and permissions.Slack notifications
Send Slack messages to one or more channels when automations run. To enable Slack notifications:- Install the Mintlify Slack app in your workspace.
- Click Configure Slack on the Automations page of your dashboard.
- Select one or more channels to send notifications to.
- Click Save changes.
- An automation opens a pull request for review.
- An automation pull request has been waiting for review for three days.
- An automation merges a pull request, or fails to complete.
Instructions
Add optional instructions that append to the automation’s base prompt on every run. Use these to adjust the style, tone, or other project-specific behaviors without changing the core automation logic.Target languages
When you enable the Translate content automation, select one or more languages to keep in sync with your source content.- Mintlify reads the languages defined in your
docs.jsonto identify your default language and preselects any already configured target languages. - You must select at least one target language to save the automation.
- You cannot select the source language as a target.
GitLab setup
To use GitLab repositories in an automation, connect each project through the GitLab OAuth settings page. Connect every repository the automation touches—your documentation repository and any trigger or context repositories. You must have at least the Maintainer role on each project.Automations require a paid GitLab tier. The agent uses short-lived project access tokens for repository access, which GitLab’s Free plan does not support.
Disable an automation
- Open the Automations page in your dashboard.
- Click the toggle beside an automation to disable it.
Delete an automation
- Open the Automations page in your dashboard.
- Click the settings button on the custom automation’s card to open its configure page.
- Click Delete automation at the bottom of the page and confirm.
mint automations. Deletion is permanent and cannot be undone.
Run an automation manually
You can trigger an automation on demand without waiting for its next scheduled or event-based run.- Open the Automations page in your dashboard.
- Click the settings button on the automation’s card to open its configure page.
- Click the run button (Test run or Run now, depending on the automation).
- Select the run scope.
- Since a date: Reviews changes from the selected date through the current time. The date defaults to the automation’s last run, or seven days ago if it has never run.
- Everything: Reviews the entire site or repository history. This scope usually takes longer and uses significantly more credits than a targeted run.
- Specific pull request: Limits the run to one pull request in a selected repository.
- Click Run now.
Trigger a scheduled automation via API
For automations with a Custom schedule trigger, you can start a run from your own tooling instead of waiting for the next scheduled time. Use the Trigger automation endpoint to fire a run from a CI/CD pipeline, release script, or any service that can make an authenticated HTTP request. API-triggered runs behave exactly like scheduled runs: they pick up everything that has changed since the last completed run, count toward credit usage, and appear in the run history.View run history
The Runs tab on the automations page displays a list of all runs for all automations. A run is one execution of an automation. A run can create a new pull request, update an existing pull request, fail to run, or find nothing to change.- Open the Automations page in your dashboard.
- Use the dropdown menus to filter by specific automations or status.
- Review needed: The agent finished the run, but someone on your team must review and merge the changes.
- Running: The agent is actively working on the automation job.
- Accepted: The agent finished the run and the changes merged into your repository.
- Closed: The agent finished the run, but someone rejected the changes.
- Failed: The agent could not complete the run.
- No action needed: The agent finished the run but did not find anything to update.
- Modified PR: The result appended changes to a pull request opened by an earlier run.
Continue a run in the editor
After an automation completes and creates changes on a branch, you can open those changes directly in the editor to review, refine, or publish them.- Open the Automations page in your dashboard.
- On the Runs tab, click Preview on the run you want to continue working on in the editor.