Workflows are available on Pro and Enterprise plans.Pro plans can have up to two active workflows. Enterprise plans can have up to 10 active workflows.
Create a workflow file
Create.md files in a .mintlify/workflows/ directory at the root of your documentation repository. Each file defines one workflow.
Workflow files use YAML frontmatter to configure the workflow, followed by a Markdown prompt for the agent.
.mintlify/workflows/update-changelog.md
Frontmatter fields
| Field | Required | Description |
|---|---|---|
name | Yes | Display name shown in the dashboard. |
on | Yes | Trigger configuration. |
context | No | Repositories cloned as reference when the workflow runs. |
automerge | No | Defaults to false, which opens a pull request. If true, pushes changes directly to your deployment branch. |
context or on.push.repo fields. See GitHub for more information on how to install the app.
The content below the frontmatter is the prompt the agent follows when the workflow runs.
Triggers
Each workflow must define exactly one trigger using theon field.
On schedule (cron)
Run a workflow on a recurring schedule using a cron expression. All schedules run in UTC.minute hour day-of-month month day-of-week format. Use a tool like crontab.guru to build and validate schedules.
| Expression | Schedule |
|---|---|
"0 9 * * 1" | Every Monday at 9:00 AM UTC |
"0 0 1 * *" | First day of each month at midnight UTC |
"0 8 * * 1-5" | Weekdays at 8:00 AM UTC |
On merge
Run a workflow when a pull request merges to a specific repository and branch.repo: The GitHub repository inowner/repoformat.branch: The branch to watch for merges. Omit to trigger on merges to the repository’s default branch.
Reference repositories
Usecontext to give the agent read access to additional repositories when the workflow runs. This is useful when your prompt requires reviewing code or content outside your documentation repository.
Auto-merge changes
By default, the agent opens a pull request for each workflow run so you can review changes before they go live. Setautomerge: true to push changes directly to your deploy branch without a pull request.