Skip to content
TriedPrompts

More in Bookkeeping, receipts & invoices.

Three-way match purchase orders against delivery and invoice docs with ChatGPT agent

In about 4 minutes ChatGPT agent matched 5 purchase orders to delivery and invoice documents, merged the PDFs and wrote a report.

Result: WorkedTool: ChatGPT agentLevel: Advanced

Copy the prompt

Outcome

Justin, posting on X, prompted ChatGPT agent to open a Google Drive folder, match purchase orders to delivery documents and then to invoices, track its progress in a .md file and note any variances there. In about 4 minutes ChatGPT agent correctly found that all 5 POs had matching delivery and invoice documents with no variances, combined the PDFs and wrote a short report of what it found. Justin called it too easy a task to judge the agent by.

Poster says: Done in around 4 minutes

This is the source's own number. We haven't measured it.

Evidence: Screenshots or logsThe source shows screenshots, a transcript or the AI's output.

WorkedEvidence: Screenshots or logsPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Check that every purchase order in my Google Drive folder matches its delivery document and its invoice, and flag anything that doesn't line up.

Check with me first: which folder should you use, and is there anything specific I want you to look for, like quantity, price or missing paperwork?

What I'll give you:
- Access to the Google Drive folder
- The purchase orders, delivery documents and invoices in that folder

Rules:
- Match each purchase order to its delivery document, then to its invoice.
- Keep a simple .md checklist as you go: one line per order, what it matched, and whether anything was off.
- If something doesn't match, note it next to that order in the checklist.
- If you can't tell which document goes with which order, or one is missing, ask me instead of guessing.
- Don't change, move or delete my original files.

Output:
1. One combined PDF per order (order + delivery document + invoice)
2. A short report saying which orders matched and which had problems
3. The finished checklist file

Stop there and hand everything back to me to review.

You'll know it worked when: every order is marked either "matches" or "problem found," with details for any problems.

Try this in:

Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Three-way match each purchase order with its delivery note and invoice in my Drive and flag mismatches.

Quick check first: tell me if anything below is missing or unclear.

Inputs (fill in or confirm):
- Drive folder link
- How files are named or linked (PO number)
- Tolerance for price or quantity differences
- Which currency and tax treatment invoices use
- My PDF naming pattern for the combined files

Rules:
- Match documents by PO number; list any document without a match.
- Compare line items: quantity, unit price, totals, dates.
- Flag differences above the tolerance with exact values.
- Don't edit or move any files.
- Treat partial deliveries as their own case: match delivered quantity to what was invoiced.
- Summarize totals: matched, mismatched, missing documents, and the money at stake.
- Keep a running .md checklist with one line per PO as you go.
- Combine each PO, delivery note and invoice into one PDF named by the pattern.
- If one document could belong to two POs, ask instead of guessing.

If you get stuck: If a PDF is a scan you can't read, mark it 'needs review'. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Re-check flagged items by reopening the documents.

Output: A spreadsheet: PO, delivery, invoice, status, differences.

Done when: every PO is matched or flagged with a clear reason.

AI tool

ChatGPT agent

Source

Posted
by Justin (@jand__)
Last checked
Method:
How we verify

https://x.com/jand__/status/1946283011445784991

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Bookkeeping, receipts & invoices

More in OpsRandom case in Ops