Notion is evolving beyond a simple notes app into a comprehensive hub for AI agents with its new developer platform. The company now enables AI agents to connect with external systems and create automated multi-step workflows, facilitating human-AI collaboration across various databases.
The Custom Agents feature, launched in February, has already helped users automate repetitive tasks. However, their ability to work with external data was limited. Notion CEO Ivan Zhao acknowledged that while the company hasn’t historically been developer-focused, this is now changing.
A key addition is the Workers feature, which allows teams to run custom code in Notion’s secure cloud environment:
javascript
// Example of a Notion Worker syncing external data
notion.workers.create({
name: ‘salesforce-sync’,
code: // Sync Salesforce data to Notion const salesforceData = await fetchSFData(); await notion.databases.update({ databaseId: 'sales-database', properties: salesforceData });
});
“n
This sandbox environment enables:
- Syncing data with Notion databases
- Creating custom tools
- Managing automated processes via webhooks
Developers can leverage AI assistants like ChatGPT to write the code. The Notion Developer Platform also provides direct synchronization with external data sources:
python
Syncing external data sources
notion.sync.create({ source: ‘salesforce’, targetDatabase: ‘customer-db’, schedule: ‘every 15 minutes’, transform: lambda data: formatSalesforceData(data) }) “n The platform supports integration with platforms like Salesforce, Zendesk, and Postgres, allowing data to be pulled directly into Notion databases and kept constantly updated.
Notion is offering this service free of charge until August to encourage experimentation. This expansion positions Notion as a central workspace where AI agents can perform complex, multi-step tasks while maintaining security and flexibility.