Publish operational assessment microsites from Supabase records
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Set Microsite Settings (Edit Fields (Set)): sets 7 fields: supabase_url, queue_table, microsites_table…
- Fetch Approved Assessments (HTTP Request): calls an HTTP API (GET)
- Split Assessment Records (Code): runs custom JavaScript code
- Validate Assessment (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Build Microsite Content (Code): runs custom JavaScript code
- Mark Invalid Assessment Failed (HTTP Request): calls an HTTP API (PATCH)
- Publish Microsite Content (HTTP Request): calls an HTTP API (POST)
- Check Publish Result (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
…plus 2 more steps. See the full node list below.
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 (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
From the author
Quick Overview This workflow runs manually or every six hours to pull approved operational assessment records from Supabase, validate required fields, generate a structured microsite content object, upsert it into a Supabase microsites table, and update the…