← 返回
未分类 Key 中文

Dialogflow CX to CES Migration

Full production-grade migration of a Dialogflow CX agent (v3beta1) to Google Customer Engagement Suite (CES) Conversational Agents. Migrates flows→sub-agents...
Full production-grade migration of a Dialogflow CX agent (v3beta1) to Google Customer Engagement Suite (CES) Conversational Agents. Migrates flows→sub-agents...
yash-kavaiya yash-kavaiya 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 366
下载
💾 0
安装
1
版本
#ces#dialogflow#google-cloud#latest#migration

概述

Dialogflow CX → CES Migration Skill

What This Skill Does

Migrates a Dialogflow CX v3beta1 agent to Google Customer Engagement Suite (CES) Conversational Agents format, producing:

Output FileContents
-----------------------
ces_agent.jsonCES agent definition (importable via Console or REST API)
golden_evals.csvCES batch evaluation CSV (golden test cases)
entity_types.jsonEntity type definitions for manual re-creation
migration_report.mdFull migration summary with next steps

Migration Mapping

Dialogflow CXCES Conversational Agents
---------
AgentAgent Application + Root Agent
Flow (non-default)Sub-Agent
Pages + RoutesAgent Instructions (natural language)
Intent training phrasesRoot agent routing hints
Entity TypesExported JSON (manual import)
WebhookTool (OpenAPI schema)
Form ParametersInstruction slot-filling steps
Test CasesGolden Evaluations CSV

Prerequisites

  1. GCP Auth: gcloud auth application-default login
  2. Project access: Dialogflow CX API enabled on the project
  3. Python: 3.10+
  4. Packages: pip install google-cloud-dialogflow-cx google-auth

Usage

Run Migration

python migrate.py \
  --project YOUR_PROJECT_ID \
  --agent-id YOUR_AGENT_UUID \
  --output ./migration_output

Dry Run (fetch + preview, no files written)

python migrate.py \
  --project YOUR_PROJECT_ID \
  --agent-id YOUR_AGENT_UUID \
  --dry-run

Custom location (non-global agents)

python migrate.py \
  --project YOUR_PROJECT_ID \
  --agent-id YOUR_AGENT_UUID \
  --location us-central1 \
  --output ./migration_output

Example (carconnect agent)

python migrate.py \
  --project genaiguruyoutube \
  --agent-id 3736c564-5b3b-4f93-bbb2-367e7f04e4e8 \
  --output ./carconnect_ces

Expected output:

  • 14 flows → 13 sub-agents + root agent enrichment
  • 31 intents → root routing hints
  • 5 entity types → exported JSON
  • 2 webhooks → 2 OpenAPI tools
  • Test cases → golden_evals.csv

Post-Migration Steps

  1. Review ces_agent.json — check sub-agent instructions make sense, update tool endpoints
  2. Import into CES Console:
  3. Upload Golden Evals:
    • Evaluate tab → + Add test case → Golden → Upload file → select golden_evals.csv
  4. Re-create Entity Types from entity_types.json (CES uses them as tool parameters)
  5. Update webhook endpoints in the Tools section of your CES agent
  6. Run evaluation suite → review pass rates → iterate on instructions

Retry Logic

All Google API calls use exponential backoff (up to 4 attempts, base delay 1.5s × 2ⁿ). If the API is rate-limited or temporarily unavailable, the tool retries automatically.

Limitations & Known Gaps

  • Rich response types (carousels, chips, images) are converted to text messages. Update manually in CES.
  • Conditional routes using session parameter syntax ($session.params.X) are preserved as-is in instructions but may need updating for CES parameter syntax.
  • DTMF / telephony settings are not migrated (CES has different telephony config).
  • Entity type import: CES does not have a direct batch import API for entity types — use the exported JSON as reference to create them manually or via REST.
  • Webhook auth: OAuth and mTLS configs are noted but credentials must be re-configured in CES.

Autoresearch Evals (binary pass/fail)

When running autoresearch on this skill, use these evals:

  1. EVAL_FLOWS: All non-default flows appear as sub-agents in ces_agent.json?
  2. EVAL_TOOLS: All webhooks appear as tools with OpenAPI schemas in ces_agent.json?
  3. EVAL_ENTITIES: All entity types exported to entity_types.json?
  4. EVAL_EVALS_CSV: golden_evals.csv has correct header + at least one golden eval row?
  5. EVAL_INSTRUCTIONS: Each sub-agent has non-empty instructions?
  6. EVAL_REPORT: migration_report.md exists and contains a stats table?

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:41 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,398 📥 323,047
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,473 📥 535,747
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,109 📥 830,871