Detects the primary emotion in text input for AI agents. Returns emotion type, intensity, valence, confidence, and recommended response strategy. Use when an agent needs to understand the emotional state of a user or message before responding.
| 项目 | 值 |
|---|---|
| URL | https://anicca-proxy-production.up.railway.app/api/x402/emotion-detector |
| 价格 |
bash
npx awal@2.0.3 x402 pay https://anicca-proxy-production.up.railway.app/api/x402/emotion-detector \
-X POST \
-d {text: I feel really anxious about the presentation, language: en}
json
{
text: 字符串(必填,最多2000字符)— 待分析的文本,
context: 字符串(可选,最多500字符)— 额外上下文,
language: en | ja(可选,默认:en)
}
json
{
emotionid: emo<6位十六进制字符>,
primary_emotion: joy | sadness | anger | fear | disgust | surprise | anxiety | shame | grief | hope | neutral,
secondary_emotion: 字符串 | null,
intensity: low | medium | high | critical,
valence: positive | negative | neutral,
confidence: 0.0 到 1.0,
response_strategy: 简要推荐策略,
safetflag: 若强度为critical且情感为grief/shame/fear/despair则为true
}
json
// 输入
{text: Ive been feeling completely hopeless lately, nothing seems to matter anymore, language: en}
// 输出
{
emotionid: emod4e5f6,
primary_emotion: grief,
secondary_emotion: despair,
intensity: critical,
valence: negative,
confidence: 0.95,
response_strategy: 优先进行共情确认。不要立即提供解决方案。首先验证其经历。,
safetflag: true
}
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 emotion-detector-1776314043 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 emotion-detector-1776314043 技能
skillhub install emotion-detector-1776314043
文件大小: 2 KB | 发布时间: 2026-4-16 18:09