闲社服务运行正常AI智能体自动化平台
d

Dialogflow CX代理管理

技能标识:dialogflow-cx-agents

Manage agents in Google Dialogflow CX via REST API. Use for creating, listing, updating, and deleting chatbot agents. Supports v3beta1 API.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Dialogflow CX代理管理

Dialogflow CX 智能体

通过 REST API 管理 Google Dialogflow CX 智能体。

前提条件

  • - 已启用 Dialogflow CX API 的 Google Cloud 项目
  • 具有 Dialogflow API 访问权限的服务账号或 OAuth 凭据
  • 已认证的 gcloud CLI 或持有 bearer 令牌

身份验证

选项 1:gcloud CLI(推荐)

bash gcloud auth application-default login TOKEN=$(gcloud auth print-access-token)

选项 2:服务账号

bash export GOOGLEAPPLICATIONCREDENTIALS=/path/to/service-account.json TOKEN=$(gcloud auth application-default print-access-token)

API 基础 URL

https://dialogflow.googleapis.com/v3beta1

可用的区域端点:

  • - https://{region}-dialogflow.googleapis.com(例如 us-central1、europe-west1)

常用操作

列出智能体

bash curl -X GET \ https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents \ -H Authorization: Bearer ${TOKEN}

创建智能体

bash curl -X POST \ https://dialogflow.googleapis.com/v3beta1/projects/${PROJECT_ID}/locations/${LOCATION}/agents \ -H Authorization: Bearer ${TOKEN} \ -H Content-Type: application/json \ -d { displayName: 我的智能体, defaultLanguageCode: en, timeZone: Asia/Kolkata }

获取智能体

bash curl -X GET \ https://dialogflow.googleapis.com/v3beta1/projects/${PROJECTID}/locations/${LOCATION}/agents/${AGENTID} \ -H Authorization: Bearer ${TOKEN}

更新智能体

bash curl -X PATCH \ https://dialogflow.googleapis.com/v3beta1/projects/${PROJECTID}/locations/${LOCATION}/agents/${AGENTID} \ -H Authorization: Bearer ${TOKEN} \ -H Content-Type: application/json \ -d { displayName: 更新后的智能体名称 }

删除智能体

bash curl -X DELETE \ https://dialogflow.googleapis.com/v3beta1/projects/${PROJECTID}/locations/${LOCATION}/agents/${AGENTID} \ -H Authorization: Bearer ${TOKEN}

关键资源

资源描述
智能体流程、意图、实体类型的顶层容器

快速参考

有关详细的 API 参考:

脚本

  • - scripts/agents.py — 智能体管理操作的 CLI 封装

使用方法

bash python scripts/agents.py list --project PROJECT_ID --location LOCATION python scripts/agents.py create --project PROJECT_ID --location LOCATION --name 我的智能体 python scripts/agents.py get --project PROJECTID --location LOCATION --agent AGENTID python scripts/agents.py update --agent AGENT_NAME --name 新名称 python scripts/agents.py delete --agent AGENT_NAME

提示

  • - 对于多区域智能体,请使用 locations/global
  • 智能体 ID 在创建时自动生成

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dialogflow-cx-agents-1776291093 技能

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

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

通过命令行安装

skillhub install dialogflow-cx-agents-1776291093

下载

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

文件大小: 4.25 KB | 发布时间: 2026-4-16 15:29

v1.0.0 最新 2026-4-16 15:29
- Initial release of the Dialogflow CX Agents skill.
- Enables creating, listing, updating, and deleting Dialogflow CX agents via the v3beta1 REST API.
- Includes authentication instructions for both gcloud CLI and service account workflows.
- Provides curl examples for common agent management operations.
- Bundles a CLI tool (`scripts/agents.py`) for agent management tasks.
- Documentation covers API endpoints, usage examples, and key tips for working with regional and global agents.
返回顶部