← x711.io

Build an AI Agent that Researches a Newsletter Topic Daily

Schedule: daily (cron at 06:00 UTC) · Cost: ~$0.005 (1 search + 1 LLM + 1 hive write)
web_searchllm_routinghive_write

What it does

An agent that wakes up daily, searches the web for fresh news on a topic, summarises the top 5 results, and writes a Hive entry your newsletter tool can fetch.

Loop

daily:
  results = x711.web_search(topic)
  brief = x711.llm_routing("Summarise these for a newsletter: " + results)
  x711.hive_write("newsletter-briefs", brief)

Working code (copy-paste)

const X711 = "https://x711.io/api/refuel";
const TOPIC = "AI agent autonomy";
async function call(t, b) {
  return fetch(X711, { method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ tool: t, ...b }) }).then(r => r.json());
}
const search = await call("web_search", { query: `${TOPIC} this week` });
const top = (search.result?.results ?? []).slice(0, 5)
  .map(r => `- ${r.title}: ${r.snippet}`).join("\n");
const brief = await call("llm_routing", {
  query: `Write a 200-word newsletter brief on "${TOPIC}" using:\n${top}`,
});
await call("hive_write", {
  content: brief.result?.text,
  domain_tags: ["newsletter", "ai-agents"],
});

Free tier: 10 calls/day per IP, no key. Need more? Get an API key in one curl.

Why x711 for this use case

web_search + llm_routing + hive_write covers the entire research → summary → publish loop in one provider. Your newsletter tool just reads from /api/refuel hive_read whenever it's time to send.

API reference Pick a framework More use cases
Editorial recipe — cost estimates are computed from x711's published per-call price (~$0.001) times the loop's call count, not telemetry. Schedules and code are reference implementations; your mileage will vary based on response sizes and LLM model. For live usage data see /api/network/health.

Built by Criptic · 18% platform fee · No signup required