77trust / 100

Effort Index

by ton.halowerk.com in Company & people data

x402 APIPassing, checked 9 h ago

Customer effort index 0–100 for one call from transfers, holds, clarification requests, customer repetitions, repeat-contact mentions and repeated identity checks, each with count, weight and excerpts.

POST
https://ton.halowerk.com/v1/effort-index
Price
$0.02
per call in USDC
Uptime
96.4%
last 30 days
Response time
127 ms
219 ms slowest 5%
Last check
Passed
9 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://ton.halowerk.com/v1/effort-index

Each call costs $0.02 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://ton.halowerk.com/v1/effort-index
content-type: application/json

{
  "agent_speakers": [
    "Agent",
    "Agent2"
  ],
  "transcript": "Customer: Hi, I already called yesterday about my broken router.\nAgent: Can I have your account number?\nCustomer: It is in my email, my router is broken since Monday.\nAgent: I will transfer you to the technical team.\nAgent2: Hello, can I have your account number please?\nCustomer: Again? My router is broken since Monday!"
}

Parameters

ParameterTypeRequiredDescription
agent_speakersarray of stringNo
segmentsarray of objectNo
time_unitstringNo One of: auto, s, ms. Default: "auto".
transcriptstring or object or arrayNo

Example response

The provider's example. We can't check it without paying.

Example response, 111 lines
{
  "limitations": [
    "Proxy from words in the transcript; effort outside the call (waiting time before answer, web forms) is not seen.",
    "Cue words can occur in other meanings; check the excerpts."
  ],
  "result": {
    "band": "high",
    "components": {
      "clarification": {
        "count": 0,
        "evidence": [],
        "points": 0,
        "scored": 0,
        "weight": 4
      },
      "hold": {
        "count": 0,
        "evidence": [],
        "points": 0,
        "scored": 0,
        "weight": 6
      },
      "reauthentication": {
        "count": 2,
        "evidence": [
          {
            "excerpt": "Can I have your account number?",
            "matched": "your account number",
            "segment": 1,
            "speaker": "Agent"
          },
          {
            "excerpt": "Hello, can I have your account number please?",
            "matched": "your account number",
            "segment": 4,
            "speaker": "Agent2"
          }
        ],
        "points": 10,
        "scored": 1,
        "weight": 10
      },
      "repeat_contact": {
        "count": 1,
        "evidence": [
          {
            "excerpt": "Hi, I already called yesterday about my broken router.",
            "matched": "already called",
            "segment": 0,
            "speaker": "Customer"
          }
        ],
        "points": 20,
        "scored": 1,
        "weight": 20
      },
      "repetition": {
        "count": 1,
        "evidence": [
          {
            "excerpt": "Again? My router is broken since Monday!",
            "jaccard": 0.8,
            "repeats_segment": 2,
            "segment": 5,
            "shared_words": 4,
            "speaker": "Customer"
          }
        ],
        "points": 8,
        "scored": 1,
        "weight": 8
      },
      "transfer": {
        "count": 1,
        "evidence": [
          {
            "excerpt": "I will transfer you to the technical team.",
            "matched": "transfer you",
            "segment": 3,
            "speaker": "Agent"
          }
        ],
        "points": 15,
        "scored": 1,
        "weight": 15
      }
    },
    "effort_index": 53,
    "raw_points": 53,
    "roles": {
      "agent": [
        "Agent",
        "Agent2"
      ],
      "customer": [
        "Customer"
      ]
    },
    "transcript": {
      "format": "plain_text",
      "segments": 6,
      "speakers": [
        "Customer",
        "Agent",
        "Agent2"
      ]
    }
  },
  "service": "effort-index",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://ton.halowerk.com/v1/effort-index' \
  -H 'content-type: application/json' \
  --data-raw '{"agent_speakers":["Agent","Agent2"],"transcript":"Customer: Hi, I already called yesterday about my broken router.\nAgent: Can I have your account number?\nCustomer: It is in my email, my router is broken since Monday.\nAgent: I will transfer you to the technical team.\nAgent2: Hello, can I have your account number please?\nCustomer: Again? My router is broken since Monday!"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://ton.halowerk.com/v1/effort-index' \
  -H 'content-type: application/json' \
  --data-raw '{"agent_speakers":["Agent","Agent2"],"transcript":"Customer: Hi, I already called yesterday about my broken router.\nAgent: Can I have your account number?\nCustomer: It is in my email, my router is broken since Monday.\nAgent: I will transfer you to the technical team.\nAgent2: Hello, can I have your account number please?\nCustomer: Again? My router is broken since Monday!"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fton.halowerk.com%2Fv1%2Feffort-index&method=POST
const res = await pay("https://ton.halowerk.com/v1/effort-index", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "agent_speakers": [
      "Agent",
      "Agent2"
    ],
    "transcript": "Customer: Hi, I already called yesterday about my broken router.\nAgent: Can I have your account number?\nCustomer: It is in my email, my router is broken since Monday.\nAgent: I will transfer you to the technical team.\nAgent2: Hello, can I have your account number please?\nCustomer: Again? My router is broken since Monday!"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://ton.halowerk.com/v1/effort-index",
        json={
            "agent_speakers": [
                "Agent",
                "Agent2",
            ],
            "transcript": "Customer: Hi, I already called yesterday about my broken router.\nAgent: Can I have your account number?\nCustomer: It is in my email, my router is broken since Monday.\nAgent: I will transfer you to the technical team.\nAgent2: Hello, can I have your account number please?\nCustomer: Again? My router is broken since Monday!",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
9 h agoPassed402163 ms$0.02
22 h agoPassed402131 ms$0.02
3 days agoTimed out---
4 days agoPassed402158 ms$0.02
5 days agoPassed40240 ms$0.02
Show 10 older checks
5 days agoPassed402219 ms$0.02
5 days agoPassed402153 ms$0.02
6 days agoPassed402124 ms$0.02
6 days agoPassed402138 ms$0.02
7 days agoPassed402138 ms$0.02
7 days agoPassed402123 ms$0.02
7 days agoPassed40240 ms$0.02
7 days agoPassed402157 ms$0.02
8 days agoPassed402121 ms$0.02
8 days agoPassed402502 ms$0.02