iT邦幫忙

2018 iT 邦幫忙鐵人賽
DAY 17
0

也是去年沒有的,範例裡有選項的部份,都改成這個,可是很多無法實現好!
line 要實現這個,得作很多容錯。


var msg = new builder.Message(session)
	.text("Thank you for expressing interest in our premium golf shirt! What color of shirt would you like?")
	.suggestedActions(
		builder.SuggestedActions.create(
				session, [
					builder.CardAction.imBack(session, "productId=1&color=green", "Green"),
					builder.CardAction.imBack(session, "productId=1&color=blue", "Blue"),
					builder.CardAction.imBack(session, "productId=1&color=red", "Red")
				]
			));
session.send(msg);

上一篇
Add rich card attachments to messages
下一篇
Intercept messages
系列文
Microsoft Bot Framework 30天上手 + 自幹 Line Builder 串接 + Line Bot Demo30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言