{"uid":"cap_YoMOYCQ9W2GJHMP3gxBHJ","slug":"anicca-emotion-detector-a03abbc3","name":"Anicca Emotion Detector","description":"Small paid JSON tools for autonomous agents, settled in USDC over x402.","url":"https://x402-agents-production.up.railway.app/emotion-detector","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":2000,"minLength":1},"context":{"type":"string","maxLength":500},"language":{"enum":["en","ja"],"type":"string","default":"en","description":"Output language."}}},"responseSchema":{"type":"json","example":{"valence":"negative","intensity":"medium","confidence":0.86,"emotion_id":"emo_a1b2c3","safe_t_flag":false,"primary_emotion":"anxiety","response_strategy":"Acknowledge the uncertainty, then identify one controllable next step.","secondary_emotion":"hope"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YymULiOFpVRPWSyDubV06","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text to detect primary and secondary emotions, valence, intensity, and confidence, with optional response strategy suggestions.","exampleAgentPrompt":"Analyze the emotion in this message — 'I keep second-guessing my decision and I don't know how to move forward' — and tell me the primary and secondary emotions, whether it's positive or negative, how intense it is, and what response strategy you'd suggest.","exampleUseCases":[{"title":"Mental health chatbot emotional triage","prompt":"The user just sent me this message: 'I feel like nothing I do ever works out and I'm exhausted trying.' Can you detect the primary and secondary emotions, the valence, and whether there's a safe-T flag I should be aware of?"},{"title":"Customer support tone detection","prompt":"Classify the emotion in this support ticket text: 'I've been waiting three weeks and still no response — this is unacceptable.' Give me the emotional valence, intensity, and a suggested response strategy."},{"title":"Japanese-language emotion analysis","prompt":"Analyze the emotion in this Japanese-language user input and return the results in Japanese: '最近、何をしても楽しくなくて、疲れています。' Tell me the primary emotion, valence, and confidence level."}],"resultDescription":"Returns a JSON object with primary_emotion, secondary_emotion, valence (positive/negative/neutral), intensity (low/medium/high), confidence score (0-1), a unique emotion_id, a boolean safe_t_flag indicating potential distress, and a response_strategy string suggesting how to respond empathetically.","failureModes":["Text too short or empty — validation error on minLength:1","Text exceeds 2000 characters — rejected with validation error","Invalid language enum value (only 'en' or 'ja' are supported)","Payment failure over x402 protocol — 402 status returned if USDC payment not settled","Model uncertainty for ambiguous or very short texts may yield low confidence scores","Context field exceeding 500 characters rejected"],"whenToPreferThis":"Choose this endpoint when you need fine-grained emotion detection beyond simple positive/negative sentiment, including secondary emotions, intensity levels, safe-T distress flags, and actionable response strategies. Particularly suited for conversational AI agents, mental health applications, or customer support bots that need to respond empathetically. Supports both English and Japanese output natively.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:33:07.378Z","isFirstParty":false}