{"uid":"cap_N020nTJ-bZoB8svepnIV3","slug":"brainiac-customer-support-ticket-classifier-0ee52505","name":"BRAINIAC Customer Support Ticket 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/customer-support/ticket-classify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000,"minLength":1},"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/csv","application/json","text/plain"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000,"minLength":1},"text":{"type":"string","maxLength":20000,"minLength":1},"tickets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80,"minLength":1},"body":{"type":"string","maxLength":8000,"minLength":1},"text":{"type":"string","maxLength":8000,"minLength":1},"email":{"type":"string","maxLength":254,"minLength":1},"reply":{"type":"string","maxLength":8000,"minLength":1},"impact":{"type":"string","maxLength":200,"minLength":1},"orderId":{"type":"string","maxLength":80,"minLength":1},"subject":{"type":"string","maxLength":200,"minLength":1},"customer":{"type":"string","maxLength":120,"minLength":1},"messages":{"type":"array","items":{"type":"object","required":["role","text"],"properties":{"role":{"enum":["customer","agent","system"],"type":"string"},"text":{"type":"string","maxLength":4000,"minLength":1}},"additionalProperties":false},"maxItems":40},"severity":{"type":"string","maxLength":40,"minLength":1}},"additionalProperties":false},"maxItems":200},"messages":{"type":"array","items":{"type":"object","required":["role","text"],"properties":{"role":{"enum":["customer","agent","system"],"type":"string"},"text":{"type":"string","maxLength":4000,"minLength":1}},"additionalProperties":false},"maxItems":40},"policies":{"type":"array","items":{"type":"object","required":["id","text"],"properties":{"id":{"type":"string","maxLength":40,"minLength":1},"text":{"type":"string","maxLength":2000,"minLength":1}},"additionalProperties":false},"maxItems":20},"categories":{"type":"array","items":{"type":"object","required":["name","keywords"],"properties":{"name":{"type":"string","maxLength":60,"minLength":1},"keywords":{"type":"array","items":{"type":"string","maxLength":40,"minLength":1},"maxItems":20,"minItems":1}},"additionalProperties":false},"maxItems":20}}},"responseSchema":{"type":"json","example":{"issues":[],"status":"classified","tickets":[{"id":"t1","row":1,"status":"classified","matches":[{"count":2,"terms":"password, log in","category":"access"},{"count":1,"terms":"broken","category":"defect"}],"subject":"Cannot log in","category":"access"},{"id":"t2","row":2,"status":"classified","matches":[{"count":1,"terms":"invoice","category":"billing"}],"subject":"Invoice 104","category":"billing"}],"checkedAt":"2026-11-03T12:00:00.000Z","actionTaken":false,"limitations":["No support system was contacted or changed.","A ticket is not marked resolved, and no reply is sent.","…"],"ticketCount":2,"issueResolved":false,"ticketsModified":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o6kMVE4u8v1vH33oU9RH0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies customer support tickets into categories, priorities, and escalation flags using supplied text, rules, and policies","exampleAgentPrompt":"Classify these customer support tickets into categories — billing, access, and defect — using our refund policy: [policy text]. Here are 10 tickets with subject lines and message bodies; flag any that need escalation and tell me the matched terms for each.","exampleUseCases":[{"title":"Triage incoming helpdesk queue","prompt":"I have 50 new support tickets from today. Can you classify each one into categories — billing, shipping, account access, or bug report — and flag any that look high severity based on the customer's language?"},{"title":"Route tickets by team using custom policies","prompt":"Classify these support messages and assign each one to the right team. Use these three policies I'm attaching: refund policy, escalation policy, and SLA policy. The categories should be: refunds, technical, and general."},{"title":"Audit historical ticket CSV for patterns","prompt":"I have a CSV export of 200 last-month support tickets. Can you classify them into billing, access, defect, and feature-request categories so I can see what issues were most common?"}],"resultDescription":"A JSON object containing each ticket's assigned category, matched terms and their counts, row number, classification status, and any escalation or priority flags. Also includes a top-level summary with total ticket count, whether any action was taken on a support system, and a limitations list clarifying that no live support system was contacted, no replies were sent, and all classifications are derived solely from the supplied text and rules.","failureModes":["Ticket text too long — body exceeds 8000 character limit per ticket","Too many tickets — array exceeds 200-item maximum","CSV or JSON input malformed or exceeds 200,000 character limit","Missing required mediaType or fileBase64 when using file upload","Category list not provided, leading to unconstrained or generic classification","Policy text ambiguous, causing inconsistent category assignments","Payment not completed via x402/USDC, resulting in 402 response before processing"],"whenToPreferThis":"Choose this endpoint when you need to programmatically classify, prioritize, or route customer support tickets at scale without integrating a full helpdesk CRM. It is ideal for pay-per-use, no-account workflows where you want AI-powered ticket triage with custom categories and policies. Prefer it over building your own classifier when you need quick, structured output with matched-term evidence and escalation flags, especially for batch processing up to 200 tickets per call or when working from raw CSV/JSON exports.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:40:16.861Z","isFirstParty":false,"canonicalSlug":"brainiac-customer-support-ticket-classifier-0ee52505"}