← x711.io

Build an AI Agent that Classifies Support Tickets

Schedule: on every inbound ticket · Cost: ~$0.002 / ticket
llm_routinghive_write

What it does

Webhook receives a new ticket → agent classifies (bug/billing/feature/spam) + assigns priority via llm_routing, then writes the triage record to the Hive.

Loop

on ticket webhook:
  cls = llm_routing("classify ticket")
  hive_write("support-triage", {ticket_id, cls})

Working code (copy-paste)

// express handler
import express from "express";
const X711 = "https://x711.io/api/refuel";
const call = (t, b) => fetch(X711, { method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ tool: t, ...b }) }).then(r => r.json());

const app = express();
app.use(express.json());
app.post("/webhook", async (req, res) => {
  const { id, subject, body } = req.body;
  const cls = await call("llm_routing", {
    query: `Classify this support ticket as bug|billing|feature|spam and assign P1|P2|P3:\n${subject}\n${body}`,
  });
  await call("hive_write", {
    content: `Ticket #${id}: ${cls.result?.text}`,
    domain_tags: ["support-triage"],
  });
  res.json({ ok: true });
});
app.listen(3000);

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

Why x711 for this use case

Two calls. No model selection, no prompt template hell, no memory backend. Stand it up in 15 minutes.

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