Script Adherence
by ton.halowerk.com in Company & people data
Checks a call transcript against your call script: which steps the agent covered (fuzzy match with score and excerpt), which required steps are missing, steps out of order or later than allowed, and the coverage ratio.
https://ton.halowerk.com/v1/script-adherence- Price
- $0.02
- per call in USDC
- Uptime
- 95.7%
- last 30 days
- Response time
- 128 ms
- 429 ms slowest 5%
- Last check
- Passed
- 15 min ago, next in 12 min
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://ton.halowerk.com/v1/script-adherence
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/script-adherence
content-type: application/json
{
"agent_speakers": [
"Agent"
],
"script": [
"Thank you for calling Example Energy",
"Could I have your customer number",
"Can I help you with anything else",
"Thank you for your patience"
],
"transcript": "Agent: Good morning, thank you for calling Example Energy, my name is Sam.\nCustomer: Hi, my bill is too high.\nAgent: Can I have your customer number please?\nAgent: Is there anything else I can help you with?"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_speakers | array of string | No | |
check_order | boolean | No | Default: true. |
min_score | number | No | Default: 0.75. |
script | array of string or object | Yes | |
segments | array of object | No | |
time_unit | string | No | One of: auto, s, ms. Default: "auto". |
transcript | string or object or array | No |
Example response
The provider's example. We can't check it without paying.
Example response, 97 lines
{
"limitations": [
"Fuzzy wording match, not meaning: a step said in very different words is not found; add variants.",
"ASR errors lower scores; check excerpts before acting."
],
"result": {
"checked_speakers": [
"Agent"
],
"coverage": {
"covered": 3,
"ratio": 0.75,
"required_covered": 3,
"required_ratio": 0.75,
"required_total": 4,
"total": 4
},
"late": [],
"min_score": 0.75,
"missing_required": [
"step_4"
],
"out_of_order": [],
"steps": [
{
"covered": true,
"id": "step_1",
"match": {
"excerpt": "thank you for calling Example Energy",
"matched_variant": "Thank you for calling Example Energy",
"score": 1,
"segment": 0,
"speaker": "Agent"
},
"out_of_order": false,
"required": true,
"score": 1,
"text": "Thank you for calling Example Energy"
},
{
"covered": true,
"id": "step_2",
"match": {
"excerpt": "customer number",
"matched_variant": "Could I have your customer number",
"score": 1,
"segment": 2,
"speaker": "Agent"
},
"out_of_order": false,
"required": true,
"score": 1,
"text": "Could I have your customer number"
},
{
"covered": true,
"id": "step_3",
"match": {
"excerpt": "Can I have your customer number please? … Is there anything else I can help",
"matched_variant": "Can I help you with anything else",
"score": 0.95,
"segment": 2,
"speaker": "Agent"
},
"out_of_order": false,
"required": true,
"score": 0.95,
"text": "Can I help you with anything else"
},
{
"best_candidate": {
"excerpt": "thank",
"matched_variant": "Thank you for your patience",
"score": 0.5,
"segment": 0,
"speaker": "Agent"
},
"covered": false,
"id": "step_4",
"match": null,
"required": true,
"score": 0.5,
"text": "Thank you for your patience"
}
],
"transcript": {
"format": "plain_text",
"segments": 4,
"speakers": [
"Agent",
"Customer"
]
}
},
"service": "script-adherence",
"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/script-adherence' \
-H 'content-type: application/json' \
--data-raw '{"agent_speakers":["Agent"],"script":["Thank you for calling Example Energy","Could I have your customer number","Can I help you with anything else","Thank you for your patience"],"transcript":"Agent: Good morning, thank you for calling Example Energy, my name is Sam.\nCustomer: Hi, my bill is too high.\nAgent: Can I have your customer number please?\nAgent: Is there anything else I can help you with?"}'
# 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/script-adherence' \
-H 'content-type: application/json' \
--data-raw '{"agent_speakers":["Agent"],"script":["Thank you for calling Example Energy","Could I have your customer number","Can I help you with anything else","Thank you for your patience"],"transcript":"Agent: Good morning, thank you for calling Example Energy, my name is Sam.\nCustomer: Hi, my bill is too high.\nAgent: Can I have your customer number please?\nAgent: Is there anything else I can help you with?"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: 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%2Fscript-adherence&method=POST
const res = await pay("https://ton.halowerk.com/v1/script-adherence", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"agent_speakers": [
"Agent"
],
"script": [
"Thank you for calling Example Energy",
"Could I have your customer number",
"Can I help you with anything else",
"Thank you for your patience"
],
"transcript": "Agent: Good morning, thank you for calling Example Energy, my name is Sam.\nCustomer: Hi, my bill is too high.\nAgent: Can I have your customer number please?\nAgent: Is there anything else I can help you with?"
}),
});
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/script-adherence",
json={
"agent_speakers": [
"Agent",
],
"script": [
"Thank you for calling Example Energy",
"Could I have your customer number",
"Can I help you with anything else",
"Thank you for your patience",
],
"transcript": "Agent: Good morning, thank you for calling Example Energy, my name is Sam.\nCustomer: Hi, my bill is too high.\nAgent: Can I have your customer number please?\nAgent: Is there anything else I can help you with?",
},
)
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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 15 min ago | Passed | 402 | 39 ms | $0.02 |
| 11 h ago | Passed | 402 | 121 ms | $0.02 |
| 24 h ago | Passed | 402 | 41 ms | $0.02 |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 118 ms | $0.02 |
Show 10 older checks
| 5 days ago | Passed | 402 | 164 ms | $0.02 |
| 5 days ago | Passed | 402 | 129 ms | $0.02 |
| 6 days ago | Passed | 402 | 177 ms | $0.02 |
| 6 days ago | Passed | 402 | 120 ms | $0.02 |
| 6 days ago | Passed | 402 | 145 ms | $0.02 |
| 7 days ago | Passed | 402 | 156 ms | $0.02 |
| 7 days ago | Passed | 402 | 1.2 s | $0.02 |
| 7 days ago | Passed | 402 | 128 ms | $0.02 |
| 8 days ago | Passed | 402 | 152 ms | $0.02 |
| 8 days ago | Passed | 402 | 124 ms | $0.02 |