Search recent X posts
{
"id": "search",
"kind": "fetch_transform",
"title": "Search recent X posts",
"request": {
"params": {
"phrase": "{{ $.input.query }}",
"hashtags": "{{ $.input.hashtags }}",
"minLikes": "{{ $.input.minLikes }}",
"minReplies": "{{ $.input.minReplies }}"
},
"sourceId": "twitsh_tweet_search",
"deliveryFormat": "json"
}
}
Search X-linked public context
{
"id": "xContext",
"kind": "fetch_transform",
"title": "Search X-linked public context",
"request": {
"params": {
"count": 5,
"query": "site:x.com {{ $.input.query }} prediction markets"
},
"sourceId": "stableenrich_exa_search",
"deliveryFormat": "json"
}
}
Search grounded market context
{
"id": "grounded",
"kind": "fetch_transform",
"title": "Search grounded market context",
"request": {
"params": {
"count": 5,
"query": "{{ $.input.query }} prediction markets Polymarket traders market structure"
},
"sourceId": "stableenrich_exa_search",
"deliveryFormat": "json"
}
}
Generate prediction-market radar
{
"id": "summarize",
"kind": "fetch_transform",
"title": "Generate prediction-market radar",
"request": {
"params": {
"input": {
"query": "{{ $.input.query }}",
"tweets": "{{ $.stepsById.search.output }}",
"xContext": "{{ $.stepsById.xContext.output }}",
"groundedContext": "{{ $.stepsById.grounded.output }}"
},
"prompt": "Prepare a prediction-market topic radar from these X and web results. Focus on market signals, bullish themes, bearish themes, key posts, and monitoring suggestions.",
"responseSchema": {
"type": "object",
"required": [
"query",
"summary",
"marketSignals",
"bullishThemes",
"bearishThemes",
"keyPosts",
"monitoringSuggestions"
],
"properties": {
"query": {
"type": "string"
},
"summary": {
"type": "string"
},
"keyPosts": {
"type": "array",
"items": {
"type": "object",
"required": [
"text"
],
"properties": {
"url": {
"type": "string"
},
"text": {
"type": "string"
},
"author": {
"type": "string"
}
},
"additionalProperties": false
}
},
"bearishThemes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Bearish themes."
},
"bullishThemes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Bullish themes."
},
"marketSignals": {
"type": "array",
"items": {
"type": "string"
},
"description": "Market signals."
},
"monitoringSuggestions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Monitoring suggestions."
}
},
"additionalProperties": false
},
"systemInstruction": "You are preparing a concise prediction-market radar memo. Stay grounded in the supplied evidence only."
},
"sourceId": "google_gemini_flash_structured",
"deliveryFormat": "json"
}
}