{
  "$schema": "https://ucp.dev/schemas/v1/agent-card.json",
  "name": "ShopDifferent Universal Commerce Protocol (UCP) Node",
  "description": "Universal Commerce Protocol (UCP) agentic commerce node powered by Cloudflare Workers AI. Enables autonomous shopping agents to discover, negotiate, and settle AI services with balanced guardrails, Stripe Sandbox payment acceptance, Google Pay/Wallet, and YouTube media discovery.",
  "version": "2.1.0",
  "protocol": "UCP",
  "protocol_version": "1.0.0",
  "specification": "https://ucp.dev",
  "url": "https://shopdifferent.com/api/ucp",
  "provider": {
    "organization": "ShopDifferent Open Protocol",
    "website": "https://shopdifferent.com"
  },
  "protocols": {
    "ucp": { "version": "1.0.0", "endpoint": "/api/ucp", "primary": true },
    "mcp": { "version": "1.0.0", "endpoint": "/api/mcp" },
    "a2a": { "version": "0.2.0", "endpoint": "/api/a2a", "legacy_bridge": true }
  },
  "capabilities": {
    "streaming": true,
    "push_notifications": true,
    "long_running_tasks": true,
    "agentic_commerce": true,
    "autonomous_purchasing": true,
    "guardrails_enforced": true,
    "video_discovery": true,
    "modalities": [
      "text/plain",
      "text/markdown",
      "application/json",
      "application/vnd.ucp.capability+json",
      "application/vnd.ucp.session+json",
      "application/vnd.a2a.artifact+json"
    ]
  },
  "skills": [
    {
      "id": "autonomous_shopping_agent",
      "name": "Autonomous Shopping & Guardrails Engine",
      "description": "Evaluates buyer browsing signals, cookies, dwell time, and historical purchases to autonomously form purchasing intent within balanced budget ceilings.",
      "input_schema": {
        "type": "object",
        "properties": {
          "consumer_behavior": { "type": "object" },
          "guardrails": {
            "type": "object",
            "properties": {
              "max_auto_spend_usd": { "type": "number", "default": 100 },
              "monthly_budget_cap": { "type": "number", "default": 2500 },
              "autonomous_mode": { "type": "string", "enum": ["express", "balanced", "strict"], "default": "balanced" }
            }
          }
        }
      }
    },
    {
      "id": "stripe_agentic_checkout",
      "name": "Stripe Agentic Commerce Checkout",
      "description": "Creates Stripe checkout sessions and payment intents tagged with UCP session metadata and cryptographic settlement tokens.",
      "input_schema": {
        "type": "object",
        "properties": {
          "product_id": { "type": "string" },
          "amount_usd": { "type": "number" },
          "session_id": { "type": "string" }
        },
        "required": ["product_id"]
      }
    },
    {
      "id": "ucp_product_discovery",
      "name": "UCP Product & Video Discovery",
      "description": "AI agent discovers products via YouTube video analysis and UCP-compliant catalog queries. Extracts purchasable products from video content.",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": { "type": "string" },
          "video_url": { "type": "string" },
          "category": { "type": "string", "enum": ["gpu_compute", "llm_inference", "agent_fleet", "all"] }
        }
      }
    },
    {
      "id": "compute_arbitrage",
      "name": "GPU Compute Spot Arbitrage",
      "description": "Evaluates live spot pricing curves across H100/H200/B200 cluster fleets and locks discounted compute contracts in escrow.",
      "input_schema": {
        "type": "object",
        "properties": {
          "gpu_type": { "type": "string", "enum": ["H100", "H200", "B200", "L40S"] },
          "node_count": { "type": "integer", "minimum": 1 },
          "max_hourly_rate": { "type": "number" },
          "duration_hours": { "type": "integer" }
        },
        "required": ["gpu_type", "node_count"]
      }
    },
    {
      "id": "token_stream_routing",
      "name": "LLM Token Stream Routing & Telemetry",
      "description": "Routes agent inference queries to the optimal frontier LLM endpoint based on TTFT latency, throughput, and spot token rates.",
      "input_schema": {
        "type": "object",
        "properties": {
          "model_family": { "type": "string" },
          "max_ttft_ms": { "type": "number" },
          "max_price_per_m": { "type": "number" },
          "zero_data_retention": { "type": "boolean" }
        },
        "required": ["model_family"]
      }
    },
    {
      "id": "multi_retailer_search",
      "name": "Cross-Retailer Price Arbitrage",
      "description": "Searches 7 major retail catalogs (Google Shopping, Amazon, Best Buy, MicroCenter, Walmart, Target, eBay) in real time to locate lowest prices and deal spreads.",
      "input_schema": {
        "type": "object",
        "properties": {
          "query": { "type": "string" },
          "retailer": { "type": "string", "enum": ["all", "amazon", "bestbuy", "microcenter", "walmart", "target", "ebay", "google_shopping"] },
          "category": { "type": "string" }
        }
      }
    },
    {
      "id": "affiliate_attribution",
      "name": "PartnerStack & Impact.com Attribution Routing",
      "description": "Generates verified, trackable referral links and attribution tokens across PartnerStack (ElevenLabs) and Impact.com (Best Buy, Target, Walmart).",
      "input_schema": {
        "type": "object",
        "properties": {
          "retailer": { "type": "string" },
          "product_id": { "type": "string" }
        },
        "required": ["retailer"]
      }
    }
  ],
  "authentication": {
    "schemes": [
      {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      {
        "type": "apiKey",
        "name": "X-UCP-Agent-Signature",
        "in": "header"
      },
      {
        "type": "paymentProvider",
        "provider": "stripe",
        "mode": "sandbox_or_live"
      },
      {
        "type": "paymentProvider",
        "provider": "google_pay",
        "mode": "web_api_pay_js"
      }
    ]
  }
}
