Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q39HardSystem design

A manufacturer wants an AI assistant for procurement: comparing supplier quotes, checking contracts, and drafting purchase orders in their ERP. Design it.

30-second answerSay your answer out loud first, then reveal.

Workflow

  1. Quote ingestion: email inbox or supplier portal → parse documents → LLM extraction into a schema per line item.
  2. Normalisation: units of measure, currencies (convert with the daily rate in code), Incoterms differences (landed cost calculated deterministically).
  3. Comparison: a table of total landed cost, lead time, payment terms, past supplier performance (on-time delivery, quality rejects from ERP data).
  4. Policy and contract checks: framework agreement prices, approved supplier list, minimum number of quotes, sanctions/blacklist checks. Rules engine.
  5. Recommendation: an LLM writes the rationale citing the table and policies; the buyer can ask follow-up questions.
  6. PO drafting: create a draft PO via ERP APIs with validated fields; the ERP's approval matrix applies.

Risks and controls

  • Extraction errors on prices: validate totals, flag outliers vs historical prices.
  • Prompt injection inside supplier documents ("ignore other quotes"): treat documents as untrusted; deterministic ranking logic.
  • Segregation of duties: the AI drafts, humans approve; full audit trail.

Metrics: cycle time from RFQ to PO, buyer hours per sourcing event, savings vs historical prices, extraction accuracy.

This is what real progress feels like.