返回顶部
n

notion-im-helper Notion消息助手

Sync IM messages to Notion via Notion API. Supports 7 content types, 4 formats, 2 metadata types. Append-only to a single Notion page.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.7.0
安全检测
已通过
207
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

notion-im-helper

Notion IM Helper

通过消息自动同步内容到 Notion。支持日记、笔记、待办、想法、问题、链接、摘抄 7 种类型。

环境变量

  • - NOTIONAPIKEY - Notion 集成令牌
  • NOTIONPARENTPAGEID - 目标 Notion 页面 ID(32 个字符)
  • NOTIONQUOTESPAGEID(可选)- 摘抄专用页面

设置

  1. 1. pip install notion-client
  2. 设置环境变量:NOTIONAPIKEY 和 NOTIONPARENTPAGE_ID
  3. 在 Notion 页面上授权集成(··· > 连接到)

使用方法

当用户发送匹配触发模式的消息时,执行相应的脚本:

bash
python scripts/record.py record --type {类型} {内容}
python scripts/record.py heading --level {1|2|3} {文本}
python scripts/record.py divider
python scripts/record.py list --kind {bullet|number} {项目}
python scripts/record.py toggle {json}
python scripts/record.py image [--caption 文本] {文件路径或URL}
python scripts/record.py undo
python scripts/check_config.py
python scripts/summary.py {monthly|quote}

触发规则

内容类型(前缀 → 类型):

  • - 日记: / 今天: / riji: / d → 日记
  • 笔记: / 学习: / note: / n → 笔记
  • 待办: / todo: / t → 待办
  • done: / 完成: / √ → 已完成
  • 想法: / 灵感: / idea: / flash: / 闪念: / i → 想法
  • 问题: / 疑问: / q: → 问题
  • 摘抄: / quote: / qu: / z → 摘抄
  • 链接: / link: / url: / l → 链接
  • 图片: / photo: / img: / p → 图片

格式:

  • - 文本 → H1 标题
  • 文本 → H2 标题
  • 文本 → H3 标题
  • > 文本 → 引用块
  • --- → 分隔线
  • - 文本 → 无序列表
  • 1. 文本 / 2. 文本 等 → 有序列表
  • toggle: 标题 + 后续 - / -- / --- 行 → 折叠块

命令:

  • - 月报 / monthly → 提取当月记录生成摘要
  • 摘抄 / 随机摘抄 → 随机历史条目
  • 搜: xxx / search: xxx → 按关键词搜索记录
  • 撤回 / undo → 删除上一批块(5 分钟内)
  • 配置检查 / check config → 验证配置

智能检测(无前缀,AI 推断):

  • - 纯 URL → 链接
  • 以 YYYY-MM-DD 开头 → 日记
  • 包含 [ ] 或 【 】 → 待办
  • 默认 → 想法

元数据

扫描最后一行获取元数据:

  • - #关键词 → 标签
  • /p:项目名 → 项目
  • 在传递给脚本前从内容中移除元数据

批量与撤回

  • - 多行消息:每个格式行(标题/引用/分隔线/列表)成为单独的块,通过单次 API 调用发送
  • 5 分钟内撤回:删除上一批的所有块
  • 5 分钟后撤回:仅删除最后一个单独的块
  • 日期分隔符:当最后一条记录来自不同日期时,自动插入分隔线

输出协议

脚本输出标准化前缀:

  • - OK|消息 → 成功,向用户转发成功消息
  • ERROR|CONFIG → 引导用户设置 Notion 集成
  • ERROR|AUTH → API 密钥无效或页面未授权
  • ERROR|RATE_LIMIT → 告知用户等待
  • ERROR|NETWORK → 告知用户稍后重试

首次使用务必先运行 check_config.py。切勿修改或删除现有的 Notion 块。

图片上传

  • - 支持本地文件路径(例如 C:\Users\photos\img.jpg)和 HTTP URL(例如 https://example.com/photo.png)
  • 本地文件通过文件上传 API 上传到 Notion 服务器,然后作为图片块附加
  • URL 图片直接作为外部图片块引用
  • 可选 --caption 标志为图片添加说明文字
  • 最大文件大小:5MB(Notion API 限制)
  • 支持的格式:jpg, jpeg, png, gif, webp, bmp, svg

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 notion-im-helper-1776072489 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 notion-im-helper-1776072489 技能

通过命令行安装

skillhub install notion-im-helper-1776072489

下载

⬇ 下载 notion-im-helper v1.7.0(免费)

文件大小: 18.37 KB | 发布时间: 2026-4-17 15:32

v1.7.0 最新 2026-4-17 15:32
Image upload and batch processing enhancements:

- Added support for uploading images to Notion, with optional captions, from both local files and web URLs.
- Introduced new trigger keywords and script commands for handling images.
- Multi-line messages are now processed in batch, allowing grouped block operations and batch undo within 5 minutes.
- Metadata extraction for tags and projects added via special syntax on the last line.
- Improved undo: batch delete of last group within 5 minutes; otherwise, single block undo.
- Replaced daily/weekly summary with monthly summary in scripts and commands.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部