← 返回 Skills 市场
yash-kavaiya

Dialogflow Cx Conversations

作者 Yash Kavaiya · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
315
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dialogflow-cx-conversations
功能描述
Manage conversations and sessions in Google Dialogflow CX via REST API. Use for testing intents, handling user interactions, and managing conversation state....
使用说明 (SKILL.md)

\r \r

Dialogflow CX Conversations\r

\r Manage conversations and sessions in Google Dialogflow CX via REST API for testing and interaction handling.\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
### Detect Intent\r
```bash\r
curl -X POST \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/sessions/${SESSION_ID}:detectIntent" \\r
  -H "Authorization: Bearer ${TOKEN}" \\r
  -H "Content-Type: application/json" \\r
  -d '{\r
    "queryInput": {\r
      "text": {\r
        "text": "Hello"\r
      },\r
      "languageCode": "en"\r
    }\r
  }'\r
```\r
\r
### Match Intent (no state change)\r
```bash\r
curl -X POST \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/sessions/${SESSION_ID}:matchIntent" \\r
  -H "Authorization: Bearer ${TOKEN}" \\r
  -H "Content-Type: application/json" \\r
  -d '{\r
    "queryInput": {\r
      "text": {\r
        "text": "Hello"\r
      },\r
      "languageCode": "en"\r
    }\r
  }'\r
```\r
\r
### Create Test Case\r
```bash\r
curl -X POST \\r
  "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/testCases" \\r
  -H "Authorization: Bearer ${TOKEN}" \\r
  -H "Content-Type: application/json" \\r
  -d '{\r
    "displayName": "Greeting Test",\r
    "testCaseConversationTurns": [\r
      {\r
        "userInput": {\r
          "input": {\r
            "text": {\r
              "text": "Hi"\r
            }\r
          }\r
        },\r
        "virtualAgentOutput": {\r
          "textResponses": [\r
            {\r
              "text": ["Hello!"]\r
            }\r
          ]\r
        }\r
      }\r
    ]\r
  }'\r
```\r
\r
## Key Resources\r
\r
| Resource | Description |\r
|----------|-------------|\r
| **Sessions** | Conversation instances with state |\r
| **Detect Intent** | Process user input and get responses |\r
| **Test Cases** | Automated conversation testing |\r
\r
## Quick Reference\r
\r
For detailed API reference:\r
- **Conversations & Testing**: See [references/conversations.md](references/conversations.md)\r
\r
## Scripts\r
\r
- `scripts/conversations.py` — CLI wrapper for conversation operations\r
\r
### Usage\r
```bash\r
python scripts/conversations.py detect-intent --agent AGENT_NAME --text "Hello"\r
python scripts/conversations.py match-intent --agent AGENT_NAME --text "Hello"\r
```\r
\r
## Tips\r
\r
- Session IDs can be any unique string (e.g., UUID)\r
- Use detectIntent for full conversation flow, matchIntent for testing without state changes\r
- Test cases help validate conversation logic before deployment\r
安全使用建议
This skill appears to do exactly what it claims: call Dialogflow CX APIs and provide a small CLI wrapper. Before installing, ensure you supply appropriate Google credentials (use a service account with least-privilege Dialogflow roles or gcloud ADC). Be aware the registry metadata doesn't list required env vars — follow SKILL.md to authenticate. If you plan to run the included Python script, install the recommended pip packages in a virtual environment and review the script to confirm it fits your usage and permission model. Avoid providing broad Google project credentials; prefer a service account scoped only to Dialogflow. If you require higher assurance, validate the code in scripts/conversations.py and test in a non-production project first.
功能分析
Type: OpenClaw Skill Name: dialogflow-cx-conversations Version: 1.0.0 The skill bundle is designed to interact with Google Dialogflow CX via its official API. The `SKILL.md` provides clear documentation and `curl` examples for API usage, while the `scripts/conversations.py` uses the `google-cloud-dialogflow-cx` client library to perform `detect-intent` and `match-intent` operations. User inputs are handled safely via `argparse` and passed as data to the client library, preventing command injection. There is no evidence of data exfiltration, unauthorized command execution, persistence mechanisms, or prompt injection attempts against the agent. All actions align with the stated purpose of managing Dialogflow CX conversations.
能力评估
Purpose & Capability
The name, description, SKILL.md, reference doc, and included CLI script all align: they implement Dialogflow CX session, detectIntent, matchIntent and test case operations. Minor inconsistency: the skill metadata lists no required env vars or primary credential, but the SKILL.md explicitly documents the need for Google credentials (gcloud auth or GOOGLE_APPLICATION_CREDENTIALS). This is expected for Dialogflow usage but the metadata omission is a bookkeeping gap.
Instruction Scope
Runtime instructions are narrowly scoped to Dialogflow CX API calls (curl examples) and using the provided CLI wrapper. The SKILL.md instructs how to obtain a bearer token or use a service account; it does not instruct reading unrelated files, contacting unexpected endpoints, or exfiltrating data.
Install Mechanism
No install spec is included (instruction-only). The Python script recommends installing google-cloud-dialogflow-cx and google-auth via pip, which is appropriate for the functionality. There are no downloads from unknown hosts or archive extraction steps.
Credentials
The skill requires Google authentication (gcloud ADC or a service account JSON). That is proportionate to Dialogflow access. However, the skill metadata does not declare these env vars/credentials (e.g., GOOGLE_APPLICATION_CREDENTIALS or a TOKEN) — the SKILL.md documents them but the registry metadata omitted them, which could confuse non-technical users about what secrets are needed.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent system privileges. It does not modify other skills or agent-wide configs. Autonomous invocation remains allowed (platform default) but that is normal here and not otherwise concerning.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dialogflow-cx-conversations
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dialogflow-cx-conversations 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of dialogflow-cx-conversations. - Manage Dialogflow CX sessions and conversations via REST API (v3beta1) - Includes authentication instructions for gcloud CLI and service accounts - Provides curl samples for detectIntent, matchIntent, and test case creation - Documents regional endpoints and required API setup - Offers a Python CLI wrapper script for common operations - Lists best practices and quick usage tips for session and conversation management
元数据
Slug dialogflow-cx-conversations
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Dialogflow Cx Conversations 是什么?

Manage conversations and sessions in Google Dialogflow CX via REST API. Use for testing intents, handling user interactions, and managing conversation state.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 315 次。

如何安装 Dialogflow Cx Conversations?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dialogflow-cx-conversations」即可一键安装,无需额外配置。

Dialogflow Cx Conversations 是免费的吗?

是的,Dialogflow Cx Conversations 完全免费(开源免费),可自由下载、安装和使用。

Dialogflow Cx Conversations 支持哪些平台?

Dialogflow Cx Conversations 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dialogflow Cx Conversations?

由 Yash Kavaiya(@yash-kavaiya)开发并维护,当前版本 v1.0.0。

💬 留言讨论