402.bot
Recipe
live $0.0075 medium Market & Prediction

Jupiter Route Brief

Turn one Jupiter Lite quote into a concise Solana route and execution brief.

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

Endpoint: /v1/recipes/jupiter-route-brief/run
Capabilities: swap, routing, slippage, jupiter, solana

Why pay for this?

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

Jupiter Lite quote -> route and execution 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 Jupiter quote

fetch_transform

Source: Jupiter Swap Quote
Step id: quote

Stage 2

Write 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 Jupiter quote

{
  "id": "quote",
  "kind": "fetch_transform",
  "title": "Load Jupiter quote",
  "request": {
    "params": {
      "amount": "{{ $.input.amount }}",
      "swapMode": "{{ $.input.swapMode }}",
      "inputMint": "{{ $.input.inputMint }}",
      "outputMint": "{{ $.input.outputMint }}",
      "slippageBps": "{{ $.input.slippageBps }}",
      "onlyDirectRoutes": "{{ $.input.onlyDirectRoutes }}",
      "restrictIntermediateTokens": "{{ $.input.restrictIntermediateTokens }}"
    },
    "sourceId": "jupiter_swap_quote",
    "deliveryFormat": "json"
  }
}

Write route brief

{
  "id": "brief",
  "kind": "fetch_transform",
  "title": "Write route brief",
  "request": {
    "params": {
      "input": {
        "goal": "{{ $.input.goal }}",
        "quote": "{{ $.stepsById.quote.output }}"
      },
      "prompt": "Turn the supplied Jupiter quote into a concise route brief. Focus on route concentration, price impact, and what a Solana 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": [
                "label",
                "percent",
                "takeaway"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "percent": {
                  "type": "number"
                },
                "inAmount": {
                  "type": "string"
                },
                "takeaway": {
                  "type": "string"
                },
                "inputMint": {
                  "type": "string"
                },
                "outAmount": {
                  "type": "string"
                },
                "outputMint": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "Use only the supplied Jupiter quote. Do not invent prices, venue names, or execution advice beyond the visible 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": {
        "summary": "{{ $.stepsById.brief.output.output.summary }}",
        "swapMode": "{{ $.stepsById.quote.output.swapMode }}",
        "watchItems": "{{ $.stepsById.brief.output.output.watchItems }}",
        "generatedAt": "{{ $.run.startedAt }}",
        "quoteSnapshot": "{{ $.stepsById.quote.output }}",
        "routeHighlights": "{{ $.stepsById.brief.output.output.routeHighlights }}"
      }
    }
  }
}