QuvanticBook free audit

ZapierChecked blueprint6 nodes

Ask for approval on invoices over a limit

Log every invoice, and post the ones over 5,000 to an approvals channel with the amount, due date, and a link to the email.

Portfolio reference build with demo data and placeholder credentials, not a client deployment.

Pain

Stops opening PDFs, typing vendor totals, and hoping nobody pays the same bill twice.

Solution

Log every invoice, and post the ones over 5,000 to an approvals channel with the amount, due date, and a link to the email.

Impact · From the blueprint

The approver reads one Slack message instead of every supplier email; usually 30 to 60 minutes a week.

Library status: passing. Schema, field mapping, task count, and Code-step unit tests pass. Not built in a live Zapier account.

Ask for approval on invoices over a limit step list
Step list

Step inspector

The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.

Guardrails

  • Filter by Zapier · Only continue if...

Credential ids in the JSON are placeholders. These files are portfolio demos.

Deploy this for your business

Tell us this slug and what still happens by hand. We will map it onto your accounts. This page is not a claim that the blueprint already runs for a customer.

README

Portfolio demo by Mustafa (mustafaautomation). Not client work. The people, companies, and numbers in it are made up. Rebuild it in your own Zapier account. Nothing here is connected to anyone's account.

Category: Invoices and documents
Difficulty: intermediate
Apps: Gmail, AI by Zapier, Code by Zapier, Google Sheets, Filter by Zapier, Slack
Zapier plan: Professional (multi-step Zap: 5 steps after the trigger; Filter by Zapier; AI by Zapier)
Tasks per run: 3 typical, 4 at most
Test status: passing (schema, mapping scope, task count, Code step unit tests)

Problem

Large invoices get paid on the same autopilot as small ones. The owner wants to see anything over a limit before it is paid, without reading every supplier email.

Who it's for

Owners and finance leads who sign off large payments but do not want to be copied on every invoice.

How the Zap runs

flowchart TD
  s1["1. Gmail: New Labeled Email<br/>New email under the Invoices label"]
  s2["2. AI by Zapier<br/>Pull the invoice fields"]
  s1 --> s2
  s3["3. Code by Zapier<br/>Turn the printed total into cents"]
  s2 --> s3
  s4["4. Google Sheets<br/>Log the invoice"]
  s3 --> s4
  s5{{"5. Filter by Zapier<br/>Only invoices at or over the limit"}}
  s4 --> s5
  s6["6. Slack<br/>Post it for approval"]
  s5 -->|"passes"| s6

Build it in the Zapier editor

Zapier has no import file for a Zap like this one, so it is built by hand from the steps below. zap.json is the same Zap in a machine-readable form (schema), and zap.yaml is the same document in YAML.

A value like [2. vendor] means: click the field, open step 2 in the data picker, and choose vendor. Plain text is typed as shown. YOUR_... is a value from your own account.

Before you start

  • Create the sheet Payables › Invoices with these headers in row 1: received_at, vendor, invoice_number, amount, currency, due_date, approval.

Steps

1. Trigger: New email under the Invoices label

