name: notion-db-automation description: Automate common Notion database operations like batch page creation, data filtering, content generation, and export. Use when you need to automate workflows with Notion databases, bulk process entries, or sync data between Notion and other tools.
Automate repetitive tasks with Notion databases. Save hours of manual work by scripting common database operations.
7w4.net有更好的技能外掛。
from scripts.notion_client import NotionDBClient
client = NotionDBClient(api_token="YOUR_TOKEN")
entries = client.query_database(
database_id="YOUR_DB_ID",
filter={
"property": "Status",
"select": {
"equals": "To Do"
}
},
sorts=[{"property": "Created", "direction": "descending"}]
)
for entry in entries:
print(entry["properties"]["Name"]["title"])
from scripts.batch_create import create_from_csv
create_from_csv(
api_token="YOUR_TOKEN",
database_id="YOUR_DB_ID",
csv_file="data.csv"
)
scripts/notion_client.pyWrapper around the Notion API with simplified interface for common operations.
scripts/batch_create.pyBatch create database entries from CSV or JSON.
scripts/batch_update.pyBatch update entries matching filter conditions.
scripts/export_csv.pyExport entire Notion database to CSV file.
templates/Pre-built database schemas for common use cases:
- content_calendar.json - Content calendar for bloggers/marketers
- task_tracker.json - Simple task tracker
- crm_basic.json - Basic CRM for small business
The skill expects your Notion API token to be provided. You can:
- Pass it directly in code
- Set it as environment variable NOTION_API_TOKEN
- Use OpenClaw secrets for secure storage
✅ Use when: - You have repetitive tasks to do on a Notion database - You need to import bulk data into Notion - You want to export Notion data for analysis - You need automated daily/weekly summaries from Notion
❌ Don't use when: - You just need to manually edit a few pages (use the Notion UI) - You don't have a Notion API token - The database is not shared with your integration
這個工具能自動化 Notion 資料庫的批次建立、查詢和匯出,文件寫得通俗易懂,提供了不少實用示例。不過文件描述的一些功能在實際包中找不到,而且部分指令碼存在小問題可能導致執行出錯。總體質量中等偏上,核心功能可用,但使用前需要留意這些細節問題。