2024 年 7 月 31 日をもって、Google ビジネス メッセージはご利用いただけなくなります。詳しくは
こちらをご覧ください。
SuggestionResponse
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ユーザーが候補をタップしたときに開始されるレスポンス。
JSON 表現 |
{
"message": string,
"postbackData": string,
"createTime": string,
"text": string,
"type": enum (SuggestionType )
} |
フィールド |
message |
string
候補が含まれるメッセージ。「conversations/{conversationId}/messages/{messageId}」に解決されます。{conversationId} は会話の一意の ID、{messageId} はメッセージの一意の ID です。
|
postbackData |
string
ユーザーが提案をタップしたときにエージェントが受信する、Base64 でエンコードされたペイロード。
|
createTime |
string (Timestamp format)
ユーザーが候補をタップした時刻。 RFC3339 UTC「Zulu」形式のタイムスタンプ。精度はナノ秒まで、小数点以下は最大 9 桁。例: "2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 。
|
text |
string
ユーザーがタップした候補のテキスト。ユーザーに表示されるテキスト。
|
type |
enum (SuggestionType )
ユーザーがタップした候補の種類。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-10 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-10-10 UTC。"],[[["A SuggestionResponse is triggered when a user interacts with a suggestion provided in a Business Messages conversation."],["It contains essential information such as the original message, encoded agent payload, timestamp of the interaction, displayed suggestion text, and the type of suggestion used."],["The response data is structured in JSON format, including fields like `message`, `postbackData`, `createTime`, `text`, and `type` with specific data types and descriptions for each."]]],[]]