Labsco
anthropics logo

invoice-chase

✓ Official22,378

by anthropics · part of anthropics/knowledge-work-plugins

Drafts overdue-invoice reminder emails from QuickBooks and PayPal data, matched to each customer's payment history and tone (gentle for good customers, firm for repeat late payers). Sends via PayPal with owner approval; non-PayPal invoices queue as mail drafts. Use when the user asks "who owes me money," mentions overdue invoices, or wants to follow up on unpaid invoices.

🧩 One of 7 skills in the anthropics/knowledge-work-plugins package — works on its own, and pairs well with its siblings.

This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.

Invoice Chase

Workflow

  1. Pull overdue receivables. Query QuickBooks AR aging for all invoices more than 1 day past due. If Stripe is enabled (owner confirmed at setup), also pull Stripe overdue invoices.

  2. Cross-reference payment history. For each overdue customer, query PayPal for settled transactions using these parameters:

    • transaction_status: S (settled only — filters out pending and denied transactions that inflate result size and increase rate-limit risk)
    • Date window: last 7 days ending today (not 14 or 30 — wider windows are the primary cause of PayPal 429 rate limit errors)

    If PayPal returns a 429 rate limit error:

    • Retry once immediately with a 3-day window instead.
    • If the retry also returns 429, skip the PayPal cross-reference entirely for this run. Flag all customers in the batch as "PayPal unavailable — verify manually" in the summary table. Proceed to scoring using QuickBooks history only. Do not silently drop the caveat.

    If a customer shows a settled payment within the query window, flag as "possibly paid — verify" and exclude from the draft queue.

  3. Score each customer. Read reference/tone-matching.md for scoring logic. Result: good-payer, occasionally-late, or repeat-late.

  4. Draft reminder emails. One email per customer — consolidate multiple overdue invoices into one email. Match tone to score. See reference/examples/gentle-reminder.md and reference/examples/firm-reminder.md.

  5. Present drafts to owner. Show a summary table first:

    CustomerAmount DueDays LateToneSend via
    Acme Corp$1,20018 daysGentlePayPal
    Smith LLC$45047 daysFirmGmail draft

    Then show each draft email in full. Wait for owner to say "send these" or approve individually.

  6. Send or queue — only after approval.

    • PayPal invoices: send the reminder via PayPal.
    • Non-PayPal invoices: queue as a draft in the owner's configured mail app.
    • Never send without explicit approval.
  7. Report what happened. List what was sent, what was queued as draft, and what was flagged (possibly paid, excluded).

Approval gates

  • Never send or queue a draft without explicit owner approval. Present all drafts first; wait for the go-ahead.
  • Never include a customer who paid in the last 14 days. Flag as "possibly paid — verify" instead.
  • Never send to a customer not in the QuickBooks AR report (or Stripe, if enabled). No reminders from memory alone.
  • One approval covers one batch. Adding a customer or changing a draft after approval starts a new round.

Reference