# Agent Hub Sentiment & Tone Classifier

> Agent Hub Sentiment & Tone Classifier is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Classifies text as positive, negative, or neutral with a confidence score and one-line reason; supports batches of up to 20 texts per call.

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/sentiment?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-hub-sentiment-tone-classifier-5311d179
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2s32Y-IqJ83ASjnDn1yqr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-hub-sentiment-tone-classifier-5311d179
```

Example prompt: Can you run a sentiment check on these three customer reviews and tell me whether each one is positive, negative, or neutral with a confidence score and a quick reason: 'Love this product!|Shipping was very slow and packaging was damaged|It works fine I guess'?

## When to prefer this

Choose this endpoint when you need fast, lightweight sentiment and tone classification with a human-readable reason, especially for batches of up to 20 texts in a single call. It is ideal for content moderation pipelines, customer feedback triage, or social monitoring workflows where confidence scores and brief explanations matter. Prefer it over heavier NLP APIs when you want a simple positive/negative/neutral label with reasoning rather than deep emotion or entity analysis.

## Known failure modes

- More than 20 texts submitted in one call — request rejected or truncated
- Pipe delimiter missing between texts — treated as a single text
- Empty or whitespace-only text input — may return low-confidence neutral result
- Non-text content (e.g. binary data or URLs only) — unpredictable classification
- Payment not attached or insufficient — 402 Payment Required response

## How this service works

Sentiment and tone classification for text (positive / negative / neutral with confidence, plus a one-line reason). Batch up to 20 texts per call. Also callable as GET with the same fields as query parameters.

## Output

Returns per-text sentiment classification (positive, negative, or neutral), a confidence score (0–1), and a one-line natural language reason explaining the classification — one result object per input text, up to 20 results per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "texts"
     ],
     "properties": {
      "texts": {
       "type": "string",
       "description": "1 to 20 texts; separate items with |"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-hub-sentiment-tone-classifier-5311d179/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
