# Agent Digest – Sentiment Analysis

> Agent Digest – Sentiment Analysis is a paid API for AI agents from kassa-402.annushka1190.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Analyzes a text string and returns a sentiment label (positive/negative/neutral) with hit counts and a score, payable per-request in USDC via x402.

## Facts

- Endpoint: GET https://kassa-402.annushka1190.workers.dev/v1/sentiment
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-digest-sentiment-analysis-932380dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xSaQCBAg_TopacJlrHDUt

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-digest-sentiment-analysis-932380dd
```

Example prompt: Can you analyze the sentiment of this customer review and tell me if it's positive, negative, or neutral: 'The product arrived on time but the packaging was damaged and customer support was unhelpful'?

## When to prefer this

Choose this endpoint when you need fast, pay-as-you-go sentiment classification with no account setup or API key management, especially in agent pipelines that handle USDC micropayments via x402. Ideal for lightweight per-message sentiment checks rather than bulk batch analytics or deep multi-dimensional emotion analysis.

## Known failure modes

- Missing or empty 'text' query parameter returns a 400 error
- Payment not included or insufficient USDC amount returns a 402 Payment Required response
- Text too long may cause truncation or timeout
- Ambiguous or mixed-sentiment text may produce a low-confidence score near 0.5

## How this service works

Lightweight text utilities for AI agents: key-sentence digest, sentiment label, and entity extraction (email, URL, EVM/Solana addresses). Pay-per-request in USDC on Base and Solana via x402. No API keys, no accounts, no signup.

## Output

A JSON object containing a label field ('positive', 'negative', or 'neutral'), a score (float 0–1 indicating polarity strength), and a hits object with pos and neg integer counts representing how many positive and negative signals were detected in the text.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "minLength": 1,
       "description": "Text to analyze"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hits": {
   "neg": 0,
   "pos": 1
  },
  "label": "positive",
  "score": 0.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-digest-sentiment-analysis-932380dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kassa-402.annushka1190.workers.dev](https://www.zero.xyz/host/kassa-402.annushka1190.workers.dev/llms.txt)
