tencent cloud

云联络中心

编辑对话内容

Download
聚焦模式
字号
最后更新时间: 2026-08-05 16:21:07

概述

在 AI 智能体编辑页,您可以自定义对话内容,包括欢迎语、智能体人设和应答逻辑。


前提条件

已完成 接入外部模型

欢迎语设置

勾选应用欢迎语,AI 智能体便会在通话接通后立即向用户问候。您可以在内容区域自定义问候语。默认情况下,当用户开口说话时欢迎语可被打断。如果您不希望它被打断,请关闭欢迎语可打断开关。


人设与回复逻辑

人设与回复逻辑区域,编写提示词内容以定义 AI 智能体的人设和对话任务。请将内容拆分为独立的段落,并使用 # 符号来突出每个段落的要点。建议每个段落涵盖的主题包括:身份、对话风格、背景知识、任务和对话示例。更多细节,请参考我们问卷调研模板中的提示词内容风格。

在欢迎语和提示词中使用变量

欢迎语人设与回复逻辑都支持 ${variable_name} 形式的运行时变量。在通话时,TCCC 会将每个占位符替换为具体的值,因此一份智能体定义即可服务于每位客户、每场营销活动和每个业务场景,而无需重写话术。

变量值的来源

来源
典型用途
CreateAICall API —— Variables.N 字段
外呼。您的业务后端在发起通话时传入每通通话的数据(客户姓名、订单号、到期日、最近购买的产品)。
批量呼叫 CSV 上传
外呼营销活动。CSV 表头行会与智能体的变量列表进行匹配;每一行填充一通通话。
IVR 采集的槽位
呼入。由上游 IVR 模块捕获的值(例如账号、语言偏好)会被转发到智能体中。
DescribeAIAgentInfoList API
仅用于查询,返回智能体上定义的变量列表,以便您的后端或批量呼叫工具自动填充正确的键。

示例:外呼还款提醒智能体

一份使用了三个变量的提示词:${customer_name}${due_date}${amount_due}
欢迎语(Content 字段):
Hi, may I speak with ${customer_name}? This is Sophie calling from Acme Bank about your credit-card statement.
智能体人设与应答规则:
# Identity
You are Sophie, a customer-service agent at Acme Bank. You are calling ${customer_name} regarding their credit-card payment due on ${due_date}, with an outstanding balance of ${amount_due}. Your job is to remind the customer of the due date, confirm their intended payment method, and answer basic questions about the statement.

# Conversation Style
1. Polite and professional — never sound like a debt collector.
2. One question at a time; keep turns short.
3. If the customer says they have already paid, thank them and offer to verify the payment status, then end the call.
4. If the customer asks for a payment extension or to dispute the charge, do not negotiate — offer to transfer them to a human agent.
5. Avoid restating the full amount more than twice in a single call.

# Task
1. Greet the customer and confirm you are speaking to ${customer_name}.
- If not the right person, politely apologize and end the call.

<!-- list-type-break -->

2. State the purpose: a friendly reminder that the payment of ${amount_due} is due on ${due_date}.
3. Ask whether the customer plans to pay before the due date.
- If yes, confirm the payment channel (auto-debit, mobile app, branch) and thank them.
- If no or unsure, briefly explain late-payment consequences without pressuring, and offer to transfer to a human agent for assistance.

<!-- list-type-break -->

4. Ask if there is anything else you can help with. If not, thank the customer and end the call.

# Background Knowledge

<!-- list-type-break -->

- Today's date is provided implicitly by the call timestamp.
- ${due_date} is always in YYYY-MM-DD format; read it aloud naturally (e.g., "March fifteenth").
- ${amount_due} is the outstanding balance in the local currency, formatted by the backend.
触发通话(后端,简化版):
{
"Action": "CreateAICall",
"AIAgentId": "<your-agent-id>",
"Callee": "+60123456789",
"Variables": [
{ "Key": "customer_name", "Value": "Mr. Tan" },
{ "Key": "due_date", "Value": "2026-06-15" },
{ "Key": "amount_due", "Value": "RM 1,280.50" }
]
}

注意事项

变量名区分大小写,且在提示词、API 载荷和 CSV 表头之间必须完全一致。
如果某个占位符在通话时没有匹配的值,字面文本 ${variable_name} 会被原样发送给模型。请始终在您的后端提供默认值,或在提示词中对缺失值加以防护。
请勿 将机密信息(API 密钥、完整卡号、密码)放入变量——这些值会被渲染进模型提示词中,并可能出现在通话转写文本和通话录音里。

常见问题

何时关闭“欢迎语可打断”开关?

默认情况下,用户一开口欢迎语即可被打断。当开场白必须被完整听完时,请关闭可打断(Interruptible) 开关。例如:
金融、保险或医疗监管机构所要求的合规免责声明(例如:“本次通话可能会被录音,用于质检和合规目的。”)。
在任何来回对话开始之前,用于标明公司、主叫号码和来电目的的品牌或营销活动开场白
在受监管市场(新加坡 PDPA、马来西亚 PDPA、印尼 OJK)的外呼,其中主叫方的身份和同意目的必须在对话继续之前说明。
对于所有其他场景,请保持欢迎语可打断开关为开启状态,它能带来明显更自然的对话,因为用户可以直接回答“是的,是我”,而无需等待智能体把话说完。

相关指引

请根据您的搭建方式选择对应路径:
第一次使用? 五分钟即可上线一个可用的智能体 —— 创建对话流程接入外部模型
想了解我们的对话流节点? 请前往 对话节点
为您的对话流搭建知识库? 请前往 搭建您的知识库
如何测试您的模型? 请参阅 测试对话工作流
配置自有模型的语音智能体? 请前往 接入外部模型编辑对话内容配置语音交互添加通话控制
想查看应用场景? 试试 语音通知线索挖掘反馈收集客户支持
如何进行 AI 智能体的呼出与呼入电话? 请参阅 智能体外呼智能体呼入
查看数据日志? 请参阅 通话记录、通话录音、延迟
如何创建和查看通话后标签? 请参阅 话后标签(通过对话流程创建)话后标签(通过外部大模型创建)

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