{"uid":"cap_mfL7Y2OZj3xHh3Uy6WnD4","slug":"brainiac-customer-enquiry-classifier-856762e5","name":"BRAINIAC Customer Enquiry Classifier","description":"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.","url":"https://www.brainiac.software/api/v1/local-lead-operations/customer-enquiry-classify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":{"type":"string","maxLength":80},"outcome":{"type":"string","maxLength":80},"outcomeAt":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":160},"leads":{"type":"number","maximum":1000000000,"minimum":0},"converted":{"type":"number","maximum":1000000000,"minimum":0}},"additionalProperties":false},"maxItems":80},"enquiries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"text":{"type":"string","maxLength":2000},"leadId":{"type":"string","maxLength":80},"channel":{"type":"string","maxLength":80},"received":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":200},"minSample":{"type":"integer","maximum":100000,"minimum":1},"responses":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"leadId":{"type":"string","maxLength":80},"channel":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":400},"quoteLimitDays":{"type":"number","maximum":365,"minimum":0},"responseLimitHours":{"type":"number","maximum":720,"minimum":0}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BRrX4UhjceP8JVft0MTXp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies inbound customer enquiries from leads into types (emergency, quote, booking, etc.) and returns counts and matched keywords","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Triage urgent home service calls","prompt":"I run a boiler repair company and I've got 50 new enquiries from this week. Can you go through them and flag which ones are emergencies, which are quote requests, and which are just booking requests? I'll paste the lead data as JSON."},{"title":"Prioritize quote follow-ups","prompt":"Here's a CSV of customer messages we received over the past month — classify each one by type so I can see how many are asking for quotes versus trying to book a job versus reporting something urgent."},{"title":"Route enquiries to correct team","prompt":"I need to sort our incoming enquiry backlog into categories — emergency, quote, or booking — so I can route them to the right staff member. Here are the enquiry texts, channel info, and lead IDs in JSON format."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-11T12:37:54.533Z","isFirstParty":false,"canonicalSlug":"brainiac-customer-enquiry-classifier-856762e5"}