Notion Workers are small Node/TypeScript programs that extend Notion. You write code, deploy it with the Notion CLI, and Notion hosts and runs it for you. No servers to manage. With Workers, you can:Documentation Index
Fetch the complete documentation index at: https://developers.notion.com/llms.txt
Use this file to discover all available pages before exploring further.
- Sync external data into Notion databases on a schedule.
- Give Notion AI new tools that your Custom Agents can call.
What you can build
Sync data
Pull data from Salesforce, Stripe, GitHub, or any API into Notion databases — kept in sync automatically.
Agent tools
Give Notion Custom Agents functions like “create a Jira ticket” or “look up a customer in our CRM.”
How it works
A worker is a single TypeScript file that exports aWorker instance. You register capabilities on it (like syncs or tools) and deploy with ntn workers deploy:
src/index.ts
- Syncs run on a schedule (default every 30 minutes) and write results to Notion databases.
- Tools appear in Notion Custom Agents and are called by agents on demand.
| Concept | What it does |
|---|---|
| Worker | The container for your code. One worker per project. |
| Capability | Something the worker can do, i.e. a sync or tool. A worker can have one or more capabilities. |
| Database | A Notion database managed by a sync. You define its schema in code. |
| Pacer | Rate-limits outbound API calls so you don’t hit third-party quotas. |
| OAuth | Handles authorization flows for services like GitHub and Google. |
| Secrets | Environment variables stored securely and injected at runtime. |
Typical workflow
Scaffold a project
src/index.ts starter file, TypeScript config, and dependencies.Write your capabilities
Add syncs or tools to
src/index.ts. Use an AI coding agent to help. The template includes prompts and skills, like the /sync skill.Next steps
Quickstart
Create and deploy your first worker in less than five minutes.
CLI reference
Install and configure the Notion CLI.