# AllTheBot Sentiment Analysis

> AllTheBot Sentiment Analysis is a paid API for AI agents from velux.taild4d007.ts.net:8443, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-10).

Analyzes a text passage and returns a sentiment label (positive/negative/neutral), a numeric score, a reason, and a confidence value — paid per call in USDC on Base via x402.

## Facts

- Endpoint: GET https://velux.taild4d007.ts.net:8443/x402/sentiment?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-sentiment-analysis-120fac05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WUk_J5iLScAybdvPukjuS

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 allthebot-sentiment-analysis-120fac05
```

Example prompt: Can you analyze the sentiment of this customer review and tell me the label, score, and confidence: 'The delivery was two days late and the packaging was completely crushed — I'm really disappointed.'?

## When to prefer this

Choose this endpoint when you need a structured sentiment result (label + numeric score + reason + confidence) for a single text passage up to 4000 characters, paid per-call with no API key setup. It is well-suited for agent pipelines that handle customer feedback, social media monitoring, or content moderation at low volume where per-call USDC payment via x402 is acceptable. Prefer alternatives if you need batch processing of thousands of texts, require on-premise inference, or cannot use crypto micropayments.

## Known failure modes

- Text exceeds 4000-character limit — request rejected or truncated
- Payment not completed via x402 — 402 Payment Required response
- Empty or missing `text` field — validation error
- Ambiguous or very short text — low confidence score returned
- Network timeout on the Tailscale endpoint — connection error

## How this service works

Sentiment analysis of a text: positive / negative / neutral / mixed, score from -1 to 1, confidence and short reason. Any language, JSON output.

## Output

Returns a JSON object with: `label` (e.g. 'positive', 'negative', 'neutral'), `score` (float from roughly -1.0 to +1.0 indicating sentiment polarity and intensity), `reason` (a brief natural-language explanation of why the sentiment was assigned), and `confidence` (float 0–1 indicating model certainty).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "maxLength": 4000
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "label": "negative",
   "score": -0.7,
   "reason": "...",
   "confidence": 0.9
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-sentiment-analysis-120fac05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from velux.taild4d007.ts.net:8443](https://www.zero.xyz/host/velux.taild4d007.ts.net%3A8443/llms.txt)
