Templates / Route AI-scored approval requests with GPT-4o-mini, Supabase and Gmail

Route AI-scored approval requests with GPT-4o-mini, Supabase and Gmail

Ready for 3.0

by WeblineIndia ✓ · 18 views · created 2026-08-29 · Document Extraction, AI Summarization

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 AI workflow has 19 nodes and runs when someone submits an n8n form (“Approval Request Form”) (plus 1 other trigger). Along the way it connects OpenAI, Supabase and Gmail.

How it runs

Trigger: When someone submits an n8n form (“Approval Request Form”) (plus 1 other trigger).

  1. Normalize Form Data (Edit Fields (Set)): sets 8 fields: request_type, request_title, amount…
  2. If: checks a condition and branches into true / false
  3. Analyze Risk & Priority (OpenAI): uses OpenAI
  4. Mark Request Approved (Supabase): update
  5. Mark Request Rejected (Supabase): update
  6. Extract AI JSON Response (Code): runs custom JavaScript code
  7. Reload Approved Request (Supabase): get
  8. Reload Rejected Request (Supabase): get
  9. Prepare AI + Form Data (Edit Fields (Set)): sets 4 fields: AI response, Form data, approval_level…
  10. Requester Email Valid? (If): checks a condition and branches into true / false

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

Services it uses

OpenAISupabaseGmail

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 (9)

From the author

Quick overview This workflow collects approval requests via an n8n form, uses OpenAI (GPT-4o-mini) to summarize and score risk, stores the request in Supabase, emails the right approver via Gmail with approve/reject links, then updates the Supabase record and…

Excerpt from WeblineIndia'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.