{"uid":"cap_DfXc6AISza4Aev5kXiHMT","slug":"anicca-x402-intent-router-ed7ab37c","name":"Anicca x402 Intent Router","description":"Intent router for AI agents","url":"https://x402-agents-production.up.railway.app/intent-router","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":2000,"minLength":1},"context":{"type":"string","maxLength":500},"intents":{"type":"array","items":{"type":"string"},"maxItems":20,"minItems":2},"language":{"enum":["en","ja","es","fr","de","zh","ko"],"type":"string","default":"en"}}},"responseSchema":{"type":"json","example":{"entities":[{"type":"date","value":"Friday"}],"intent_id":"int_a1b2c3","reasoning":"The user asks to move an existing appointment.","confidence":0.97,"matched_intent":"reschedule","secondary_intent":"book","language_detected":"en","secondary_confidence":0.08}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A4i8LsECfgIUqvgKrSuPS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies free-text input against a caller-supplied list of intent labels, returning the best-matched intent with confidence score and extracted entities, paid per-call in USDC via x402.","exampleAgentPrompt":"Route this message — 'I need to push my meeting to next Thursday' — against these intents: ['reschedule', 'cancel', 'book', 'confirm', 'query'] and tell me which one matches best and how confident you are, in English.","exampleUseCases":[{"title":"Chatbot support ticket routing","prompt":"I have a customer message: 'My order hasn't arrived and I want a refund.' Route it against these intents: ['refund_request', 'order_status', 'complaint', 'general_inquiry', 'cancel_order'] and tell me the top match with confidence."},{"title":"Appointment rescheduling detection","prompt":"Classify this patient message — 'Can I move my appointment from Monday to Wednesday afternoon?' — against ['book', 'reschedule', 'cancel', 'confirm', 'no_show'] and pull out any date entities mentioned."},{"title":"E-commerce action intent detection","prompt":"Figure out what this shopper wants: 'Do you have the blue version in size medium? I'd like to grab two.' Match it to one of these intents: ['product_search', 'add_to_cart', 'check_inventory', 'checkout', 'track_order'] with a confidence score, in English."}],"resultDescription":"Returns a JSON object containing the matched intent label and a unique intent ID, a confidence score (0–1), an optional secondary intent with its own confidence, a reasoning string explaining the classification, a list of extracted entities (type and value), and the detected language of the input.","failureModes":["Fewer than 2 intents provided — request rejected","Text exceeds 2000 characters — validation error","Unsupported language code provided — enum mismatch error","Payment not settled via x402 — 402 Payment Required response","Low confidence match when input is ambiguous across intents","Context string exceeds 500 characters — validation error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, per-call intent classification with entity extraction that is billed micropayment-style in USDC via x402, making it ideal for AI agent pipelines that must pay only for what they use. It suits scenarios where you supply your own intent taxonomy (2–20 labels) and need structured routing decisions with confidence scores rather than a fixed, pre-trained classifier. Prefer it over heavyweight NLP APIs when you want zero infrastructure, multilingual support, and transparent per-call cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:40:23.197Z","isFirstParty":false}