402.bot
Recipe
live $0.0075 medium Social/X Research

X Account Sentiment Shift

Turn one X account's timeline and public context into a compact sentiment-shift brief.

$0.0075price
4steps
7sources
5ktokens saved
3tool calls compressed
median latency
twit.shStableEnrichGeminiTwitsh User LookupTwitsh User TimelineStableenrich Exa SearchGoogle Gemini Flash Structured

Endpoint: /v1/recipes/x-account-sentiment-shift/run
Capabilities: x-account, sentiment-shift, social-research, twitter

Why pay for this?

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

Compresses an account's recent timeline and public context into one sentiment-shift 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 X profile

fetch_transform

Source: Twitsh User Lookup
Step id: profile

Stage 2

Load recent timeline

fetch_transform

Source: Twitsh User Timeline
Step id: timeline

Stage 3

Search public context

fetch_transform

Source: Stableenrich Exa Search
Step id: search

Stage 4

Build X account sentiment shift 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 X profile

{
  "id": "profile",
  "kind": "fetch_transform",
  "title": "Load X profile",
  "request": {
    "params": {
      "username": "{{ $.input.username }}"
    },
    "sourceId": "twitsh_user_lookup",
    "deliveryFormat": "json"
  }
}

Load recent timeline

{
  "id": "timeline",
  "kind": "fetch_transform",
  "title": "Load recent timeline",
  "request": {
    "params": {
      "username": "{{ $.input.username }}"
    },
    "sourceId": "twitsh_user_timeline",
    "deliveryFormat": "json"
  }
}

Search public context

{
  "id": "search",
  "kind": "fetch_transform",
  "title": "Search public context",
  "request": {
    "params": {
      "count": 5,
      "query": "site:x.com/{{ $.input.username }} {{ $.input.query }} sentiment engagement"
    },
    "sourceId": "stableenrich_exa_search",
    "deliveryFormat": "json"
  }
}

Build X account sentiment shift brief

{
  "id": "summarize",
  "kind": "fetch_transform",
  "title": "Build X account sentiment shift brief",
  "request": {
    "params": {
      "input": {
        "query": "{{ $.input.query }}",
        "profile": "{{ $.stepsById.profile.output }}",
        "timeline": "{{ $.stepsById.timeline.output }}",
        "username": "{{ $.input.username }}",
        "publicContext": "{{ $.stepsById.search.output }}"
      },
      "prompt": "Summarize the recent sentiment shift for this X account. Focus on the shift label, engagement signals, counterpart accounts, and next actions.",
      "responseSchema": {
        "type": "object",
        "required": [
          "username",
          "sentimentShift",
          "summary",
          "engagementSignals",
          "counterpartAccounts",
          "nextActions"
        ],
        "properties": {
          "summary": {
            "type": "string"
          },
          "username": {
            "type": "string"
          },
          "nextActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Next actions."
          },
          "sentimentShift": {
            "enum": [
              "positive",
              "negative",
              "mixed",
              "flat"
            ],
            "type": "string"
          },
          "engagementSignals": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Engagement signals."
          },
          "counterpartAccounts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Counterpart accounts."
          }
        },
        "additionalProperties": false
      },
      "systemInstruction": "You are preparing a compact X-account sentiment brief. Stay grounded in the supplied profile, timeline, and public context only."
    },
    "sourceId": "google_gemini_flash_structured",
    "deliveryFormat": "json"
  }
}