Provide real-time updates for Notion databases via webhooks with Supabase
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs when another workflow calls it. Along the way it connects Notion and Supabase.
How it runs
Trigger: When another workflow calls it.
- Globals (Edit Fields (Set)): sets or maps fields
- Get settings (Supabase): uses Supabase
- Get modified tasks (Notion): uses Notion
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Remove empty entries (Filter): keeps only the items that match a condition
- Store settings (Supabase): uses Supabase
- Get Notion Page (Supabase): uses Supabase
- Aggregate: combines items into one
- If: checks a condition and branches into true / false
- Push Payload (HTTP Request): calls an HTTP API
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Notion
n8n-nodes-base.notion - If
n8n-nodes-base.if - Supabase
n8n-nodes-base.supabase - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp - Aggregate
n8n-nodes-base.aggregate - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter
From the author
Purpose This enables webhooks for nearly realtime updates (every 5 seconds) from Notion Databases. Problem Notion does not offer webhooks. Even worse, the “Last edited time” property, we could use for polling, only updates every minute. This gives us a…