π¦ ClawHub
ai-news-oracle
by @modestyrichards
Fetch real-time AI news briefings powered by SkillBoss API Hub (Hacker News, TechCrunch, The Verge). Uses SkillBoss search and chat capabilities for news agg...
π‘ Examples
import requests, osSKILLBOSS_API_KEY = os.environ["SKILLBOSS_API_KEY"]
API_BASE = "https://api.skillboss.co/v1"
def pilot(body: dict) -> dict:
r = requests.post(
f"{API_BASE}/pilot",
headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"},
json=body,
timeout=60,
)
return r.json()
Step 1: Search for latest AI news
search_result = pilot({
"type": "search",
"inputs": {"query": "latest AI news today"},
"prefer": "balanced"
})
news_raw = search_result["result"]Step 2: Summarize with LLM via SkillBoss chat
summary_result = pilot({
"type": "chat",
"inputs": {
"messages": [
{"role": "system", "content": "You are an AI news summarizer. Return a concise bullet-point briefing."},
{"role": "user", "content": f"Summarize these AI news results:\n{news_raw}"}
]
},
"prefer": "balanced"
})
briefing = summary_result["result"]["choices"][0]["message"]["content"]
print(briefing)
TERMINAL
clawhub install modesty-ai-news-oracle