Month-end close logo

Month-end close

Project
0
by tristan795 · 14 items · 8 scripts · 2 flows · 1 app · 1 pipeline · 2 resources anthropic smtp

README

Watch it in one minute

What this workspace does

Shows where the month-end close stands, and clears the discrepancies faster.

  • Data pipeline: every night, import_bank_transactions imports the bank's CSV export and the accounting system's invoice export, then match_transactions matches each transaction to an invoice (same amount, due date within 10 days, invoice number in the reference). Every line it cannot match becomes a discrepancy, with its type and owner.
  • Flow: discrepancy_approval runs for each new discrepancy. It asks the owner to approve or reject it in Slack or by email, sends a reminder after 2 days without an answer, then escalates to the controller.
  • AI agent: explain_discrepancy reads a discrepancy, looks at the bank line and searches the invoices with two script tools, then gives the likely cause in two sentences (duplicate invoice, partial payment, bank fee...), proposes the correcting entry without posting it, and drafts an email to the supplier when needed.
  • App: close_dashboard shows the close progress, the open discrepancies by owner and the pending approvals. An Explain button runs the agent on a line.

Who it's for

Finance teams and controllers who close the month in spreadsheets and chase discrepancies by email.

How to use it

  1. Run seed_demo_data to load a month of fictional demo data: suppliers, cost centers, 1,290 invoices and 1,284 bank transactions, including a duplicate invoice.
  2. Fill the anthropic resource used by explain_discrepancy.
  3. Open close_dashboard and click Explain on a discrepancy.
  4. To replay the night, run seed_demo_data with stage set to before_night, then run import_bank_transactions.

To go live, pass the URLs of your bank and invoice exports to import_bank_transactions, and a Slack webhook or an SMTP resource to the approval steps.