ledger-collections-call
HITL outbound collections phone call from overdue JSON (E.164, integer minor units, region); CALL-E create plus poll; structured promise out; dry-run default; never posts to unsupported regions including YE.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ledger-collections-call
- license
- MIT
- description
- HITL outbound collections phone call from overdue JSON (E.164, integer minor units, region); CALL-E create plus poll; structured promise out; dry-run default; never posts to unsupported regions including YE.
02 资源文件 8
- 资产文件assets/sample-overdue.json279 B
- 参考文档references/examples.md1.8 KB
- 参考文档references/overlap.md2.4 KB
- 参考文档references/regions.md1.2 KB
- 参考文档references/result-schema.md1.7 KB
- 参考文档references/safety.md2.3 KB
- 脚本scripts/preview.py8.5 KB
- 脚本scripts/test_preview.py4.7 KB
03 SKILL.md 正文
Ledger Collections Call
Use this skill when a merchant (or an agent acting for one) has explicit authority to place one disclosed phone call about an overdue balance, and needs a structured promise back.
The directory name does not mean a money write. A CALL-E promised result is display-only. Payment stays a later human confirm (or another tool). Read references/overlap.md before treating this as a collections product: it is not kept.
This skill does not book a payment, post a ledger row, or run a campaign. A human reviews the result before any cash movement.
When To Use
- One overdue contact the operator already authorized, with E.164, integer
amountMinor, currency, locale, and region in JSON - Preview the CALL-E task and recipient result schema without credentials
- Refuse Yemen and other unsupported regions before
POST /v1/calls - Hand a structured promise to a human, a display-only card, or
keptcapture — not to a cashier
When Not To Use
- Consumer FDCPA / statutory debt-collection engines
- Collecting cards, CVV, bank passwords, or OTPs (PCI)
- Automatic retry when the outcome is
unknown, timeout, voicemail, orno_answer - Writing a ledger, invoice, or
keptfinancial record from the structured result - CSV campaigns, call budgets, bank-feed reconcile (that is
kept) - First-contact sales, scraped lists, or numbers the user did not authorize
- Hidden schedulers, webhooks, or
create_and_waiton the HTTP request - Inferring region from a leading
+1
Required Inputs
JSON object:
| Field | Type | Notes |
|---|---|---|
contactId |
UUID string | Stable local id; used in the idempotency material |
displayName |
string | Spoken name |
phoneE164 |
string | E.164, authorized |
amountMinor |
integer | Outstanding balance, smallest currency unit. No floats |
currency |
string | ISO code, e.g. USD |
locale |
en or ar |
Task language. Documented in English; do not embed other scripts in this folder |
region |
ISO 3166-1 alpha-2 | Stated by the operator. Not inferred from the number |
doNotCall |
boolean | If true, refuse |
Optional: storeName (default Store), promisedDate (YYYY-MM-DD or empty; authorization material only).
Preflight
- Confirm the user authorized this one collections call.
- Confirm E.164 and that
doNotCallis false. - Confirm
amountMinoris a JSON integer (no remainder). - Confirm
regionis supported and is not YE. Seereferences/regions.md. - Run
scripts/preview.pybefore any CALL-E plan.
Dry-Run Preview
No CALL-E credentials. No network. scripts/preview.py never POSTs.
If the skill lives under docs/skills/ (originating product repo):
python3 docs/skills/ledger-collections-call/scripts/preview.py \
--request docs/skills/ledger-collections-call/assets/sample-overdue.json
If the skill lives under skills/ (this awesome-list layout):
python3 skills/ledger-collections-call/scripts/preview.py \
--request skills/ledger-collections-call/assets/sample-overdue.json
Preview prints a masked phone, the CALL-E task, the result schema, and an idempotency key. It exits 0 with status: not_called. --live is rejected: live execute is not implemented in this skill.
CALL-E Goal Template
Device-owned English (locale en). Shame language and fake legal threats are forbidden. Disclose that the caller is the store's assistant. Ask for a promise date and amount. Do not collect card numbers.
Call {displayName} on behalf of {storeName}. Identify yourself as the store's assistant, not a government collector. Their outstanding balance is {amountLine}. Ask whether they can promise a payment date and amount. Be brief, polite, and stop if they refuse. Return structured fields only: promised / refused / voicemail / no_answer / wrong_number / callback_requested, integer minor-unit amount if they state one, ISO date if they state one.
amountLine is formatted from integer amountMinor plus currency (for example USD 15.00 for 1500 USD). Do not re-convert through floating point.
For locale ar, use the same constraints in Arabic at execute time. This folder stays English-only.
Structured Result
See references/result-schema.md. Required outcome enum: promised, refused, voicemail, no_answer, wrong_number, callback_requested. Optional integer promised_amount_minor, promised_currency, promised_date (YYYY-MM-DD).
A promised result is not a payment. voicemail, no_answer, and unknown all need a human. Do not redial unknown.
Live Planning
preview.py does not dial. Live requires a host that already has CALL-E authentication, a human confirm, and a second explicit gate (for example --live plus --confirm PLACE-REAL-CALLS on that host). This skill documents the gates; it does not implement POST /v1/calls.
If you use the CALL-E CLI after review:
calle call plan --to-phone <E164_PHONE> --goal "<reviewed goal text>" --timezone America/New_York --language English --region US
Do not run calle call start unless the user separately confirms. Do not post unsupported regions including YE.
Cancellation And Idempotency
Idempotency key (hex SHA-256), not uuid4:
sha256("{contactId}|{amountMinor}|{currency}|{promisedDate}|{utcDate}")
utcDate is YYYY-MM-DD in UTC for the authorization day. promisedDate may be empty.
If the user cancels before dial, do not execute. If a result is ambiguous, route to a human rather than calling again with a new key.
Safety Notes
Read references/safety.md, references/examples.md, references/regions.md, references/result-schema.md, and references/overlap.md before live planning.
04 同仓库更多 Skills
xitter
Interact with X/Twitter via the x-cli terminal client using official X API credentials. Use for posting, reading timelines, searching tweets, liking, retweeting, bookmarks, mentions, and user lookups.
writing-plans
Use when you have a spec or requirements for a multi-step task. Creates comprehensive implementation plans with bite-sized tasks, exact file paths, and complete code examples.
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
weights-and-biases
Track ML experiments with automatic logging, visualize training in real-time, optimize hyperparameters with sweeps, and manage model registry with W&B - collaborative MLOps platform
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web-pentest
Authorized web pentest: recon, proof-based exploits, report.