Process Supabase events and trigger custom workflows
Workflow Description
An automation template that receives webhook requests from Supabase and processes them through conditional logic, code execution, and HTTP requests. It enables data handling, error management, and automated responses for development workflows, streamlining database-driven operations.
How it works
- 1.Receive webhook trigger from Supabase with incoming data
- 2.Apply conditional logic to route data to appropriate workflow paths
- 3.Execute custom code operations and send HTTP requests as needed
- 4.Send webhook response and log operation results
- 5.Handle errors and stop execution when necessary
Use cases
- Sync Supabase data with external applications and APIs
- Automate complex data processing pipelines on database events
- Trigger deployment and DevOps workflows automatically
- Send notifications and alerts based on database changes
Requirements
- Active Supabase project with webhook configuration enabled
- Basic understanding of JavaScript and n8n workflow environment
- Knowledge of HTTP APIs and REST request methods
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (29)
Stop and Error
Stop And Error
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Insert
Supabase
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Get Pipedrive Token
Supabase
Get contact from Pipedrive
HTTP Request
Access Token Invalid
If
Success
Webhook
Refresh Access Token
HTTP Request
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note8
Sticky Note
convert clientId and secret to base64
Code
Generate Refresh Token from authcode
HTTP Request
Look for the related record in Supabase
Supabase
IF rec not found
If
Update tokns in the record
Supabase
Supabase- look for the record
Supabase
combine client id and secret
Set
Get Pipedrive acess token
HTTP Request
IF success
If
Update thr row with new access token
Supabase
Webhook
Webhook
Receive request
Webhook
catch Auth code
Webhook