Notion 集成配置
创建 Notion Integration
1. 访问集成页面
访问:https://www.notion.so/my-integrations
2. 创建集成
- 点击「+ New integration」
- 填写名称,选择工作区
- 记录 Internal Integration Token(以
secret_开头)
分享数据库
1. 打开数据库
在 Notion 中打开要连接的数据库
2. 添加连接
- 点击右上角「…」
- 选择「Add connections」
- 搜索并选择你的 Integration
配置 OpenClaw
编辑 ~/.openclaw/openclaw.json:
1 | |
重启服务
1 | |
验证配置
测试读取
在对话中请求 AI 操作 Notion 数据库,例如:
1 | |
Notion 工具
OpenClaw 提供以下 Notion 工具:
| 工具 | 功能 |
|---|---|
notion_create_page |
创建页面 |
notion_query_database |
查询数据库 |
notion_update_page |
更新页面 |
notion_append_blocks |
添加内容块 |
使用示例
创建工作日志
1 | |
查询任务
1 | |
权限说明
Notion Integration 默认拥有:
- 读取已分享的页面和数据库
- 创建和更新内容
- 无法访问未分享的内容
常见问题
Token 无效
- 确认 Token 格式正确(以
secret_开头) - 重新生成 Token
- 重启 OpenClaw 服务
数据库无法访问
确认已在 Notion 中将数据库分享给 Integration。
相关文档:
Notion 集成配置
https://dapalm.com/2026/03/01/Notion集成配置/