← Back to Skills Marketplace
yash-kavaiya

Dialogflow Cx Conversations

by Yash Kavaiya · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
315
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dialogflow-cx-conversations
Description
Manage conversations and sessions in Google Dialogflow CX via REST API. Use for testing intents, handling user interactions, and managing conversation state....
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dialogflow-cx-conversations
  3. After installation, invoke the skill by name or use /dialogflow-cx-conversations
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug dialogflow-cx-conversations
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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.... It is an AI Agent Skill for Claude Code / OpenClaw, with 315 downloads so far.

How do I install Dialogflow Cx Conversations?

Run "/install dialogflow-cx-conversations" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dialogflow Cx Conversations free?

Yes, Dialogflow Cx Conversations is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Dialogflow Cx Conversations support?

Dialogflow Cx Conversations is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dialogflow Cx Conversations?

It is built and maintained by Yash Kavaiya (@yash-kavaiya); the current version is v1.0.0.

💬 Comments