> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/fa-bu/adaptive-content.md).

# 自适应内容

根据阅读者是谁，提供量身定制的文档体验

当用户访问您的网站时，您可能已经了解他们的一些信息——例如他们是谁、订阅了哪个套餐，以及可以使用哪些功能。

自适应内容有助于根据阅读者构建个性化的文档体验。

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2FwYV7jtuVoJNcmEHjnRTO%2F20_08_25_adaptive_content.webp?alt=media&amp;token=c7373b37-d23c-4752-8e29-537c99097f0d" alt="A GitBook screenshot showing adaptive content controls"><figcaption><p>通过自适应内容个性化用户的文档体验</p></figcaption></figure>

{% hint style="info" %}
自适应内容与……略有不同 [已认证访问](/docs/documentation/zh/fa-bu/site-audience/authenticated-access.md)，不过它们可以协同工作。

虽然已认证访问允许您通过登录来保护文档，但自适应内容会根据各种身份验证方式来定制已发布内容——包括已认证访问或来自您自己应用的身份信息。
{% endhint %}

### 它是如何工作的

自适应内容有两种工作方式之一：

1. 将数据从您的应用传递到 GitBook
2. 从已认证访问传递数据

当用户访问您的站点时，我们将他们随身携带的数据称为他们的“声明”——基本上就是有助于识别用户的数据。这些声明可由您——站点作者——进行控制，并可通过 GitBook 编辑器用于在您的文档中显示或隐藏不同的页面、变体和部分。

您还可以使用条件来针对人类访客或 AI 代理。参见 [定位人类访问者和 AI 智能体](/docs/documentation/zh/fa-bu/adaptive-content/adapting-your-content.md#target-human-visitors-and-ai-agents).

前往我们的页面了解 [启用自适应内容](/docs/documentation/zh/fa-bu/adaptive-content/enabling-adaptive-content.md) 以开始为您的站点设置自适应内容。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/fa-bu/adaptive-content.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
