mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
68ec6b7ebd
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
56 lines
2.6 KiB
Plaintext
56 lines
2.6 KiB
Plaintext
---
|
||
title: "什么是 agent?"
|
||
description: "使用 agent 自动维护和更新文档。可根据 Slack 消息、PR 或 API 调用生成更新。"
|
||
keywords: ["automation", "automate", "AI", "autoupdate", "maintenance"]
|
||
---
|
||
|
||
<Info>
|
||
只要拥有你控制台的访问权限,任意用户都可以在 [Pro 和 Enterprise 方案](https://mintlify.com/pricing?ref=agent) 中使用 agent。
|
||
</Info>
|
||
|
||
agent 会根据你的提示,为文档创建包含建议更改的拉取请求(PR;亦称“合并请求”/Merge Request)。当你向 agent 发送请求时,它会结合你的文档、已连接的代码仓库以及 Slack 消息,生成遵循技术写作最佳实践并符合 Mintlify schema 的内容。
|
||
|
||
<div id="what-you-can-do-with-the-agent">
|
||
## 你可以用智能助手做什么
|
||
</div>
|
||
|
||
使用智能助手可以:
|
||
|
||
* 根据你的提示、拉取请求(PR)链接或 Slack 线程撰写新内容。
|
||
* 修订过时的代码示例和 API 参考。
|
||
* 搜索并更新现有内容。
|
||
* 回答关于你的文档和技术写作主题的问题。
|
||
* 在 Slack 对话和拉取请求(PR;亦称“合并请求”/Merge Request)中的知识流失之前,将其捕捉并整理下来。
|
||
|
||
<div id="where-you-can-use-the-agent">
|
||
## 在哪些地方可以使用 agent
|
||
</div>
|
||
|
||
* **控制台(Dashboard)**:在控制台的任意页面,使用快捷键 <kbd>⌘</kbd>+<kbd>I</kbd>(macOS)或 <kbd>Ctrl</kbd>+<kbd>I</kbd>(Windows/Linux)打开 agent 面板。或者在 [Overview](https://dashboard.mintlify.com/) 页面点击 **Ask agent**。
|
||
<Frame>
|
||
<img src="/images/agent/dashboard-light.png" alt="在控制台中打开的 agent 面板。" className="block dark:hidden" />
|
||
|
||
<img src="/images/agent/dashboard-dark.png" alt="在控制台中打开的 agent 面板。" className="hidden dark:block" />
|
||
</Frame>
|
||
* **Slack**:将 agent 添加到你的 Slack 工作区,并通过提及 `@mintlify` 来唤起它。
|
||
* **API**:使用 [agent 端点](/zh/api-reference/agent/create-agent-job) 将 agent 嵌入自定义应用中。
|
||
|
||
<div id="next-steps">
|
||
## 后续步骤
|
||
</div>
|
||
|
||
<Card title="快速开始" horizontal icon="rocket" href="/zh/agent/quickstart">
|
||
在控制台中开始使用 agent。
|
||
</Card>
|
||
|
||
<Card title="连接 Slack" horizontal icon="slack" href="/zh/agent/slack">
|
||
将 agent 添加到你的 Slack 工作区。
|
||
</Card>
|
||
|
||
<Card title="自定义行为" horizontal icon="wrench" href="/zh/agent/customize">
|
||
使用 `AGENTS.md` 文件配置 agent。
|
||
</Card>
|
||
|
||
<Card title="编写高效的提示词" horizontal icon="pen" href="/zh/agent/effective-prompts">
|
||
使用更聚焦的提示词以获得更好的效果。
|
||
</Card> |