ナビゲーションにスキップ

インタラクティブメッセージ

WhatsAppの会話で、タップ可能なボタンやリストをエージェントから提示できます

概要

ユーザーに回答を入力してもらう代わりに、エージェントからWhatsAppの インタラクティブメッセージ を送信できます。タップ可能な返信ボタンを最大3つ、または選択肢を最大10件含むリストを提示できます。ユーザーがタップした内容は次のメッセージとして返され、エージェントはどの選択肢が選ばれたかを正確に把握できます。

インタラクティブメッセージは、進行中のWhatsAppメッセージ会話でのみ使用できます。エージェントは、次の2つのインテグレーションツールを使って送信します。

  • Send Interactive Buttons to conversation — 少数の選択肢に適した、最大3つの返信ボタン。
  • Send Interactive List to conversation — 4つ以上の選択肢に適した、セクション別にグループ化されたタップ可能な選択肢のリスト。
ユーザーがリストメニューと返信ボタンを使って通信時間を購入しています。

出典:MetaによるWhatsAppインタラクティブメッセージのガイド。

ツールを有効にする

1

WhatsAppインテグレーションを追加する

WhatsAppビジネスアカウントをインポート(手順)してから、 インテグレーションページに移動し、_Add integration _ ボタンをクリックします。WhatsAppを選択してアカウントを接続してください。

2

ツールを追加する

ツールページに移動し、_Add integration tool _ ボタンをクリックします。WhatsAppインテグレーションを選択し、_ Send Interactive Buttons to conversation _ と Send Interactive List to conversation ツールを追加してください。

複数のWhatsAppアカウントをインポートしている場合、アカウントごとに個別のWhatsAppインテグレーションがあります。 エージェントが使用するアカウントに接続されたインテグレーションから、ツールを追加してください。 別のアカウントのインテグレーションから追加したツールは、このエージェントの 会話では機能しません。

3

ツールをエージェントに追加する

エージェント設定にツールを追加します。ツールは常に進行中の 会話のユーザーにメッセージを送信します。エージェントが選ぶのは内容だけで、受信者は選びません。

インタラクティブボタンを送信する

Send Interactive Buttons to conversation は、現在のWhatsAppメッセージ会話に1~3個の選択肢を表示します。

パラメーター必須説明
body_textはいボタンの上に表示されるメッセージ。最大1024文字。
buttonsはい表示順に並べた1~3個のボタン。タイトルは一意である必要があります。
footer_textいいえボタンの下に表示される小さなテキスト。最大60文字。

各ボタンには次のフィールドがあります。

フィールド必須説明
idはいユーザーがこのボタンをタップしたときに返される識別子。最大256文字。
titleはいボタンのラベル。最大20文字。

インタラクティブリストを送信する

Send Interactive List to conversation は、現在のWhatsAppメッセージ会話にセクション別にグループ化された選択肢を表示します。ユーザーはリストを開いて行を選択します。

パラメーター必須説明
body_textはいリストの上に表示されるメッセージ。最大4096文字。
button_textはいリストを開くボタンのラベル。最大20文字。
sectionsはい1~10個の選択肢グループ。リスト全体で最大10行まで含めることができます。
header_textいいえメッセージ本文の上に表示される見出し。最大60文字。
footer_textいいえリストの下に表示される小さなテキスト。最大60文字。

各セクションには次のフィールドがあります。

フィールド必須説明
titleはいセクションの見出し。最大24文字。
rowsはいこのセクション内の1~10個の選択肢。

各行には次のフィールドがあります。

フィールド必須説明
idはいユーザーがこの行を選んだときに返される識別子。最大200文字。
titleはい行のラベル。最大24文字。
descriptionいいえ行ラベルの下に表示される補足テキスト。最大72文字。

エージェントが上限を超える内容を生成すると、ツール呼び出しは失敗し、その理由がエージェントに通知されます。これにより、内容を短くして再試行できます。

エージェントへのプロンプト

選択肢を提示するタイミングをシステムプロンプトでエージェントに指示します。例:

When you need the user to pick from a fixed set of options (appointment slots,
product variants, yes/no confirmations), use the Send Interactive Buttons tool
for up to 3 options or the Send Interactive List tool for more. Keep option
titles short. Do not use interactive messages for open-ended questions.

オプション:エージェントのツール使用を制御する手順を追加する

エージェントにツールを与えるだけでは不十分です。手順を使って、ツールの適切な操作方法を指示できます。

以下の手順はテンプレートであり、そのまま使用できるものではありません。コピーした後、用途に合わせて調整してください。 フローに合わせてトリガーを調整し、エージェントが実際に使用できるツールだけを残し、選択肢の 例とルールをユースケースに合わせて書き換えます。

---
name: Offer choices with interactive messages
trigger: The user must pick from a fixed set of known options in a WhatsApp message conversation, such as appointment slots, product variants, or order confirmations.
---
Offer the options as an interactive message instead of asking the user
to type an answer.
1. Check which interactive tools you have. Prefer Send Interactive
Buttons for 2–3 options and Send Interactive List for 4–10. If only
one of the two is available, use it for any option count that fits its
limits; if no interactive tool fits, ask the question in plain text.
Never present more than 10 options; narrow them down with a question
first.
2. Write a body_text that asks one clear question. Do not stack multiple
questions into one interactive message.
3. Give every option a stable, machine-readable id (for example
slot_2026-08-20_10am) and a short human title — 20 characters for
buttons, 24 for list rows.
4. For lists, group related rows into titled sections, and add a
description to a row only when its title alone is ambiguous.
5. Send the message with the tool, then wait for the user's reply. Do not
send a second interactive message before the user responds to the first.
6. Treat the reply as the user's choice. Confirm it back in one short line
and continue the flow.
Rules:
- Never use interactive messages for open-ended questions.
- When the fixed options may not cover everyone, include a final option
such as "Something else" and follow up with a free-text question.
- If the tool call fails because content exceeds a limit, shorten titles
and descriptions and retry once.
- If the user types an answer instead of tapping, accept it — do not
re-send the options.

制約

  • インタラクティブメッセージを送信できるのは メッセージ 会話内だけです。WhatsApp音声通話中や他のチャネルでは送信できません。
  • WhatsApp Flows(インタラクティブフォーム)には対応していません。ユーザーがFlowの返信で応答しても、エージェントには渡されません。
  • インタラクティブメッセージはセッションメッセージです。進行中の会話内でのみ送信でき、最初の送信連絡には使用できません。会話を始めるにはメッセージテンプレートを使用してください。