## 能力 Notion Integration forBotpress Studio 允许您执行以下操作: > 以下操作需要知道机器人将使用的 Notion 实体的 ID。所有 Notion 实体(页面、数据库等)都有一个 ID,您可以在浏览器访问 Notion 账户中的 URL 时找到该 ID,也可以通过点击(...)菜单中的 "复制链接 "项获取链接。更多信息请参阅[获取数据库 ID - Notion 开发人员](https://developers.notion.com/docs/create-a-notion-integration#step-3-save-the-database-id)。 ### 为讨论添加评论 此操作允许您向现有讨论添加评论。用于回复评论。 ### 为页面添加评论 您可以使用此操作添加页面级评论。 ### 获取数据库 该操作允许您获取数据库的详细信息。最好与 "向数据库添加页面 "操作一起使用。除了来自 Notion API 的响应([Retreive a Database - Notion Developers](https://developers.notion.com/reference/retrieve-a-database)),此操作还会返回一个优化的 `structure` 属性(技术上是一个类型解析),该属性可用作人工智能任务的输入,指示其根据用户输入在 Notion 数据库中生成用于添加或更新页面的有效载荷。 ### 向数据库添加页面 该操作最好与 "获取数据库"(Get a Database)一起使用,后者会返回数据库的结构,你可以用它来指示[人工智能任务](https://botpress.com/docs/cloud/generative-ai/ai-task-card/)生成有效载荷。更多信息请参阅[使用数据库 - Notion Developers](https://developers.notion.com/docs/working-with-databases)。 ### 删除区块 你可以删除以下实体: - 数据库中的页面 - 页面 - 区块 ##安装和配置 ### 第 1 步 - 创建集成 创建一个 Notion 集成[创建集成 - Notion 开发人员](https://developers.notion.com/docs/create-a-notion-integration) ### 第 2 步 - 赋予 Notion 资产访问权限 允许您的集成访问您想使用的所有页面和数据库。Botpress ### 第 3 步 - 配置您的机器人 让您的集成可以访问您希望与Botpress 一起使用的所有页面和数据库。 [与您的集成共享数据库 - Notion 开发人员](https://developers.notion.com/docs/create-a-notion-integration#step-2-share-a-database-with-your-integration) 您需要一个令牌才能将新创建的 Notion Integration _(与Botpress Studio 的 Notion Integration 不同)_ 与Botpress Studio 连接起来: - 授权令牌"--您可以在 "https://www.notion.so/my-integrations "下的集成中找到该令牌。点击集成后,进入 "秘密 "部分,找到 "内部集成秘密 "字段。点击 "显示",然后点击 "复制"。将复制的令牌粘贴到机器人 "集成 "选项卡下 Notion 集成的 "授权令牌 "字段。 这样,您只需启用集成,就可以开始利用 Notion 扩展机器人功能了。