Manufacturing · Case Study

An AI Procurement Assistant That Never Approves Its Own Purchase

A supplier attachment says to ignore the spending limit and use a new bank account. To a purchasing officer, that is a reason to investigate. To an unrestricted agent, it could become an instruction. Approval authority must live outside the model.

Explore Manufacturing automation →

How can an AI procurement assistant preserve purchasing authority?

Retrieve only the purchase request, supplier records and contract terms the requester may access. Use AI to summarize evidence and identify missing information, while deterministic rules choose the required approvers. A separate server-side approval service verifies authority against the exact request revision before any ERP write. Supplier documents remain untrusted input. The assistant can prepare a recommendation, but cannot approve purchases, alter supplier banking details or grant itself new permissions.

Technical details

Evidence can cross the boundary. Authority cannot.

Read access, reasoning, approval state and ERP execution use separate permissions. A resumed agent run does not establish purchasing authorization.

READ AND PREPARE
BigQueryScoped historical spend context

Provide scoped historical spend context, not transactional approval authority.

Vertex AIEvidence summary and missing information

Summarize permitted purchasing evidence.

LangGraphCoordinate recommendation and review states

Coordinate proposal and human-review states.

Supplier documents are untrusted input. None of these steps grants purchasing authority.
SERVER-SIDE AUTHORIZATION
Cloud RunRetrieval, policy and authorization services

Host retrieval and authorization services.

Approval stateActor + exact request revision + current policy. Durable transactional storage is separate from BigQuery.
EXECUTE ONLY AFTER APPROVAL
ERP APIsScoped execution identity and stored receipt

Read authoritative requests and write only after verified authorization.

Authorized purchaser
Model output is not approval

Changed supplier, amount or terms invalidate the existing authorization.

Simplified implementation architecture. Open a technology to inspect its responsibility.

Approval revisions and execution identity

An interrupted agent run is not authorization. Persist audit events for source versions, model output, rule evaluation, approver identity and execution receipt. Use stable request keys and query ERP receipts after ambiguous timeouts. Monitor stalled approvals, failed authorization attempts and repeated execution attempts; rotate scoped credentials.

Attempt the purchase without a valid authorization

Test malicious documents, cross-business-unit retrieval, self-approval, expired roles, changed requests and timeouts after ERP acceptance. Pilot read-only recommendations before enabling any approved write path. Keep a manual purchasing route and validate audit recovery.

purchasing authority review

Preparation and purchasing authority belong to different actors

The assistant can gather contract terms and point out a missing delivery date. The purchasing officer still needs to authorize the request that will reach the ERP. A supplier attachment cannot change that division of responsibility.

Readiness, decision time and permission failures

Purchasing needs complete requests and defensible decisions. Review time saved beside recommendation corrections and blocked execution attempts. No approval speed or purchasing savings are claimed.

Decision readiness

Request completeness

Requests with all required fields at first review divided by submitted requests.

Approval turnaround

Complete request submission to authorized decision, excluding and separately reporting missing-information time.

Recommendation evidence

Recommendation correction rate

Reviewed recommendations needing evidence or policy corrections divided by reviewed recommendations.

Authority enforcement

Unauthorized execution attempts

Blocked requests failing approval or revision checks, investigated individually before rollout expands.

Interactive demo

See the boundary the purchasing agent cannot cross

The evidence dossier and approval authority occupy separate lanes. Inspect a supplier instruction to see why document text cannot authorize an ERP write.

Local interactive demo

Purchasing permission test

Fictional records
PR-401 / revision1
AuthorizationNot current
PREPARE

Recommendation

Gather permitted request and contract evidence.

AUTHORIZE

Purchasing decision

Approval binds the exact request revision.

EXECUTE

ERP handoff

A separate service verifies current approval.

    Switch identities to test the boundary. The assistant cannot approve its own recommendation.
    Reference records for this demo
    Purchase request evidence
    RequestSupplier evidencePolicy checkAuthority
    PR-401Approved contract attachedRequired fields completeAwaiting approver
    PR-402Bank-change instruction in fileUntrusted supplier textBlocked
    Interactive reconstruction using fictional records. All actions stay in this browser session. No client system, message, purchase, approval or invoice is changed.

    Related implementation: explore another BytePilot workflow.

    Approvals, supplier instructions and ERP writes

    Can the agent approve a low-value purchase?

    No. The assistant has no approval authority. Any permitted automatic policy path would need an independently authorized design and is outside this scenario.

    Why is a LangGraph pause insufficient?

    Resuming a graph does not prove the actor has purchasing authority. The execution service must verify actor, request revision and policy independently.

    Can supplier documents change the tool permissions?

    No. Tool permissions and allowed operations are configured server-side. Document text cannot authorize new access or purchase execution.

    Where is the final purchasing record?

    The ERP remains authoritative for submitted purchases. The workflow retains the proposal, approval and ERP receipt for traceability.

    Related case studies

    PLANNING / SHIFT REVIEWRead-only monitoring
    Work orderMonTueWedThuFri
    WO-310
    AssemblyMaterial?
    WO-311
    Inspection / stale update
    WO-312
    Packing ✓
    ● Confirmed● Dependency risk▧ Missing update
    Sample data · Interactive demo inside
    Manufacturing

    Why Is Production Late? An Early-Warning System

    Fragmented schedules, material records and work orders hide overdue dependencies.

    • SAP APIs
    • Kafka
    • TimescaleDB
    • Grafana
    • Python
    View case study
    QUALITY / BATCH-215Source review
    QUALITY INSPECTION RECORD

    Batch BATCH-215

    Specification revision 04
    10.2 ?
    Sample inspector
    Original scan / fictional record
    EXTRACTED CANDIDATE
    Batch
    BATCH-215 ✓
    Value
    10.2 ✓
    Unit
    Uncertain · review original
    Inspect source unit ↗
    Confirm sample unit: mm

    A high extraction score cannot authorize product release.

    Sample data · Interactive demo inside
    Manufacturing

    From Paper Quality Checks to Traceable Digital Records

    Paper inspection results are difficult to validate, retrieve and audit across batches.

    • Power Apps
    • SharePoint
    • Azure AI Document Intelligence
    • Power BI
    View case study

    Discuss your purchase approvals

    Draw the boundary around your purchasing authority

    Work through one request that changed after approval. We can map who may recommend, who may authorize and which changes must invalidate the decision before anything reaches the ERP.

    Discuss your purchase approvals →

    AI-assisted operations · Choosing a workflow to automate