Agentic procurement / live engine
One messy RFQ in. A sourced, priced, human-approved plan out.
A buyer drops in a free-text customer order. The agent works it through seven typed tools, parse, match, source, compare, draft, then returns a purchase plan for one-click approval. Run a worked example, or paste your own order and watch the real engine source it.
Choose an inbound order
No network call for the worked examples.
Pick an order above and run the agent to light up the trace.
How it is built
One orchestrator, a typed tool surface, a human gate
The architecture I would build: one reasoning agent as the orchestrator over a fixed set of typed tools. Not a sprawling multi-agent swarm: procurement needs determinism and an audit trail, so the surface is small, every tool returns structured output, and nothing free-texts a SKU or a price. The demo runs that tool surface under a deterministic orchestrator today.
Orchestrator
A reasoning agent plans the run, calls the tools and assembles the recommendation. The demo runs this step as a deterministic orchestration.
Typed tool surface
7 tools, JSON-schema input and output. The orchestrator only ever selects from tool results.
Confidence tiers + human gate
exact / high / review / substitute / unmatched. No PR is committed without buyer approval.
SAP integration tier
S/4HANA Cloud OData, OAuth 2.0 via a communication arrangement, SAP BTP runtime.
Observability: every tool call is logged and rendered in the trace panel above. The live model has one job, normalising a pasted order into clean line items; it never names a SKU, a supplier or a price, so matching, sourcing and pricing stay deterministic and auditable.
The 7 tools / and the SAP service each maps to
messy RFQ text into structured line items
line into Material Master, with a confidence tier
material into Purchasing Info Records
info records into a chosen supplier plus the trade-off
supplier into on-time rate, open POs, risk flag
no exact match into a spec-equivalent SKU
approved lines into a draft Purchase Requisition
The procurement engine is real and runs live: the parser, the matcher, the sourcing logic and the orchestrator all execute over the seven typed tools, in the browser for the worked examples and on a Vercel route for a pasted order. Every tier, score, supplier and price on screen is computed, never hardcoded. The catalog, the suppliers, the Info Record prices and the example RFQs are synthetic. The SAP S/4HANA Cloud tenant is a mock, no production system is touched. For a pasted order a live model normalises the messy text into clean line items; with no model key, a model error, or a hit rate limit, a built-in heuristic parser does that step instead, and the orchestrator panel always states which path ran.