Notion 集成配置

创建 Notion Integration

1. 访问集成页面

访问:https://www.notion.so/my-integrations

2. 创建集成

  1. 点击「+ New integration」
  2. 填写名称,选择工作区
  3. 记录 Internal Integration Token(以 secret_ 开头)

分享数据库

1. 打开数据库

在 Notion 中打开要连接的数据库

2. 添加连接

  1. 点击右上角「…」
  2. 选择「Add connections」
  3. 搜索并选择你的 Integration

配置 OpenClaw

编辑 ~/.openclaw/openclaw.json

1
2
3
4
5
6
7
8
9
10
{
"plugins": {
"entries": {
"notion": {
"enabled": true,
"token": "secret_xxxxxxxxxxxxxxxxxxxx"
}
}
}
}

重启服务

1
openclaw gateway restart

验证配置

测试读取

在对话中请求 AI 操作 Notion 数据库,例如:

1
帮我查看工作日志数据库中的最新记录

Notion 工具

OpenClaw 提供以下 Notion 工具:

工具 功能
notion_create_page 创建页面
notion_query_database 查询数据库
notion_update_page 更新页面
notion_append_blocks 添加内容块

使用示例

创建工作日志

1
2
3
4
帮我在工作日志数据库创建一条记录:
- 日期:今天
- 内容:完成 OpenClaw 配置
- 标签:技术

查询任务

1
查看任务管理数据库中未完成的任务

权限说明

Notion Integration 默认拥有:

  • 读取已分享的页面和数据库
  • 创建和更新内容
  • 无法访问未分享的内容

常见问题

Token 无效

  1. 确认 Token 格式正确(以 secret_ 开头)
  2. 重新生成 Token
  3. 重启 OpenClaw 服务

数据库无法访问

确认已在 Notion 中将数据库分享给 Integration。


相关文档:


Notion 集成配置
https://dapalm.com/2026/03/01/Notion集成配置/
作者
Mars
发布于
2026年3月1日
许可协议