360 Secure SkillHub
360 安全技能中心

Openclaw

通过远程 EmotionWise 接口分析文本情绪与讽刺,返回情绪标签及置信度、讽刺标记与分数,并给出面向开发者的简短解读;支持英语和西班牙语,需配置 API Key,并包含 401/403、429、5xx 的错误处理提示。

timexicali
timexicali
热度 60.86
最近更新 2026-05-11 17:27:16
分类:数据依赖:第三方 API应用场景:数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add emotionwise
Metadata
name
emotionwise
description
Analyze text for emotions and sarcasm using the EmotionWise API (28 labels, EN/ES).
metadata
{"openclaw":{"emoji":"🧠","homepage":"https://emotionwise.ai","requires":{"env":["EMOTIONWISE_API_KEY"]},"primaryEnv":"EMOTIONWISE_API_KEY"}}
user-invocable
true

EmotionWise Skill

Use this skill when the user asks to:

  • detect emotions in text
  • detect sarcasm in text
  • summarize emotional trends across multiple messages

API

Endpoint: POST https://api.emotionwise.ai/api/v1/tools/emotion-detector

Headers:

  • X-API-Key: $EMOTIONWISE_API_KEY
  • Content-Type: application/json

Body:

{ "message": "<text>" }

Response (expected fields)

{
  "detected_emotions": ["joy", "admiration"],
  "confidence_scores": { "joy": 0.87, "admiration": 0.72 },
  "sarcasm_detected": false,
  "sarcasm_score": 0.04
}

Output format

Return:

  • top emotions with confidence
  • sarcasm flag + score
  • short practical interpretation for developer use

Error handling

  • 401/403: Tell the user API key is missing/invalid and suggest reconfiguration.
  • 429: Tell the user quota/rate limit was hit and suggest retry later.
  • 5xx: Tell the user the API is temporarily unavailable and suggest retry.