← 返回 Skills 市场
yash-kavaiya

Dialogflow Cx Nlu

作者 Yash Kavaiya · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
318
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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. Sup...
使用说明 (SKILL.md)

\r \r

Dialogflow CX NLU\r

\r Manage intents and entity types in Google Dialogflow CX via REST API for natural language understanding.\r \r

Prerequisites\r

\r

  • Google Cloud project with Dialogflow CX API enabled\r
  • Service account or OAuth credentials with Dialogflow API access\r
  • gcloud CLI authenticated OR bearer token\r \r

Authentication\r

\r

Option 1: gcloud CLI (recommended)\r

gcloud auth application-default login\r
TOKEN=$(gcloud auth print-access-token)\r
```\r
\r
### Option 2: Service Account\r
```bash\r
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"\r
TOKEN=$(gcloud auth application-default print-access-token)\r
```\r
\r
## API Base URL\r
\r
```\r
https://dialogflow.googleapis.com/v3beta1\r
```\r
\r
Regional endpoints available:\r
- `https://{region}-dialogflow.googleapis.com` (e.g., `us-central1`, `europe-west1`)\r
\r
## Common Operations\r
\r
### List Intents\r
```bash\r
curl -X GET \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/intents" \\r
  -H "Authorization: Bearer ${TOKEN}"\r
```\r
\r
### Create Intent\r
```bash\r
curl -X POST \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/intents" \\r
  -H "Authorization: Bearer ${TOKEN}" \\r
  -H "Content-Type: application/json" \\r
  -d '{\r
    "displayName": "Book Flight",\r
    "trainingPhrases": [\r
      {\r
        "parts": [{"text": "I want to book a flight"}],\r
        "repeatCount": 1\r
      }\r
    ]\r
  }'\r
```\r
\r
### List Entity Types\r
```bash\r
curl -X GET \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/entityTypes" \\r
  -H "Authorization: Bearer ${TOKEN}"\r
```\r
\r
### Create Entity Type\r
```bash\r
curl -X POST \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/entityTypes" \\r
  -H "Authorization: Bearer ${TOKEN}" \\r
  -H "Content-Type: application/json" \\r
  -d '{\r
    "displayName": "Cities",\r
    "kind": "KIND_LIST",\r
    "entities": [\r
      {"value": "New York"},\r
      {"value": "Los Angeles"}\r
    ]\r
  }'\r
```\r
\r
## Key Resources\r
\r
| Resource | Description |\r
|----------|-------------|\r
| **Intents** | Classify user utterances and extract parameters |\r
| **Entity Types** | Define structured data extraction patterns |\r
\r
## Quick Reference\r
\r
For detailed API reference:\r
- **Intents**: See [references/intents.md](references/intents.md)\r
- **Entity Types**: See [references/entities.md](references/entities.md)\r
\r
## Scripts\r
\r
- `scripts/nlu.py` — CLI wrapper for intents and entity types operations\r
\r
### Usage\r
```bash\r
python scripts/nlu.py list-intents --agent AGENT_NAME\r
python scripts/nlu.py create-intent --agent AGENT_NAME --intent "Book Flight" --phrases "book a flight,I want to fly"\r
python scripts/nlu.py list-entities --agent AGENT_NAME\r
python scripts/nlu.py create-entity --agent AGENT_NAME --name "Cities" --values "New York,Los Angeles"\r
```\r
\r
## Tips\r
\r
- Use training phrases that cover various ways users might express the intent\r
- Entity types can be system (built-in) or custom\r
- Use KIND_MAP for entities with synonyms, KIND_LIST for simple lists\r
安全使用建议
This skill appears to do what it says — manage Dialogflow CX resources — and the included Python script uses the official google-cloud client libraries. Before installing or running it: 1) Be prepared to provide Google Cloud credentials (gcloud-authenticated access token or a service-account JSON) and grant the service account appropriate Dialogflow IAM roles only (least privilege). 2) Note the registry metadata does not declare these required credentials, so don't assume it will configure or request them automatically. 3) Inspect and run the script in a controlled environment (not with broad or production credentials) the first time to confirm behavior. 4) Ensure you trust the skill source before giving it access to any service-account JSON or long-lived tokens.
功能分析
Type: OpenClaw Skill Name: dialogflow-cx-nlu Version: 1.0.0 The skill bundle is designed to manage Google Dialogflow CX NLU components using official Google Cloud client libraries. The `SKILL.md` provides standard authentication instructions for Google Cloud and `curl` examples for the stated purpose. The `scripts/nlu.py` script implements CRUD operations for intents and entity types, relying on `google-cloud-dialogflow-cx` and `google-auth` libraries. There is no evidence of malicious intent, such as data exfiltration, unauthorized command execution, persistence mechanisms, or prompt injection attempts against the agent to perform actions outside the stated purpose. All operations are aligned with the described functionality.
能力评估
Purpose & Capability
The name/description match the provided code and docs: the SKILL.md and scripts/nlu.py implement listing, creating, updating, and deleting intents and entity types via Dialogflow CX APIs. Requesting Google Cloud credentials (gcloud access token or service account) is appropriate for this functionality. However, the registry metadata lists no required environment variables or primary credential even though the runtime instructions explicitly rely on Google authentication (gcloud token or GOOGLE_APPLICATION_CREDENTIALS).
Instruction Scope
SKILL.md gives concrete curl examples and a CLI usage for scripts/nlu.py that operate only against Dialogflow endpoints and local credential mechanisms (gcloud / service account file). The instructions do not ask the agent to read unrelated system files, send data to third-party endpoints, or perform other out-of-scope actions.
Install Mechanism
There is no install spec (instruction-only), and the included Python script simply recommends installing published packages (google-cloud-dialogflow-cx, google-auth) via pip. No remote downloads from untrusted URLs or archive extraction are present.
Credentials
The runtime legitimately requires Google Cloud credentials (gcloud access token or a service account JSON referenced by GOOGLE_APPLICATION_CREDENTIALS). Those credential requirements are proportional to the skill's purpose, but the skill metadata does not declare any required env vars or a primary credential—this mismatch could cause users to miss the fact that they must provide sensitive Google credentials and the required IAM permissions.
Persistence & Privilege
The skill does not request always: true, does not persist or modify other skills or system-wide settings, and has no install-time privileged operations. It runs as a user-invocable CLI and/or via the provided clients using the caller's Google credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dialogflow-cx-nlu
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dialogflow-cx-nlu 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
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.
元数据
Slug dialogflow-cx-nlu
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. Sup... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 318 次。

如何安装 Dialogflow Cx Nlu?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dialogflow-cx-nlu」即可一键安装,无需额外配置。

Dialogflow Cx Nlu 是免费的吗?

是的,Dialogflow Cx Nlu 完全免费(开源免费),可自由下载、安装和使用。

Dialogflow Cx Nlu 支持哪些平台?

Dialogflow Cx Nlu 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dialogflow Cx Nlu?

由 Yash Kavaiya(@yash-kavaiya)开发并维护,当前版本 v1.0.0。

💬 留言讨论