← Back to Skills Marketplace
yash-kavaiya

Dialogflow Cx Nlu

by Yash Kavaiya · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
318
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dialogflow-cx-nlu
Description
Manage intents and entity types in Google Dialogflow CX via REST API. Use for creating, updating, and managing natural language understanding components. Sup...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dialogflow-cx-nlu
  3. After installation, invoke the skill by name or use /dialogflow-cx-nlu
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug dialogflow-cx-nlu
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 318 downloads so far.

How do I install Dialogflow Cx Nlu?

Run "/install dialogflow-cx-nlu" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dialogflow Cx Nlu free?

Yes, Dialogflow Cx Nlu is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Dialogflow Cx Nlu support?

Dialogflow Cx Nlu is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dialogflow Cx Nlu?

It is built and maintained by Yash Kavaiya (@yash-kavaiya); the current version is v1.0.0.

💬 Comments