Templates / Route purchase approvals by spend, department and vendor risk with Postgres, email and Slack

Route purchase approvals by spend, department and vendor risk with Postgres, email and Slack

Ready for 3.0

by Oneclick AI Squad ✓ · 0 views · created 2026-10-07 · Miscellaneous

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 24 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Postgres.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Postgres: run a query
  2. Set Approval Policy (Edit Fields (Set)): sets 10 fields: currencyRates, spendTiers, approvers…
  3. Code: runs custom JavaScript code
  4. Request Valid? (If): checks a condition and branches into true / false
  5. Postgres: run a query
  6. Respond - Validation Error (Respond to Webhook): sends the response back to the webhook caller
  7. Code: runs custom JavaScript code
  8. Postgres: run a query
  9. Respond - Request Received (Respond to Webhook): sends the response back to the webhook caller
  10. Switch: routes items into 3 branches

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

Services it uses

Postgres

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

Quick overview This workflow receives purchase requests via webhook, evaluates spend tiers, department budget status, and vendor risk using Postgres data, then either auto-approves, rejects, or runs a sequential email approval chain, finally notifying the…

Excerpt from Oneclick AI Squad'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.