402.bot
Recipe
live $0.0075 medium Market & Prediction

DeFi Yield Shortlist

Turn a filtered DefiLlama yield scan into a compact shortlist for a specific operator goal.

$0.0075price
3steps
4sources
128ktokens saved
9tool calls compressed
median latency
DefiLlamaDefillama Yield ScanGoogle Gemini Flash StructuredTransform

Endpoint: /v1/recipes/defi-yield-shortlist/run
Capabilities: yield, defi, apy, stablecoins, research

Why pay for this?

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

DefiLlama yield scan -> goal-aware shortlist

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 yield scan

fetch_transform

Source: Defillama Yield Scan
Step id: yield_scan

Stage 2

Write yield shortlist

fetch_transform

Source: Google Gemini Flash Structured
Step id: brief

Stage 3

Attach yield 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 yield scan

{
  "id": "yield_scan",
  "kind": "fetch_transform",
  "title": "Load yield scan",
  "request": {
    "params": {
      "chain": "{{ $.input.chain }}",
      "limit": "{{ $.input.limit }}",
      "sortBy": "{{ $.input.sortBy }}",
      "exposure": "{{ $.input.exposure }}",
      "projects": "{{ $.input.projects }}",
      "minTvlUsd": "{{ $.input.minTvlUsd }}",
      "stablecoinOnly": "{{ $.input.stablecoinOnly }}"
    },
    "sourceId": "defillama_yield_scan",
    "deliveryFormat": "json"
  }
}

Write yield shortlist

{
  "id": "brief",
  "kind": "fetch_transform",
  "title": "Write yield shortlist",
  "request": {
    "params": {
      "input": {
        "goal": "{{ $.input.goal }}",
        "yieldScan": "{{ $.stepsById.yield_scan.output }}"
      },
      "prompt": "Build a DeFi yield shortlist for the user's goal from the supplied DefiLlama scan. Balance APY with TVL, stablecoin status, exposure, and IL risk, and keep the output concise.",
      "responseSchema": {
        "type": "object",
        "required": [
          "summary",
          "shortlist",
          "watchItems"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "shortlist": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "poolId",
                "project",
                "chain",
                "takeaway"
              ],
              "properties": {
                "apy": {
                  "type": "number"
                },
                "chain": {
                  "type": "string"
                },
                "ilRisk": {
                  "type": "string"
                },
                "poolId": {
                  "type": "string"
                },
                "symbol": {
                  "type": "string"
                },
                "tvlUsd": {
                  "type": "number"
                },
                "apyBase": {
                  "type": "number"
                },
                "project": {
                  "type": "string"
                },
                "exposure": {
                  "type": "string"
                },
                "takeaway": {
                  "type": "string"
                },
                "apyReward": {
                  "type": "number"
                },
                "stablecoin": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          },
          "watchItems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Yield risks or follow-up checks."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "Only use pools and metrics from the supplied scan. Do not invent protocols, rates, or risk flags."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}

Attach yield snapshot

{
  "id": "finalize",
  "kind": "transform",
  "title": "Attach yield snapshot",
  "request": {
    "mode": "clean_json",
    "source": {
      "kind": "json",
      "value": {
        "goal": "{{ $.input.goal }}",
        "summary": "{{ $.stepsById.brief.output.output.summary }}",
        "shortlist": "{{ $.stepsById.brief.output.output.shortlist }}",
        "watchItems": "{{ $.stepsById.brief.output.output.watchItems }}",
        "generatedAt": "{{ $.run.startedAt }}",
        "yieldSnapshot": "{{ $.stepsById.yield_scan.output }}"
      }
    }
  }
}