402.bot
Recipe
live $0.0075 medium Market & Prediction

Base Rebalance Trigger Brief

Combine price history, token-flow context, and Base rebalance evidence into a compact trigger brief.

$0.0075price
4steps
8sources
10ktokens saved
4tool calls compressed
median latency
MessariToken FlowStableEnrichGeminiMessari Asset TimeseriesToken Flow SnapshotStableenrich Exa SearchGoogle Gemini Flash Structured

Endpoint: /v1/recipes/base-rebalance-trigger-brief/run
Capabilities: base-rebalance, trigger-brief, yield-monitoring

Why pay for this?

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

Combines price history, token-flow context, and public rebalance evidence into a compact trigger 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 asset price history

fetch_transform

Source: Messari Asset Timeseries
Step id: timeseries

Stage 2

Materialize token flow snapshot

materialize

Source: Token Flow Snapshot
Step id: flow

Stage 3

Search Base rebalance context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 4

Build Base rebalance trigger 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

Load asset price history

{
  "id": "timeseries",
  "kind": "fetch_transform",
  "title": "Load asset price history",
  "request": {
    "params": {
      "limit": 14,
      "assetId": "{{ $.input.assetSlug }}",
      "frequency": "1d",
      "metricKey": "price_usd"
    },
    "sourceId": "messari_asset_timeseries",
    "deliveryFormat": "json"
  }
}

Materialize token flow snapshot

{
  "id": "flow",
  "kind": "materialize",
  "title": "Materialize token flow snapshot",
  "request": {
    "scope": {
      "window": "24h",
      "tokenAddress": "{{ $.input.tokenAddress }}"
    },
    "network": "eip155:8453",
    "templateId": "token_flow_snapshot",
    "deliveryFormat": "json"
  }
}

Search Base rebalance context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search Base rebalance context",
  "request": {
    "params": {
      "count": 5,
      "query": "{{ $.input.surfaceName }} Base rebalance APY drift {{ $.input.operatorGoal }}"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Build Base rebalance trigger brief

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build Base rebalance trigger brief",
  "request": {
    "params": {
      "input": {
        "flow": "{{ $.stepsById.flow.output.response.result }}",
        "assetSlug": "{{ $.input.assetSlug }}",
        "timeseries": "{{ $.stepsById.timeseries.output }}",
        "surfaceName": "{{ $.input.surfaceName }}",
        "operatorGoal": "{{ $.input.operatorGoal }}",
        "searchContext": "{{ $.stepsById.search.output }}"
      },
      "prompt": "Build a Base rebalance trigger brief. Focus on whether the current signal is a rebalance, watch, or hold case, the trigger signals, the likely drivers, and the next actions.",
      "responseSchema": {
        "type": "object",
        "required": [
          "surfaceName",
          "assetSlug",
          "triggerVerdict",
          "summary",
          "triggerSignals",
          "likelyDrivers",
          "nextActions"
        ],
        "properties": {
          "summary": {
            "type": "string",
            "maxLength": 280
          },
          "assetSlug": {
            "type": "string"
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 4,
            "description": "Next actions."
          },
          "surfaceName": {
            "type": "string"
          },
          "likelyDrivers": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            },
            "maxItems": 4,
            "description": "Likely trigger drivers."
          },
          "triggerSignals": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "note",
                "significance"
              ],
              "properties": {
                "note": {
                  "type": "string",
                  "maxLength": 120
                },
                "label": {
                  "type": "string",
                  "maxLength": 60
                },
                "significance": {
                  "enum": [
                    "low",
                    "medium",
                    "high"
                  ],
                  "type": "string"
                }
              },
              "additionalProperties": false
            },
            "maxItems": 4,
            "description": "Rebalance trigger signals."
          },
          "triggerVerdict": {
            "enum": [
              "rebalance",
              "watch",
              "hold"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are compressing Base rebalance review into a bounded trigger brief. Stay grounded in the supplied price history, token-flow snapshot, and public surface context only."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}