Danke, dass du unser Hilfe-Center besuchst. Wir arbeiten gerade daran, alle Inhalte des Hilfe-Centers zu übersetzen, deshalb könntest du noch einige Artikel auf Englisch sehen. Vielen Dank für deine Geduld!

Run custom code with Workers (beta)

Workers
In diesem Artikel

Learn what Workers are and what they’re used for 🔨

Zu den FAQs

Notion Workers are part of our Developer Platform. They run custom code on Notion's infrastructure to power:

  • Database sync

  • Tools for Custom Agents

  • Webhook triggers

What to know before you start

  • Workers are available on Business and Enterprise plans.

  • A workspace owner needs to enable Workers for the workspace.

  • If you are trying to deploy or manage a Worker, you’ll typically follow our developer documentation and use the Notion CLI.

Pricing & plan availability for Workers

To learn more about pricing for Workers, see this article.

Database sync

Database sync (powered by Workers) brings information from outside tools into a Notion database and keeps it up to date automatically. Once it's set up, the synced database stays current on its own, so your team and your agents always see the latest data without anyone copying or pasting between tools.

A few common examples:

  • Sync Zendesk support tickets into a triage database.

  • Sync Salesforce accounts into a pipeline tracker.

  • Sync data from an internal tool or database.

Once it's live, the synced database behaves like any other database in Notion. Access is governed by your standard Notion sharing permissions.

Agent tools

Agent tools (powered by Workers) extend what your Custom Agents can do beyond Notion's built-in actions and MCP, with capabilities tailored to how your team works.

A few common examples:

  • Querying a data warehouse.

  • Generating assets from a Notion doc.

  • Taking action in another app that isn’t natively supported or available via MCP.

Webhook triggers

Webhook triggers (powered by Workers) let an event in another tool kick off a workflow in Notion or any other connected system.⁠⁠⁠⁠

A few common examples:

  • Closing a task when a pull request merges.

  • Updating a CRM record when a subscription changes.

  • Creating an onboarding doc when an offer is signed.

Once it's set up, the workflow runs automatically every time the event happens, so your team doesn't have to manually move information between tools.

If something isn’t working

Try these steps in order:

  1. Make sure your workspace is eligible, and that a workspace owner has turned Workers on. Workers are available on Business and Enterprise plans, and require enablement from a workspace admin.

  2. Confirm you’re using the intended setup path. For most setups, you’ll use Notion CLI plus the developer docs.

  3. If your Worker deploy fails, check permissions next. You may not have access to deploy to that workspace, even if you can view pages in it.

  4. If your Worker runs but doesn’t change anything in Notion, test the action manually first. If you can’t make the same change in Notion, it’s usually a permission or workspace-setting issue.

  5. If cost looks higher than expected, lower the run frequency. Workers that run more often will cost more. Start with a slower schedule, then increase once you’re confident it’s working.

  6. Still stuck? Follow the developer documentation for the specific error message. They’ll have the most accurate fix.

FAQs

What’s the difference between Workers and Custom Agents?

Workers and Custom Agents solve different problems, but they can work together.

  • Workers: Run custom code on Notion’s infrastructure. Developers use Workers for things like automations, scheduled syncs, and custom integrations.

  • Custom Agents: Handle repetitive work for your team automatically. You set triggers, and they run in the background with your workspace as context.

In some setups, a Worker can power a unique tool that a Custom Agent can use. For example, a Worker might fetch data from another system, and the agent can use that data to respond or take action.

Are Workers the same thing as Automations?

Not exactly. Automations are built into Notion and are designed for anyone to set up. Workers are for developers who want to run custom code. If you don’t need code, start with Automations.


FAQs

Wie unterscheiden sich Worker von Custom Agents?

Worker und Personalisierte Agenten lösen unterschiedliche Probleme, können aber zusammenarbeiten.

  • Worker: Führen individuellen Code in der Notion-Infrastruktur aus. Entwickler/-innen verwenden Worker beispielsweise für Automatisierungen, geplante Synchronisierungen und individuelle Integrationen.

  • Personalisierte Agenten: Erledigen Routineaufgaben für dein Team automatisch. Du legst Auslöser fest, und sie werden im Hintergrund ausgeführt, wobei dein Workspace als Kontext dient.

In einigen Konfigurationen kann ein Worker ein einzigartiges Tool bereitstellen, das ein Personalisierter Agent verwenden kann. Ein Worker könnte beispielsweise Daten aus einem anderen System abrufen, und der Agent kann diese Daten verwenden, um zu reagieren oder Maßnahmen zu ergreifen.

Sind Worker dasselbe wie Automatisierungen?

Nicht ganz. Automatisierungen sind in Notion integriert und können von jedem eingerichtet werden. Worker sind für Entwickler/-innen gedacht, die individuellen Code ausführen möchten. Wenn du keinen Code benötigst, beginne mit Automatisierungen.

Werden Worker auf meinen Servern ausgeführt?

Nein. Worker werden auf den Servern von Notion ausgeführt, sodass du keine Infrastruktur einrichten oder verwalten musst.

Benötige ich die CLI, um Worker zu verwenden?

Nicht unbedingt, um Worker zu verwenden, aber in der Regel benötigst du die CLI, um sie einzurichten und bereitzustellen. Entwickler/-innen können die Anweisungen in den Dokumenten für Entwickler/-innen befolgen, um loszulegen.


Feedback geben

War diese Ressource hilfreich?