← 返回 Skills 市场
Dialogflow Cx Flows
作者
Yash Kavaiya
· GitHub ↗
· v1.0.0
382
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dialogflow-cx-flows
功能描述
Manage flows and pages in Google Dialogflow CX via REST API. Use for creating and organizing conversation paths within agents. Supports v3beta1 API.
使用说明 (SKILL.md)
\r \r
Dialogflow CX Flows\r
\r Manage flows and pages in Google Dialogflow CX via REST API for organizing conversation paths.\r \r
Prerequisites\r
\r
- Google Cloud project with Dialogflow CX API enabled\r
- Service account or OAuth credentials with Dialogflow API access\r
gcloudCLI 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 Flows\r
```bash\r
curl -X GET \\r
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows" \\r
-H "Authorization: Bearer ${TOKEN}"\r
```\r
\r
### Create Flow\r
```bash\r
curl -X POST \\r
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows" \\r
-H "Authorization: Bearer ${TOKEN}" \\r
-H "Content-Type: application/json" \\r
-d '{\r
"displayName": "Booking Flow",\r
"description": "Handles flight booking conversations"\r
}'\r
```\r
\r
### List Pages\r
```bash\r
curl -X GET \\r
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows/${FLOW_ID}/pages" \\r
-H "Authorization: Bearer ${TOKEN}"\r
```\r
\r
### Create Page\r
```bash\r
curl -X POST \\r
"https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows/${FLOW_ID}/pages" \\r
-H "Authorization: Bearer ${TOKEN}" \\r
-H "Content-Type: application/json" \\r
-d '{\r
"displayName": "Collect Destination",\r
"entryFulfillment": {\r
"messages": [\r
{\r
"text": {\r
"text": ["Where would you like to fly?"]\r
}\r
}\r
]\r
}\r
}'\r
```\r
\r
## Key Resources\r
\r
| Resource | Description |\r
|----------|-------------|\r
| **Flows** | Conversation paths within an agent |\r
| **Pages** | States within a flow |\r
| **Transition Routes** | Routing logic between pages |\r
| **Versions** | Immutable snapshots of flows |\r
\r
## Quick Reference\r
\r
For detailed API reference:\r
- **Flows & Pages**: See [references/flows.md](references/flows.md)\r
\r
## Scripts\r
\r
- `scripts/flows.py` — CLI wrapper for flows and pages operations\r
\r
### Usage\r
```bash\r
python scripts/flows.py list-flows --agent AGENT_NAME\r
python scripts/flows.py list-pages --flow FLOW_NAME\r
python scripts/flows.py get-flow --flow FLOW_NAME\r
python scripts/flows.py get-page --page PAGE_NAME\r
```\r
\r
## Tips\r
\r
- Every agent has a default "Default Start Flow"\r
- Pages represent conversation states\r
- Use transition routes to move between pages based on intents or conditions\r
- Train flows after making changes to update NLU\r
安全使用建议
This skill appears to do what it says: manage Dialogflow CX flows and pages. Before installing or running it: (1) Verify the source/repository since 'Source: unknown' and no homepage are provided. (2) Inspect the included scripts (scripts/flows.py) yourself — they are short and readable. (3) Use a Google service account with the minimum Dialogflow permissions required (principle of least privilege). (4) Prefer using gcloud ADC or a dedicated service-account JSON stored securely; do not paste tokens into untrusted UIs. (5) If you will run the pip-installed libraries, install them in a virtual environment. If any of these checks fail or you can't verify the origin, treat the skill with caution.
功能分析
Type: OpenClaw Skill
Name: dialogflow-cx-flows
Version: 1.0.0
The skill bundle is designed to manage Google Dialogflow CX resources. The `SKILL.md` file provides `curl` command examples for interacting with the Dialogflow CX API, which, if executed by an AI agent with unsanitized user-provided variables (e.g., for `PROJECT_ID`, `AGENT_ID`), could lead to shell injection vulnerabilities. While the `scripts/flows.py` Python script uses official Google Cloud client libraries and appears benign, the direct shell command examples in the markdown documentation represent a high-risk capability that could be exploited due to a vulnerability in the agent's execution environment, classifying it as suspicious rather than benign. There is no clear evidence of intentional malicious behavior like data exfiltration or persistence.
能力评估
Purpose & Capability
Name/description match the included CLI script and SKILL.md. The script and curl examples all target Dialogflow CX v3beta1 endpoints and use standard Google auth mechanisms; nothing requested is unrelated to managing flows/pages.
Instruction Scope
SKILL.md instructs the agent to obtain a Google access token (gcloud or service account) and call Dialogflow REST endpoints or use the provided Python CLI. Instructions do not request reading unrelated files or sending data to non-Google endpoints.
Install Mechanism
There is no install spec (instruction-only), which is low-risk. The Python script recommends installing google-cloud-dialogflow-cx and google-auth via pip; that is expected for this functionality but the registry does not provide an automatic install step.
Credentials
The skill requires Google credentials (gcloud ADC or a service-account JSON) to operate, which is proportional to its purpose. The registry metadata, however, lists no required env vars — SKILL.md mentions exporting GOOGLE_APPLICATION_CREDENTIALS and using a TOKEN/PROJECT_ID placeholders; this mismatch is informational but not malicious.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes or modify other skills. The CLI is a simple client and does not persist secrets or alter agent configuration beyond normal Dialogflow API operations.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dialogflow-cx-flows - 安装完成后,直接呼叫该 Skill 的名称或使用
/dialogflow-cx-flows触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release for Dialogflow CX Flows skill:
- Enables management of flows and pages in Google Dialogflow CX via the v3beta1 REST API.
- Provides setup instructions for authentication and API access.
- Includes sample curl commands for listing and creating flows and pages.
- Introduces a CLI script (flows.py) for common flow/page operations.
- Documents key resources and best practices for organizing conversation paths within agents.
元数据
常见问题
Dialogflow Cx Flows 是什么?
Manage flows and pages in Google Dialogflow CX via REST API. Use for creating and organizing conversation paths within agents. Supports v3beta1 API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 382 次。
如何安装 Dialogflow Cx Flows?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dialogflow-cx-flows」即可一键安装,无需额外配置。
Dialogflow Cx Flows 是免费的吗?
是的,Dialogflow Cx Flows 完全免费(开源免费),可自由下载、安装和使用。
Dialogflow Cx Flows 支持哪些平台?
Dialogflow Cx Flows 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dialogflow Cx Flows?
由 Yash Kavaiya(@yash-kavaiya)开发并维护,当前版本 v1.0.0。
推荐 Skills