当前位置: 首页 > Skill >

Invoice Chaser

Invoice Chaser

Invoice Chaser

{ "answer": "自动发票跟进流程,语气由温和渐转强硬。追踪未付发票,按计划发送递进式提醒邮件,记录付款交互并生成应收账款账龄报告。您的代理负责处理尴尬的催款对话,在维护现金流与客户关系的同时,让您专注于核心业务。配置发票追踪、各阶段邮件模板(温和→强硬→最终通知)及时间规则,即可让代理全天候自动追款。适用于添加发票、执行催款、查询状态或生成应收报表。" }

1.1.0 2026.11.27 250
获取Skill文件查看使用说明
作 者:叶宁 许可证: 更新时间:2026.11.27
本文目录展开

Invoice Chaser — Stop Chasing, Start Getting Paid

You do the work. Your agent gets you paid.

Every freelancer, consultant, and small business owner knows the pain: you did the work, sent the invoice, and now... crickets. Following up is awkward. Waiting kills cash flow. Chasing payments wastes time you could spend on billable work.

Invoice Chaser automates the entire follow-up sequence. It sends reminder emails on schedule, escalates tone from friendly to firm, tracks payment status, logs every interaction, and alerts you when invoices need human attention. Think of it as a persistent, diplomatic collections agent that never forgets and never feels awkward.

What makes it different: This isn't just "send reminder in 7 days." Invoice Chaser runs a full AR pipeline with state management, escalation logic, and tone progression. It knows when to be friendly ("just a heads up"), when to be firm ("payment is 30 days overdue"), and when to alert you for manual escalation. Multi-stage sequences handle the complexity of real-world payment cycles.

Setup

  1. Run scripts/setup.sh to initialize config and data directories
  2. Edit ~/.config/invoice-chaser/config.json with email templates, timing, and escalation rules
  3. Ensure gog skill is installed (for Gmail sending)
  4. Set GOG_DEFAULT_ACCOUNT in ~/.clawdbot/secrets.env (e.g., your-email@gmail.com)
  5. Test with: scripts/add-invoice.sh --test

Config

Config lives at ~/.config/invoice-chaser/config.json. See config.example.json for full schema.

Key sections:

  • business — Your company name, contact info, payment terms
  • stages — Email templates for each escalation stage (reminder, overdue, firm, final)
  • timing — When to send each stage (days after invoice date or previous stage)
  • escalation — Auto-escalation rules, human intervention thresholds
  • payment_methods — Include payment links/instructions in reminders
  • reporting — Channel, frequency, AR aging groupings

Email templates support variables: {client_name}, {invoice_number}, {amount}, {due_date}, {days_overdue}, {payment_link}.

Scripts

Script Purpose
scripts/setup.sh Initialize config and data directories
scripts/add-invoice.sh Add new invoice to tracking system
scripts/chase.sh Run payment chase cycle (check status, send reminders, escalate)
scripts/status.sh Show invoice status and AR aging summary
scripts/report.sh Generate detailed AR aging report

All scripts support --dry-run for testing without sending emails.

Adding Invoices

# Add invoice manually
scripts/add-invoice.sh 
  --number "INV-2025-042" 
  --client "Acme Corp" 
  --email "billing@acme.com" 
  --amount 2500.00 
  --date "2025-01-15" 
  --due "2025-02-14" 
  --net 30

# Quick add (assumes net-30 terms)
scripts/add-invoice.sh --number "INV-042" --client "Acme Corp" --email "billing@acme.com" --amount 2500

# Mark as paid
scripts/status.sh INV-042 --paid --date "2025-02-10"

Chase Cycle

Run scripts/chase.sh on schedule (cron daily recommended). The chase cycle:

  1. Loads all unpaid invoices from tracking database
  2. Calculates days since invoice date and days overdue (past due date)
  3. Determines current stage for each invoice based on timing rules
  4. Sends appropriate reminder emails (stage-based templates with escalating tone)
  5. Logs all sent emails and stage progressions
  6. Escalates to human when threshold reached (e.g., 60 days overdue)
  7. Generates status report

Escalation Stages

SENT → REMINDER (friendly) → OVERDUE (professional) → FIRM (insistent) → FINAL (urgent) → ESCALATED
  ↓         ↓ day 3              ↓ day 7+             ↓ day 30         ↓ day 45        ↓ day 60
PAID (any time) ✅

Default timeline:

  • Day 3: Friendly reminder ("Your invoice is due soon...")
  • Day 7+: Due date reminder ("Payment was due on [date]...")
  • Day 30: First overdue notice ("Your account is now 30 days past due...")
  • Day 45: Firm notice ("We must receive payment immediately...")
  • Day 60: Final notice ("Final notice before we escalate to collections...")
  • Day 75+: Human escalation alert

All timing is configurable in config.json.

Email Tone Progression

Stage 1 — Friendly Reminder (Day 3):

Hi [Client],

Just a friendly reminder that invoice #[number] for $[amount] is due on [due date]. Let me know if you have any questions!

Stage 2 — Professional Overdue (Day 14):

Hi [Client],

I wanted to follow up on invoice #[number] for $[amount], which was due on [due date]. If you've already sent payment, please disregard this message. Otherwise, please let me know if there are any issues preventing payment.

Stage 3 — Firm Notice (Day 30):

Dear [Client],

Your account is now 30 days past due. Invoice #[number] for $[amount] was due on [due date]. Immediate payment is required to avoid service interruption and late fees.

Stage 4 — Final Notice (Day 45):

Dear [Client],

FINAL NOTICE: Invoice #[number] for $[amount] is now 45 days overdue. If we do not receive payment within 7 days, we will be forced to escalate this matter to collections.

