# StaticContentMessage

The StaticContentMessage message type supports multiple format types, including Text, RichLink, Attachments, and WebView. See [Format Types](/docs/service/messaging-api/references/about/message-types-format-types.md#format-types) for a list of supported message types and the format types they support.

## Text

```sfdocs-code {"lang":"json", "title": "Sample Payload" }
{
    "entryType": "Message",
    "id": "04d4fa0e-fdd7-464e-88c7-c68a933bd311",
    "abstractMessage": {
        "messageType": "StaticContentMessage",
        "inReplyToMessageId": null,
        "id": "04d4fa0e-fdd7-464e-88c7-c68a933bd311",
        "references": [],
        "staticContent": {
            "formatType": "Text",
            "text": "hi"
        }
    },
    "messageReason": null
}
```

## RichLink

```sfdocs-code {"lang":"json", "title": "Sample Payload" }
{
    "entryType": "Message",
    "id": "712d0f33-305f-4589-9f33-a53a17fbc6cb",
    "abstractMessage": {
        "messageType": "StaticContentMessage",
        "inReplyToMessageId": null,
        "id": "712d0f33-305f-4589-9f33-a53a17fbc6cb",
        "references": null,
        "staticContent": {
            "formatType": "RichLink",
            "image": {
                "assetType": "ImageAsset",
                "description": null,
                "id": "913fcc1e-4916-4515-a646-63194a49d01b",
                "mimeType": "image/png",
                "assetUrl": "https://assets.acme.com/img/conversation/link_icon.png",
                "referenceId": null
            },
            "text": null,
            "video": null,
            "linkItem": {
                "itemType": "TitleLinkItem",
                "titleItem": {
                    "itemType": "TitleImageItem",
                    "secondarySubTitle": null,
                    "title": "Log into Meetbook",
                    "subTitle": null,
                    "tertiarySubTitle": null,
                    "referenceId": null,
                    "imageSubTitle": null,
                    "imageId": "913fcc1e-4916-4515-a646-63194a49d01b"
                },
                "url": "https://meetbook.com"
            }
        }
    },
    "messageReason": null
}
```

## Attachments

```sfdocs-code {"lang":"json", "title": "Sample Payload" }
{
    "entryType": "Message",
    "id": "c4005b2c-295a-4f99-a96c-591e555cea27",
    "abstractMessage": {
        "messageType": "StaticContentMessage",
        "inReplyToMessageId": null,
        "id": "c4005b2c-295a-4f99-a96c-591e555cea27",
        "references": [
            {
                "recordId": "068SB000000Jkjt",
                "id": "415ce74d-b7f1-4d3b-a410-054f47460847"
            }
        ],
        "staticContent": {
            "formatType": "Attachments",
            "text": null,
            "attachments": [
                {
                    "name": "wallpaper.jpeg",
                    "attachmentUploadResult": null,
                    "id": "52625e9f-6850-4e89-82e4-b3ed0cfbb86d",
                    "mimeType": "image/jpeg",
                    "url": "https://assets.acme.com/download/?oid=00DSB0000005YCL&ids=068SB000000Jkjt&d=%2Fa%2FSB0000001nbN%2F0J_yOea4Pd..4kALEwRx8onlXYCsYgGKrOmOrTkaLSk&asPdf=false",
                    "referenceId": "415ce74d-b7f1-4d3b-a410-054f47460847"
                }
            ]
        }
    },
    "messageReason": null
}
```

## WebView

```sfdocs-code {"lang":"json", "title": "Sample Payload" }
{
    "entryType": "Message",
    "id": "55d7b2f1-649d-4592-8d7c-97501bd4cf8f",
    "abstractMessage": {
        "messageType": "StaticContentMessage",
        "inReplyToMessageId": null,
        "id": "55d7b2f1-649d-4592-8d7c-97501bd4cf8f",
        "references": null,
        "staticContent": {
            "formatType": "WebView",
            "displayType": "AutoOverlay",
            "title": {
                "itemType": "TitleItem",
                "secondarySubTitle": null,
                "title": "Thanks for chatting with us! Please take a moment to share your feedback.",
                "subTitle": null,
                "tertiarySubTitle": null,
                "referenceId": null
            },
            "parameters": null,
            "url": "https://www.surveyalligator.com/r/WWDTNY7"
        }
    },
    "messageReason": "AutomatedResponse"
}
```