App: Gmail · Event: New Labeled Email · polling (Zapier checks on your plan's update interval) · Tasks: 0

Fires for each email under the Invoices label.

FieldValue
LabelInvoices

Fields this library maps from the trigger: message_id, thread_id, from_email, from_name, to, subject, date, body_plain, snippet, labels, attachment_count, attachment_names. Zapier shows them with its own labels; pick the one with the same meaning.

2. Action: Pull the invoice fields

App: AI by Zapier · Event: Analyze and Return Data · Tasks: 1

Reads vendor, number, dates, and the total as printed.

FieldValue
ModelDefault (fast)
InstructionsYou read supplier invoices for an accounts-payable team. From the email below, return: vendor (the company that sent the invoice), invoice_number (exactly as printed), invoice_date and due_date (YYYY-MM-DD, empty if not stated), total_text (the grand total exactly as printed, with its currency symbol or code, for example "$1,280.00" or "1.280,00 EUR"), currency (ISO code if you can tell, otherwise empty), line_summary (one short line describing what was bought), and text_found ("yes" if the email text actually contains the invoice figures, "no" if the figures are only inside an attachment you cannot read). Never invent a number. If a value is not in the text, leave it empty.
Input dataFrom: [1. from_name] <[1. from_email]>
Subject: [1. subject]

[1. body_plain]
Output fieldsvendor, invoice_number, invoice_date, due_date, total_text, currency, line_summary, text_found

Later steps can map: vendor, invoice_number, invoice_date, due_date, total_text, currency, line_summary, text_found.

3. Action: Turn the printed total into cents

App: Code by Zapier · Event: Run JavaScript · Tasks: 1

The limit check compares integer cents, so "5.000,00 EUR" is not read as five.

Paste the whole of code/parse-money.js into the code box. Source: content/code/parse-money.cjs. Unit tests: content/code/parse-money.test.cjs.

Input Data keyValue
amount_text[2. total_text]
currency_hint[2. currency]

Returns: amount, amount_fixed, amount_cents, currency, format, needs_review.

4. Action: Log the invoice

App: Google Sheets · Event: Create Spreadsheet Row · Tasks: 1

Every invoice is logged, approved or not.

FieldValue
DriveMy Google Drive
SpreadsheetPayables
WorksheetInvoices
Columns › received_at[1. date]
Columns › vendor[2. vendor]
Columns › invoice_number[2. invoice_number]
Columns › amount[3. amount_fixed]
Columns › currency[3. currency]
Columns › due_date[2. due_date]
Columns › approvalnot needed unless posted

Later steps can map: id, row_number.

5. Filter: Only invoices at or over the limit

App: Filter by Zapier · Event: Only continue if... · Tasks: 0

Most invoices stop here. 499999 cents is the line, so 5,000.00 and above continue.

Only continue if: [3. amount_cents] (Number) Greater than 499999.

Most runs stop here, which is the point: the steps below are the exception path.

6. Action: Post it for approval

App: Slack · Event: Send Channel Message · Tasks: 1

Gives the approver everything needed to decide from Slack.

FieldValue
Channel#invoice-approvals
Message Text:money_with_wings: Approval needed: [2. vendor] invoice [2. invoice_number] for [3. amount_fixed] [3. currency], due [2. due_date]. What: [2. line_summary]. Sheet row [4. row_number]. Email: https://mail.google.com/mail/u/0/#all/[1. message_id]
Send as a bot?Yes
Bot NameZap alerts
Include a link to this Zap?No

Later steps can map: ts, permalink.

Test it

Use sample-trigger.json as the test record. For an instant or webhook trigger, send it to the trigger once; for a polling trigger, create a matching record in the app and click Test trigger. Then test each step in order and read its output before you turn the Zap on.

{
  "message_id": "18c2f4a9b7d01e55",
  "thread_id": "18c2f4a9b7d01e55",
  "from_email": "billing@lumen-legal.example",
  "from_name": "Lumen Legal LLP",
  "to": "ap@northwind-studio.example",
  "subject": "Invoice 7731 - Q1 retainer",
  "date": "2026-11-24T09:14:03Z",
  "body_plain": "Invoice 7731\nDate: 2026-11-20\nDue: 2026-12-20\nQ1 2027 retainer, corporate counsel\nTotal: €6.400,00",
  "snippet": "",
  "labels": "INBOX, Invoices",
  "attachment_count": 1,
  "attachment_names": "Invoice-7731.pdf"
}

Plan and task usage

StepAppTasks
1. New email under the Invoices labelGmail0
2. Pull the invoice fieldsAI by Zapier1
3. Turn the printed total into centsCode by Zapier1
4. Log the invoiceGoogle Sheets1
5. Only invoices at or over the limitFilter by Zapier0
6. Post it for approvalSlack1

A typical run uses 3 tasks; the upper bound is 4, when every filter passes and the costliest paths run. Zapier does not charge tasks for triggers, Filter, Paths, Formatter, Delay, Looping, Digest, Storage, or Zapier Tables steps. AI by Zapier is counted here as 1 task; Zapier prices it by model tier, so a larger model can cost more.

Minimum plan: Professional, because of: multi-step Zap: 5 steps after the trigger; Filter by Zapier; AI by Zapier. The Free plan only runs two-step Zaps (a trigger and one action) and leaves out Filters, Paths, Formatter, webhooks, AI by Zapier, and premium apps.

Customize

  • Change 499999 to your own limit in cents (99999 for 1,000.00).
  • Use separate limits per currency with Paths if you are invoiced in more than one currency.
  • Add a Slack Add Reminder step for the approver if invoices sit unapproved.

Time saved

The approver reads one Slack message instead of every supplier email; usually 30 to 60 minutes a week.

Files

FileWhat it is
zap.jsonThe Zap, step by step, in schema 1.0.0.
zap.yamlThe same document in YAML.
sample-trigger.jsonFictional trigger record for the first test.
diagram.pngThe step list, drawn like the Zapier editor.
code/parse-money.jsPaste-ready Code by Zapier step.