All templates fully customizable in config.

Payment Tracking

# Mark invoice as paid
status.sh INV-042 --paid --date "2025-02-10"

# Add payment note
status.sh INV-042 --note "Client called, payment sent via check"

# Pause reminders (client asked for extension)
status.sh INV-042 --pause --until "2025-03-01"

# Archive without payment (write-off)
status.sh INV-042 --archive --reason "Bad debt write-off"

AR Aging Report

# Show summary
scripts/report.sh

# Output:
# 📊 Accounts Receivable Aging Report
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Current (0-30 days):     $12,500  (5 invoices)
# 31-60 days:              $3,200   (2 invoices) ⚠️
# 61-90 days:              $1,800   (1 invoice)  🚨
# 90+ days:                $500     (1 invoice)  💀
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# Total Outstanding:       $18,000  (9 invoices)

# Detail view
scripts/report.sh --detail

# Export to CSV
scripts/report.sh --export ar-aging-2025-01-28.csv

Data Files

~/.config/invoice-chaser/
├── config.json               # User configuration
├── invoices.json             # Invoice database (state machine)
├── chase-log.json            # Email send history
├── last-chase-report.json    # Latest chase run data
└── archives/
    └── YYYY-MM/              # Archived paid/written-off invoices

Automation

Set up daily chase runs via cron:

# Run every morning at 9 AM
0 9 * * * cd ~/clawd/skills/invoice-chaser && scripts/chase.sh >> ~/.config/invoice-chaser/chase.log 2>&1

# Weekly AR report to Telegram (Mondays at 8 AM)
0 8 * * 1 cd ~/clawd/skills/invoice-chaser && scripts/report.sh --channel telegram

Or use Clawdbot's cron integration:

clawdbot cron add 
  --schedule "0 9 * * *" 
  --command "cd ~/clawd/skills/invoice-chaser && scripts/chase.sh" 
  --label "invoice-chaser-daily"

Invoice States

DRAFT → SENT → REMINDED → OVERDUE → FIRM → FINAL → ESCALATED
                                                        ↓
                                                   (human intervention)
Any state → PAID ✅
Any state → PAUSED ⏸ (temporary hold)
Any state → ARCHIVED 📁 (written off or canceled)

Integration with Accounting

Invoice Chaser tracks payment status. For full accounting integration:

  • Export invoices with --export flag
  • Import into QuickBooks, FreshBooks, etc.
  • Or build custom adapter (see references/accounting-adapters.md)

Safety Features

  • Dry-run mode: Test templates without sending emails
  • Pause invoices: Stop reminders for clients with special circumstances
  • Manual override: Block auto-escalation for sensitive clients
  • Email preview: Review email before first send to new client
  • Rate limiting: Max emails per day to avoid spam flags
  • Unsubscribe handling: Respect opt-outs (manual removal from tracking)

Best Practices

  1. Be consistent: Run chase cycle daily — consistency trains clients to pay on time
  2. Personalize templates: Use client names, reference specific work in stage 1-2 emails
  3. Include payment links: Make it easy to pay (Stripe, PayPal, bank details)
  4. Escalate gradually: Don't skip stages — tone progression maintains relationships
  5. Know when to pause: Client communication issues? Pause and follow up manually
  6. Archive regularly: Move paid invoices to archives monthly to keep DB clean
  7. Monitor aging: Weekly AR report reveals patterns (chronic late payers, systemic issues)

Example Workflow

Initial setup:

scripts/setup.sh
# Edit ~/.config/invoice-chaser/config.json with your details

When you send an invoice:

scripts/add-invoice.sh --number "INV-042" --client "Acme Corp" --email "billing@acme.com" --amount 2500 --date "2025-01-15" --due "2025-02-14"

Daily automated chase (via cron):

scripts/chase.sh  # Runs every morning, sends reminders based on timing rules

When payment arrives:

scripts/status.sh INV-042 --paid --date "2025-02-12"

Weekly review:

scripts/report.sh  # Check AR aging, identify problem invoices

Troubleshooting

Emails not sending:

  • Check gog skill is installed: gog gmail whoami
  • Verify GOG_DEFAULT_ACCOUNT in ~/.clawdbot/secrets.env
  • Test with --dry-run flag to see email preview

Wrong escalation stage:

  • Check timing section in config.json
  • Verify invoice date and due_date fields
  • Use status.sh INV-XXX to see current days calculation

Client keeps getting emails after payment:

  • Run status.sh INV-XXX --paid to mark as paid
  • Check invoices.json to confirm status updated

Philosophy

You did the work. You earned the money. You shouldn't have to beg for it.

Invoice Chaser handles the uncomfortable part of freelancing — following up on unpaid invoices — with persistence and escalating firmness. It preserves your professional relationships by being diplomatic in early stages, but doesn't let clients take advantage of you by being firm when necessary.

Cash flow is the lifeblood of small businesses. Late payments kill businesses. Invoice Chaser keeps the blood flowing so you can focus on what you do best: your actual work.

Stop chasing payments. Your agent sends the awkward emails so you don't have to.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,035
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
Skill 文件
  • SKILL.md
    • Invoice Chaser — Stop Chasing, Start Getting Paid
    • Setup
    • Config
    • Scripts
    • Adding Invoices
    • Chase Cycle
    • Escalation Stages
    • Email Tone Progression
    • Payment Tracking
    • AR Aging Report
    • Data Files
    • Automation
    • Invoice States
    • Integration with Accounting
    • Safety Features
    • Best Practices
    • Example Workflow
    • Troubleshooting
    • Philosophy
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期