JSON ข้อความ · Message objectflexlay-service-feedback-request.json
{
"type": "flex",
"altText": "บริการวันนี้เป็นอย่างไรบ้าง? ให้คะแนน Studio Bloom ได้ในแตะเดียว",
"contents": {
"type": "bubble",
"size": "kilo",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "xl",
"contents": [
{
"type": "text",
"size": "lg",
"text": "บริการวันนี้เป็นอย่างไรบ้าง?",
"wrap": true,
"color": "#111827",
"weight": "bold"
},
{
"type": "text",
"size": "sm",
"text": "Studio Bloom · ตัดและทำสีผมกับช่างแพรว",
"wrap": true,
"color": "#5F6673",
"margin": "xs"
},
{
"type": "text",
"size": "xs",
"text": "แตะเลือกคะแนน (5 = ประทับใจมาก)",
"color": "#5F6673",
"margin": "lg"
},
{
"type": "box",
"layout": "horizontal",
"margin": "md",
"spacing": "sm",
"contents": [
{
"type": "box",
"layout": "vertical",
"flex": 1,
"paddingTop": "md",
"cornerRadius": "md",
"paddingBottom": "md",
"backgroundColor": "#F5F3FF",
"contents": [
{
"type": "text",
"size": "lg",
"text": "1",
"align": "center",
"color": "#7C3AED",
"weight": "bold"
}
],
"action": {
"type": "postback",
"data": "action=rate&visit=VS8812&score=1",
"label": "1 คะแนน",
"displayText": "ให้ 1 คะแนน"
}
},
{
"type": "box",
"layout": "vertical",
"flex": 1,
"paddingTop": "md",
"cornerRadius": "md",
"paddingBottom": "md",
"backgroundColor": "#F5F3FF",
"contents": [
{
"type": "text",
"size": "lg",
"text": "2",
"align": "center",
"color": "#7C3AED",
"weight": "bold"
}
],
"action": {
"type": "postback",
"data": "action=rate&visit=VS8812&score=2",
"label": "2 คะแนน",
"displayText": "ให้ 2 คะแนน"
}
},
{
"type": "box",
"layout": "vertical",
"flex": 1,
"paddingTop": "md",
"cornerRadius": "md",
"paddingBottom": "md",
"backgroundColor": "#F5F3FF",
"contents": [
{
"type": "text",
"size": "lg",
"text": "3",
"align": "center",
"color": "#7C3AED",
"weight": "bold"
}
],
"action": {
"type": "postback",
"data": "action=rate&visit=VS8812&score=3",
"label": "3 คะแนน",
"displayText": "ให้ 3 คะแนน"
}
},
{
"type": "box",
"layout": "vertical",
"flex": 1,
"paddingTop": "md",
"cornerRadius": "md",
"paddingBottom": "md",
"backgroundColor": "#F5F3FF",
"contents": [
{
"type": "text",
"size": "lg",
"text": "4",
"align": "center",
"color": "#7C3AED",
"weight": "bold"
}
],
"action": {
"type": "postback",
"data": "action=rate&visit=VS8812&score=4",
"label": "4 คะแนน",
"displayText": "ให้ 4 คะแนน"
}
},
{
"type": "box",
"layout": "vertical",
"flex": 1,
"paddingTop": "md",
"cornerRadius": "md",
"paddingBottom": "md",
"backgroundColor": "#F5F3FF",
"contents": [
{
"type": "text",
"size": "lg",
"text": "5",
"align": "center",
"color": "#7C3AED",
"weight": "bold"
}
],
"action": {
"type": "postback",
"data": "action=rate&visit=VS8812&score=5",
"label": "5 คะแนน",
"displayText": "ให้ 5 คะแนน"
}
}
]
},
{
"type": "box",
"layout": "baseline",
"margin": "sm",
"contents": [
{
"type": "text",
"size": "xxs",
"text": "ไม่พอใจ",
"color": "#5F6673"
},
{
"type": "text",
"size": "xxs",
"text": "ประทับใจมาก",
"align": "end",
"color": "#5F6673"
}
]
}
]
},
"hero": {
"type": "image",
"size": "full",
"url": "https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1024&q=75&fm=jpg&fit=crop",
"aspectMode": "cover",
"aspectRatio": "20:10"
},
"footer": {
"type": "box",
"layout": "vertical",
"paddingAll": "md",
"paddingTop": "none",
"contents": [
{
"type": "button",
"color": "#7C3AED",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"uri": "https://example.com/review/VS8812",
"label": "เขียนรีวิวเพิ่มเติม"
}
}
]
}
}
}