# BRAINIAC Customer Enquiry Classifier

> BRAINIAC Customer Enquiry Classifier is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-11).

Classifies inbound customer enquiries from leads into types (emergency, quote, booking, etc.) and returns counts and matched keywords

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/local-lead-operations/customer-enquiry-classify?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-customer-enquiry-classifier-856762e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mfL7Y2OZj3xHh3Uy6WnD4

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 brainiac-customer-enquiry-classifier-856762e5 -d '<json body>'
```

Example prompt: I have a batch of new customer enquiries from my plumbing business — can you classify each one as emergency, quote request, or booking, and tell me how many of each type came in? Here are the enquiry texts and lead IDs.

## When to prefer this

Use this endpoint when you have raw customer enquiry text from leads and need to triage or route them by intent type (emergency, quote, booking) without connecting to a live CRM or sending any messages. It is ideal for local/trades businesses processing batches of inbound web, email, or phone enquiries. Prefer this over a generic text classifier when you want CRM-aware context (lead IDs, channels, quotes, calls) alongside classification results, and when you need transparent limitations and no side effects.

## Known failure modes

- Missing or empty enquiry data returns an empty items array with zero counts
- Enquiries with no matching keywords may default to a low-confidence classification
- Timestamps missing from input are not invented — response delays and ages will be absent
- Input exceeding maxLength limits (200,000 chars for text/CSV/JSON) will be rejected
- Malformed file base64 or unsupported mediaType will cause input validation failure
- Overly ambiguous enquiry text may produce low-confidence or misclassified results

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a list of classified enquiry items, each with an assigned kind (e.g. emergency, quote, booking), matched keyword, channel, confidence level, and whether a conversion was claimed. Also includes aggregate counts per kind, a status field, a checkedAt timestamp, and a limitations array explaining what the classifier did and did not do (no messages sent, no CRM accessed, no timestamps invented).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "calls": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "at": {
      "type": "string",
      "maxLength": 40
     },
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "leadId": {
      "type": "string",
      "maxLength": 80
     },
     "missed": {
      "type": "boolean"
     },
     "status": {
      "type": "string",
      "maxLength": 80
     },
     "duration": {
      "type": "number",
      "maximum": 86400,
      "minimum": 0
     },
     "direction": {
      "type": "string",
      "maxLength": 40
     }
    },
    "additionalProperties": false
   },
   "maxItems": 400
  },
  "leads": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "name": {
      "type": "string",
      "maxLength": 160
     },
     "email": {
      "type": "string",
      "maxLength": 160
     },
     "phone": {
      "type": "string",
      "maxLength": 40
     },
     "value": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "source": {
      "type": "string",
      "maxLength": 120
     },
     "status": {
      "type": "string",
      "maxLength": 80
     },
     "received": {
      "type": "string",
      "maxLength": 40
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "quotes": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "sent": {
      "type": "string",
      "maxLength": 40
     },
     "amount": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "leadId": {
      "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "E-1",
    "kind": "emergency",
    "text": "Urgent boiler leak, no hot water",
    "leadId": "L-1",
    "channel": "web",
    "matched": "urgent",
    "received": "2026-11-04T08:00:00.000Z",
    "confidence": "token",
    "conversionClaimed": false
   },
   {
    "id": "E-2",
    "kind": "quote",
    "text": "Can I get a quote for a new bathroom?",
    "leadId": "L-2",
    "channel": "email",
    "matched": "quote",
    "received": "",
    "confidence": "token",
    "conversionClaimed": false
   },
   {
    "id": "E-3",
    "kind": "booking",
    "text": "Please book an appointment next week",
    "leadId": "L-3",
    "channel": "phone",
    "matched": "book",
    "received": "",
    "confidence": "token",
    "conversionClaimed": false
   }
  ],
  "counts": [
   {
    "kind": "emergency",
    "count": 1
   },
   {
    "kind": "quote",
    "count": 1
   },
   {
    "kind": "booking",
    "count": 1
   }
  ],
  "status": "classified",
  "callMade": false,
  "findings": [],
  "checkedAt": "2026-11-04T17:00:00.000Z",
  "crmAccessed": false,
  "limitations": [
   "Leads, calls, quotes, responses, and enquiries are copied only from labeled fields supplied by the caller.",
   "Response delays and quote ages use only supplied timestamps. Missing times are not invented.",
   "Priority uses transparent rules on those records. It does not predict conversion.",
   "No message is sent, no call is placed, and no CRM account is accessed.",
   "An unconverted quote means no outcome was recorded in the request, not that the job is lost forever."
  ],
  "messageSent": false,
  "conversionClaimed": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-customer-enquiry-classifier-856762e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
