# B2B Accounts Receivable (A/R) Diplomatic Collections Engine

> B2B Overdue Accounts Receivable (A/R) Diplomatic Collections Engine - Reduces Days Sales Outstanding (DSO) by 10-18 days and recovers overdue B2B cash flow without damaging key client relationships. For Account Owner, SaaS Operators, and E-Commerce Merchants.

B2B Accounts Receivable (A/R) Diplomatic Collections Engine is a paid AI agent skill on Agensi by AllAccessData, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [AllAccessData](https://www.agensi.io/creators/allaccessdata)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/b2b-accounts-receivable-a-r-diplomatic-collections-engine
- Tags: retention, automation, collections, workflow, agent-skill

## About this skill

**B2B Overdue Accounts Receivable (A/R) Diplomatic Collections Engine** Reduces Days Sales Outstanding (DSO) by 10-18 days and recovers overdue B2B cash flow without damaging key client relationships.

Built for Account Owner, SaaS Operators, and E-Commerce Merchants. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md, with the specialized persona of a Retention and Collections Operations Architect.

What you receive:
* **One `b2b-overdue-ar-collections-diplomat.md` skill file** - the complete instructions, loaded by Claude, Codex, Hermes, Gemini, and GPT-4 or any agent framework that reads a Markdown skill file. No install, no account, no runtime of ours.
* **It produces a B2B Overdue Accounts Receivable (A/R) Diplomatic Collections Report** each time it runs, from the input you supply.

What you need:
* **Services it calls:** QuickBooks Online API (paid), OpenAI API (paid), Gmail API (free), and Slack Incoming Webhooks API (free). 2 of these are billed by their providers, not by us.
* **Keys you supply:** `QBO_ACCESS_TOKEN`, `OPENAI_API_KEY`, `GMAIL_OAUTH_CREDENTIALS`, `SLACK_WEBHOOK_URL`. Read from your environment; never stored or logged.

What's included:
* **End-to-end execution pipeline:** automates Query QuickBooks Online API -> Classify deterministically -> Pass anonymized invoice context -> Inject client contact name.
* **Audit-ready deliverable:** outputs a B2B Overdue Accounts Receivable (A/R) Diplomatic Collections Report containing Aged A/R triage report grouped by 7-day, 15-day, Tone-calibrated, diplomatic follow-up email drafts staged, and Immediate Slack escalation to Account Owner for 30+ day.

### Worked example

Illustrative example; output is expected, not a recorded execution.

#### Input

The input contract this skill declares, filled with a sample record:

```json
{"min_days_overdue": 7, "auto_send_bucket_1": false}
```

Assumptions: synthetic record, not a retrieved one; the skill's declared sources are QuickBooks Online API (Paid), OpenAI API (Paid), Gmail API (Free), Slack Incoming Webhooks API (Free). No call was made to produce it.

#### Walkthrough

Applying the skill's own documented execution instructions to that input:

1. Query QuickBooks Online API for open invoices where `due_date < today` and `balance > 0`.
2. Classify deterministically into Aging Buckets: `Bucket_1` (7-14d: gentle check-in), `Bucket_2` (15-29d: clear reminder + pay link), `Bucket_3` (30+d: executive escalation).
3. Pass anonymized invoice context (`days_overdue`, `amount_due`, `bucket`, `client_tenure`) to OpenAI API to draft an empathetic, clear reminder.
4. Inject client contact name and QuickBooks online payment URL locally and create a Gmail Draft (never auto-send Bucket_3 without finance approval).
5. Post total overdue A/R and Bucket_3 escalation items to Slack `#finance-ar`.

#### Expected output

**Expected result** — the shape this skill declares it returns, not an
observed run:

```json
{"overdue_invoices": 6, "total_ar_overdue_usd": 24600.00, "gmail_drafts_created": 6, "bucket_3_escalations": 1, "slack_notified": true}
```

Alongside the payload, the documented deliverables are:

- Aged A/R triage report grouped by 7-day, 15-day, and 30+ day overdue buckets
- Tone-calibrated, diplomatic follow-up email drafts staged on the original Gmail invoice thread
- Immediate Slack escalation to Account Owner for 30+ day overdue invoices

Actual values vary with the input and the state of the declared sources.

## Requires

- Google API credentials
- OpenAI API key
- Slack webhook URL
- QuickBooks Online API
- Gmail API

Paid services are billed by their own providers, not by us, and you supply the accounts. Keys are read from your environment and never stored or logged.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the B2B Accounts Receivable (A/R) Diplomatic Collections Engine skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does B2B Accounts Receivable (A/R) Diplomatic Collections Engine do?

B2B Overdue Accounts Receivable (A/R) Diplomatic Collections Engine - Reduces Days Sales Outstanding (DSO) by 10-18 days and recovers overdue B2B cash flow without damaging key client relationships. For Account Owner, SaaS Operators, and E-Commerce Merchants.

### Which AI agents support B2B Accounts Receivable (A/R) Diplomatic Collections Engine?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use B2B Accounts Receivable (A/R) Diplomatic Collections Engine?

Connect your AI agent to Agensi through MCP, then ask it to use B2B Accounts Receivable (A/R) Diplomatic Collections Engine on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
