> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/advanced-workflow-builder/variables.md).

# 变量

**变量**可让你只需存储一次值，就能在高级工作流的各个节点中重复使用，例如阈值、固定收件人，或从文档中读取并传递给后续节点的值。点击工具栏中的**变量**按钮（`{ }` 图标）打开变量面板。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-2e4057a8eae7e0816185a075973c9eb1686410c4%2Fworkflow_advanced_variables.png?alt=media" alt="按类型分组的变量面板，带有 New Variable 按钮"><figcaption><p>变量面板——变量按类型分组，带有搜索框和<strong>New Variable</strong>。</p></figcaption></figure>

## 变量类型

变量按类型分组：

* **文本** — 字符串值（例如描述或固定标签）。
* **是/否** — 布尔标记（是 / 否）。
* **文档** — 对文档或文档字段的引用。

列表变长后，可使用搜索框快速查找变量。

## 创建变量

点击**New Variable**，为变量命名、选择类型并设置值。之后，你便可以在节点卡片中引用该变量，从而将配置集中管理，并且无需逐个编辑节点即可更改配置。

## 后续步骤

* 查看节点如何使用这些值：[节点](/chinese/guan-li-yu-she-zhi/workflow/advanced-workflow-builder/nodes.md)。
* 在[验证与测试](/chinese/guan-li-yu-she-zhi/workflow/advanced-workflow-builder/validation-and-testing.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/advanced-workflow-builder/variables.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
