360 Secure SkillHub
360 安全技能中心

intent-router

该 Skill 将文本分类到用户给定的意图列表,返回匹配意图、置信度、推理、次要意图和实体提取结果。输入支持文本、意图数组、语言提示和上下文,输出为 JSON。需先安装 awal 并登录,然后通过 x402 按次付费调用外部分类 API。

daisuke134
daisuke134
热度 85.95
最近更新 2026-05-17 13:04:58
分类:效率依赖:代码执行 / 第三方 API应用场景:数据处理 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add intent-router
Metadata
name
intent-router
description
Classify text into custom intents with confidence scoring and entity extraction. Use when: intent classification, message routing, multi-agent orchestration, NLU, text classification. Triggers: intent, classify, route, NLU, categorize.
version
1.0.0
author
Daisuke134

intent-router

Classify text into your custom intent list with confidence scoring and entity extraction. Powered by x402 — no API keys needed.

Prerequisites

npm install -g awal@2.0.3
awal auth login

Usage

npx awal@2.0.3 x402 pay \
  https://anicca-proxy-production.up.railway.app/api/x402/intent-router \
  -X POST \
  -d '{"text":"I want to book a flight to Tokyo next week","intents":["booking","complaint","question","feedback","cancellation"],"language":"en"}'

Price

$0.005 USDC per request (Base network)

Input Schema

Field Type Required Description
text string (max 2000) Yes Text to classify
intents string[] (2-20 items) Yes Candidate intent list
language enum (en|ja|es|fr|de|zh|ko) No (default: en) Language hint
context string (max 500) No Additional context

Output Schema

{
  "intent_id": "int_a1b2c3",
  "matched_intent": "booking",
  "confidence": 0.95,
  "reasoning": "The text explicitly mentions wanting to book a flight.",
  "secondary_intent": "question",
  "secondary_confidence": 0.12,
  "entities": [
    {"type": "location", "value": "Tokyo"},
    {"type": "datetime", "value": "next week"}
  ],
  "language_detected": "en"
}