AI-generated Key Takeaways
-
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
, andtype
with specific data types and descriptions for each.
A response initiated when a user taps a suggestion.
JSON representation |
---|
{
"message": string,
"postbackData": string,
"createTime": string,
"text": string,
"type": enum ( |
Fields | |
---|---|
message |
The message that contained the suggestions. Resolves to "conversations/{conversationId}/messages/{messageId}", where {conversationId} is the unique ID for the conversation and {messageId} is the unique ID for the message. |
postbackData |
The base64-encoded payload that the agent receives when a user taps the suggestion. |
createTime |
The time that user tapped the suggestion. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
text |
The user-visible text of the suggestion that the user tapped. |
type |
The type of suggestion that the user tapped. |