> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## AI 智能体默认页面指令

现在为 AI 智能体提供的每个页面都包含一个默认指令，告诉智能体如何以编程方式导航您的文档 — 指向 `.md` URL、`llms.txt` 和 `llms-full.txt`。该指令使用您站点的域名和基础路径自动生成，无需配置。

**`默认页面指令`**

```text title="默认页面指令" wordWrap
For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.example.com/llms.txt. For full documentation content, see https://docs.example.com/llms-full.txt.
```

您仍然可以使用自定义指令覆盖默认指令，或完全禁用它。

阅读文档

## 独立搜索组件

使用 [`@fern-api/search-widget`](https://www.npmjs.com/package/@fern-api/search-widget) 包在任何 React 站点上嵌入 Ask Fern 的 AI 驱动搜索。该组件呈现一个按钮，点击后打开连接到您文档内容的搜索模态框。它需要 React 19；所有其他依赖项都已打包。

阅读文档