iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 5
1
自我挑戰組

LINE醫療機器人的應用系列 第 5

Day5. Google Apps Script實作Line Bot關鍵字

在Google Apps Script中使用Switch case並且分別要對應到圖文選單那6格,
A B C
D E F
點選該格就會觸發該格的文字,
使用者就會自動說出該格的"文字"
後端Switch case到使用者的"文字"就會觸發不同事件,

https://ithelp.ithome.com.tw/upload/images/20181005/201120374tWtBSfKs2.png

https://ithelp.ithome.com.tw/upload/images/20181005/201120379lrzdhKghV.png

https://ithelp.ithome.com.tw/upload/images/20181005/20112037ZExzEsxEtO.png

https://ithelp.ithome.com.tw/upload/images/20181005/20112037UVIPhW1VZd.png

Google Apps Script這邊先做了A,B,C做測試,

https://ithelp.ithome.com.tw/upload/images/20181005/20112037T2iJ7JYGY2.png

https://ithelp.ithome.com.tw/upload/images/20181005/20112037y6RyOJgpmv.png

成果:

https://ithelp.ithome.com.tw/upload/images/20181005/201120377aD1YuzUgR.jpg

https://ithelp.ithome.com.tw/upload/images/20181005/201120377IMZFoU9rV.jpg

最基本的介面就完成了,點選按鈕的後續進行勢必就要搭配資料庫的寫入和讀取,才能及時更新訊息和呈現。


上一篇
Day4. 在Google Script快速套用Line Bot Designer的JSON程式碼
下一篇
Day6. 使用Photoshop製作LineBot圖文選單
系列文
LINE醫療機器人的應用30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言