notion-workspace
Skill0 starsChanged 7 months agoMITView on GitHub
Manage Notion workspace: search pages and databases, read markdown, create pages, insert rows, triggers, MCP. Powered by AISA gateway (Notion toolkit). Requires AISA_API_KEY and curl. Keywords: notion, workspace, page, database, block, markdown, wiki, task board, insert row, OAuth. Use when: the user needs web search, research, source discovery, or content extraction.
- Reads credentials
- Sends data out
In this repository59 other files it gives its agents.
- aisa-multi-search-engineSkill
- aisa-providerSkill
- aisa-tavilySkill
- aisa-twitter-apiSkill
- aisa-twitter-command-centerSkill
- aisa-twitter-engagement-suiteSkill
- aisa-twitter-post-engageSkill
- aisa-youtube-searchSkill
- aisa-youtube-serp-scoutSkill
- cn-llmSkill
- crypto-market-dataSkill
- gmail-lead-deskSkill
- kol-creator-discoverySkill
- last30daysSkill
- last30days-zhSkill
- llm-routerSkill
- marketpulseSkill
- marketSkill
- media-genSkill
- multi-searchSkill
- multi-source-searchSkill
- openclaw-aisa-youtube-aisaSkill
- openclaw-media-genSkill
- openclaw-searchSkill
- openclaw-twitter-post-engageSkill
- openclaw-twitterSkill
- openclaw-youtubeSkill
- perplexity-researchSkill
- perplexity-searchSkill
- prediction-market-arbitrage-apiSkill
- prediction-market-arbitrageSkill
- prediction-market-arbitrage-zhSkill
- prediction-market-dataSkill
- prediction-market-data-zhSkill
- prediction-marketSkill
- saas-gatewaySkill
- scholar-searchSkill
- searchSkill
- seo-keyword-researchSkill
- smart-searchSkill
- stock-analysisSkill
- stock-dividendSkill
- stock-hotSkill
- stock-portfolioSkill
- stock-rumorsSkill
- stock-watchlistSkill
- tavily-extractSkill
- tavily-searchSkill
- trend-forecastSkill
- twitter-autopilotSkill
- twitter-command-center-search-post-interactSkill
- twitter-command-center-search-postSkill
- twitterSkill
- us-stock-analystSkill
- web-searchSkill
- x-intelligence-automationSkill
- youtube-searchSkill
- youtube-serpSkill
- youtubeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 2 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Windows: Use curl.exe in PowerShell.
- Distinctive: line 41
Search, read, or write Notion pages and databases
- Very specific: line 94
If ACTIVE already exists for same user_id + notion, reuse it.
- Very specific: line 102
Read page: NOTION_GET_PAGE_MARKDOWN or NOTION_FETCH_BLOCK_CONTENTS
- Very specific: line 103
Read database: NOTION_FETCH_DATABASE → NOTION_QUERY_DATABASE or NOTION_QUERY_DATABASE_WITH_FILTER
- Distinctive: line 111
Confirm with user: before any write
- Very specific: line 112
Create page: NOTION_CREATE_NOTION_PAGE (parent_id, title) → save returned id
- Very specific: line 113
Add body: NOTION_ADD_MULTIPLE_PAGE_CONTENT (parent_block_id, content_blocks[])
- Very specific: line 114
Check successful in response.
- Very specific: line 125
Update: NOTION_UPDATE_PAGE.
- Very specific: line 155
Confirm: before POST that writes to Notion or changes triggers/webhooks/MCP
- Very specific: line 156
Read-only GET/list/search need no confirmation unless user forbids network
- Very specific: line 158
Never use mock IDs (test_nanoid_001)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Notion Workspace (notion-workspace)
Standalone skill for Notion pages, databases, and workspace automation via AISA. No other skill required.
Covers: OAuth connect, tool discovery/execute, Notion ID rules, triggers, and MCP for Notion only.
Quick Start
export AISA_API_KEY="your-key" # Linux/macOS
# $env:AISA_API_KEY = "your-key" # Windows PowerShell- Base URL:
https://api.aisa.one - Path prefix:
/apis/v1/composio/... - Toolkit slug:
notion - Header:
Authorization: Bearer $AISA_API_KEY
Windows: Use curl.exe in PowerShell.
HTTP patterns (session, OAuth, execute, triggers): references/api_basics.md
When to use
- Search, read, or write Notion pages and databases
- Connect a user/workspace to Notion (OAuth or API key)
- Insert or update database rows, append page content, export Markdown
- Notion triggers, webhooks, or Notion-only MCP server
When NOT to use
- No
AISA_API_KEY— get one at aisa.one - Direct upstream provider endpoints without the AISA gateway
- Official Notion API only (no AISA gateway)
- Other toolkits (GitHub, Slack, Gmail, etc.) — use a different skill
What Can You Do?
"Connect user alice to Notion via OAuth"
"Search for pages titled Roadmap and export Markdown"
"Add a row to my Tasks database with status In Progress"
"Create a child page under X and append bullet content"
"Set up a trigger when a new row is added to database Y"Intent → Workflow
| User intent | Read this |
| API key / session / generic curl | references/api_basics.md |
| connect / OAuth / authorize Notion | references/workflow_connect.md |
| search / find page or database | references/workflow_read.md § Search |
| read markdown / page content / blocks | references/workflow_read.md § Content |
| query database / filter rows | references/workflow_database.md § Query |
| create page / write content / append blocks | references/workflow_write_page.md |
| insert row / update properties | references/workflow_database.md § Write |
| comments / file upload | references/notion_intent_to_tool.md |
| page updated / trigger / webhook / MCP | references/notion_triggers.md |
| errors / 404 / wrong ID type | references/notion_gotchas.md |
| non-ASCII / Chinese field names / mojibake | references/notion_gotchas.md § 8 |
| which tool slug? | references/notion_intent_to_tool.md |
Unclear intent:
GET auth/session/info, ensureconnected_account_id(N1), then ask read vs write.
Core Workflows
N1 — Connect Notion
GET /auth_configs?toolkit_slug=notion→auth_config_id- Confirm with user →
POST /connected_accounts/linkwithuser_id - User opens
redirect_urlin browser - Poll
GET /connected_accounts?user_ids={user_id}&toolkit_slugs=notionevery 3–5s untilACTIVE(~2 min max) - Save
items[].idasconnected_account_id
If ACTIVE already exists for same user_id + notion, reuse it.
Details: references/workflow_connect.md
N2 — Discover and read
- Resolve
connected_account_id(N1 if missing) - Discover IDs:
NOTION_SEARCH_NOTION_PAGEorNOTION_FETCH_DATA - Read page:
NOTION_GET_PAGE_MARKDOWNorNOTION_FETCH_BLOCK_CONTENTS - Read database:
NOTION_FETCH_DATABASE→NOTION_QUERY_DATABASEorNOTION_QUERY_DATABASE_WITH_FILTER
Details: references/workflow_read.md
N3 — Write pages and blocks
- Resolve
connected_account_id(N1 if missing) GET /tools/{tool_slug}— never guess slug; seereferences/notion_intent_to_tool.md- Confirm with user before any write
- Create page:
NOTION_CREATE_NOTION_PAGE(parent_id,title) → save returnedid - Add body:
NOTION_ADD_MULTIPLE_PAGE_CONTENT(parent_block_id,content_blocks[]) - Check
successfulin response; on false readerror
Key param:
NOTION_ADD_MULTIPLE_PAGE_CONTENTusesparent_block_id(notpage_id) andcontent_blocks(notchild_blocks).
Details: references/workflow_write_page.md
N4 — Database rows
- Check sharing: Confirm the target database (and its parent page chain up to workspace root) is shared with the AISA integration in Notion UI (⋯ → Connections). A 404 on execute almost always means the integration cannot see the resource.
- Always
NOTION_FETCH_DATABASEfirst - Confirm with user →
NOTION_INSERT_ROW_DATABASE(propertiesas list of{name, type, value}) - Update:
NOTION_UPDATE_PAGE; filter:NOTION_QUERY_DATABASE_WITH_FILTER
Details: references/workflow_database.md
N5 — Troubleshoot
references/notion_gotchas.md + references/api_basics.md Troubleshooting table.
Execute pattern (all Notion tools)
curl -X POST "https://api.aisa.one/apis/v1/composio/tools/execute/NOTION_SEARCH_NOTION_PAGE" \
-H "Authorization: Bearer $AISA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"connected_account_id": "ca_xxxxxxxx",
"user_id": "alice@example.com",
"arguments": { }
}'Schema: GET /tools/{tool_slug} → input_parameters.
List tools: GET /tools?toolkit_slug=notion&limit=50
Safety
- Confirm before POST that writes to Notion or changes triggers/webhooks/MCP
- Read-only GET/list/search need no confirmation unless user forbids network
- OAuth
redirect_urlmust be opened by a human - Never use mock IDs (
test_nanoid_001)
Reference routing
| Topic | File |
| Gateway, OAuth, execute, triggers HTTP | references/api_basics.md |
| Notion pitfalls | references/notion_gotchas.md |
| Intent → tool_slug | references/notion_intent_to_tool.md |
| Connect | references/workflow_connect.md |
| Read / search | references/workflow_read.md |
| Write pages | references/workflow_write_page.md |
| Database | references/workflow_database.md |
| Triggers, MCP | references/notion_triggers.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

