ThunderPhone v3 已正式上线。全程自助,低至2美分/分钟。查看发布公告

Using the dashboard

提示词指南

如何编写让语音智能体在电话中听起来自然,并能应对真实来电者的提示词,附带三个入门模板。

像向新接待员交代工作一样编写提示词:说明他们是谁、 为谁工作,通话如何从第一句话进行到最后一句,以及 他们可以提供哪些信息。请使用清晰的语言,并可使用任何语言。来电者只会以正常语速听到一次智能体的话语,而智能体会在每一轮阅读提示词并严格遵循其中的措辞。本页说明如何兼顾两者,并提供三个完整模板供您开始使用。

提示词风格指南 将所有指南集中在一处,并提供 [P1、W2 等标识符],供提示词审查在检查 提示词时引用。

按通话实际发生的顺序编写

简短的开场说明智能体是谁,以及它的说话方式。随后按通话实际发生的顺序展开:如何开场、需要了解什么、需要确认什么、如何结束。每条规则都放在其适用的步骤中,而不是放在最后的规则列表里。使用清晰的标题:

# Who you are
Your name, the business you represent, and in a few words how you talk:
short turns, warm, plain words.
 
# The call
How you open, what you find out and in what order, what you confirm, and
how the call ends. Each rule goes in the step where it comes up.
 
# Facts
What you may tell callers: hours, location, services, prices, policies.
 
# Handing off
When a person should take over, which transfer number to use, and what to
offer when nobody can.

对于智能体需要查询的事实,例如营业时间或价格,可以使用列表。对于行为,请使用连贯的文字:编号规则列表、类似代码的标题或“参见第 4 节”会使提示词更难遵循和编辑。

提示词位于智能体的 说明 中;请 Zeus 根据本指南对其进行审核。旧版视图的提示词编辑器会显示预估 Token 数量,并标记常见问题——提示词为空、无法填充的占位符,或无法将来电者转接给人工。较长的提示词每分钟成本更高,因为智能体会在每次回复时读取提示词;请参阅定价。

在电话中真正重要的策略

具体胜过笼统

模糊的指示会产生模糊的智能体。明确说明您希望的行为:

不要这样写这样写
“谨慎处理订单。”“复述订单编号,并在您进行任何更改前请来电者确认。”
“保持专业。”“获取来电者姓名后使用一次,并将每次回复控制在一两句话内。”
“协助安排日程。”“提供最早的两个空闲时间,然后询问哪个时间合适。”

为耳朵而写,不是为眼睛而写

来电者只能听到智能体的声音,无法快速浏览或重新阅读。要求每次回复简短,一次只问一个问题,并将问题作为智能体说的最后一句: 问题之后的任何内容都会盖过来电者的回答。

简短指的是字数少,而不是表达生硬。请使用第一人称完整句子,如同优秀接待员在电话中的说话方式:“我现在就为您预约”听起来自然,而便笺式的“正在为您预约。”显得生硬,诸如“请稍候”或“希望这能有所帮助”等邮件措辞则像是在照着文字念。

Keep each turn to one or two short sentences unless the caller asks for
more, and talk in the first person, the way a receptionist would on the
phone. Ask one question at a time, and make it the last thing you say.

不要在智能体将要说出的任何内容中使用符号:斜杠、与号、“@”、“.com”以及未用空格分隔的电话号码,在语音中都会读得不自然。请写明不常见名称或首字母缩略词的读法,并在保留新术语前,先使用 朗读 在智能体的语音中试听。

确认出错代价高的信息

语音识别可能会误听姓名、数字和地址。在流程中说明需要确认的内容,并将其放在智能体收集该信息的步骤中:

Once you have the callback number, read it back and ask the caller to
confirm it before you book the appointment.

要求复述时采用该值提供时的形式——电子邮件地址逐字母复述,电话号码逐位数字复述。概括式复述(“所以这是您的 Gmail”)无法确认任何信息。智能体复述的速度由平台负责,因此提示词只需说明要确认什么。

当通话取决于逐字拼写的字符串时,选择 Plus 听辨

电话通话不利于处理逐字拼写的详细信息。电子邮件地址、姓氏、确认码和保单号码最容易被听错:“M”和“N”发音接近,来电者说的“点”会作为单词保留,域名则会出现一个字母的偏差。

Plus 听辨会在困难时刻投入更多处理,并且在逐字拼写的字符串方面明显优于 Lite 和 Standard。如果只有在电子邮件地址或参考编号完全准确时通话才有价值,那么这种差异的价值远高于价差——请参阅 听辨。

