Open in
プロンプトガイド
電話で自然に聞こえ、実際の発信者にも対応できるプロンプトの戦術とコピー&ペースト用テンプレート。
プロンプトは、エージェントの運用スクリプトです。エージェントが何者で、何を知っており、 通話をどう進め、何を決してしてはならないかを、任意の言語の平易な 言葉で記述します。このページでは、プロンプトの構成方法、電話で最も重要となる 戦術、そして開始時に使える完全なテンプレート3種類を説明します。
骨組みから始める
優れた音声エージェントのプロンプトのほぼすべては、5つの質問に答えます。セクション見出しを 使用してください。コストはかからず、長いプロンプトも編集しやすくなります。
# 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 トークンは基本料金に含まれます。より長いプロンプトには ブロックベースの追加料金が適用されます。
電話で重要な戦術
一般論ではなく具体的に
曖昧な指示は曖昧なエージェントを生みます。求める正確な動作を指定します。
| 次のように書く代わりに | このように書く |
|---|---|
| 「注文には注意してください。」 | 「変更を加える前に、注文番号を発信者に復唱して確認してください。」 |
| 「プロフェッショナルに対応してください。」 | 「発信者の名前がわかったら一度使用してください。決して話を遮らないでください。」 |
| 「スケジュール設定を支援してください。」 | 「最も早く空いている2つの時間枠を提示し、どちらが都合よいか尋ねてください。」 |
目ではなく耳のために書く
発信者はエージェントの話を聞きます。流し読みや読み直しはできません。エージェントには発話ターンを短く保ち、一度に1つの質問をし、データを声に出して読む方法を指示します。
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".間違えたくない情報はすべて確認する
音声認識は名前、数字、住所を聞き間違えることがあります。フローに復唱確認を組み込みます。
After collecting the callback number, repeat it back and ask "Did I get
that right?" before moving on.復唱確認は、値が伝えられた形式で求めます。メールアドレスは1文字ずつ、電話番号は1桁ずつ確認します。要約による復唱確認(「つまり、Gmailですね」など)では何も確認できません。
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」は単語として残り、ドメインは1文字違いで返ってきます。
Boltはまず音声をテキストに文字起こしし、その文字起こしをもとに推論します。そのため、文字起こしで失われた情報はすでに失われています。Stormは音声そのものを聞くため、スペル入力文字列の認識精度が大幅に高くなります。メールアドレスや参照番号が完全に正確でなければ通話の価値がない場合、この差は価格差以上の価値があります。モデル階層を参照してください。
次に、プロンプトで省略できない場所に検証を設定します。アドレスを受け取るツールパラメーターで"format": "email"を宣言します。ThunderPhoneは一般的な文字起こしの不具合を修正し、修正できない値はエンドポイントの実行前に拒否します。そのため、エージェントは誤ったアドレスをシステムに書き込む代わりに、再度尋ねます。ツール連携を構築するを参照してください。
想定外の経路も台本に含める
理想的な経路は自然に書けます。通話の成否はそれ以外の場面で決まります。間違い電話、怒っている発信者、回答できない質問など、予測できる各状況に対するセリフをエージェントに与えます。
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.通話の次の行き先を必ず用意する
すべてのエージェントには引き継ぎ先が必要です。転送番号、折り返しの約束、またはその両方を用意します。プロンプトエディターは、引き継ぎ先を見つけられない場合に警告します。
通話アクションは通常のプロンプト行で指定する
転送、キーパッド操作、保留、通話終了には個別の設定は不要です。フロー内の適切な場所で記述します。
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.ルーティングルール、確認付き引き継ぎ、失敗時のフォールバックについては、通話を転送するを参照してください。その他すべてのプラットフォームアクションについては、組み込みツールを参照してください。
事実はナレッジに、動作はプロンプトに記述する
ウェブサイトの内容をプロンプトに貼り付けないでください。ナレッジベースを接続すると、エージェントは通話中に検索できます。プロンプトを短く保てるため、ポリシーを更新するたびに台本を編集し直す必要がありません。プロンプトにはアイデンティティ、フロー、ルールを記述し、カタログ、よくある質問、長いポリシーテキストはナレッジに移します。
プレースホルダーではなく動的設定で通話ごとにパーソナライズする
プロンプトにはテンプレート変数システムがありません。別のプラットフォームから残った{{customer_name}}は文字どおりのテキストとして読み上げられ、ビルダーでは未解決のプレースホルダーとして警告されます。発信者ごとにプロンプトを変える場合(VIPルーティング、ログイン済みユーザーのコンテキスト)は、動的通話設定を使用して通話時に書き換えます。
聞かせたい言語で書く
プロンプトはどの言語でも記述でき、エージェントはそれに従います。エージェントが話す言語は別途設定します。主要言語で通話を開始し、発信者が使用する場合は追加言語へ自動的に切り替わります。
テンプレート
コピーしてから独自の内容に調整できる、完成済みのプロンプトを3つ紹介します。事業に関する 事実、数値、ポリシーに置き換えてください。
受付担当(受電)
# 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接続または 連携済みアプリ、および返品ポリシーを含む ナレッジベースを接続してください。
# 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.予約リマインダー(発信)
発信スクリプトでは、高度な通話動作で 最初に話す側と留守番電話の処理も設定してください。 プロンプトは会話を、設定は応答後の動作を制御します。
# 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.実際の発信者に対応できるまで改善する
最初のドラフトで正しいプロンプトになることはありません。効果的なループは次のとおりです。
- 実際に話す。 ビルダーで 通話 をクリックし、境界条件を自分で試します。割り込む、台本から外れる、電話番号をぼそぼそ言うなどです。これが最も速い調整と再試行のループです。
- 通話をシミュレーションする。 AI発信者が、シナリオごとにエージェントと会話全体を実行します。
- 検証セットを作成する。 重視するシナリオを、プロンプトを変更するたびに再実行できる反復可能なスイートにします。
- 本番環境でスプリットテストする。 どちらの表現も問題なさそうな場合は、実際の通話で判断します。
すべてのデプロイは 履歴 タブにスナップショットとして保存されるため、プロンプトの変更を安心して頻繁にリリースできます。いつでも差分を確認してロールバックできます。