StaticContentMessage

The StaticContentMessage message type supports multiple format types, including Text, RichLink, Attachments, and WebView. See Format Types for a list of supported message types and the format types they support.

Text 

Sample Payload
1{
2    "entryType": "Message",
3    "id": "04d4fa0e-fdd7-464e-88c7-c68a933bd311",
4    "abstractMessage": {
5        "messageType": "StaticContentMessage",
6        "inReplyToMessageId": null,
7        "id": "04d4fa0e-fdd7-464e-88c7-c68a933bd311",
8        "references": [],
9        "staticContent": {
10            "formatType": "Text",
11            "text": "hi"
12        }
13    },
14    "messageReason": null
15}

RichLink 

Sample Payload
1{
2    "entryType": "Message",
3    "id": "712d0f33-305f-4589-9f33-a53a17fbc6cb",
4    "abstractMessage": {
5        "messageType": "StaticContentMessage",
6        "inReplyToMessageId": null,
7        "id": "712d0f33-305f-4589-9f33-a53a17fbc6cb",
8        "references": null,
9        "staticContent": {
10            "formatType": "RichLink",
11            "image": {
12                "assetType": "ImageAsset",
13                "description": null,
14                "id": "913fcc1e-4916-4515-a646-63194a49d01b",
15                "mimeType": "image/png",
16                "assetUrl": "https://assets.acme.com/img/conversation/link_icon.png",
17                "referenceId": null
18            },
19            "text": null,
20            "video": null,
21            "linkItem": {
22                "itemType": "TitleLinkItem",
23                "titleItem": {
24                    "itemType": "TitleImageItem",
25                    "secondarySubTitle": null,
26                    "title": "Log into Meetbook",
27                    "subTitle": null,
28                    "tertiarySubTitle": null,
29                    "referenceId": null,
30                    "imageSubTitle": null,
31                    "imageId": "913fcc1e-4916-4515-a646-63194a49d01b"
32                },
33                "url": "https://meetbook.com"
34            }
35        }
36    },
37    "messageReason": null
38}

Attachments 

Sample Payload
1{
2    "entryType": "Message",
3    "id": "c4005b2c-295a-4f99-a96c-591e555cea27",
4    "abstractMessage": {
5        "messageType": "StaticContentMessage",
6        "inReplyToMessageId": null,
7        "id": "c4005b2c-295a-4f99-a96c-591e555cea27",
8        "references": [
9            {
10                "recordId": "068SB000000Jkjt",
11                "id": "415ce74d-b7f1-4d3b-a410-054f47460847"
12            }
13        ],
14        "staticContent": {
15            "formatType": "Attachments",
16            "text": null,
17            "attachments": [
18                {
19                    "name": "wallpaper.jpeg",
20                    "attachmentUploadResult": null,
21                    "id": "52625e9f-6850-4e89-82e4-b3ed0cfbb86d",
22                    "mimeType": "image/jpeg",
23                    "url": "https://assets.acme.com/download/?oid=00DSB0000005YCL&ids=068SB000000Jkjt&d=%2Fa%2FSB0000001nbN%2F0J_yOea4Pd..4kALEwRx8onlXYCsYgGKrOmOrTkaLSk&asPdf=false",
24                    "referenceId": "415ce74d-b7f1-4d3b-a410-054f47460847"
25                }
26            ]
27        }
28    },
29    "messageReason": null
30}

WebView 

Sample Payload
1{
2    "entryType": "Message",
3    "id": "55d7b2f1-649d-4592-8d7c-97501bd4cf8f",
4    "abstractMessage": {
5        "messageType": "StaticContentMessage",
6        "inReplyToMessageId": null,
7        "id": "55d7b2f1-649d-4592-8d7c-97501bd4cf8f",
8        "references": null,
9        "staticContent": {
10            "formatType": "WebView",
11            "displayType": "AutoOverlay",
12            "title": {
13                "itemType": "TitleItem",
14                "secondarySubTitle": null,
15                "title": "Thanks for chatting with us! Please take a moment to share your feedback.",
16                "subTitle": null,
17                "tertiarySubTitle": null,
18                "referenceId": null
19            },
20            "parameters": null,
21            "url": "https://www.surveyalligator.com/r/WWDTNY7"
22        }
23    },
24    "messageReason": "AutomatedResponse"
25}