> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Notion

> 配置一个使用已连接的 Notion 账户从工作流内容创建 Notion 页面的工作流步骤

# Notion

当你希望工作流步骤从工作流输出创建新的 Notion 页面时,请使用 **Notion**。

## 配置

| 选项                                                                                             | 是否必填 | 说明                                                   |
| ---------------------------------------------------------------------------------------------- | ---- | ---------------------------------------------------- |
| Name                                                                                           | 否    | 步骤在工作流画布中的标签。                                        |
| Integration Authorization                                                                      | 是    | 在 **Authentication** 中选择的已连接 Notion 账户。              |
| Parent Page                                                                                    | 否    | 在 **Parent Page** 中选择的可选父页面。                         |
| Title                                                                                          | 是    | 在 **Title** 中输入的标题。                                  |
| Icon                                                                                           | 否    | 在 **Icon** 中选择的 emoji。                               |
| Content                                                                                        | 是    | 在 **Content** 中输入的页面正文。                              |
| When the step fails                                                                            | 否    | 控制此步骤失败时工作流应 **Terminate Workflow** 还是 **Continue**。 |
| 在配置此步骤之前,请在工作区的 **Integrations** 中连接 Notion。如果没有可用的活动 Notion 连接,该步骤会显示警告并链接到 **Integrations**。 |      |                                                      |

在 **Authentication** 中选择账户后,Fetch Hive 会显示 **Parent Page**,允许你选择目标页面或保留为 **No parent page**。如果你想重新加载所选授权的页面列表,请使用 **Refresh pages**。

如果 **Title** 和 **Content** 的值应来自起始输入或早前步骤,请使用其旁边的 **Insert Variable** 按钮。

**Content** 字段支持 markdown 格式。

## 输出

此步骤将返回的 Notion 页面对象存储为步骤输出。

在后续步骤中使用完整输出引用:

```text theme={null}
{{STEP_IDENTIFIER.output}}
```

如果你想从返回的 Notion 载荷中引用特定字段,在测试运行后从变量选择器中插入它:

```text theme={null}
{{step_2.output.id}}
{{step_2.output.url}}
```

具体键取决于 Notion 为已创建页面返回的响应。

## 示例

打开 **Integrations** 并按需连接 Notion。

将 **Notion** 添加到你的工作流,并在 **Authentication** 中选择账户。

如果你希望页面创建在某个现有页面下,在 **Parent Page** 中选择它。如果列表看起来过时,请点击 **Refresh pages**。

设置 **Title**,在 **Icon** 中选择 emoji,并在 **Content** 中编写页面正文。你可以在标题或正文中插入诸如 `{{step_1.output}}` 的值。

点击 **Run** 测试步骤,然后如果你希望重用返回的 Notion 页面对象中的字段,请查看 **Output**。

{/* Add screenshot: Notion step Parent Page selector with Refresh pages */}

{/* Add screenshot: Notion step output tab after a test run */}

## 备注

* 仅在你选择 Notion 授权后,**Parent Page** 才会出现。
* **Content** 字段支持 markdown,Fetch Hive 会将其转换为 Notion 块。
* 如果你不设置 **Parent Page**,该步骤会在步骤表单中创建页面而不选择父页面。

另见:[Integrations](../../../workspace/integrations)、[创建和编辑](../../creating-and-editing) 和 [测试与迭代](../../testing-and-iteration)
