agent 功能适用于 Pro 和 Custom 方案,所有有权访问你控制台的成员都可以使用。
- 根据你的提示、拉取请求链接或 Slack 线程撰写新内容
- 修改过时的代码示例和 API 参考
- 查找并更新现有内容
- 回答关于你的文档和技术写作相关主题的问题
在控制台中使用智能助手
- Chat:发送提示词并接收包含文档修改建议的回复。
- History:查看并继续之前的对话。
- Settings:配置 GitHub 应用权限和 Slack 集成。

将 agent 添加到你的 Slack 工作区
如果你的 Slack 工作区所有者要求安装应用需管理员批准,请先让他们批准 Mintlify 应用,再进行连接。
- 在控制台中打开 agent 面板。
-
点击 Settings 按钮。

- 在 Slack 集成部分选择 Connect 按钮。
-
按照 Slack 的提示将
mintlify应用添加到你的工作区。 - 按照 Slack 的提示将你的 Mintlify 账号关联到你的 Slack 工作区。
-
测试 agent 是否正常工作,并在以下情况下是否有响应:
- 向它发送一条直接消息。
- 在频道中通过
@mintlify提及它。
将代码仓库连接为 context
通过 API 嵌入 Agent
asDraft 参数(默认为 true)来控制是否以草稿模式创建拉取请求(PR;亦称“合并请求”/Merge Request)。将 asDraft 设置为 false 可创建非草稿的拉取请求,以便在自动化工作流中立即进行审核和合并。
编写高效的提示词
@mintlify Improve the onboarding page 这样的泛化提示会应用通用最佳实践,但可能无法按照你设想的方式针对性地改进内容。
围绕你希望用户达成的结果或他们遇到的问题来设计提示词。例如:
@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 Find and fix all typos in the docs@mintlify change all unordered lists to use * instead of -
指定域名
subdomain 参数,用于指定助手应处理哪一个文档集。
要找到你的域名,请查看你想更新的文档集的 dashboard URL。域名是组织名称后面的最后一段。例如,如果你的 dashboard URL 是 https://dashboard.mintlify.com/org-name/domain-name,那么你的域名就是 domain-name。
使用 @mintlify subdomain=<your-domain-name> <your-prompt> 这种格式,引导助手在特定文档集上执行操作。
示例:
@mintlify subdomain=public-docs Add a new section to the quickstart about inviting collaborators based on this PR:提示助手仅更新public-docs站点上的 quickstart 章节。@mintlify subdomain=customer-docs Update the auth docs for the new authentication method:提示助手仅更新customer-docs站点上的认证文档。
Agent 工作流
在 Slack 线程中迭代优化提示词
@mintlify 提及它,以完善并迭代其创建的拉取请求(PR)。
例如:@mintlify 我们的快速入门页面需要新增一个“邀请协作者”的章节。然后:@mintlify 新章节应命名为 "Inviting collaborators"。之后可继续进行其他迭代。
从代理开始,手动收尾
@mintlify Update the quickstart page to include information about inviting collaborators,接着检出该 branch,按你偏好的方式进行后续修改。
合并功能改动时更新文档
@mintlify This PR adds a new authentication method. Update the docs to include the new auth flow: [PR link]。
从拉取请求生成发布说明
@mintlify 为此 PR 生成发布说明:[PR link]。
生成代码示例
@mintlify 生成一个代码示例,帮助更容易理解认证方法。
审查现有内容
@mintlify Review the API rate limiting section. We changed limits last month
响应用户反馈
@mintlify Users are getting confused by step 3 in the setup guide. What might be making it unclear?.

