Templates / Provide real-time updates for Notion databases via webhooks with Supabase

Provide real-time updates for Notion databases via webhooks with Supabase

Ready for 3.0

by Mario ✓ · 1,660 views · created 2024-06-08 · Engineering

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Globals (Edit Fields (Set)): sets or maps fields
  2. Get settings (Supabase): uses Supabase
  3. Get modified tasks (Notion): uses Notion
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Remove empty entries (Filter): keeps only the items that match a condition
  6. Store settings (Supabase): uses Supabase
  7. Get Notion Page (Supabase): uses Supabase
  8. Aggregate: combines items into one
  9. If: checks a condition and branches into true / false
  10. Push Payload (HTTP Request): calls an HTTP API

…plus 7 more steps. See the full node list below.

Services it uses

NotionSupabase

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)

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…

Excerpt from Mario's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.