From the source
From the source
From the source

From the source
Notion Workers let you write and deploy code to give Custom Agents new powers: sync external data, trigger automations, call any API. With Workers, developers can build agents that sync CRM data on a schedule, open issues when error rates spike, and turn Slack threads into formatted content.
Under the hood, every Worker runs on Vercel Sandbox . Copy link to heading The problem: safely running code from any developer or agent Notion wanted to let anyone extend their platform with custom code. That's a hard infrastructure problem, but an even bigger security problem.
Every Notion Worker runs arbitrary code generated by a third-party developer or agent, on behalf of a Notion user, potentially inside an enterprise workspace. Without proper isolation, a Worker would run in the same environment as the Custom Agent, with access to its secrets, permissions, and everything else in that execution context.
A single prompt injection could exfiltrate credentials or access another user's data. The requirements were clear: Hard isolation : One Notion Worker can never access another's data or state …
vercel.com