QuvanticBook free audit

ZapierChecked blueprint5 nodes

Send refund requests over a limit to finance

Pull the order number and amount out of a refund request email and ask finance in Slack when it is over what support may approve.

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

Pain

Tickets stop sitting in a shared inbox or bouncing between billing, tech, and ops.

Solution

Pull the order number and amount out of a refund request email and ask finance in Slack when it is over what support may approve.

Impact · From the blueprint

About 3 minutes per refund request of reading and forwarding, and no more unapproved large refunds.

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

Send refund requests over a limit to finance 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: Support
Difficulty: intermediate
Apps: Gmail, AI by Zapier, Code by Zapier, Filter by Zapier, Slack
Zapier plan: Professional (multi-step Zap: 4 steps after the trigger; Filter by Zapier; AI by Zapier)
Tasks per run: 2 typical, 3 at most
Test status: passing (schema, mapping scope, task count, Code step unit tests)

Problem

Support may refund up to 150 without asking. Above that, finance must approve, but requests arrive as free-text emails and agents either refund without asking or forward everything.

Who it's for

Support teams with a refund approval limit who want finance involved only when the amount requires it.

How the Zap runs

flowchart TD
  s1["1. Gmail: New Labeled Email<br/>New email under Support/Refunds"]
  s2["2. AI by Zapier<br/>Read the order and amount"]
  s1 --> s2
  s3["3. Code by Zapier<br/>Read the amount"]
  s2 --> s3
  s4{{"4. Filter by Zapier<br/>Only requests over the support limit"}}
  s3 --> s4
  s5["5. Slack<br/>Ask finance to approve"]
  s4 -->|"passes"| s5

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.

Steps

1. Trigger: New email under Support/Refunds

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

Fires for each email under the refunds label. Agents can label by hand, or a Gmail filter on "refund" can do it.

FieldValue
LabelSupport/Refunds

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: Read the order and amount

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

Asks for the amount exactly as written, so the Code step can parse "€189,90" correctly.

FieldValue
ModelDefault (fast)
InstructionsThis email asks for a refund. Return order_number (as written), amount_text (the amount the customer wants back, exactly as written with currency symbol or code; empty if they do not say), currency (ISO code if clear), and reason (one short sentence). Do not guess an amount.
Input dataFrom: [1. from_name] <[1. from_email]>
Subject: [1. subject]

[1. body_plain]
Output fieldsorder_number, amount_text, currency, reason

Later steps can map: order_number, amount_text, currency, reason.

3. Action: Read the amount

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

Turns the written amount into cents so the limit check is exact.

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. amount_text]
currency_hint[2. currency]

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

4. Filter: Only requests over the support limit

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

Requests of 150.00 or less stop here; support handles them.

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

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

5. Action: Ask finance to approve

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

Finance gets the order, amount, and reason, and replies in the thread.

FieldValue
Channel#finance-approvals
Message TextRefund approval needed: order [2. order_number], [3. amount_fixed] [3. currency] for [1. from_email]. Reason: [2. reason]. 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": "claire.dubois@example.com",
  "from_name": "Claire Dubois",
  "to": "support@northwind-studio.example",
  "subject": "Refund for order 3307",
  "date": "2026-11-24T09:14:03Z",
  "body_plain": "Bonjour,\n\nThe walnut table I ordered (order 3307) arrived with a cracked leg. I would like a full refund of €389,00 please. Photos attached.\n\nClaire",
  "snippet": "The walnut table I ordered (order 3307) arrived with a cracked leg.",
  "labels": "INBOX, Support/Refunds",
  "attachment_count": 2,
  "attachment_names": "leg1.jpg, leg2.jpg"
}

Plan and task usage

StepAppTasks
1. New email under Support/RefundsGmail0
2. Read the order and amountAI by Zapier1
3. Read the amountCode by Zapier1
4. Only requests over the support limitFilter by Zapier0
5. Ask finance to approveSlack1

A typical run uses 2 tasks; the upper bound is 3, 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: 4 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 15000 (cents) to your own limit.
  • Add a second filter group for [3. needs_review] is true, so requests with an unreadable amount also go to finance.

Limits

  • Requests without an amount parse to 0 and stop at the filter. The tip above sends them to finance instead.

Time saved

About 3 minutes per refund request of reading and forwarding, and no more unapproved large refunds.

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.