402.bot
Recipe
live $0.0075 medium Market & Prediction

ParaSwap Route Brief

Turn one ParaSwap quote into a concise route and slippage brief for an operator or trading agent.

$0.0075price
3steps
4sources
128ktokens saved
9tool calls compressed
median latency
ParaSwapParaswap Swap QuoteGoogle Gemini Flash StructuredTransform

Endpoint: /v1/recipes/paraswap-route-brief/run
Capabilities: swap, routing, slippage, paraswap, execution

Why pay for this?

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

ParaSwap quote -> route and slippage 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

Load ParaSwap quote

fetch_transform

Source: Paraswap Swap Quote
Step id: quote

Stage 2

Write swap route brief

fetch_transform

Source: Google Gemini Flash Structured
Step id: brief

Stage 3

Attach quote snapshot

transform

Source: Transform
Step id: finalize

Recent runs

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

Load ParaSwap quote

{
  "id": "quote",
  "kind": "fetch_transform",
  "title": "Load ParaSwap quote",
  "request": {
    "params": {
      "side": "{{ $.input.side }}",
      "amount": "{{ $.input.amount }}",
      "network": "{{ $.input.network }}",
      "srcToken": "{{ $.input.srcToken }}",
      "destToken": "{{ $.input.destToken }}",
      "srcDecimals": "{{ $.input.srcDecimals }}",
      "destDecimals": "{{ $.input.destDecimals }}"
    },
    "sourceId": "paraswap_swap_quote",
    "deliveryFormat": "json"
  }
}

Write swap route brief

{
  "id": "brief",
  "kind": "fetch_transform",
  "title": "Write swap route brief",
  "request": {
    "params": {
      "input": {
        "goal": "{{ $.input.goal }}",
        "quote": "{{ $.stepsById.quote.output }}"
      },
      "prompt": "Turn the supplied ParaSwap quote into a concise route brief. Focus on route concentration, exchange mix, gas context, and what an operator should verify before execution.",
      "responseSchema": {
        "type": "object",
        "required": [
          "summary",
          "routeHighlights",
          "watchItems"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "watchItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Execution checks or route follow-ups."
          },
          "routeHighlights": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "exchange",
                "percent",
                "takeaway"
              ],
              "properties": {
                "gasUsd": {
                  "type": "number"
                },
                "percent": {
                  "type": "number"
                },
                "exchange": {
                  "type": "string"
                },
                "srcToken": {
                  "type": "string"
                },
                "takeaway": {
                  "type": "string"
                },
                "destToken": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "Use only the supplied ParaSwap quote. Do not invent prices, venue names, or execution advice beyond the available route snapshot."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}

Attach quote snapshot

{
  "id": "finalize",
  "kind": "transform",
  "title": "Attach quote snapshot",
  "request": {
    "mode": "clean_json",
    "source": {
      "kind": "json",
      "value": {
        "goal": "{{ $.input.goal }}",
        "side": "{{ $.stepsById.quote.output.side }}",
        "network": "{{ $.stepsById.quote.output.network }}",
        "summary": "{{ $.stepsById.brief.output.output.summary }}",
        "watchItems": "{{ $.stepsById.brief.output.output.watchItems }}",
        "generatedAt": "{{ $.run.startedAt }}",
        "quoteSnapshot": "{{ $.stepsById.quote.output }}",
        "routeHighlights": "{{ $.stepsById.brief.output.output.routeHighlights }}"
      }
    }
  }
}