Message Payloads
Standard message components
CSML message components all have a matching message format for client use in regular JSON. They can be extended by adding additional properties to the content wrapper.
Text()
> Text()
{
"content": {
"text": "message"
},
"content_type": "text"
}Typing()
> Typing()
{
"content": {
"duration": 1000
},
"content_type": "typing"
}Wait()
Url()
Image()
Audio()
Video()
File()
Button()
Payload()
Question()
Child components
Component payloads can be included into one another seamlessly. For example:
Last updated
Was this helpful?