Skip to content
Fourohtwo

Decision models for agents

payperwork.app/decide/v1/systemone

Decision models for agents: a state plus typed questions (noul yes/no, choice, score) answered as probabilities in one pass, no generated text.

BaseAnswering
POSThttps://payperwork.app/decide/v1/systemone

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://payperwork.app/decide/v1/systemone", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"model":"cloudflare/clef-flash","questions":{"severity":{"criteria":["No impact","Minor","Major","Critical"],"instructions":"How severe is the problem?","type":"score"},"team":{"criteria":{"billing":"charges and refunds","shipping":"delivery and damage","technical":"product faults"},"instructions":"Which team should handle this?","type":"choice"},"urgent":{"instructions":"Does the customer need a),
});
console.log(await res.json());

Example input

{"model":"cloudflare/clef-flash","questions":{"severity":{"criteria":["No impact","Minor","Major","Critical"],"instructions":"How severe is the problem?","type":"score"},"team":{"criteria":{"billing":"charges and refunds","shipping":"delivery and damage","technical":"product faults"},"instructions":"Which team should handle this?","type":"choice"},"urgent":{"instructions":"Does the customer need a

More from payperworkProvider status