/
How Loop works
Five steps, every run, all on the record.
Every Loop agent watches a source, decides what each item is, asks a person when your rules say so, acts only where you’ve allowed it, and logs every step. This page follows one invoice through that loop, then covers the parts around it.
parcelwise
/
agents
/
invoice-matcher
Live
Invoice matcher
Finance ops · owner Priya Nair · today, 00:00–09:43 UTC
Received
1,284
Posted alone
88%
Asked
141
Median
40 s
01
Watch
1,284
02
Decide
1,282
03
Ask
141
04
Act
1,261
05
Log
17,976
Time
Item
Result
09:43:19
INV-20931 · Harlow Packaging
Running
09:42:51
INV-7730 · Ferro Logistics
Waiting
09:42:10
INV-118204 · Cobalt Office
Posted
09:41:58
INV-5521 · Marlow Print
Posted
09:41:40
SI-00917 · Denholm Cartons
Rejected
[01]
Watch
It starts where the work already lands.
An agent watches one source for one kind of item: a shared inbox, a form, a ticket queue, a webhook or a schedule. Each item becomes one run with its own ID from the moment it arrives.
Push where the system supports it. Where it doesn’t, a poll every 30 seconds.
Duplicates are caught by message ID and file hash, so a forwarded invoice isn’t paid twice.
Filters narrow the source before anything is read: sender, attachment type, ticket tag.
gmail · outlook · forms · zendesk · jira · webhook · schedule
invoice-matcher
/
watch
Listening
Source
GM
Gmail · ap@parcelwise.example
Event
new_message
Filter
has:attachment filename:pdf
Skip if seen
Message ID + SHA-256 of the attachment
Delivery
Push · poll every 30 s as fallback
One run per
Attachment
Last 24 h
1,284 received
3 duplicates skipped
0 missed
[02]
Decide
It reads, matches, and says how sure it is.
The agent pulls out the fields it needs, checks them against your systems and scores the result. Scores are per field as well as overall, so you can see which part it doubted, not just that it doubted.
Extraction returns a confidence for every field, not one number for the page.
Matching is deterministic. PO numbers, amounts and quantities are compared by checks you can read.
Anything under your threshold goes to the ask step. The agent never rounds up.
extract · match_po · match_receipt · score
run_8Q2F41
/
decide
Scored
Extracted · INV-20931.pdf
Harlow Packaging Ltd
0.99
INV-20931
0.99
12 Sep 2026
0.98
PO-4471
0.97
$7,420.00
0.99
$180.00
0.81
Match
PO-4471
6 of 6 lines · $7,240.00
GRN-8812
Received 9 Sep · 6 of 6
Variance
+$180.00 freight, not on the PO
threshold 0.90 · passes · rule check next
0.93
[03]
Ask
It asks a named person, with the evidence.
When a rule fires, the run pauses and the ask goes where you chose. The message carries what the approver needs to decide without opening Loop: the amounts, the match, the rule that fired and a link to the run.
Rules decide when to ask. The agent can’t talk itself out of one.
Approve, reject or reassign from the message. A rejection needs a reason, and the reason is logged.
Nothing is written to any system while the run waits.
rule: amount > $5,000 · waited 2 m 11 s
# ap-approvals
Slack · 6 members
PN
Priya Nair
09:43
Freight was agreed on the call with Harlow. Approving.
Approved by Priya Nair · 2 m 11 s
[04]
Act
It acts only where you’ve said it may.
Once approved, or once every rule passes, the agent does the work: posts the bill, replies to the vendor, grants the access. Each action runs under its own permission, and the limits are checked again at the moment it’s called.
Allowing create_vendor_bill doesn’t allow approve_vendor_bill. Permissions are per action.
Every write carries an idempotency key, so a retry can’t post the same bill twice.
Failed calls retry with backoff for up to 24 hours. Then the run stops and tells its owner.
netsuite.create_vendor_bill · gmail.reply
run_8Q2F41
/
act
Done
Connection
NS
NetSuite · production
Action
create_vendor_bill
Permission
Write · up to
$25,000
· Parcelwise UK only
Granted
D. Kovacs (Admin) · 3 Mar 2026
→ POST netsuite.create_vendor_bill
{ “vendor”: “Harlow Packaging Ltd”, “po”: “PO-4471”,
“amount”: 7420.00, “currency”: “USD”, “due”: “2026-10-24”,
“idempotency_key”: “run_8Q2F41:act:1” }
← 201 created VB-10388 · 1.2 s
Then
gmail.reply
received.md → accounts@harlowpackaging.example
[05]
Log
It writes down every step, including yours.
Every input, decision, approval and action is an event in the audit log, tied to one run ID. It’s the record you hand an auditor, and the first place to look when something goes wrong.
Events are append-only and hash-chained, so an edit would show.
Kept 7 days on Starter, a year on Team, and as long as you need on Enterprise.
Export as CSV or JSON, pull through the API, or stream to your SIEM on Enterprise.
14 events · run_8Q2F41 · kept 1 year
audit-log
/
run_8Q2F41
Time
Event
Result
09:41:02
received · INV-20931.pdf
ok
09:41:02
dedupe · not seen
ok
09:41:03
extract · 11 fields
ok
09:41:05
match_po · PO-4471 6/6
ok
09:41:06
match_receipt · GRN-8812
ok
09:41:06
score · 0.93
ok
09:41:07
rule_hit · amount > 5000
ask
09:41:07
sent · slack #ap-approvals
ok
09:41:07
paused · no writes
wait
09:43:18
approved · “freight agreed”
ok
09:43:19
permission · write ≤ $25,000
pass
09:43:19
create_vendor_bill · VB-10388
ok
09:43:20
reply · received.md
ok
09:43:20
closed · sha256 9f2c…e41a
ok
/
Rules
Rules in sentences, thresholds in numbers.
Rules say when an agent must stop and ask. They’re written as plain sentences with the numbers pulled out, so an auditor can read them and an ops lead can change a threshold without a deploy.
invoice-matcher
/
rules
Live
1
Ask #ap-approvals when
2
amount is over $5,000
3
or confidence is under 90%
4
or vendor is new in the last 90 days
5
or variance from the PO is over 2%
6
Ask @finance-controller instead when
7
amount is over $25,000
8
Never act when vendor.bank_details changed in the last 30 days
Dry run on August
23 asks · 10.7%
v13 would have asked 31
rules
/
history
second approver on
PN
Priya Nair
Amount threshold $10,000 → $5,000
2 Sep 2026 · approved by M. Webb
v14
MW
Marcus Webb
Added rule 8: bank details changed
14 Aug 2026 · approved by P. Nair
v13
PN
Priya Nair
Confidence threshold 85% → 90%
30 Jul 2026 · approved by M. Webb
v12
CP
Callum Price · Loop
Created from the Invoice matching template
2 Jul 2026 · dry run on June
v11
How thresholds work
Numbers live in the rule, not in code. Change $5,000 to $2,500 and the next run uses it. Runs already waiting finish under the version they started with.
amount · confidence · variance · age
Which rule wins
Any matching rule makes the agent ask, and the strictest route wins: a $30,000 invoice goes to the controller, not the channel. A “never act” rule overrides everything.
ask · route · never
Who changed what
Every change is a new version with its author, a diff and a reason. You can require a second approver for rule changes, and roll back to any version in one step.
versioned · diffed · rollback
/
Approvals
Approvals where people already are.
Asks go to Slack, Microsoft Teams or email, to a channel or a named person. Each one carries its evidence and a deadline, and if nobody answers it escalates instead of sitting in a queue.
Slack
Microsoft Teams
# it-approvals
Slack · Access requests
Waiting 12 m · escalates to Sam Adeyemi at 16:02
access-requests
/
escalation
+0 m
Ask #it-approvals
anyone with the Approver role
+30 m
Remind in the thread
once
+2 h
Escalate to the app owner
Sam Adeyemi · direct message
+8 h
Time out: reject, tell the requester
logged as timeout, not as no
Evidence goes with the ask: the source file, the match, the rule that fired.
Approvers are checked against their Loop role, so a forwarded message can’t be approved by the wrong person.
Slack on every plan. Teams and email from Team up.
>
Dry runs
Run it on last month before it touches this one.
A dry run replays real items through an agent with every write switched off. You see what it would have posted, where it would have asked, and where it disagrees with what your team actually did.
Free, on every plan. Dry runs don’t count towards your runs.
Compare mode lines up each decision with what’s already in your ledger.
Re-run after every rule change. The report shows what moved.
terminal
zsh
$ loop run invoice-matcher --dry-run --month 2026-08 --compare
✓ connected gmail · netsuite · slack (read-only)
replaying 214 invoices from August
would auto-post 189 88.3%
would ask 23 10.7% amount 15 · confidence 5 · new vendor 3
failed 2 0.9% unreadable PDF
agrees with team 186 of 189 auto-posted
✓ nothing written · 0 runs billed · runs/dr_91c2.html
dr_91c2
/
differences
3 to review
Item
Your team did
INV-6610 · Brook & Lyle
held · duplicate
INV-118090 · Cobalt Office
coded to 6120 IT equipment
INV-7702 · Ferro Logistics
disputed freight line
/
Permissions
Read-only until you say otherwise.
Every connection starts read-only. You grant write access one action at a time, with limits, and the agent is checked against them when it acts, not when it was built.
Per action, not per system: read vendors, create bills, never approve them.
Limits sit on the action itself: amount caps, subsidiaries, channels, reply templates.
Credentials live in a per-workspace vault. Nobody at Loop can read them.
invoice-matcher
/
permissions
default: read-only
Connection
Action
Access
NS
NetSuite
vendors.read
Read
NS
NetSuite
purchase_orders.read
Read
NS
NetSuite
create_vendor_bill
Write
NS
NetSuite
approve_vendor_bill
Off
NS
NetSuite
vendors.update_bank
Off
GM
Gmail
messages.read
Read
GM
Gmail
reply
Write
SL
Slack
chat.post
Write
Last change
create_vendor_bill limit $10,000 → $25,000
D. Kovacs · 3 Mar
/
Deployment
Hosted in the EU or the US. Private if you need it.
Loop is a managed cloud service. You choose the region your workspace lives in, and data, logs and backups stay there. On Enterprise, traffic between your network and Loop can stay off the public internet.
All plans
Cloud · EU
Frankfurt
The default for every workspace. Data, audit logs, backups and model calls stay in the EU.
Region
eu-central-1
Failover
3 zones
Enterprise
Cloud · US
Virginia
For teams whose data should stay in the US. Same product, separate infrastructure, no cross-region copies.
Region
us-east-1
Failover
3 zones
Enterprise
Private networking
Off the public internet
AWS PrivateLink or a site-to-site VPN to your network, fixed egress IPs for your allow-lists, and a dedicated cluster on request.
SLA
99.95%
Egress IPs
fixed, per region
/
FAQ
Questions about how it works
The mechanics people ask about once they’ve seen a run.
Does an agent ever act without asking?
Which models does Loop use?
What happens if NetSuite is down?
Can we define agents in code?
How is this different from a workflow tool?
>
Get started
See your own queue go round the loop.
Bring one workflow and a month of items. We’ll dry-run an agent on them with you and show you every place it would have asked.
Starter is free · no card · dry runs don’t count