$cd ../integrations/
⚑ Productivityv1.3+
$ cat notion-integration.md

openclaw.integrate('notion')

/** "Add a task: write blog post about OpenClaw, due Friday, P1" β€” done directly in Notion */

notion_commands.md

πŸ’¬ Powerful Natural Language Commands

Add task
"write blog post, due Friday, P1"
Query
"Show me all tasks due this week across all projects"
Update
"Mark the 'API docs' sprint item as Done"
Create page
"New page in Engineering: Meeting notes for 2026-03-02"
Semantic Search
"Find all strategy documents mentioning 'OpenClaw migration'"
Summarize
"Summarize my entire Q1 OKRs database into 3 bullet points"
step_01_notion_api.md

Step 1: Create a Custom Notion Integration

1.
1. Go to notion.so/my-integrations β†’ New integration
Give it a descriptive name like 'OpenClaw Agent'. Set the type to Internal. Make sure to check Content Capabilities: Read, Update, and Insert.
2.
2. Copy the Internal Integration Secret
It starts with 'secret_...'. Treat this like a passwordβ€”it is your master API key for Notion.
3.
3. Share your databases with the integration
Notion integrations do not have global access. You must explicitly invite the bot to each database. Open your target Notion page/database β†’ click the Β·Β·Β· menu in the top right β†’ Connections β†’ Add your 'OpenClaw Agent'.
config.yaml

Step 2: Connect OpenClaw to Notion

# openclaw/config.yaml
integrations:
notion:
enabled: true
token: "secret_YOUR_INTEGRATION_TOKEN"
databases:
tasks: "YOUR_TASKS_DB_ID"

// πŸ’‘ Find your database ID: open the DB in a browser β†’ The 32-character string before the '?' in the URL is your DB ID.

example_session.log

πŸ“± Live Automated Workflows

You
Add task: write OpenClaw tutorial, due this Friday, priority High
OpenClaw
βœ“ Created in 'Content Calendar' database: Title: write OpenClaw tutorial Due: 2026-03-06 Priority: High Status: Not started URL: https://notion.so/abc123def456
You
How many P1 tasks do I have across all my active projects this week?
OpenClaw
You have 3 High-priority (P1) tasks due this week: 1. Write OpenClaw tutorial (Due: Fri) [Content DB] 2. Review PR #47 (Due: Wed) [Engineering DB] 3. Q1 planning doc (Due: Thu) [Management DB]
sync_daemon.ts

⚑ Automated Two-Way Syncs

// OpenClaw can poll external systems and automatically write structured data into your Notion workspace.

*GitHub Issues to Notion
OpenClaw can automatically mirror all new GitHub issues tagged 'bug' straight into your Notion Bug Tracker database, including stack traces.
*Meeting Summarization
Drop an audio file into the chat. OpenClaw will transcribe it, summarize action items, and create a properly formatted page in your Meeting Notes database.
troubleshoot.log

πŸ”§ Common Issues & Fixes

Q: Error: object not found (HTTP 404)
A: Your integration token doesn't have access to the specific page/database. Go to the Notion page, click the three dots, go to 'Connect to' and add your OpenClaw bot.
Q: Validation Error: body failed validation
A: You might be trying to insert data into a field that doesn't exist or using the wrong type (e.g., sending text to a Date property). Make sure OpenClaw's mapping matches your Notion schema exactly.

❓ FAQ

Q1. Does it require a paid Notion plan?

No. The Notion API works with free accounts. You just need an internal integration token.

Q2. Can it edit existing pages?

Yes. OpenClaw can append content, update properties, and create new pages/databases via the Notion API.

Q3. Is my Notion data secure?

Your integration only accesses pages you explicitly share with it. OpenClaw processes data locally.
← Back to Integrations