Install
openclaw skills install dialogflow-cx-nluManage intents and entity types in Google Dialogflow CX via REST API. Use for creating, updating, and managing natural language understanding components. Supports v3beta1 API.
openclaw skills install dialogflow-cx-nluManage intents and entity types in Google Dialogflow CX via REST API for natural language understanding.
gcloud CLI authenticated OR bearer tokengcloud auth application-default login
TOKEN=$(gcloud auth print-access-token)
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"
TOKEN=$(gcloud auth application-default print-access-token)
https://dialogflow.googleapis.com/v3beta1
Regional endpoints available:
https://{region}-dialogflow.googleapis.com (e.g., us-central1, europe-west1)curl -X GET \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/intents" \
-H "Authorization: Bearer ${TOKEN}"
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
}
]
}'
curl -X GET \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/entityTypes" \
-H "Authorization: Bearer ${TOKEN}"
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"}
]
}'
| Resource | Description |
|---|---|
| Intents | Classify user utterances and extract parameters |
| Entity Types | Define structured data extraction patterns |
For detailed API reference:
scripts/nlu.py — CLI wrapper for intents and entity types operationspython 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"