# 0608 智慧課服 Chatbot ## MovieBot   https://dialogflow.cloud.google.com/#/newAgent 好像自動有登入了 應該是google帳號自動登入 建立agent 跟著訓練回應指令   建立intent 要打Get Movie Intro 記得儲存   重點是把電影名稱選取來換成 @sys.any 你要圈選實際的電影名稱 然後左邊換成MovieName         # EC BOT  幕後花絮的網址是啥 要怎抓到那圖片R  https://api.themoviedb.org/3/search/movie?api_key=8c806b688e77b89a8d25f81127e9721c&language=zh-TW&query=%E5%93%A5%E5%90%89%E6%8B%89%E5%A4%A7%E6%88%B0%E9%87%91%E5%89%9B  多寫一個if ``` if(body.results[0].backdrop_path){ let movieImageObject = {}; movieImageObject.image = { imageUri: "https://image.tmdb.org/t/p/original" + body.results[0].backdrop_path}; thisFulfillmentMessages.push(movieImageObject); } ```     改好要重整 --- 在資料庫建立表格    ---     # 可以換貼紙 https://developers.line.biz/en/docs/messaging-api/sticker-list/ # 給開發者使用的 https://developers.line.biz/en/reference/messaging-api/#text-message # 要對應這個網址去找API https://developers.line.biz/en/docs/messaging-api/message-types/ # Chorme 的擋廣告插件 https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm/related?hl=zh-TW   ---     --- # SmartHomeBot npm install json-server -g (mac要在前面+sudo) Set-ExecutionPolicy RemoteSigned 重開以系統管理員執行 成功畫面  --- 部屬到azure 雲端(學生mail或是pay as you go)    就能回去line 測試就完成了 更改後執行以下的指令  --- https://hospitable-top-f1b.notion.site/EEIT65-Azure-Chatbot-d5e86bc67fb84307bbde2cc3442349d6  日曆點進去,會有錄影 https://www.dropbox.com/scl/fi/symohlutxt5lys5ghtnnp/20230610_090355.mp4?dl=0&rlkey=23pmdddv573x84hncrl70ozqc 像這樣
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up