然后将校验放在提示词无法跳过的位置:在接收地址的工具参数上声明 "format": "email"。ThunderPhone 会修正常见的转写伪差,并在您的端点运行前 拒绝无法修正的内容,因此智能体会重新询问,而不是将错误地址写入您的系统。 请参阅构建工具集成。

描述困难时刻,而不是具体措辞

顺利的流程不言自明;通话的成败取决于其他所有情况。对于您能够预见的每种情况——提示词未涵盖的问题、情绪激动的来电者、打错的号码——在该情况出现的步骤中说明智能体应达成什么目标,以及可以提供什么。不要写“如果来电者说 X,就说 Y”这类语句:智能体会逐字重复脚本化语句,听起来会很生硬,而分支列表会遗漏其间的情况。

When a caller asks something these instructions don't cover, offer to have
a teammate call them back, and take their name and number.
When a caller is upset, acknowledge it once and keep to what you can do
for them. If they would rather talk to a person, transfer them to Front
desk.

开场问候是唯一应逐字写出的句子。如果其他地方需要提供措辞示例,请给出几句多样且完整的句子,并将其作为示例引入(“例如,您可以说……”);像“Still accurate?” 这样的简短标签一旦说出来会显得生硬。

为每通电话提供去向

每个智能体都需要一种转交方式——转接号码、回电承诺,或两者兼有。提示词编辑器在找不到此类方式时会发出警告。

在流程中描述通话操作

转接、按键、等待和挂断无需单独的工具——请在操作发生的步骤中进行描述。转接会按名称转至保存在智能体中的转接号码;智能体只能看到名称。

When the caller asks for a person, transfer them to Front desk.
When the phone menu asks for a department, press 2.
If you reach the billing menu, wait on hold until a person answers.
Once the caller has nothing else, say goodbye and end the call.

有关路由规则、筛选式交接和失败回退,请参阅转接 通话。有关所有其他平台操作,请参阅内置 工具。

将设置留给设置

有些内容属于智能体设置,提示词中关于这些内容的文字会被忽略或与设置冲突:工具运行时智能体说什么、填充语、静默确认以及长时间静默后会发生什么、复述的节奏、语言切换风格、录音提示,以及由智能体还是来电者先说话。请在智能体设置中进行配置,并让提示词聚焦于结果(“在保存前确认电子邮件地址”)。开场问候本身则写在提示词中。

事实应放入知识库,行为应放入提示词

不要将您的网站内容粘贴到提示词中。附加一个 知识库,智能体会在通话过程中搜索其中内容——提示词可保持简短,更新政策时也无需重新编辑提示词。提示词应仅用于定义智能体是谁、通话如何进行,以及每通电话都需要的少量事实;将目录、常见问题和较长的政策文本放入知识库。智能体只能说出已提供给它的事实。

使用变量或动态配置按通话个性化提示词

提示词中的 {{customer_name}} 等占位符会使用您在通话开始时发送的 variables 填充;请参阅按通话变量。通话中没有值的占位符 会变为空文本。说明会列出提示词中的占位符,以提醒您:除非通话发送了 variables, 否则不会填充这些占位符,包括测试通话。若要根据每位来电者更改更多提示词内容(VIP 路由、 已登录用户上下文),请使用动态通话配置在通话时重写提示词。

使用您希望听到的语言编写

提示词可以使用任何语言编写,智能体会遵循其中的内容。 智能体说哪种语言需单独设置——主要语言会用于开始通话,当来电者使用其任一其他语言时,智能体可以切换到该语言;除非您将其设置为跟随来电者,否则智能体会先询问(请参阅切换语言)。

通话出现问题时

通过最小且通用的改动修复根因:

  • 先检查配置。 听错拼读的字母属于音频限制(可尝试 Plus 听觉);回复缓慢可能与智能层级、听觉层级或回复速度设置有关。
  • 添加原则,而不是补丁。 说明通用规则或智能体所需但缺失的事实。不要将失败通话中的姓名、数字和确切措辞写入提示词。
  • 先删减,再添加。 当现有规则过于具体、过于宽泛或位置不当时,应修改或删除该规则,而不是在旁边添加一条相反的规则。
  • 让被忽略的指令更清晰,而不是更醒目。 大写、“IMPORTANT”和层层叠加的“never”会让模型过度关注某一条规则,并降低其处理通话其余部分的表现。请让指令更具体,或将其移至适用的步骤中。

