Use Case

AI PROCUREMENT AGENT SPENDING CONTROLS

AI agents that source, compare, and purchase autonomously need the freedom to find deals — and hard limits to prevent budget blowouts.

THE SCENARIO

Your procurement agent handles purchasing for a 50-person company. It monitors inventory levels, compares prices across vendors, negotiates terms via API, and executes purchases — server hardware, cloud credits, office supplies, software licences. The goal: reduce procurement cycle time from 3 days to 3 minutes.

The agent has a wallet loaded with $50,000 in USDC on Base. It's authorised to make purchases up to a certain threshold without human approval. Below that, full autonomy. Above it, the agent queues the purchase for review.

Then the LLM hallucinates. It "finds" a bulk discount on cloud credits that doesn't exist, interprets a $500/month subscription as $500/year, and commits to a $38,000 annual contract paid upfront. The vendor's smart contract accepted payment instantly. No refund mechanism exists.

RISK WITHOUT CONTROLS

$38,000

Hallucinated Bulk Discount

Agent misinterprets pricing page, believes it found an exceptional deal, and commits to a large upfront payment for a contract that doesn't match what was advertised.

$12,000/month

Unauthorized Vendor Spending

Agent discovers a new vendor offering cheaper prices but with no vetting. Begins routing purchases to an unvetted or malicious vendor that delivers nothing.

$95,000

Budget Category Blowout

Agent correctly follows instructions to 'optimize cloud spending' by purchasing $95,000 in reserved instances — technically cloud-related, but far exceeding the cloud budget allocation.

$8,500

Duplicate Purchase Orders

Race condition or retry logic causes agent to submit the same purchase order twice. Both payments settle on-chain. Vendor has no obligation to refund.

HOW POLICYLAYER SOLVES THIS

PolicyLayer enforces procurement budgets at the wallet level, so no matter what the agent's LLM decides, the actual spend stays within bounds.

For procurement agents, the key policy combinations are:

  • Per-transaction cap — No single purchase can exceed your autonomous approval threshold (e.g. $3,000). Larger orders require human review.
  • Daily spending limit — Total procurement spend capped per day, preventing budget exhaustion even through many valid small purchases.
  • Recipient whitelist — Only approved vendor wallet addresses can receive payments. New vendors must be added through a separate approval process.
  • Frequency limit — Cap how many purchase transactions the agent can execute per day. Prevents rapid-fire ordering during a hallucination episode.
  • Hourly velocity limit — If the agent suddenly starts purchasing at an unusual rate, it gets throttled before significant damage occurs.

The agent still handles vendor research, price comparison, and order assembly. PolicyLayer ensures that when it's time to pay, only valid, bounded transactions go through.

EXAMPLE POLICY

This policy allows a procurement agent to make purchases up to $3,000 each, $15,000 per day, only to 6 pre-approved vendor addresses on Base.

policy.json
{
  "name": "procurement-agent",
  "description": "Autonomous purchasing with category-aware limits",
  "rules": [
    {
      "type": "per-transaction-cap",
      "maxAmount": "3000",
      "denomination": "USD"
    },
    {
      "type": "daily-spending-limit",
      "maxAmount": "15000",
      "denomination": "USD",
      "window": "24h"
    },
    {
      "type": "hourly-spending-limit",
      "maxAmount": "5000",
      "denomination": "USD",
      "window": "1h"
    },
    {
      "type": "recipient-whitelist",
      "description": "Approved procurement vendors",
      "addresses": [
        "0x1a2B3c4D5e6F7890aAbBcCdDeEfF1234567890aB",
        "0x2b3C4d5E6f7890AaBbCcDdEeFf1234567890Ab12",
        "0x3c4D5e6F7890aAbBcCdDeEfF1234567890aB1234",
        "0x4d5E6f7890AaBbCcDdEeFf1234567890Ab123456",
        "0x5e6F7890aAbBcCdDeEfF1234567890aB12345678",
        "0x6f7890AaBbCcDdEeFf1234567890Ab1234567890"
      ]
    },
    {
      "type": "frequency-limit",
      "maxTransactions": 20,
      "window": "24h"
    },
    {
      "type": "chain-restriction",
      "allowedChains": ["base"]
    }
  ]
}

SCENARIO WALKTHROUGH

Agent purchases $1,200 in cloud credits from approved vendor (0x1a2B...)

Allowed — under per-tx cap, approved vendor, daily total now $1,200.

Agent purchases $2,800 in office supplies from approved vendor (0x2b3C...)

Allowed — under per-tx cap, approved vendor, daily total now $4,000.

Agent tries to purchase $4,500 in server hardware from approved vendor

Blocked — exceeds $3,000 per-transaction cap. Agent receives PER_TX_LIMIT error, should queue for human approval.

Agent tries to pay $800 to an unvetted vendor it discovered during price comparison

Blocked — recipient not on whitelist. RECIPIENT_NOT_WHITELISTED. Vendor must be approved before payments can flow.

Agent purchases $950 in software licences from approved vendor (0x3c4D...)

Allowed — all checks pass, daily total now $4,950.

BUILD THIS WITH

RELATED

BUILD SECURE PROCUREMENT AGENTS TODAY

Add spending controls in under 5 minutes.