The agent is available on Pro and Custom plans for anyone with access to your dashboard.
- Write new content based on your prompts, links to pull requests, or Slack threads
- Revise outdated code examples and API references
- Search and update existing content
- Answer questions about your docs and technical writing topics
@mintlify in a channel.
Add the agent to your Slack workspace
If your Slack Workspace Owner requires admin approval to install apps, ask them to approve the Mintlify app before you connect it.
- Navigate to the agent page of your dashboard.
- Select the Connect button.
- Follow the Slack prompts to add the
mintlifyapp to your workspace. - Follow the Slack prompts to link your Mintlify account to your Slack workspace.
- Test that the agent is working and responds when you:
- Send a direct message to it.
- Mention it with
@mintlifyin a channel.
Connect repositories as context
The agent can only access repositories that you connect through the Mintlify GitHub App. Modify which repositories the agent can access in the GitHub App settings.Embed the agent via API
Use the agent endpoints to create jobs, get a specific job, and get all jobs.Write effective prompts
Think of the agent as a helpful assistant that needs your guidance to complete tasks. Give it clear instructions and context. More focused tasks are easier to complete, so break down complex projects into smaller steps. Make your prompts specific and outcome-focused. Generic prompts like@mintlify Improve the onboarding page apply general best practices, but may not improve content in the specific way that you were picturing.
Problem-focused prompts
Try prompts based on outcomes you want your users to achieve or problems that they encounter:@mintlify A lot of users have trouble installing the CLI. Review the onboarding page and update the docs so that users can easily install the CLI@mintlify Developers keep getting 401 errors when following our authentication guide. Review the auth docs and add clearer examples showing how to properly format the API key@mintlify Users are confused about rate limits. Add a clear explanation with examples to the API reference
Content creation prompts
Create new documentation sections or pages with specific requirements:@mintlify Create a new troubleshooting page for common database connection errors@mintlify Add a section to the quickstart about environment variables with examples for development and production@mintlify Write a guide on migrating from v1 to v2 of our API based on this PR: [PR link]
Code example prompts
Generate or update code examples across your documentation:@mintlify Add Python and Node.js code examples to the authentication page@mintlify Update all API examples to use the new base URL https://api.example.com@mintlify Generate a complete code example showing how to handle pagination in our API
Maintenance prompts
Use broad prompts for general content maintenance like fixing typos, updating redirects, or renaming a feature throughout your docs:@mintlify Find and fix all typos in the docs@mintlify Change all unordered lists to use * instead of -@mintlify Replace all instances of "API key" with "access token" throughout the docs@mintlify Update all broken links in the deployment section
Review and improvement prompts
Ask the agent to review and improve existing content:@mintlify Review the API rate limiting section. We changed limits last month from 100 to 1000 requests per minute@mintlify Make the installation guide more concise and easier to follow@mintlify Check if all code examples in the SDK documentation are up to date with version 2.0
Specify a subdomain
If you have multiple documentation sites with their own subdomains, include thesubdomain parameter in your message to specify which subdomain the agent should work on.
Use the format @mintlify subdomain=<your-subdomain> <your-prompt> to prompt the agent to work on a specific subdomain.
Examples:
@mintlify subdomain=public-docs Add a new section to the quickstart about inviting collaborators based on this PR: Prompts the agent to update the quickstart only on thepublic-docssubdomain.@mintlify subdomain=customer-docs Update the auth docs for the new authentication method: Prompts the agent to update the auth docs only on thecustomer-docssubdomain.
Agent workflows
The agent assists with many different documentation tasks. These workflows show some of the ways you can integrate the agent into your documentation process. Try an approach that fits how your team currently works and adapt it to your specific needs.Iterate on a prompt in a Slack thread
Prompt the agent, then continue to mention it with@mintlify in the same thread to refine and iterate on the pull request that it creates.
Example workflow:
- Initial prompt:
@mintlify Our quickstart page needs a new section on inviting collaborators - Refine:
@mintlify The new section should be called "Inviting collaborators" and placed after the installation section - Add details:
@mintlify Add a code example showing how to send an invitation via the API - Final touch:
@mintlify Add a note about permission requirements for inviting users
Start with the agent, finish manually
Prompt the agent to begin a project, then check out the branch it creates and finish the task in your local environment or the web editor. The agent can help you get started, then you can take over to complete the task. Example workflow:- Prompt:
@mintlify Update the quickstart page to include information about inviting collaborators - Review the PR the agent creates
- Check out the branch locally:
git checkout mintlify/update-quickstart-collaborators - Make additional changes, add screenshots, or refine the content
- Push your changes and merge the PR
Update docs when merging feature changes
When you merge a feature pull request, share the PR link with the agent to update relevant docs. Example workflow:- Merge a feature PR that adds OAuth support
- In Slack:
@mintlify This PR adds OAuth authentication. Update the authentication docs to include the new OAuth flow with code examples: https://github.com/yourorg/yourrepo/pull/123 - Review the documentation PR the agent creates
- Merge the documentation updates
Generate release notes from a pull request
Prompt the agent with a specific pull request to generate release notes or changelog updates based on the commit history. Example workflow:- Complete a sprint with multiple merged PRs
- Prompt:
@mintlify Generate release notes for version 2.1.0 based on these PRs: [PR link 1], [PR link 2], [PR link 3] - Review and refine:
@mintlify Add a migration guide section for the breaking changes - Merge the changelog update
Generate code examples
Prompt the agent to generate code examples for features throughout your docs or on specific pages. Example workflow:- Prompt:
@mintlify Add code examples for the new batch API endpoint in Python, Node.js, and cURL - Review the examples
- Refine:
@mintlify Add error handling to the Python example - Merge the updates
Review existing content
Prompt the agent to review existing content for technical accuracy, style, grammar, or other issues. Example workflow:- After a major API update:
@mintlify Review all API documentation and update any references to the old v1 endpoints to use v2 endpoints - Review the changes:
@mintlify Also check for any outdated parameter names - Merge the updates
Respond to user feedback
Prompt the agent with feedback from your users to make focused updates to your docs. Example workflow:- Receive user feedback: “Step 3 in the setup guide is confusing”
- Prompt:
@mintlify Users are getting confused by step 3 in the setup guide about environment variables. Make it clearer by adding examples and explaining what each variable does - Review and merge the improvements
Sync documentation with Slack threads
Reference Slack threads to provide the agent with full context from team discussions. Example workflow:- Have a detailed discussion in Slack about a new feature
- Prompt:
@mintlify Based on this thread, create documentation for the new caching feature: [Slack thread link] - The agent reads the entire thread and creates comprehensive documentation
- Review and merge
Automate with the API
Integrate the agent into your existing automation tools to automatically update documentation when code changes occur, trigger content reviews, or sync documentation updates across multiple repositories. Example workflow:- Set up a GitHub Action that triggers when PRs are merged to main
- Use the agent API to automatically create documentation updates
- Review the automated PRs and merge