Bibliothek / Finanzen, Rechnungen & Buchhaltung
Finanzen, Rechnungen & Buchhaltung
Einkaufsfreigaben nach Ausgabenhöhe und Lieferantenrisiko mit Postgres und Slack weiterleiten
Manuell gestarteter Lauf prüft eine Einkaufsanfrage anhand von Ausgabenstufen, Abteilungsbudgets und der 30-tägigen Lieferantenhistorie und leitet sie per E-Mail oder Slack an die erforderlichen Genehmiger weiter.
Was sie bewirkt
## Purchase Approval by Spend Limit, Department and Vendor Risk ### How it works A purchase request is evaluated against policy and routed to exactly the approvals it needs. - Spend limits: tiers decide the approval levels (default: up to 500 USD auto-approve, up to 5k manager, up to 25k manager + finance, above that manager + finance + CFO). Spend with the same vendor in the last 30 days is added, so splitting an order does not avoid a tier. - Department: unknown or frozen departments are rejected. Requests that exceed the remaining department budget add finance. If the requester is the department manager, finance approves instead (no self-approval). - Vendor risk: blocked vendors are rejected. Unknown or unapproved vendors need procurement. High risk adds procurement and security review and is never auto-approved. Medium risk adds procurement above a threshold. Approvers get an email with approve / reject links and decide one level at a time. No answer means a reminder (default every 24h, twice), then the request expires. Every step is audited. Approved requests get a PO number and the amount is committed to the department budget. ### Setup steps - Add Postgres and SMTP (email) credentials, then run the manual setup once. - Edit Set Approval Policy: spend tiers, approver emails, thresholds, currency rates, reminders, sender email, Slack webhook. - Replace the demo vendors and departments with your own data. - Activate the workflow (the approval links need an active workflow and a reachable n8n URL), then test with POST /purchase-request: {"requesterEmail":"a@b.com","department":"engineering","vendorId":"cloudco","amount":8000,"currency":"USD","description":"Annual licence"} ### Layout 1 Setup 2-5 Intake, policy, routing, finalize 6 Approval chain
Die Schritte
- Manual Trigger - Run Setup Once
- Postgres - Create Approval Tables
- Webhook - Purchase Request
- Set Approval Policy
- Code - Validate & Normalize Request
- Request Valid?
- Respond - Validation Error
- Postgres - Load Vendor, Budget & History
- Code - Evaluate Approval Policy
- Postgres - Save Request
- Respond - Request Received
- Switch - Route Policy Decision
- Set Final - Auto Approved
- Set Final - Policy Rejected
Insgesamt 24 Schritte.
Ähnliche Automatisierungen
Finanzen, Rechnungen & BuchhaltungSync Shopify orders to Xero invoices with Slack and email alerts12 SchritteMonitoring, Betrieb & StörungenWorkflow-Fehler in Postgres protokollieren und Pushover- und SMTP-Benachrichtigungen drosseln13 SchritteFormulare & UmfragenDraft template docs and assets with OpenAI, Notion, and SMTP email46 SchritteFinanzen, Rechnungen & BuchhaltungSlack und Finanzabteilung über neue Rechnungs-E-Mails informieren6 Schritte