Objects
Last update: 5 hours ago by Irais Aguirre
Objects used when sending RCS messages.
Message
| Property | Description | Type | Requirements |
|---|---|---|---|
| text | Text to send. UTF-8 encoded. | String |
|
| richCard | Rich Card structure. | RichCard |
|
| contentInfo | Information about an image or video. | ContentInfo |
|
| suggestions | List of suggested replies and suggested actions (make a call, send a location, etc.). | Suggestion[] |
|
RichCard
| Property | Description | Type | Requirements |
|---|---|---|---|
| carouselCard | Card carousel. | CarouselCard |
|
| standaloneCard | Single card. | StandaloneCard |
|
StandaloneCard
| Property | Description | Type | Requirements |
|---|---|---|---|
| cardOrientation | Width of the carousel cards. | String |
|
| thumbnailImageAlignment | Alignment of the image preview when cardOrientation is "HORIZONTAL". | String |
|
| cardContent | Card content. | CardContent |
|
CarouselCard
| Property | Description | Type | Requirements |
|---|---|---|---|
| cardWidth | Width of the carousel cards. | String |
|
| cardContents | List of content for each card in the carousel. | CardContent[] |
|
CardContent
| Property | Description | Type | Requirements |
|---|---|---|---|
| title | Card title. | String |
|
| description | Text inside the card. | String |
|
| media | Image or video to include in the card. | Media | |
| suggestions | List of suggested replies and suggested actions (make a call, send a location, etc.). | Suggestion[] |
|
Media
| Property | Description | Type | Requirements |
|---|---|---|---|
| height | Height of the image or video inside a card. | String |
|
| contentInfo | Information about the image or video. | ContentInfo |
|
ContentInfo
| Property | Description | Type | Requirements |
|---|---|---|---|
| fileUrl | Publicly accessible URL where the file, image, or video is located. | String |
|
| thumbnailUrl | Publicly accessible URL of the image or video preview. | String |
|
| forceRefresh | Indicates whether the file and preview are fetched from the specified URLs even if the platform already has cached copies of these files. | Boolean |
|
Suggestion
| Property | Description | Type | Requirements |
|---|---|---|---|
| reply | Suggested reply that the user can tap to reply to the Agent. | suggestedreply |
|
| action | Action that the user can tap to start an operation on the device (make a call, send a location, etc.) | SuggestedAction |
|
SuggestedReply
| Property | Description | Type | Requirements |
|---|---|---|---|
| text | Text displayed in the suggested reply and sent to the Agent when the user taps it. | String |
|
| postbackData | Information the Agent receives when the user taps the suggested reply. | String |
|
SuggestedAction
| Property | Description | Type | Requirements |
|---|---|---|---|
| text | Text displayed in the suggested action. | String |
|
| postbackData | Information the Agent receives when the user taps the suggested action. | String |
|
| dialAction | Opens the phone app with a pre-filled phone number. | DialAction |
|
| viewLocationAction | Opens the maps app and places a pin at a location specified by the Agent. | ViewLocationAction |
|
| createCalendarEventAction | Starts creating a new event in the calendar app with pre-filled data. | CreateCalendarEventAction |
|
| openUrlAction | Opens the browser with the specified URL. This URL can open an app if the app is configured to do so. | OpenUrlAction |
|
| shareLocationAction | Opens the maps app so the user can choose a location and send it to the Agent. | ShareLocationAction |
|
DialAction
| Property | Description | Type | Requirements |
|---|---|---|---|
| phoneNumber | Phone number pre-filled in the phone app. | String |
|
ViewLocationAction
| Property | Description | Type | Requirements |
|---|---|---|---|
| latLong | The latitude and longitude of a specific location. | LatLng |
|
| label | Text to display as the label of the pin placed at the specified latitude and longitude. | String |
LatLng
| Property | Description | Type | Requirements |
|---|---|---|---|
| latitude | Latitude in degrees | Number |
|
| longitude | Longitude in degrees | Number |
|
CreateCalendarEventAction
| Property | Description | Type | Requirements |
|---|---|---|---|
| startTime | Event start date and time in UTC. | String |
|
| endTime | Event end date and time in UTC. | String |
|
| title | Event title. | String | |
| description | Event description. | String |
OpenUrlAction
| Property | Description | Type | Requirements |
|---|---|---|---|
| url | URL to open in the browser. | String |
|
