Google Business Messages · Schema
Google Business Message
A message sent or received through the Google Business Messages API.
Business CommunicationsConversationsCustomer SupportGoogleMessaging
Properties
| Name | Type | Description |
|---|---|---|
| name | string | Resource name of the message. |
| messageId | string | Unique identifier of the message. |
| representative | object | The representative sending the message. |
| text | string | Text content of the message. |
| richCard | object | Rich card content. |
| suggestions | array | Suggested replies or actions. |
| fallback | string | Fallback text for unsupported clients. |
| containsRichText | boolean | Whether the message contains rich text. |
| createTime | string | Timestamp of message creation. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "Message.json",
"title": "Google Business Message",
"description": "A message sent or received through the Google Business Messages API.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Resource name of the message."
},
"messageId": {
"type": "string",
"description": "Unique identifier of the message."
},
"representative": {
"type": "object",
"description": "The representative sending the message.",
"properties": {
"representativeType": {
"type": "string",
"enum": ["BOT", "HUMAN"]
},
"displayName": {
"type": "string"
},
"avatarImage": {
"type": "string"
}
}
},
"text": {
"type": "string",
"description": "Text content of the message."
},
"richCard": {
"type": "object",
"description": "Rich card content."
},
"suggestions": {
"type": "array",
"description": "Suggested replies or actions.",
"items": {
"type": "object"
}
},
"fallback": {
"type": "string",
"description": "Fallback text for unsupported clients."
},
"containsRichText": {
"type": "boolean",
"description": "Whether the message contains rich text."
},
"createTime": {
"type": "string",
"description": "Timestamp of message creation."
}
}
}