Skip to main content
Get up and running with Workers in a few steps.

Prerequisites

Node.js

Version 22 or higher

npm

Version 10 or higher

Create your first worker

1

Install the CLI

2

Initialize a new project

Scaffold a new worker project and enter the directory:
3

Deploy to Notion

Connect to your Notion workspace and deploy:
Follow the prompts to authenticate with your Notion workspace.
4

Share the worker (optional)

To let other workspace members use this worker, share it from the Developer portal. Can connect lets members connect the worker to agents, and Full access lets them manage, edit, and deploy it. See sharing workers for more details.
5

Run the sample tool

Execute the included sample tool:

What’s in a worker?

The scaffolded project lives in src/index.ts and exports a single Worker instance:
src/index.ts

Next steps

Syncs

Sync external data into Notion databases.

Agent tools

Build custom tools for Notion AI.

Webhooks

Receive HTTP events from external services.

OAuth

Connect to third-party APIs.