> 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="/files/e25893f59c50a179006aad21eeadb9a943d1a81c" 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 编辑器使用，以在您的文档中显示或隐藏不同的页面、变体和部分。

前往我们关于 [启用自适应内容](/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.
