{
"messages": [
{
"type": "text",
"text": "歡迎使用最聰明的聊天機器人平台 —— YOCTOL.AI"
},
{
"type": "text",
"text": "您打算創建怎樣的機器人呢?"
}
]
}
{
"messages": [
{
"type": "image",
"originalContentUrl": "https://example.com/original.jpg",
"previewImageUrl": "https://example.com/preview.jpg"
}
]
}
{
"messages": [
{
"type": "video",
"originalContentUrl": "https://example.com/original.mp4",
"previewImageUrl": "https://example.com/preview.jpg"
}
]
}
{
"messages": [
{
"attachment": {
"type": "audio",
"payload": {
"url": "https://ccrma.stanford.edu/~jos/mp3/bachfugue.mp3"
}
}
}
]
}
{
"messages": [
{
"type": "sticker",
"packageId": "1",
"stickerId": "1"
}
]
}
{
"messages": [
{
"type": "template",
"altText": "This is a buttons template",
"template": {
"type": "buttons",
"thumbnailImageUrl": "https://example.com/bot/images/image.jpg",
"imageAspectRatio": "rectangle",
"imageSize": "cover",
"imageBackgroundColor": "#FFFFFF",
"title": "Menu",
"text": "Please select",
"defaultAction": {
"type": "uri",
"label": "View detail",
"uri": "http://example.com/page/123"
},
"actions": [
{
"type": "postback",
"label": "Buy",
"data": "action=buy&itemid=123"
},
{
"type": "postback",
"label": "Add to cart",
"data": "action=add&itemid=123"
},
{
"type": "uri",
"label": "View detail",
"uri": "http://example.com/page/123"
}
]
}
}
]
}
{
"messages": [
{
"type": "template",
"altText": "This is a buttons template",
"template": {
"type": "buttons",
"text": "Please select",
"actions": [
{
"type": "camera",
"label": "Camera"
},
{
"type": "cameraRoll",
"label": "Camera roll"
}
]
}
}
]
}
{
"messages": [
{
"type": "text",
"text": "Did you enjoy the last game of the CF Rockets?",
"quickReply": {
"items": [
{
"type": "action",
"action": {
"type": "cameraRoll",
"label": "Send photo"
}
},
{
"type": "action",
"action": {
"type": "camera",
"label": "Open camera"
}
}
]
}
}
]
}