Last active
March 16, 2020 02:29
-
-
Save jirawatee/5569088ba839e38c60a85fa7ca6b5497 to your computer and use it in GitHub Desktop.
Sample in how to add LINE Quick Reply as JSON in Dialogflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"line": { | |
"type": "flex", | |
"altText": "Rabbit LINE Pay", | |
"contents": { | |
"type": "carousel", | |
"contents": [ | |
{ | |
"type": "bubble", | |
"hero": { | |
"type": "image", | |
"url": "https://miro.medium.com/max/1482/1*mbpxFZoxrbSZ2-Cie5drkA.png", | |
"size": "full", | |
"aspectRatio": "16:9", | |
"aspectMode": "cover" | |
}, | |
"body": { | |
"type": "box", | |
"layout": "vertical", | |
"spacing": "sm", | |
"contents": [ | |
{ | |
"type": "text", | |
"text": "ลองเล่น LINE Pay API ผ่านระบบสั่งอาหารออนไลน์", | |
"size": "lg", | |
"weight": "bold", | |
"wrap": true | |
}, | |
{ | |
"type": "box", | |
"layout": "baseline", | |
"flex": 1, | |
"contents": [ | |
{ | |
"type": "text", | |
"text": "ลองเล่น LINE Pay API ผ่านระบบสั่งอาหารออนไลน์", | |
"flex": 0, | |
"size": "sm", | |
"wrap": true | |
} | |
] | |
} | |
] | |
} | |
} | |
] | |
}, | |
"quickReply": { | |
"items": [ | |
{ | |
"type": "action", | |
"action": { | |
"type": "message", | |
"label": "LINE Chatbot", | |
"text": "LINE Chatbot" | |
} | |
}, | |
{ | |
"type": "action", | |
"action": { | |
"type": "message", | |
"label": "LIFF", | |
"text": "LIFF" | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment