> ## 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.

# Google Calendar

> 配置一个使用已连接的 Google Calendar 账户创建、列出、查找和更新日历事件的工作流步骤

# Google Calendar

当你希望工作流步骤从已连接的账户创建事件、列出即将举行的会议、查找事件或更新日历条目时,请使用 **Google Calendar**。

## 配置

| 选项                  | 必填 | 说明                                                                                                    |
| ------------------- | -- | ----------------------------------------------------------------------------------------------------- |
| Name                | 否  | 工作流画布中该步骤的标签。                                                                                         |
| Authentication      | 是  | 此步骤使用的已连接 Google Calendar 账户。                                                                         |
| Action              | 是  | 要执行的日历操作(例如 Create Event、List Events、Find Event、Update Event)。                                        |
| Arguments           | 是  | 根据操作 schema 生成的表单字段。每个文本字段都有 **Insert Variable** 按钮,可注入 `{{placeholder}}` 值。高级用法可使用 **Raw JSON** 选项卡。 |
| When the step fails | 否  | 控制此步骤失败时工作流应 **Terminate Workflow** 还是 **Continue**。                                                  |

在配置此步骤之前,请在工作区的 **Integrations** 中通过 OAuth 流程连接 Google Calendar。如果没有可用的活动连接,该步骤会显示警告并链接到 **Integrations**,而不是账户选择器。

## 常用操作

| 操作                             | 说明                      |
| ------------------------------ | ----------------------- |
| Create Event                   | 创建包含标题、时间、参与者和地点的新日历事件。 |
| List Events from All Calendars | 列出所有日历中的即将举行的事件。        |
| Find Event                     | 按时间范围或文本等条件搜索事件。        |
| Get Event                      | 按 ID 检索单个事件。            |
| Update Event                   | 修改现有事件。                 |
| Free Busy Query                | 检查日历空闲时间以便安排会议。         |

删除日历或事件等破坏性操作不会在工作流操作选择器中显示。

## 输出

此步骤将 Google Calendar API 响应存储为步骤输出。响应的形状取决于操作。

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

## 说明

* 此步骤依赖于工作区中已连接的 Google Calendar 集成。
* 工作流操作选择器显示经过筛选的日历操作子集。启用了 Google Calendar 工具的智能体可以访问完整工具包。
* OAuth 连接流程中可能会显示第三方授权品牌信息。

## 将 Google Calendar 用作智能体工具

你也可以在 **Agent Editor** 中将 Google Calendar 添加为工具。打开智能体,点击 **Add tool**,然后选择 **Google Calendar**。在工具设置面板中,选择智能体应使用的已连接账户。

另请参阅:[Integrations](../../../workspace/integrations)、[Creating and Editing](../../creating-and-editing) 和 [Testing and Iteration](../../testing-and-iteration)
