返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
d

dialogflow-cx-nlu

Manage intents and entity types in Google Dialogflow CX via REST API. Use for creating, updating, and managing natural language understanding components. Supports v3beta1 API.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
288
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

dialogflow-cx-nlu

# Dialogflow CX NLU Manage intents and entity types in Google Dialogflow CX via REST API for natural language understanding. ## Prerequisites - Google Cloud project with Dialogflow CX API enabled - Service account or OAuth credentials with Dialogflow API access - `gcloud` CLI authenticated OR bearer token ## Authentication ### Option 1: gcloud CLI (recommended) ```bash gcloud auth application-default login TOKEN=$(gcloud auth print-access-token) ``` ### Option 2: Service Account ```bash export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json" TOKEN=$(gcloud auth application-default print-access-token) ``` ## API Base URL ``` https://dialogflow.googleapis.com/v3beta1 ``` Regional endpoints available: - `https://{region}-dialogflow.googleapis.com` (e.g., `us-central1`, `europe-west1`) ## Common Operations ### List Intents ```bash curl -X GET \ "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/intents" \ -H "Authorization: Bearer ${TOKEN}" ``` ### Create Intent ```bash curl -X POST \ "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/intents" \ -H "Authorization: Bearer ${TOKEN}" \ -H "Content-Type: application/json" \ -d '{ "displayName": "Book Flight", "trainingPhrases": [ { "parts": [{"text": "I want to book a flight"}], "repeatCount": 1 } ] }' ``` ### List Entity Types ```bash curl -X GET \ "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/entityTypes" \ -H "Authorization: Bearer ${TOKEN}" ``` ### Create Entity Type ```bash curl -X POST \ "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/entityTypes" \ -H "Authorization: Bearer ${TOKEN}" \ -H "Content-Type: application/json" \ -d '{ "displayName": "Cities", "kind": "KIND_LIST", "entities": [ {"value": "New York"}, {"value": "Los Angeles"} ] }' ``` ## Key Resources | Resource | Description | |----------|-------------| | **Intents** | Classify user utterances and extract parameters | | **Entity Types** | Define structured data extraction patterns | ## Quick Reference For detailed API reference: - **Intents**: See [references/intents.md](references/intents.md) - **Entity Types**: See [references/entities.md](references/entities.md) ## Scripts - `scripts/nlu.py` — CLI wrapper for intents and entity types operations ### Usage ```bash python scripts/nlu.py list-intents --agent AGENT_NAME python scripts/nlu.py create-intent --agent AGENT_NAME --intent "Book Flight" --phrases "book a flight,I want to fly" python scripts/nlu.py list-entities --agent AGENT_NAME python scripts/nlu.py create-entity --agent AGENT_NAME --name "Cities" --values "New York,Los Angeles" ``` ## Tips - Use training phrases that cover various ways users might express the intent - Entity types can be system (built-in) or custom - Use KIND_MAP for entities with synonyms, KIND_LIST for simple lists

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dialogflow-cx-nlu-1776287949 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 dialogflow-cx-nlu-1776287949 技能

通过命令行安装

skillhub install dialogflow-cx-nlu-1776287949

下载

⬇ 下载 dialogflow-cx-nlu v1.0.0(免费)

文件大小: 5.58 KB | 发布时间: 2026-4-16 16:38

v1.0.0 最新 2026-4-16 16:38
Initial release of dialogflow-cx-nlu skill.

- Enables management of Dialogflow CX intents and entity types via REST API (v3beta1).
- Provides API usage examples for listing and creating intents and entity types.
- Includes authentication instructions for gcloud CLI and service accounts.
- Offers a CLI Python script for common NLU operations.
- Includes tips, quick references, and links to detailed documentation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部