---
title: "提示词指南"
description: "适用于提示词的策略和可直接复制粘贴的模板，让语音智能体在电话中自然表达，并能应对真实来电者。"
---

提示词是智能体的运行脚本：它是谁、知道什么、如何进行通话，以及绝不能做什么——以任何语言用通俗易懂的方式编写。本页介绍如何构建提示词结构、电话通话中最重要的策略，以及三个可直接开始使用的完整模板。

<Tip>
  正在从其他平台迁移？[导入工具](/zh/guides/import-agents)
  可将您的智能体迁移过来，并将每个提示词改写为本指南的
  结构。对于单个提示词，您也可以将其——或整个导出的智能体 JSON——粘贴到
  [智能副驾](/zh/guides/ask-the-copilot)中。
</Tip>

## 从骨架开始

几乎所有优秀的语音智能体提示词都会回答五个问题。使用以下
章节标题——它们不增加成本，并能让较长的提示词保持易于编辑：

```text
# Who you are
Your name, the business you represent, and your personality in a
sentence or two.

# What you know
The facts you may state: hours, location, services, prices, policies.

# How to run the call
The flow, in order: how to open, what to ask, what to confirm, how to
close.

# Rules
What you must always do and must never do.

# When to hand off
The situations that go to a human, and exactly how to get them there.
```

构建器的提示词编辑器会在您输入时显示预估词元数量，并标记常见问题——空提示词、遗留的模板占位符，或缺少升级处理路径。前 **5,000 个预估词元**已包含在基础费率中；更长的提示词采用
[基于区块的附加费定价](/zh/guides/pricing)。

## 在电话中真正重要的策略

### 具体胜过笼统

模糊的指示会产生模糊的智能体。明确说明您想要的具体行为：

| 不要写 | 应写 |
| --- | --- |
| “谨慎处理订单。” | “在进行更改前，向来电者复述订单号以确认。” |
| “保持专业。” | “获取来电者姓名后称呼其姓名。绝不打断对方。” |
| “协助安排日程。” | “提供最早的两个空闲时段，然后询问哪个合适。” |

### 为耳朵而写，不是为眼睛而写

来电者通过听觉接收智能体的话——他们无法快速浏览或重新阅读。要求智能体
保持简短的口头回应，**一次只问一个问题**，并说明应如何朗读数据：

```text
Keep answers to one or two sentences unless the caller asks for detail.
Read phone numbers digit by digit. Read prices as "nineteen ninety-nine".
Spell email addresses letter by letter, and say "at" and "dot".
```

### 确认任何您无法接受出错的信息

语音识别可能会听错姓名、数字和地址。将复述确认
纳入流程：

```text
After collecting the callback number, repeat it back and ask "Did I get
that right?" before moving on.
```

要求以提供值时的形式进行复述确认——电子邮箱地址逐字母拼读，
电话号码逐位数字读出。概括式复述（“所以这是您的 Gmail”）无法
确认任何信息：

```text
After collecting an email address, spell it back letter by letter and
ask the caller to confirm before you save it.
```

### 当通话取决于逐字拼读的字符串时，选择 Storm

电话音频为 8 kHz。电子邮箱、姓氏、确认代码和保单号最容易受到
这种带宽限制的影响：“M”和“N”很接近，来电者说的“dot”会保留为一个单词，
而域名可能会有一个字母出错。

Bolt 会先将音频转写为文本，再基于转写内容推理，因此转写中丢失的信息
已经无法恢复。Storm 直接听取音频，在逐字拼读的字符串方面明显更出色。
如果只有当电子邮箱或参考编号完全正确时通话才有价值，那么这种差异比价格
差距更重要——请参阅
[模型层级](/zh/guides/agent-settings)。

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

### 为不顺利的情况编写脚本

顺利的流程不言自明；通话的成败取决于其他各种情况。为您可以预见的每种情况
给智能体准备一句回应——错误号码、愤怒的来电者、您无法回答的问题：

```text
If the caller asks something outside these instructions, say you'll
have a teammate follow up, and collect their name and number.
If the caller is upset, apologize once, don't argue, and offer to
transfer them to a person.
```

### 始终为通话提供后续去向

每个智能体都需要交接路径——转接号码、回电承诺，或两者兼有。提示词编辑器
无法找到交接路径时会发出警告。

### 通话操作就是普通的提示词行

转接、按键、等待和挂断无需单独配置——在流程中应出现的位置描述它们：

```text
If the caller asks for a human, transfer the call to +1 555 010 0199.
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 confirms there's nothing else, say goodbye and hang up.
```

有关路由规则、筛选式交接和失败回退，请参阅[转接
通话](/zh/guides/call-transfers)。有关所有其他平台操作，请参阅[内置
工具](/zh/guides/built-in-tools)。

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

不要将您的网站内容粘贴到提示词中。附加一个
[知识库](/zh/guides/knowledge-base)，智能体便可在通话过程中搜索它——提示词保持
简短，更新政策也无需重新编辑脚本。将提示词用于身份、流程和规则；
将目录、常见问题和较长的政策文本放入知识库。

### 使用动态配置按通话个性化，而不是占位符

