返回顶部
n

notion-im-helper

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
安全检测
已通过
198
下载量
1
收藏
概述
安装方式
版本历史

notion-im-helper

# Notion IM Helper 通过消息自动同步内容到 Notion。支持日记、笔记、待办、想法、问题、链接、摘抄 7 种类型。 ## Environment Variables - `NOTION_API_KEY` - Notion Integration Token - `NOTION_PARENT_PAGE_ID` - Target Notion Page ID (32 chars) - `NOTION_QUOTES_PAGE_ID` (optional) - Separate page for quotes ## Setup 1. `pip install notion-client` 2. Set env vars: `NOTION_API_KEY` and `NOTION_PARENT_PAGE_ID` 3. Authorize integration on Notion page (··· > Connect to) ## Usage When the user sends a message matching a trigger pattern, execute the corresponding script: ```bash python scripts/record.py record --type {type} "{content}" python scripts/record.py heading --level {1|2|3} "{text}" python scripts/record.py divider python scripts/record.py list --kind {bullet|number} "{items}" python scripts/record.py toggle "{json}" python scripts/record.py image [--caption "text"] "{file_path_or_url}" python scripts/record.py undo python scripts/check_config.py python scripts/summary.py {monthly|quote} ``` ## Trigger Rules **Content types** (prefix → type): - `日记:` / `今天:` / `riji:` / `d` → diary - `笔记:` / `学习:` / `note:` / `n` → note - `待办:` / `todo:` / `t` → todo - `done:` / `完成:` / `√ ` → done - `想法:` / `灵感:` / `idea:` / `flash:` / `闪念:` / `i` → idea - `问题:` / `疑问:` / `q:` → question - `摘抄:` / `quote:` / `qu:` / `z` → quote - `链接:` / `link:` / `url:` / `l` → link - `图片:` / `photo:` / `img:` / `p` → image **Formats:** - `* text` → H1 heading - `** text` → H2 heading - `*** text` → H3 heading - `> text` → quote block - `---` → divider - `- text` → bulleted list - `1. text` / `2. text` etc → numbered list - `toggle: title` + subsequent `-` / `--` / `---` lines → toggle block **Commands:** - `月报` / `monthly` → extract current month records for summary - `摘抄` / `随机摘抄` → random historical entry - `搜: xxx` / `search: xxx` → search records by keyword - `撤回` / `undo` → delete last batch of blocks (within 5 min window) - `配置检查` / `check config` → verify config **Smart detection** (no prefix, AI infers): - Pure URL → link - Starts with YYYY-MM-DD → diary - Contains `[ ]` or `【 】` → todo - Default → idea ## Metadata Scan the LAST line for metadata: - `#关键词` → tag - `/p:项目名` → project - Remove metadata from content before passing to script ## Batch & Undo - Multi-line messages: each format line (heading/quote/divider/list) becomes a separate block, sent in a single API call - Undo within 5 minutes: deletes all blocks from the last batch - Undo after 5 minutes: deletes only the last single block - Day separator: a divider is auto-inserted when the last record is from a different day ## Output Protocol Scripts emit standardized output prefixes: - `OK|message` → success, relay success message to user - `ERROR|CONFIG` → guide user to set up Notion integration - `ERROR|AUTH` → invalid API key or page not authorized - `ERROR|RATE_LIMIT` → tell user to wait - `ERROR|NETWORK` → tell user to retry later Always run `check_config.py` first on first use. Never modify or delete existing Notion blocks. ## Image Upload - Supports **local file paths** (e.g., `C:\Users\photos\img.jpg`) and **HTTP URLs** (e.g., `https://example.com/photo.png`) - Local files are uploaded to Notion servers via the File Upload API, then attached as image blocks - URL images are referenced directly as external image blocks - Optional `--caption` flag to add caption text to the image - Max file size: 5MB (Notion API limit) - Supported formats: 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

下载 Zip 包

⬇ 下载 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
返回顶部