Why this matters
A support agent who can refund small orders through n8n saves the owner real time. The risk is the refund nobody looked at: one typed as 400 instead of 40, or a run of refunds in one afternoon. Money that has gone back to a card is hard to get back, so many owners still check every refund by hand.
Guardian checks each refund before the workflow makes it. With one policy, small refunds go through on their own, the refund that takes the day past 100 waits for a person, and one over 250 or with no valid amount is denied. Guardian decides; your workflow moves the money.
Practice
Do every step yourself in a practice copy of the real tool. It checks your work, and “Do it for me” finishes any step you get stuck on.
What you’ll build
You help Lena Ortiz, who runs Kettle & Kiln, a made-up online shop whose support agent refunds broken orders through n8n.
You paste a Guardian policy for payment.refund, follow one refund through the Guardian check and the required IF called Real go-ahead?, read the results of three refunds of 40 against a limit of 100 in 24 hours, and see how the approvals workflow handles a lowered, a raised and a refused edit. The sample, the results and the record IDs come from Guardian's founder, who tested it himself in our Guardian org on 27 November 2026 with made-up orders and a stub instead of a real refund. Guardian's Policies page, the payment.refund policy editor and one audit record are real captures from our Guardian org (29 November 2026); the n8n canvases are drawn from the workflow files, and the approval view uses descriptive labels.
What you need
- Nothing to start the practiceThe practice uses real Guardian captures plus canvases drawn from the workflow files. Kettle & Kiln and every order are made up.
- A Guardian org, to do it for realThe free-plan policy works on any plan, including free. The 24-hour total rule needs the Starter plan or above; Guardian's notes say paid plans are not open yet.
- n8n with the Guardian noden8n Cloud: search the nodes panel for Guardian and install the verified node. Self-hosted: Settings, Community Nodes, n8n-nodes-guardian.
Concepts
Every rule runs, the strictest wins
Both policies are for the action type payment.refund. Every rule runs on every refund, and the strictest result wins: denied over waiting for a person over going through. An action with no policy is denied by default, so a new org denies every refund until you add the policy.
By default, Guardian skips a rule when the field it reads is missing. That is why Prepare Guardian check always sends every field, and sends an amount that is not a number above 0 as amount 0 with amount_valid false, which the third rule denies.
What the 24-hour total counts
The total counts only refunds that went through on their own. Approved refunds are not added: after approving the third refund of 40, a fourth one waited again at "sum 80 + current 40 = 120".
It counts allowed checks in the same project and action type over the last 24 hours, so it cannot group by customer, and it counts an allowed check even if your refund step then failed. The reason shows the sum at the moment of the decision, not a live counter. This rule needs the Starter plan or above; on the free plan, the free policy looks at one refund at a time.
Only a real go-ahead reaches the refund
The IF called Real go-ahead? is a required step. It lets an item through only when the decision is ALLOW, there is a record ID, and it is not a repeat. An outside tester found that on node versions up to 1.0.11, if a Guardian credential can't be read, an item can leave the Allowed output with no decision and no record. Without the IF, it would reach the refund. Keep one clearly named Guardian credential per Guardian org.
Guardian checks a reviewer's edit against your rules, not against the original request, so it accepts a raised amount that still only needs approval. The approvals workflow's own check, Compare with the original request, must refuse any edit that raises the amount.
Do it for real
Now repeat it in your own account. Tick each step as you go.
Downloads
- Refund with Guardian, main workflow (.json)Import into n8n. Sample refund, one Guardian check, the Real go-ahead? IF and a refund stub. Nothing moves money.
- Refund with Guardian, approvals workflow (.json)Import into n8n and publish it. Never press Execute in it. Refund stub only.
- Refund with Guardian, TEST workflow (.json)The main workflow with a CASE and RUN switch, from Guardian. Set CASE and RUN in the Refund request node and press Execute workflow once per case; the cases are listed in the checklist above. Refund stub only.
- Free-plan policy (.json)Any plan, including free. Paste it under Rules, JSON tab, into Rules JSON (Advanced), for the action type payment.refund.
- 24-hour total policy (.json)Needs the Starter plan or above; a free org refuses to save it.
Quick check
3 questions to check you’ve got it.
1. Three refunds of 40 go through the 24-hour total policy with a limit of 100. What happens to the third?
- It goes through
- It waits for a person
- It is denied
Show the answer
It waits for a person. 40 + 40 went through on their own, and 80 + 40 = 120 is over 100, so the third waits. A refund of 40 breaks neither deny rule.
2. You approve that third refund. A fourth refund of 40 arrives. What sum does Guardian show?
- 80 + 40 = 120
- 120 + 40 = 160
- No sum: the total resets after an approval
Show the answer
80 + 40 = 120. The 24-hour total counts only refunds that went through on their own. Approved refunds are not added.
3. A reviewer raises a waiting refund from 150 to 200 and approves it. Which step stops the refund?
- Guardian refuses the edit
- Compare with the original request, in the approvals workflow
- Nothing: 200 is refunded
Show the answer
Compare with the original request, in the approvals workflow. Guardian checks an edit against the rules, not the original request, so it accepts 200. The approvals workflow's own check refuses an edit that raises the amount.
You reached the end of Guardian Tutorial: Guardian Jump Start
You put a cap on refunds. Next, take one more action in your business that cannot be undone and decide which part of it should wait for a person.
Next: AI Agents 101 shows when an AI agent beats a chatbot, and how to build agents that onboard clients, answer calls and book work, with limits like these.
Next course: AI Agents 101 →