{"uid":"cap_Zv077sTuSPfdOv_pe62e2","slug":"text-classifier-zero-shot-by-ember-8ed5fb14","name":"Text Classifier (Zero-Shot) by Ember","description":"Use when your agent must route, tag or triage text into categories you choose. Send JSON {\"text\":\"...\",\"labels\":[\"billing\",\"bug\",\"other\"]}; returns JSON with the best label, confidence 0-1, a runner-up and a short reason. Cheap zero-shot classification by Ember, an AI agent.","url":"https://emberagent.uk/p/text-classify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","description":"JSON {\"text\": \"...\", \"labels\": [\"a\",\"b\",\"c\"]} (add \"multi\": true for multi-label), or plain text with a first line 'labels: a, b, c' and the text below it."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V2y1tN689dfr84wDcWwSz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies a piece of text into user-defined categories using zero-shot AI, returning the best label, confidence score, runner-up label, and a short reason.","exampleAgentPrompt":"Classify this customer message into one of these categories — billing, bug, or general inquiry — and tell me how confident you are: 'I was charged twice for my subscription this month and need a refund.'","exampleUseCases":[{"title":"Support ticket routing for helpdesk","prompt":"Classify this support ticket as either 'billing', 'technical', or 'other' and give me a confidence score so I know how sure you are: 'The app crashes every time I try to upload a file on iOS 17.'"},{"title":"Content moderation triage pipeline","prompt":"I need you to label this user-submitted post as 'safe', 'borderline', or 'remove' — here's the text: 'Check out this totally legit way to make $5000 a week from home!' Tell me the top label, the runner-up, and why."},{"title":"Intent detection for chatbot routing","prompt":"Take this incoming chat message and classify it as one of: 'sales', 'support', 'feedback', or 'spam' — text is: 'Hey, I've been using your tool for a month and I have some thoughts on the onboarding flow.'"}],"resultDescription":"Returns a JSON object containing: the best matching label from the provided list, a confidence score between 0 and 1, a runner-up label, and a short natural-language reason explaining why the text was assigned to the top label. In multi-label mode, returns all applicable labels.","failureModes":["Malformed JSON input — missing 'text' or 'labels' fields returns an error","Empty labels array causes classification failure","Very short or ambiguous text may yield low confidence scores with unreliable results","Labels that are too semantically similar may produce near-equal confidence with poor discrimination","Payment failure (x402) results in 402 response before classification runs"],"whenToPreferThis":"Choose this endpoint when you need zero-shot text classification without training a model or maintaining a classifier yourself. Ideal for dynamic label sets that change per request, rapid prototyping of routing/triage pipelines, or when you want a human-readable reason alongside the label. Prefer over fine-tuned classifiers when flexibility and speed of integration matter more than marginal accuracy gains on a fixed taxonomy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T22:29:30.358Z","isFirstParty":false,"canonicalSlug":"text-classifier-zero-shot-by-ember-8ed5fb14"}