# Lead Stage Text Classifier – Train & Classify

> Lead Stage Text Classifier – Train & Classify 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-15).

Trains a local naive-Bayes text classifier on up to 200 labelled lead-stage records and classifies new query texts into enquiry, qualified, negotiation, or closed stages.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-lead-stage-local-classifier?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lead-stage-text-classifier-train-classify-f97d3cfe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WB3ShswwmFzohTyq_o4lK

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 lead-stage-text-classifier-train-classify-f97d3cfe -d '<json body>'
```

Example prompt: Train a lead-stage text classifier on my 50 labelled CRM notes — some marked enquiry, qualified, negotiation, or closed — and then classify these 3 new prospect messages: 'interested in a demo', 'ready to sign the contract', 'just browsing your website'.

## When to prefer this

Choose this endpoint when you need a fast, cheap, local naive-Bayes baseline classifier for CRM lead-stage categorisation without access to a hosted model or LLM. Ideal for small datasets (up to 200 records), quick pipeline-stage prototyping, or cost-sensitive automation where $0.01 per run and a bounded, interpretable model are acceptable tradeoffs.

## Known failure modes

- Fewer than 2 labelled records supplied — minimum input requirement not met
- Missing required fields (id, text, actual) in any record — validation error
- Text exceeds 1000-character limit per record — truncation or rejection
- Fewer than 1 or more than 20 query texts supplied — out-of-range error
- Class imbalance in training data leading to poor classification of minority stages
- Payment not processed (402 response) — x402 payment required before classification is run

## How this service works

Lead stage - Train local text baseline and classify: Train local text baseline and classify for Lead stage. 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 predicted lead-stage labels (enquiry, qualified, negotiation, or closed) for each submitted query text, along with evaluation metrics from the trained naive-Bayes model such as accuracy or per-class scores derived from the supplied labelled dataset.

## 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": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "enquiry sample document number 0 for this supplied dataset.",
     "actual": "enquiry"
    },
    {
     "id": "example-0-1",
     "text": "enquiry sample document number 1 for this supplied dataset.",
     "actual": "enquiry"
    },
    {
     "id": "example-0-2",
     "text": "enquiry sample document number 2 for this supplied dataset.",
     "actual": "enquiry"
    },
    {
     "id": "example-1-0",
     "text": "qualified sample document number 0 for this supplied dataset.",
     "actual": "qualified"
    },
    {
     "id": "example-1-1",
     "text": "qualified sample document number 1 for this supplied dataset.",
     "actual": "qualified"
    },
    {
     "id": "example-1-2",
     "text": "qualified sample document number 2 for this supplied dataset.",
     "actual": "qualified"
    },
    {
     "id": "example-2-0",
     "text": "negotiation sample document number 0 for this supplied dataset.",
     "actual": "negotiation"
    },
    {
     "id": "example-2-1",
     "text": "negotiation sample document number 1 for this supplied dataset.",
     "actual": "negotiation"
    },
    {
     "id": "example-2-2",
     "text": "negotiation sample document number 2 for this supplied dataset.",
     "actual": "negotiation"
    },
    {
     "id": "example-3-0",
     "text": "closed sample document number 0 for this supplied dataset.",
     "actual": "closed"
    },
    {
     "id": "example-3-1",
     "text": "closed sample document number 1 for this supplied dataset.",
     "actual": "closed"
    },
    {
     "id": "example-3-2",
     "text": "closed sample document number 2 for this supplied dataset.",
     "actual": "closed"
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "query_texts": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 1000
   },
   "default": [

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lead-stage-text-classifier-train-classify-f97d3cfe/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)
