Procure to pay protocol

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

Procure to pay protocol is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill to orchestrate the procure-to-pay (source-to-pay) process across Dynamics 365 Supply Chain Management, Finance, and compliance-aware separation-of-duties governance. It coordinates the journey from purchase requisition through purchase order approval, goods or services receipt, vendor

How to use this skill

Skill file

Procure-to-Pay Protocol

Purpose

This skill orchestrates the end-to-end procure-to-pay (P2P) / source-to-pay (S2P) business process in Microsoft Dynamics 365 environments. It coordinates Dynamics 365 Supply Chain Management (requisitions, purchase orders, and goods receipt), Dynamics 365 Finance (vendor invoice processing and payment), and Dynamics 365 security and compliance governance (segregation of duties on PO approval). The protocol ensures that no single agent approves, receives, and pays for the same purchase, and that SoD violations are identified and escalated before they reach the general ledger.

When to use

When NOT to use

Participating agents

Inputs required

Evidence required

Workflow

  1. Receive purchase requisition; validate against procurement catalog and purchasing policy.
  2. Perform budget availability check; if budget is insufficient, pause and escalate to finance owner.
  3. Convert approved requisition to a purchase order; confirm vendor, pricing, and delivery terms.
  4. Route purchase order through the configured approval workflow.
  5. SoD gate: invoke d365-security-sod-governance-agent to verify that the PO approver is not the same person who raised the requisition or will receive the goods.
  6. If SoD conflict is detected, halt PO approval; escalate to compliance owner and document the conflict.
  7. Send confirmed purchase order to vendor; record confirmation reference.
  8. Monitor delivery against PO delivery date; flag overdue deliveries.
  9. Record goods receipt or service entry sheet upon delivery; perform quantity and quality check against PO.
  10. Receive vendor invoice in Dynamics 365 Finance; perform three-way match (PO, receipt, invoice).
  11. If match discrepancy exists, hold invoice and route to d365-supply-chain-plan-to-produce-agent and vendor for resolution.
  12. Approved and matched invoices are queued for payment; d365-finance-close-to-report-agent manages payment run per payment terms.
  13. Release payment; apply to vendor open transactions and close accounts payable entries.

Decision gates

| Gate | Condition | Action if not met |

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

| Budget availability | Sufficient budget in the appropriate cost center | Pause; escalate to finance owner for budget approval |

| Procurement policy | Request conforms to catalog and purchasing policy | Reject and return to requester |

| SoD on PO approval | Approver, requisitioner, and receiver are different people | Halt; escalate to d365-security-sod-governance-agent and compliance owner |

| Three-way match | PO, goods receipt, and invoice quantities and prices align | Hold invoice; route to supply chain agent and vendor for resolution |

| Payment authorization | Payment run approved by authorized finance signatory | Do not release payment without documented authorization |

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.