会話型アクションのサポートは 2023 年 6 月 13 日に終了しました。詳細については、
会話型アクションの廃止をご覧ください。
スマートフォン
スマートフォンで利用可能なマルチモーダル機能(音声と視覚の両方を含む)をフルに使用して、外出先でユーザーをサポートしましょう。
モダリティ
画面のあるモバイル デバイスの場合、アクションは次の 2 つのモダリティをサポートする必要があります。
ユーザーはアクションの中で、これらのモダリティ間を自由に移動できます。これらの各モダリティ専用のリッチ レスポンスを設計してください。たとえばキーボード呼び出しで、SSML でサウンドが提供されている場合、サウンドは再生されません。レスポンスがユーザーの音を聞くことに依存し、デバイスがキーボード モダリティを使用している場合、アクションは再生される音の種類を説明する必要があります。
スマートフォンの画面の使用可否と入力モダリティは、次のコードを使用して検出できます。
- 画面の有無:
if (conv.screen)
- 音声モダリティの使用:
if (conv.input.type === 'VOICE')
- キーボード モダリティの使用:
if (conv.input.type === 'KEYBOARD')
ヒントとベスト プラクティス
- リッチ レスポンスとテーマのカスタマイズを使用して、画面を最大限に活用します。
- プッシュ通知を使用して、モバイル デバイスにユーザーの注意を引き続けることを検討してください。
- ユーザーは外出中であることを念頭に置き、できるだけ早くタスクを達成できるようにサポートしてください。自然で直感的な会話フローを作成する方法については、会話デザインガイドをご覧ください。
- ウェブサイト、モバイルアプリ、ソーシャル メディアからアクションに直接ディープリンクして、音声での操作に適したエクスペリエンスを提供します。

次のアクションを試す
次のサンプルを試す
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-12-02 UTC。
[null,null,["最終更新日 2023-12-02 UTC。"],[[["Build Actions that enable users to accomplish tasks on their mobile devices using voice and visual interactions."],["Support both voice and keyboard invocation methods, tailoring responses appropriately for each modality."],["Enhance the user experience with rich responses, push notifications, and concise conversational flows."],["Leverage deep links to seamlessly integrate your Action with other platforms like websites and apps."]]],["Actions on mobile devices should support both voice and keyboard input. Developers can detect screen availability and input modality using `conv.screen` and `conv.input.type` respectively. When using keyboard input, sounds should be described in text instead of played. Rich responses and theme customization enhance screen usage, while push notifications and deep links maintain user engagement. Prioritize quick task completion and intuitive conversational flows, considering the user is on the go.\n"]]