Deduplicate and reconcile smart notes with Gemini, Supabase and TypeSafe Jev
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.typesafe.ai over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validate + Split Notes (Code): runs custom JavaScript code
- Gemini – Embed Point (HTTP Request): calls an HTTP API (POST)
- Supabase – Find Related Notes (HTTP Request): calls an HTTP API (POST)
- Build Jev Decision Request (Code): runs custom JavaScript code
- Jev – Reconcile Knowledge (HTTP Request): calls api.typesafe.ai (POST)
- Build Reconciliation Payload (Code): runs custom JavaScript code
- Supabase – Reconcile + Version (HTTP Request): calls an HTTP API (POST)
- Aggregate Capture Result (Code): runs custom JavaScript code
- Return Capture Result (Respond to Webhook): sends the response back to the webhook caller
HTTP calls to: api.typesafe.ai
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (4)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives notes via a webhook, splits them into individual points, and uses TypeSafe Jev to classify each point as new, duplicate, or an update to an existing note before storing the cleaned note ledger in n8n workflow static data…