Install
openclaw skills install dialogflow-cx-agentsManage agents in Google Dialogflow CX via REST API. Use for creating, listing, updating, and deleting chatbot agents. Supports v3beta1 API.
openclaw skills install dialogflow-cx-agentsManage Google Dialogflow CX agents via REST API.
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" \
-H "Authorization: Bearer ${TOKEN}"
curl -X POST \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"displayName": "My Agent",
"defaultLanguageCode": "en",
"timeZone": "Asia/Kolkata"
}'
curl -X GET \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}" \
-H "Authorization: Bearer ${TOKEN}"
curl -X PATCH \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Updated Agent Name"
}'
curl -X DELETE \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}" \
-H "Authorization: Bearer ${TOKEN}"
| Resource | Description |
|---|---|
| Agents | Top-level container for flows, intents, entity types |
For detailed API reference:
scripts/agents.py — CLI wrapper for agent management operationspython scripts/agents.py list --project PROJECT_ID --location LOCATION
python scripts/agents.py create --project PROJECT_ID --location LOCATION --name "My Agent"
python scripts/agents.py get --project PROJECT_ID --location LOCATION --agent AGENT_ID
python scripts/agents.py update --agent AGENT_NAME --name "New Name"
python scripts/agents.py delete --agent AGENT_NAME
locations/global for multi-region agents