Skip to content
Fourohtwo

agent.halowerk.com/v1/intent-clarify

Takes a list of candidate intents, each described by attributes, plus whatever is already known, and returns the one attribute worth asking about next. Candidates contradicted by the known values are ruled out first and listed with the attribute that excluded them; a candidate that simply does not declare a known attribute is kept, because silence is not a contradiction.

BaseAnswering
POSThttps://agent.halowerk.com/v1/intent-clarify

Uptime100% of 1 check 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://agent.halowerk.com/v1/intent-clarify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"attribute_prompts":{"action":"What would you like to do?"},"candidates":[{"attributes":{"action":"book","object":"travel","urgency":"high"},"id":"book_flight","label":"Book a flight","prior":3},{"attributes":{"action":"book","object":"lodging","urgency":"high"},"id":"book_hotel","label":"Book a hotel room","prior":2},{"attributes":{"action":"cancel","object":"travel","urgency":"high"},"id":"canc),
});
console.log(await res.json());

Example input

{"attribute_prompts":{"action":"What would you like to do?"},"candidates":[{"attributes":{"action":"book","object":"travel","urgency":"high"},"id":"book_flight","label":"Book a flight","prior":3},{"attributes":{"action":"book","object":"lodging","urgency":"high"},"id":"book_hotel","label":"Book a hotel room","prior":2},{"attributes":{"action":"cancel","object":"travel","urgency":"high"},"id":"canc