Order to cash protocol

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

Order to cash protocol is an AI agent skill from the GitHub repository Raishin/vanguard-frontier-agentic. Use this skill to coordinate the order-to-cash process across Dynamics 365 Supply Chain Management, Finance, and Sales, covering confirmed order through fulfillment, invoicing, accounts receivable, and cash collection. It defines stage ownership, gate conditions, agent handoff rules, and escalation

How to use this skill

Skill file

Order-to-Cash Protocol

Purpose

This skill coordinates the order-to-cash (O2C) end-to-end process in Microsoft Dynamics 365 environments. Starting from a confirmed sales order, it orchestrates order management, inventory fulfillment, shipment, invoicing, accounts receivable, and cash collection. The protocol aligns d365-supply-chain-plan-to-produce-agent (fulfillment), d365-finance-close-to-report-agent (invoicing and AR), and d365-sales-revenue-operations-agent (sales performance and customer communication). It does not give business or financial advice; all recommendations are subject to human owner confirmation.

When to use

When NOT to use

Participating agents

Inputs required

Evidence required

Workflow

  1. Receive confirmed sales order from d365-sales-revenue-operations-agent or directly from the order management system.
  2. Verify order accuracy: line items, pricing, quantities, and delivery terms match the original customer agreement.
  3. Check customer credit status; if credit is on hold, escalate to d365-finance-close-to-report-agent and finance owner.
  4. Trigger inventory reservation and ATP confirmation via d365-supply-chain-plan-to-produce-agent.
  5. Monitor warehouse picking, packing, and shipment workflows; flag delays against committed delivery dates.
  6. Generate packing slip upon confirmed shipment; hand off to d365-finance-close-to-report-agent.
  7. Create and validate sales invoice against packing slip and sales order; surface discrepancies for human resolution.
  8. Post invoice and open accounts receivable entry in Dynamics 365 Finance.
  9. Monitor payment due dates; trigger collection activities per the customer's payment terms.
  10. Apply received cash to open invoices and close accounts receivable entries; update sales performance reporting.

Decision gates

| Gate | Condition | Action if not met |

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

| Credit status | Customer account not on credit hold | Escalate to d365-finance-close-to-report-agent and finance credit manager |

| Order accuracy | Lines, prices, and terms match customer agreement | Return to d365-sales-revenue-operations-agent for correction |

| ATP confirmation | Stock reserved or ATP date within delivery window | Notify supply chain agent; surface gap to human owner |

| Invoice accuracy | Invoice matches packing slip and sales order | Hold posting; flag for human review |

| Collections escalation | Payment overdue beyond configurable threshold | Escalate to finance collections owner |

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.