提示词没有模板变量系统——从其他平台遗留的 `{{customer_name}}`
会被作为字面文本读出，构建器会将其标记为未解析的占位符。若要根据每位来电者
调整提示词（VIP 路由、已登录用户上下文），请在通话时通过
[动态通话配置](/zh/guides/dynamic-call-config)重写它。

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

提示词可以使用任何语言编写，智能体会遵循它。智能体*说*哪种语言则单独设置——
主语言用于开始通话，而任何
[附加语言](/zh/guides/supported-languages)会在来电者使用该语言时
自动切换。

## 模板

三份完整提示词，可直接复制后按需修改：替换为您的业务
信息、数字和政策。

### 前台接待员（呼入）

```text
# Who you are
You are June, the receptionist for Lakeview Dental in Portland. You are
warm, efficient, and never rushed.

# What you know
We're open Monday to Friday, 8am to 5pm, at 1420 Alder Street.
We offer cleanings, fillings, crowns, and emergency visits.
New-patient cleanings are $95. We don't do orthodontics.

# How to run the call
Greet the caller and ask how you can help.
For appointment requests: ask what they need, offer the two earliest
open slots, and collect their full name and callback number.
Repeat the number back and confirm before booking.
For anything you can't do on this call, take a message: name, number,
and what it's about.

# Rules
Keep answers to one or two sentences.
Ask one question at a time.
Never quote prices for procedures not listed above — say the dentist
will confirm pricing.

# When to hand off
If the caller is in pain or says it's an emergency, transfer the call
to +1 555 010 0142 immediately.
If the caller asks for the office manager, transfer to +1 555 010 0143.
Outside those cases, offer a callback instead of a transfer.
```

### 使用查询工具的订单支持（呼入）

为订单查询添加 [API 连接](/zh/guides/api-connections)或
[已连接应用](/zh/guides/connect-apps)，并添加包含退货政策的
知识库。

```text
# Who you are
You are the support agent for Brightbox, an online electronics store.
Friendly, direct, and honest about what you can and can't do.

# How to run the call
Ask for the order number first. Read it back digit by digit and
confirm before looking anything up.
Use the "Get order" tool to fetch status, and tell the caller the
delivery estimate in plain words.
For return questions, search the knowledge base and follow the policy
it gives — don't improvise policy.

# Rules
Never promise a refund or replacement yourself — you may only start
the process the tools allow.
If a tool fails twice, stop retrying and offer a callback.
Ask one question at a time and keep answers short.

# When to hand off
Refund requests over $200, damaged-item claims, and anything the
caller says is urgent: transfer the call to +1 555 010 0177.
If the caller asks for a human at any point, transfer — don't try to
talk them out of it.
```

### 预约提醒（外呼）

对于外呼脚本，还需在
[高级通话行为](/zh/guides/agent-settings)中设置**谁先说话**和**语音信箱
处理**——提示词涵盖对话，设置涵盖接通后的处理。

```text
# Who you are
You are calling on behalf of Lakeview Dental to confirm an upcoming
appointment. You are brief and courteous — this is their time.

# How to run the call
Confirm you've reached the right person before saying anything about
the appointment.
State the appointment day and time, and ask if it still works.
If yes: thank them and end the call.
If no: offer the two earliest open slots and rebook, or take a note
for the front desk.

# Rules
This call should take under two minutes.
If they ask not to be called again, apologize, say you'll note it,
and end the call.
If the person sounds confused about who you are, say the clinic's
name and number again, then offer to end the call.

# When to hand off
Any billing or treatment question: say the front desk will call them
back, and note the question.

# Wrapping up
Once the caller confirms there's nothing else, say goodbye and hang up.
```

<Warning>
  外呼须遵守法律要求——同意、呼叫时段和身份识别规则因地区而异。运行活动前，请查阅
  [外呼法律指南](/zh/guides/outbound-calling-laws)。
</Warning>

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

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

1. **与它交谈。** 在构建器中点击 **对话**，亲自测试边界情况——打断它、偏离脚本、含糊地说出电话号码。这是最快的调整与重试循环。
2. **[模拟通话。](/zh/guides/simulate-a-call)** AI 来电者会按场景逐一与您的智能体进行完整对话。
3. **[构建验证集。](/zh/guides/validation-sets)** 将您关心的场景转化为可重复运行的套件，并在每次修改提示词后重新运行。
4. **[在生产环境中进行 A/B 测试。](/zh/guides/experiments-ab-testing)** 当两种措辞看起来都没问题时，让真实通话来决定。

每次部署都会在 **历史记录** 标签页中生成快照，因此您可以放心频繁发布提示词变更——您始终可以查看差异并回滚。

## 后续步骤

<CardGroup cols={2}>
  <Card title="构建您的第一个智能体" icon="wand-magic-sparkles" href="/zh/guides/build-an-agent">
    从头到尾使用构建器：提示词、引擎、语音、工具、部署。
  </Card>
  <Card title="知识库" icon="book" href="/zh/guides/knowledge-base">
    为智能体提供可检索的事实，而不是编写更长的提示词。
  </Card>
  <Card title="动态通话配置" icon="shuffle" href="/zh/guides/dynamic-call-config">
    根据每通电话，通过您自己的后端重写提示词。
  </Card>
  <Card title="所有智能体设置" icon="sliders" href="/zh/guides/agent-settings">
    监管、谁先说话、语音信箱、静默检查等。
  </Card>
</CardGroup>
