Lead to cash protocol

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Lead to cash protocol is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill to orchestrate the end-to-end lead-to-cash business process across Dynamics 365 Sales, Supply Chain Management, and Finance. It coordinates the journey from a qualified sales opportunity through order creation, fulfillment, invoicing, and final revenue recognition. The skill defines s

How to use this skill

Skill file

Lead-to-Cash Protocol

Purpose

This skill orchestrates the cross-functional lead-to-cash process in Microsoft Dynamics 365 environments. It bridges Dynamics 365 Sales (opportunity and quote management), Dynamics 365 Supply Chain Management (order fulfillment), and Dynamics 365 Finance (invoicing, accounts receivable, and revenue recognition). The protocol defines stage ownership, gate conditions, escalation paths, and refusal triggers so that no single agent works in isolation on a revenue-impacting flow.

When to use

When NOT to use

Participating agents

Inputs required

Evidence required

Workflow

  1. Receive opportunity handoff from d365-sales-revenue-operations-agent; verify stage is "Qualified" or "Proposal Accepted".
  2. Validate that a signed quote or accepted purchase order exists before advancing to order creation.
  3. Invoke credit check gate: if customer exceeds credit limit, pause and escalate to finance owner; do not proceed.
  4. Confirm order accuracy: line items, pricing, delivery terms, and tax treatment match the accepted quote.
  5. Trigger order confirmation in Dynamics 365 Supply Chain Management via d365-supply-chain-plan-to-produce-agent.
  6. Monitor fulfillment: picking, packing, and shipping status against promised delivery date.
  7. Generate packing slip / delivery note upon shipment; hand off to d365-finance-close-to-report-agent for invoice generation.
  8. Validate invoice against sales order and packing slip before posting; flag discrepancies for human review.
  9. Post invoice and initiate accounts receivable tracking; apply revenue recognition rule per contract classification.
  10. Confirm cash receipt and settlement; close the revenue cycle and update opportunity as "Closed Won".

Decision gates

| Gate | Condition | Action if not met |

|---|---|---|

| Credit check | Customer credit within approved limit | Pause; escalate to finance credit manager |

| Order accuracy | Line items and pricing match accepted quote | Return to d365-sales-revenue-operations-agent for correction |

| Inventory availability | Stock confirmed before order confirmation | Notify d365-supply-chain-plan-to-produce-agent; assess ATP date |

| Revenue recognition | Contract classification confirmed | Escalate to d365-finance-close-to-report-agent and finance owner |

| Invoice match | Invoice matches order and packing slip | Hold posting; flag discrepancy for human review |

Refusal triggers

Handoff rules

KPIs

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.