Install
openclaw skills install notion-db-automationAutomate 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.
openclaw skills install notion-db-automationAutomate repetitive tasks with Notion databases. Save hours of manual work by scripting common database operations.
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/marketerstask_tracker.json - Simple task trackercrm_basic.json - Basic CRM for small businessThe skill expects your Notion API token to be provided. You can:
NOTION_API_TOKEN✅ Use when:
❌ Don't use when: