360 Secure SkillHub
360 安全技能中心

Notion Integration

该 Skill 提供基于 Python 脚本的 Notion 集成能力,使用 notion-client 与 NOTION_TOKEN 访问 Notion API,支持数据库查询、页面创建与读取、内容块及用户信息操作,用于自动化 Notion 工作流与跨应用数据同步。

dinghaibin
dinghaibin
热度 31.95
最近更新 2026-05-11 17:46:13
分类:自动化依赖:代码执行 / 第三方 API应用场景:工作流 / 笔记整理 / 任务管理 / API 集成 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add notion-helper
Metadata
name
notion-integration
description
Work with Notion databases, pages, and APIs. Use when user needs to create, read, update, or delete Notion pages and databases; automate Notion workflows; sync data between Notion and other apps; or build integrations with Notion.

Notion Integration

Manage Notion workspaces via API for automation and integration.

Quick Start

# Install Notion client
pip install notion-client

# Set API key
export NOTION_TOKEN="secret_xxx"

Core Features

  • Database Operations: Create, query, update databases
  • Page Management: Create, read, update, delete pages
  • Block Operations: Add/update content blocks
  • User Info: Get workspace user information

Script Usage

# Query a database
python scripts/notion.py query --database-id <id>

# Create a page
python scripts/notion.py create-page --database-id <id> --title "Task Name"

# Get page content
python scripts/notion.py get-page --page-id <id>

Setup

  1. Create integration at https://www.notion.so/my-integrations
  2. Share database/page with integration
  3. Set NOTION_TOKEN environment variable

Examples

See references/examples.md for detailed use cases.