{"uid":"cap_g4PmNq578KZDvx83KcfDL","slug":"convrgent-ai-f2dcacaa","name":"convrgent.ai Emotional & Cognitive State Detection","description":"Current emotional and cognitive state detection from recent messages. Detects stress, confidence, withdrawal, enthusiasm across 12 emotion categories and 4 quadrants. With vault profile: baseline delta comparison.","url":"https://convrgent.ai/api/kyh/state","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"required":["messages"],"properties":{"context":{"type":"object"},"human_id":{"type":"string","description":"Optional vault profile ID for baseline comparison"},"messages":{"type":"array","items":{"type":"string"},"description":"Recent messages from the human"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"cognitive_state":{"focus":0.5,"openness":0.3,"decision_readiness":0.2},"emotional_state":{"primary":{"emotion":"uncertainty","intensity":0.65},"quadrant":"low-arousal-negative","secondary":{"emotion":"withdrawal","intensity":0.4}},"recommendations":["Give space before follow-up","Offer concrete options rather than open-ended questions"]}},"example":{"request":{"legalName":"John Michael Smith","birth_date":"1990-06-15","commonName":"John Smith","recentMessages":[{"text":"I'm feeling a bit overwhelmed with the current workload","context":"team standup","timestamp":"2024-01-15T10:30:00Z"},{"text":"Things could be better, but I'm managing the deadlines","context":"one-on-one check-in","timestamp":"2024-01-15T14:00:00Z"},{"text":"I hope we can get some clarity on upcoming changes soon","context":"slack message","timestamp":"2024-01-15T16:45:00Z"}]},"response":{"arousal":0.68,"signals":{"hedgingLevel":0.3725089339318915,"urgencyLevel":0,"certaintyLevel":0.15517241379310343,"sentimentScore":0,"emotionalDensity":0.2453499676748224,"actionOrientation":0.012208498937565582},"valence":-1,"quadrant":"high_energy_negative","timestamp":"2026-06-19T04:13:32.113Z","agentPrompt":"Current state analysis: stressed (high energy negative). Receptivity: 47/100. Valence: negative. Approach: Calm and grounding. Acknowledge the emotion before problem-solving. Avoid: additional requests, criticism, deadlines.","receptivity":47,"emotionScores":{"calm":0,"angry":0,"anxious":0.3448275862068966,"content":0,"defeated":0,"stressed":0.5172413793103449,"apathetic":0,"confident":0,"energized":0,"withdrawn":0.4,"reflective":0,"enthusiastic":0},"primaryEmotion":"stressed","recommendations":{"urgency":"act_now","toneGuidance":"Steady, empathetic, non-confrontational. Avoid adding pressure.","approachStyle":"Calm and grounding. Acknowledge the emotion before problem-solving.","topicsToAvoid":["additional requests","criticism","deadlines"]}}},"exampleRequest":{"legalName":"John Michael Smith","birth_date":"1990-06-15","commonName":"John Smith","recentMessages":[{"text":"I'm feeling a bit overwhelmed with the current workload","context":"team standup","timestamp":"2024-01-15T10:30:00Z"},{"text":"Things could be better, but I'm managing the deadlines","context":"one-on-one check-in","timestamp":"2024-01-15T14:00:00Z"},{"text":"I hope we can get some clarity on upcoming changes soon","context":"slack message","timestamp":"2024-01-15T16:45:00Z"}]},"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Eo9m3upnJvkBfVKvkQgRA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects current emotional and cognitive state from recent messages across 12 emotion categories and 4 quadrants (stress, confidence, withdrawal, enthusiasm), with optional baseline delta comparison.","exampleAgentPrompt":"Can you check the current emotional and cognitive state of user 'alex_smith_42' based on these three recent messages: 'I'm feeling a bit overwhelmed with work today', 'Things could be better, but I'm managing', and 'I hope tomorrow is a better day' — flag any stress or withdrawal signals across the 12 emotion categories?","exampleUseCases":null,"resultDescription":"Returns a structured emotional and cognitive state assessment covering 12 emotion categories and 4 quadrants (including stress, confidence, withdrawal, and enthusiasm scores). If a vault profile exists for the human_id, also returns a baseline delta showing how current state deviates from their historical norm.","failureModes":["Payment not provided or insufficient — returns x402 payment required error with accepted asset options","Missing human_id or messages array — returns 400 validation error","Empty or too-short messages array — insufficient signal for reliable detection","Vault profile not found for human_id — baseline delta comparison unavailable, returns current state only","Rate limit exceeded — returns 429 too many requests","Invalid human_id format — returns error indicating unrecognized profile identifier"],"whenToPreferThis":"Use this endpoint when you need a real-time snapshot of someone's current emotional and cognitive state from recent messages, especially when you want quadrant-based classification (stress/confidence/withdrawal/enthusiasm) across 12 emotion categories. Prefer this over the full psychological profile endpoint when recency matters and you want a lightweight, fast assessment of current mood rather than a deep personality portrait. Most valuable when paired with a vault profile for baseline delta comparison to understand mood shifts over time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:51:19.307Z","isFirstParty":false}