{"uid":"cap_SkwXBL4jBfDWyHmTpJbSU","slug":"brainiac-customer-support-escalation-detector-c9925000","name":"BRAINIAC Customer Support Escalation Detector","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/escalation-detect?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":"checked","tickets":[{"id":"t1","row":1,"rule":"escalation_phrase","detail":"The customer text contains: lawyer.","potential":true},{"id":"t2","row":2,"rule":"","detail":"No escalation signal was found in the supplied text.","potential":false}],"checkedAt":"2026-11-03T12:00:00.000Z","escalated":false,"actionTaken":false,"limitations":["No support system was contacted or changed.","A ticket is not marked resolved, and no reply is sent.","Policies, account details, and customer history are not invented.","A category, priority, or escalation flag comes only from the supplied text and the documented rules.","A similar ticket is a suggestion with a confidence level, not a merged case."],"ticketCount":2,"issueResolved":false,"ticketsModified":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_CFBVuGcrgdsdITeLjC3kz","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":"Analyzes customer support tickets or conversation messages to detect escalation signals such as legal threats, churn intent, or high-severity language","exampleAgentPrompt":"Can you check these support tickets and tell me which ones have escalation signals — like legal threats, mentions of lawyers, or strong churn intent? Here are the tickets: ticket t1 from customer John, 'I'm going to get my lawyer involved if this isn't fixed today', and ticket t2 from Sarah, 'Thanks for the help, that resolved it.'","exampleUseCases":[{"title":"Legal threat detection in support queue","prompt":"I have a batch of open support tickets I need you to scan — tell me which ones contain legal threats or mentions of lawyers, regulators, or chargebacks so I can escalate them to my senior team immediately."},{"title":"Churn risk identification before renewal","prompt":"Can you go through these customer support conversations and flag any where the customer sounds like they're about to cancel or leave? I want to get ahead of it before their subscription renews."},{"title":"Automated triage for high-severity messages","prompt":"Here's a JSON export of the last 50 support messages from our help desk. Run escalation detection on them and give me back which ticket IDs are flagged, what rule triggered, and the detail for each one."}],"resultDescription":"Returns a JSON object with a list of evaluated tickets each labeled with potential escalation (true/false), the rule that triggered (e.g. 'escalation_phrase'), a human-readable detail explaining why, plus top-level flags for whether any ticket was escalated, whether an action was taken, whether tickets were modified, and a checkedAt timestamp. Also includes a limitations array clarifying what the service did NOT do (e.g. did not contact any support system).","failureModes":["Empty or malformed ticket input returns a validation error","Text exceeding maxLength limits (8000 chars per message, 200 tickets max) is rejected","No escalation signals found returns potential:false for all tickets with empty issues array","Ambiguous or low-signal text may produce false negatives (missed escalations)","Supplying no tickets, messages, text, json, or csv results in an error due to missing input"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-account, pay-per-call escalation signal without integrating a full CRM or helpdesk platform. Ideal for AI agents doing real-time triage, batch scanning of support queues, or automated routing workflows where the agent needs to know which tickets require human intervention. Prefer this over general-purpose LLM prompting when you want consistent rule-based escalation detection with explicit rule labels and structured output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:35:34.912Z","isFirstParty":false,"canonicalSlug":"brainiac-customer-support-escalation-detector-c9925000"}