← Back to library

Reconcile orders and draft invoices every night

Sunnyvale (@SunnyvaleSBay) runs about twenty scheduled ChatGPT jobs. Nightly, one pulls completed orders, checks them against CRM entries for mistakes, drafts an invoice in the accounting system for review and logs the result in Google Sheets before any send. The write-up is specific enough to reuse.

  • OutcomeScheduled prompts check orders against the CRM, draft invoices for review and file contracts.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditSunnyvale (@SunnyvaleSBay)
View original
Works with
ChatGPT agentChatGPT

Published Oct 19, 2026Updated Oct 19, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 24, 2026

When should you use it?

  • Orders, CRM and accounting are separate systems
  • Invoices are created by hand from order forms
  • Contract details need copying into the CRM

Not for: Sending invoices without human review

What do you need, and what do you get?

You need

  • Access to order forms, CRM and accounting system
  • A Google Sheet log

You get

  • Draft invoices for review
  • Order/CRM mismatch flags
  • An invoice log
  • Filed contracts and NDAs

How does it work, step by step?

  1. Start with one jobNightly: compare completed orders to CRM entries and list mismatches.
  2. Add invoice draftsCreate drafts, not sent invoices, and log each in a sheet.
  3. Close the loopA second scheduled job marks invoices that were sent.
  4. Expand carefullyAdd contract and NDA filing jobs one at a time.

The prompt

Our own prompt, inspired by Sunnyvale (@SunnyvaleSBay) and written to work in ChatGPT agent and ChatGPT. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt5 variables
Each night at {time}:
1) List orders marked complete in {order_system} since the last run.
2) Compare each to its record in {crm}. Report mismatches (customer, amount, line items) in a table. Do not fix them.
3) For orders with no mismatches, create a DRAFT invoice in {accounting_system}. Never send or approve it.
4) Append deal name, amount and draft link to {google_sheet}.
5) Email me a summary with counts and the mismatch table.

Inspired by Sunnyvale (@SunnyvaleSBay): Post on nightly ChatGPT jobs for orders, invoices and CRM. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • The author also let the agent use a company card to order laptops; keep purchasing behind explicit approval.
  • He still had to prompt it to file receipts afterwards, so add a check for the last step of every job.

Our take

This post is the clearest picture we found of what “managed AI” looks like inside a small business: not one clever bot but a fleet of small scheduled jobs, each with a narrow task and a draft-for-review output. The invoice job is the one to copy first. The laptop-purchase story in the same post is the cautionary tale: impressive, but spending company money should always require a person to approve. For CPA firms and bookkeepers, the reconciliation pattern (compare system A to system B, list differences, draft the fix) applies far beyond invoicing. We tested the order check with twelve mock orders and two planted mistakes, a wrong amount and a missing line item. Both were caught and listed, and no invoice was drafted for either, which is the behavior you want from the first job in the fleet. Run it in parallel with your manual process for two weeks before trusting it alone.

Where the time goes back: Order checks, invoice drafts and filing stop being end-of-day chores; the gain comes from many small checks running unattended overnight.

FAQ

Is this one big automation?
No. The owner describes many small scheduled prompts, about twenty, each doing one job. Small jobs are easier to check and fix than one large automation.
Is it safe to let an agent into accounting software?
Limit it to creating drafts, review every draft before it is sent, and use accounts with the narrowest permissions. Keep payments and purchases behind human approval.

Source and credit

Inspired by Sunnyvale (@SunnyvaleSBay). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Post on nightly ChatGPT jobs for orders, invoices and CRM
Creator
Sunnyvale (@SunnyvaleSBay)
Published on
X
Original date
Oct 8, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
ChatGPT
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Both seeded mismatches caught; no invoices for mismatched orders; drafts only, never sent or approved.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingWorkflow✓ AI dry run

Auto-file emailed invoices by month for your accountant

Every invoice that reaches Gmail is saved as a PDF in a year and month folder in Google Drive and logged in that month's sheet, ready to share with your accountant at month end.

Credit: Ioana Frincu

Under an hour
Finance & AccountingWorkflow✓ AI dry run

Collect monthly vendor invoices for your accountant

Every SaaS and cloud invoice for the month reaches your accountant without you visiting each billing portal.

Credit: u/UltraFocusMe on r/AccountingDepartment

An afternoon+
Finance & AccountingSkill✓ AI dry run

Have Claude build Excel files that recalculate cleanly

Give Claude the xlsx skill so that any spreadsheet it creates or edits keeps live formulas instead of pasted results, passes a full recalculation with zero formula errors before delivery, labels every assumption with its source, and follows standard financial model conventions or the existing file's own styling.

Credit: Anthropic

Minutes
Finance & AccountingWorkflow✓ AI dry run

Split one big scanned PDF into its separate documents

Turn a bundle of scanned paperwork, such as a stack of invoices saved as one file, into one PDF per document without paging through it to mark where each one ends.

Credit: Jim Le

An afternoon+
Finance & AccountingWorkflow✓ AI dry run

Tidy inconsistent invoice files and send the monthly batch

Hand off the monthly invoice chore, renaming and sorting messy files, then preparing the send, to an agent working in a folder on your computer.

Credit: minicoohei

Under an hour