Match invoice lines to orders and receipts
An invoice can bill for more than you ordered or got. Your AI checks each line against the order and receipts.
What happened
An Amazon Web Services sample shows Strands agents with Amazon Bedrock AgentCore pulling an invoice, its purchase order and receipts from ERPNext. It compares quantities and prices line by line, uses Python for totals and lists mismatches. The sample's prompt suggests auto-approval, so its real limits are unclear.
Source: Amazon Web Services sample authors · raw.githubusercontent.com · Tool: Strands agents with Amazon Bedrock AgentCore
Copy this prompt
Paste it into ChatGPT, Claude or Gemini, fill in the [brackets] and add your files. It only drafts. You decide what to send or change.
Use it often? Save it as a skill
Add this job to Claude or Codex once, and your agent knows how to do it without you pasting the prompt each time. Text only, no code.
Download for Claude (.zip)View the skill file
How to add it
- Claude app or claude.ai
- Download the .zip. In Settings, find Skills, choose Upload skill and pick the file. Code execution has to be turned on.
- Claude Code
- Run this in your terminal:
mkdir -p ~/.claude/skills/match-invoice-lines-to-orders-and-receipts && curl -fsSL https://botcurrent.com/skills/match-invoice-lines-to-orders-and-receipts/SKILL.md -o ~/.claude/skills/match-invoice-lines-to-orders-and-receipts/SKILL.md - Codex
- Run this in your terminal:
mkdir -p ~/.agents/skills/match-invoice-lines-to-orders-and-receipts && curl -fsSL https://botcurrent.com/skills/match-invoice-lines-to-orders-and-receipts/SKILL.md -o ~/.agents/skills/match-invoice-lines-to-orders-and-receipts/SKILL.md
Security scanClear13 of 13 checks passed
We check every skill file before we offer it. This one is the prompt above in skill form.
- Passed Skill file is well formed
- Passed Runs its own code or programs
- Passed Connects to the internet from code
- Passed Touches passwords, keys or private files
- Passed Deletes or overwrites things in bulk
- Passed Hidden or scrambled code
- Passed Tries to override your instructions
- Passed Invisible characters in the text
- Passed Sends your data somewhere else
- Passed Can pay or buy without asking you
- Passed Downloads or installs other software
- Passed Has a password or key written into it
- Passed Asks for admin (sudo) rights
Files scanned: SKILL.md. Links to: botcurrent.com, raw.githubusercontent.com. Fingerprint: b02266634f2f. What we check
Tried it? Did it work for you?
Tell us what went wrong and we’ll fix the prompt: email us.
Votes count only if you allowed optional analytics.
What you'll get
A line-by-line table of ordered, received and billed amounts, with price and quantity gaps flagged.
You'll need
- The invoice
- The purchase order
- Receipts for what arrived
Before you switch it on
Reads onlyIf you give this job to an agent that works in your accounts:
- Access it needs
- Your ERPNext invoices, orders and receipts
- Keep on “ask me first”
- Sending or posting anything, paying or buying, sharing your address or ID, deleting anything
Heads up: Draft or cancelled receipts can sneak into the count. Check each receipt's status.
More details: full instructions, sources and safeguards
Before you begin
This is not payment approval or a liability decision. Keep currencies and units explicit, preserve conflicting versions, exclude unsupported receipt quantities and leave accounting actions with the finance owner.
Use this in your own AI tool
- Copy the starter, then open your own AI tool.
- Paste it with only the permitted inputs. Check privacy settings and tool compatibility first.
- Review the draft and held questions. Any later action needs separate approval.
What you need
Invoice, order and receipt copies with immutable row identifiers.
Owner-approved units, receipt states, tolerances and authoritative-version rules.
An authorized file-capable AI tool; no live account connection is required.
Start here
- Freeze invoice, order, receipt and rule versions; preserve contradictory copies.
- Link rows and compare only compatible units and owner-approved received quantities.
- Recompute differences and account for every row; leave payment and accounting decisions with the owner.
Advanced prompt — full instructions and safeguards
Copy a prompt for this task
Suggested prompt · untested
Replace the placeholders with your details. This suggested prompt does not run anything or grant access.
Select and copy the text manually if automatic copying is unavailable.
Inputs, access and approval
Inputs:
- Invoice, order and receipt copies. Assign immutable row identifiers before interpretation. Keep quantity units, currency and document-state fields explicit; record unknown values rather than filling them from another document.
- Owner-defined review contract. Specify the comparison date, permitted rounding, treatment of disputed items and who resolves ambiguity. Keep a copy of the rules with the output so later review can reproduce the conclusion.
Approval: Obtain the appropriate approval before transmitting real financial records to a model provider, connecting an account, changing an invoice or contacting a supplier. Keep outputs private and draft-only. Before any external communication, upload, live change, spend, commitment or permission change, show the exact action, target, data or content and consequences, then wait for separate appropriate approval. This prompt does not authorize those actions.
Use uploaded inputs first. Confirm scoped authorization before using a read-only connection. Missing inputs or access require an upload or clarification.
Original BotCurrent suggested prompt based on the linked example. Original source, Supporting source 2 · Amazon Web Services sample authors. Editorial review does not establish execution success or current compatibility.
Technical setup & run design — optional
- Starter
- Separate short starter version v2-reviewed-3. Untested.
- Advanced prompt
- Existing exact companion. Original test disclosures, if any, remain in the retained source notes. No connected workflow execution is implied.
- Compatibility
- Unknown; check the actual tool, account and permissions.
- Run design
- one_off_manual. No runtime or schedule is activated by BotCurrent.
Exact advanced SHA-256: 36fefa453aab323591c16b30ca461c493c0e06d9c6e2a1154e9302aad901fc93
Setup and access
Source evidence, attribution & limitations
Full source evidence
Manual prompt · reviewed mapping, untested
On demand · Finite instructions. A workflow design has not been supplied for this mapping.
Use the accepted prompt’s input, access and approval requirements. Selecting or copying it grants no access and starts no workflow.
Read the accepted prompt, inputs and approval boundary ↑Technical specification & detailed checks
Detailed steps and output format
Failure handling, costs and limits
Original task overview & interpretation
Official recipe
Review invoice lines against orders and receipts
An invoice can disagree with the order or receipt evidence.
Sample output: discrepancy JSON.
Who this helps: Accounts-payable reviewer
What you need: Invoice, order and receipt copies. Begin with invented local data and owner-written comparison rules. Untested synthetic sample. Receipt lookup excludes cancellations but can include drafts; mixed-order receipts need line-level verification. Access, deployment and inference costs remain unverified.
- AWS sample method: Retrieves an invoice, its purchase order and receipts; compares line quantities and prices, uses Python for aggregates, and emits discrepancy JSON.
The prompt proposes auto-approval; standalone code records analysis. Effective tool permissions are unverified. Partial-invoice rules require owner review. Keep the pilot read-only; approve accounting changes and payments separately.
The cited implementation is an unexecuted research example. BotCurrent has not tested this workflow.