Install
openclaw skills install dialogflow-cx-flowsManage flows and pages in Google Dialogflow CX via REST API. Use for creating and organizing conversation paths within agents. Supports v3beta1 API.
openclaw skills install dialogflow-cx-flowsManage flows and pages in Google Dialogflow CX via REST API for organizing conversation paths.
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}/flows" \
-H "Authorization: Bearer ${TOKEN}"
curl -X POST \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Booking Flow",
"description": "Handles flight booking conversations"
}'
curl -X GET \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows/${FLOW_ID}/pages" \
-H "Authorization: Bearer ${TOKEN}"
curl -X POST \
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows/${FLOW_ID}/pages" \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Collect Destination",
"entryFulfillment": {
"messages": [
{
"text": {
"text": ["Where would you like to fly?"]
}
}
]
}
}'
| Resource | Description |
|---|---|
| Flows | Conversation paths within an agent |
| Pages | States within a flow |
| Transition Routes | Routing logic between pages |
| Versions | Immutable snapshots of flows |
For detailed API reference:
scripts/flows.py — CLI wrapper for flows and pages operationspython scripts/flows.py list-flows --agent AGENT_NAME
python scripts/flows.py list-pages --flow FLOW_NAME
python scripts/flows.py get-flow --flow FLOW_NAME
python scripts/flows.py get-page --page PAGE_NAME