Tolu Ajibola
โ† All systems
SYS-07 Deal desk governance 07 / 10

Automated Finance Approval Gate

A "guard dog" workflow connecting Salesforce and HubSpot deal data to Slack, enforcing compliance on deal commercials without slowing sales down.

100% deal compliance
Role
Automation Architect
Timeline
1-week sprint
Impact
100% compliance enforced
Stack
n8nSalesforceHubSpotSlackJavaScriptClaude API
  • 100% Compliance, zero unauthorised deals
  • Real-time Finance visibility via Slack
  • 0 CRM friction: approvals happen in Slack

01 / Challenge

Reps pushed contracts with non-standard terms (low transaction fees, missing deposits, wrong payment schedules) and finance often found out too late.

  • 01

    Revenue leakage

    Non-compliant deals were being signed, hurting margins.

  • 02

    Fire drills

    Finance scrambled at the last minute to renegotiate or block contracts.

  • 03

    Process bypassing

    Reps skipped the review stage to hit quota, bypassing governance.

Inside the system

Finance approvals channel in Slack: a flagged deal with approve and reject, a deal that passed the audit, a reverted stage move, and the thread where the rep justifies and finance approves, names blurred
Flagged, justified, approved, or snapped back
Slack message from the Finance Approval Bot requiring approval, deal and owner blurred
Finance gets full context and one-click decisions

02 / Process

How it was built.

  1. 01

    Logic definition

    Defined the rules of engagement with the CFO: thresholds for booking fees, payment terms and transaction percentages by region.

  2. 02

    Code node scripting

    Custom JavaScript in n8n checks deal values against variable thresholds, including currency conversion.

  3. 03

    UX design

    A Slack payload with full context (deal size, terms, rep notes) so finance can decide without opening the CRM.

  4. 04

    Security layer

    A webhook listener watches deal stages in real time and reverts unauthorised changes instantly.

03 / Results

An automated gatekeeper between negotiation and contract.

Slack thread asking a rep to justify non-compliant terms, name blurred
Reps justify exceptions in-thread
  • 01

    The audit engine

    When a deal enters negotiation, commercials are audited against region-specific, multi-currency rules.

  • 02

    Slack-based approval

    Flagged deals reach finance as rich Slack messages with one-click approve or reject.

  • 03

    The guard dog

    Moving forward without approval snaps the deal back to its previous stage and alerts management.

04 / Under the hood

The workflows that run it.

n8n workflow: a Salesforce trigger on stage change, a filter, the opportunity fetched, an audit in JavaScript, then either the opportunity updated or the stage reverted with a Slack approval request and thread reply
The audit: a stage change is checked against the rules, then passed or sent to Finance
n8n workflow: the Slack button webhook, payload parsing, and an approve or reject branch that updates the opportunity, posts to Slack and answers the webhook
The decision: Approve or Reject in Slack updates the opportunity and replies in the thread