# Commerce Intent Local Text Classifier

> Commerce Intent Local Text Classifier is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Trains a naive-Bayes text classifier on up to 200 labelled commerce-intent records and classifies query texts into browse, purchase, return, or other categories

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-commerce-intent-local-classifier?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/commerce-intent-local-text-classifier-cb87b170
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NtT-B-v0DH4O3NPN745XJ

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 commerce-intent-local-text-classifier-cb87b170 -d '<json body>'
```

Example prompt: Train a local naive-Bayes commerce intent classifier on my 12 labelled text records — examples of browse, purchase, return, and other messages — then classify these two new query texts: 'I want to see what shoes you have' and 'how do I send this back?'

## When to prefer this

Choose this endpoint when you need a fast, cheap, local text classification baseline for commerce intent without requiring a hosted model or foundation-model API. Ideal for prototyping, evaluating labelled datasets of up to 200 records, or building simple routing logic for browse/purchase/return/other signals. Not suitable when you need high accuracy at scale, multi-class beyond these four categories, or a persistent hosted model.

## Known failure modes

- Fewer than 2 records supplied — minimum input not met
- More than 200 records supplied — exceeds maximum allowed
- Text exceeds 1000 character limit per record — truncation or rejection
- Invalid or missing 'actual' label value not in enum — validation error
- Fewer than 1 or more than 20 query texts supplied — out of range
- Poorly balanced training data leads to low-accuracy classifier — model quality degrades silently
- Payment failure via x402 — call not executed

## How this service works

Commerce intent - Train local text baseline and classify: Train local text baseline and classify for Commerce intent. Up to 200 supplied labelled text records. Local dataset tools, evaluation and small naive-Bayes baselines; no hosted model or foundation-model training. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded train local text baseline and classify deliverable.

## Output

Returns classification predictions for the supplied query texts, assigning each to one of the four commerce intent labels (browse, purchase, return, other), along with evaluation metrics from the locally trained naive-Bayes baseline model.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual"
    ],
    "properties": {
     "id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "text": {
      "type": "string",
      "default": "",
      "maxLength": 1000
     },
     "actual": {
      "enum": [
       "browse",
       "purchase",
       "return",
       "other"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "browse sample document number 0 for this supplied dataset.",
     "actual": "browse"
    },
    {
     "id": "example-0-1",
     "text": "browse sample document number 1 for this supplied dataset.",
     "actual": "browse"
    },
    {
     "id": "example-0-2",
     "text": "browse sample document number 2 for this supplied dataset.",
     "actual": "browse"
    },
    {
     "id": "example-1-0",
     "text": "purchase sample document number 0 for this supplied dataset.",
     "actual": "purchase"
    },
    {
     "id": "example-1-1",
     "text": "purchase sample document number 1 for this supplied dataset.",
     "actual": "purchase"
    },
    {
     "id": "example-1-2",
     "text": "purchase sample document number 2 for this supplied dataset.",
     "actual": "purchase"
    },
    {
     "id": "example-2-0",
     "text": "return sample document number 0 for this supplied dataset.",
     "actual": "return"
    },
    {
     "id": "example-2-1",
     "text": "return sample document number 1 for this supplied dataset.",
     "actual": "return"
    },
    {
     "id": "example-2-2",
     "text": "return sample document number 2 for this supplied dataset.",
     "actual": "return"
    },
    {
     "id": "example-3-0",
     "text": "other sample document number 0 for this supplied dataset.",
     "actual": "other"
    },
    {
     "id": "example-3-1",
     "text": "other sample document number 1 for this supplied dataset.",
     "actual": "other"
    },
    {
     "id": "example-3-2",
     "text": "other sample document number 2 for this supplied dataset.",
     "actual": "other"
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "query_texts": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 1000
   },
   "default": [
    "browse sample"
   ],
   "maxItems": 20,
   "minItem
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/commerce-intent-local-text-classifier-cb87b170/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