积累了许多小修复的提示词会逐渐失序:规则会重复、冲突, 或远离其所约束的步骤。发生这种情况时,提示词审核会报告 refactor_suggested,而重构会将提示词改写为以下结构,同时保留其要求的所有行为。

模板

三个可直接复制并定制的完整提示词:替换为您的业务信息、转接号码和政策。

前台接待员(呼入)

将 紧急线路 和 办公室经理 保存为智能体上的 转接号码。

# Who you are
You are June, the receptionist for Lakeview Dental in Portland. You sound
warm and unhurried, keep each turn to a sentence or two, and ask one
question at a time.
 
# The call
Open with: "Thanks for calling Lakeview Dental, this is June. How can I
help?"
 
Find out what the caller needs. If they are in pain or say it's an
emergency, transfer them to Emergency line right away.
 
For an appointment, ask what it's for, then offer the two earliest open
times and ask which works. Once they pick one, take their full name and a
callback number. Read the number back and ask them to confirm it before
you book.
 
When they ask about a price, give it if it's listed under Facts; for any
other procedure, tell them the dentist confirms the price at the visit.
 
For anything you can't do on this call, take a message: their name, their
number, and what it's about.
 
Before you finish, ask whether there's anything else. Once there isn't,
say goodbye and end the call.
 
# Facts
We're open Monday to Friday, 8 am to 5 pm, at 1420 Alder Street.
We offer cleanings, fillings, crowns, and emergency visits.
New-patient cleanings are $95. We don't do orthodontics.
 
# Handing off
When a caller asks for the office manager, transfer them to Office
manager. For anything else that needs a person, offer a callback.

使用查询工具的订单支持(呼入)

为订单查询添加一个 API 连接 或 已连接应用、包含退货政策的知识 库,以及 支持团队 的转接号码。

# Who you are
You are the support agent for Brightbox, an online electronics store.
You're friendly and direct, and honest about what you can and can't do.
Keep turns short and ask one question at a time.
 
# The call
Open with: "Thanks for calling Brightbox support. What's your order
number?"
 
Read the order number back digit by digit and ask the caller to confirm
it before you look anything up. Then use the Get order tool, and tell the
caller the order's status and delivery estimate in plain words.
 
For return questions, search the knowledge base and follow the policy it
gives. Offer only what your tools can do: you can start a return, and
refunds and replacements are decided by the support team.
 
If a tool fails twice, stop retrying and offer a callback.
 
# Handing off
Refund requests over $200, damaged items, and anything the caller says is
urgent go to Support team. When a caller asks for a person at any point,
transfer them to Support team.

预约提醒(外呼)

对于外呼,请同时在高级通话行为中设置由谁先说话和语音信箱处理——提示词负责对话,设置负责接听处理。每次发起通话时,将 patient_name 和 appointment_time 作为通话变量发送。

# Who you are
You call on behalf of Lakeview Dental to confirm upcoming appointments.
You're brief and courteous; the whole call takes under two minutes.
 
# The call
Open with: "Hi, this is June from Lakeview Dental. Am I speaking with
{{patient_name}}?"
 
Once you know you have the right person, tell them their appointment is
{{appointment_time}} and ask whether it still works. If you reach someone
else, ask when is a good time to reach the patient, and say nothing about
the appointment.
 
If the time works, thank them and end the call. If it doesn't, offer the
two earliest open times and rebook, or take a note for the front desk.
 
If they seem unsure who is calling, give the clinic's name again and offer
to end the call. If they ask not to be called again, apologize, tell them
you'll note it, and end the call.
 
# Handing off
For billing or treatment questions, tell them the front desk will call
them back, and note the question.

持续迭代,直到经得起真实来电者的考验

没有任何提示词在初稿时就是正确的。有效的循环如下:

  1. 与其对话。 打开智能体的测试,并通过浏览器呼叫它;亲自探索边界情况——打断它、偏离脚本、含糊地说一个电话号码。这是最快的调整与重试循环。
  2. 模拟通话。 AI 来电者会按不同场景与您的智能体进行完整对话。
  3. 构建验证集。 将您关心的场景转化为可重复运行的测试套件,并在每次更改提示词后重新运行。
  4. 在生产环境中进行 A/B 测试。 当两种表述看起来都没有问题时,让真实通话来决定。

编码智能体可以为您运行这一循环,从审查提示词到针对每次编辑重放真实通话;请参阅 使用 Claude Code、Codex 或 Cursor 构建。

每次更改都会在智能体的历史记录与试验中形成一个版本,因此您可以放心频繁发布提示词更改——您随时可以查看差异、撤销或恢复。

后续步骤