返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
d

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
327
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

dialogflow-cx-flows

# Dialogflow CX Flows Manage flows and pages in Google Dialogflow CX via REST API for organizing conversation paths. ## Prerequisites - Google Cloud project with Dialogflow CX API enabled - Service account or OAuth credentials with Dialogflow API access - `gcloud` CLI authenticated OR bearer token ## Authentication ### Option 1: gcloud CLI (recommended) ```bash gcloud auth application-default login TOKEN=$(gcloud auth print-access-token) ``` ### Option 2: Service Account ```bash export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json" TOKEN=$(gcloud auth application-default print-access-token) ``` ## API Base URL ``` https://dialogflow.googleapis.com/v3beta1 ``` Regional endpoints available: - `https://{region}-dialogflow.googleapis.com` (e.g., `us-central1`, `europe-west1`) ## Common Operations ### List Flows ```bash curl -X GET \ "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows" \ -H "Authorization: Bearer ${TOKEN}" ``` ### Create Flow ```bash 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" }' ``` ### List Pages ```bash curl -X GET \ "https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents/${AGENT_ID}/flows/${FLOW_ID}/pages" \ -H "Authorization: Bearer ${TOKEN}" ``` ### Create Page ```bash 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?"] } } ] } }' ``` ## Key Resources | Resource | Description | |----------|-------------| | **Flows** | Conversation paths within an agent | | **Pages** | States within a flow | | **Transition Routes** | Routing logic between pages | | **Versions** | Immutable snapshots of flows | ## Quick Reference For detailed API reference: - **Flows & Pages**: See [references/flows.md](references/flows.md) ## Scripts - `scripts/flows.py` — CLI wrapper for flows and pages operations ### Usage ```bash python 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 ``` ## Tips - Every agent has a default "Default Start Flow" - Pages represent conversation states - Use transition routes to move between pages based on intents or conditions - Train flows after making changes to update NLU

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dialogflow-cx-flows-1776291076 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 dialogflow-cx-flows-1776291076 技能

通过命令行安装

skillhub install dialogflow-cx-flows-1776291076

下载

⬇ 下载 dialogflow-cx-flows v1.0.0(免费)

文件大小: 3.65 KB | 发布时间: 2026-4-16 18:17

v1.0.0 最新 2026-4-16 18:17
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部