# NLP and Entity Extraction Procurement Decision Procedure

> NLP and Entity Extraction Procurement Decision Procedure is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns a structured decision procedure guiding agents on whether to use paid structured NLP extraction, free regex/heuristic parsing, or inline LLM extraction for a given document batch.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/agent-facing-decision-procedure-for-natural-lang
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nlp-and-entity-extraction-procurement-decision-procedure-8e217d65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3FwD5VBX9p55hFofTb3ud

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 nlp-and-entity-extraction-procurement-decision-procedure-8e217d65
```

Example prompt: I have a batch of documents that need named entity and relation extraction — can you run the NLP extraction procurement decision procedure to tell me whether I should pay for a structured API like Diffbot, use regex parsing, or just do it inline with an LLM, and give me the cost breakdown?

## When to prefer this

Use this endpoint when an agent needs to make an autonomous, cost-aware decision about which NLP extraction rail to use before committing to a paid pipeline. It is most valuable when document batches vary in structural complexity (ranging from plain text search to cross-document entity resolution) and the agent must balance cost against extraction quality. Prefer this over hardcoded heuristics or manual engineering decisions when operating in agentic or automated document processing workflows.

## Known failure modes

- Payment not included or insufficient (HTTP 402): call requires $0.002 USDC payment via x402 protocol
- Invalid query parameter values (e.g. unsupported topic string) may yield a generic or fallback procedure
- Service unavailability on the ascii.dev host returns no response
- Meta=1 returns free metadata JSON without a decision procedure result
- Malformed GET request returns error with ok: false

## How this service works

Decision procedure for an agent deciding whether to pay for structured NLP extraction (diffbot-style entity, sentiment, and relation extraction) versus free regex or heuristic parsing versus inline LLM extraction. Ordered workflow: score the document batch by structure need tier (0 plain text search is enough, 1 named entities needed, 2 typed relations and entity graphs needed, 3 cross-document entity resolution needed), estimate per-document cost on each rail in USDC, compare against an inline

## Output

Returns a JSON object containing a decision procedure prose brief for agents, the recommended extraction rail, the structure need tier score (0-3), a per-document cost estimate for each rail in USDC, the generation source (llm, reasoning, or deterministic), an ISO-8601 timestamp, and the service slug and provider metadata.

## 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",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "NLP and entity extraction procurement decision procedure paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "strin
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nlp-and-entity-extraction-procurement-decision-procedure-8e217d65/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
