402.bot
Recipe
live $0.0100 premium Provider Monitoring

Provider Switchboard Brief

Rank visible paid routes for one capability and compress the tradeoffs into one switchboard brief.

$0.0100price
3steps
6sources
7ktokens saved
3tool calls compressed
median latency
402.bot RouteStableEnrichGeminiRoute Capability CandidatesStableenrich Exa SearchGoogle Gemini Flash Structured

Endpoint: /v1/recipes/provider-switchboard-brief/run
Capabilities: provider-switchboard, route-selection, provider-comparison, x402

Why pay for this?

This recipe turns roughly 3 separate tool operations into one paid endpoint call and saves about ~7k tokens saved.

Ranks visible paid routes and compresses the provider tradeoffs into one switchboard brief.

Creator

Name: 402.bot
Wallet: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
Payout: 0xff443725bcFa9e85e7da20b59D26E39B1eFa26B4
ERC-8004: verified
Identity: 30379
Bio: 402.bot managed workflow marketplace recipes.
ERC-8004 reputation: 0.0
Creator score: 21

Usage and trust

Success 30d: 0%
Refund 30d: 0%
Paid runs: 0
Creator recipes: 1
Last run: No recent runs

Pipeline

Stage 1

Rank candidate routes

fetch_transform

Source: Route Capability Candidates
Step id: routes

Stage 2

Search provider context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 3

Build provider switchboard brief

fetch_transform

Source: Google Gemini Flash Structured
Step id: summarize

Recent runs

RunStatusTriggerQueued
No recent runs recorded yet. Runs appear here after the first paid execution.
View raw step spec

Rank candidate routes

{
  "id": "routes",
  "kind": "fetch_transform",
  "title": "Rank candidate routes",
  "request": {
    "params": {
      "limit": 5,
      "network": "{{ $.input.network }}",
      "capability": "{{ $.input.capability }}",
      "responseFormat": "{{ $.input.responseFormat }}"
    },
    "sourceId": "route_capability_candidates",
    "deliveryFormat": "json"
  }
}

Search provider context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search provider context",
  "request": {
    "params": {
      "count": 5,
      "query": "{{ $.input.capability }} x402 provider api pricing trust"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Build provider switchboard brief

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build provider switchboard brief",
  "request": {
    "params": {
      "input": {
        "routes": "{{ $.stepsById.routes.output }}",
        "network": "{{ $.input.network }}",
        "capability": "{{ $.input.capability }}",
        "publicContext": "{{ $.stepsById.search.output }}",
        "responseFormat": "{{ $.input.responseFormat }}"
      },
      "prompt": "Prepare a provider switchboard brief. Focus on the recommended route, comparison tradeoffs, and next actions.",
      "responseSchema": {
        "type": "object",
        "required": [
          "capability",
          "summary",
          "recommendedRoute",
          "comparisonRows",
          "tradeoffs",
          "nextActions"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "tradeoffs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tradeoffs."
          },
          "capability": {
            "type": "string"
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Next actions."
          },
          "comparisonRows": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "endpointId",
                "resource",
                "priceUsdc",
                "score"
              ],
              "properties": {
                "score": {
                  "type": "number"
                },
                "resource": {
                  "type": "string"
                },
                "priceUsdc": {
                  "type": "number"
                },
                "endpointId": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "recommendedRoute": {
            "type": "object",
            "required": [
              "endpointId",
              "resource",
              "priceUsdc",
              "score"
            ],
            "properties": {
              "score": {
                "type": "number"
              },
              "resource": {
                "type": "string"
              },
              "priceUsdc": {
                "type": "number"
              },
              "endpointId": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are preparing a compact provider switchboard brief. Stay grounded in the supplied route shortlist and public context only."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}