SlideShare una empresa de Scribd logo
1 de 57
Descargar para leer sin conexión
Service Integration – Ryan@iii.org.tw
Service Integration – Chatbot & Custom Vision AI
III Digital Education Institute
Source	:	https://sijieand500words.com
Ryan Chung
未來之星 – 菁英培育計畫
1
Service Integration – Ryan@iii.org.tw
資策會 數位教育研究所
² 最新科技進修
Ø 在職夜間假日進修
Ø 轉職全天養成班
² 資訊技術充電站
Ø 國際技術趨勢
Ø 職場必備能力
Ø 基本資訊技能
http://taipei.iiiedu.org.tw/
2
Service Integration – Ryan@iii.org.tw
Ryan Chung
² 主要教授科目
Ø 語音助理應用開發
Ø Chatbot應用開發
Ø Web / App 應用
² 資策會數位教育研究所
Ø 課程經理 / 養成班導師
Ø 企業包班 / 政府專案經理
Ø 課程專任講師 /專題輔導
http://mobiledev.tw/ryan
3
Service Integration – Ryan@iii.org.tw
AWS AI
https://aws.amazon.com/tw/amazon-ai/
4
Service Integration – Ryan@iii.org.tw
AWS機器學習服務種類
• 架構 Framework & Infrastructure
–Apache MXNet、Caffe & Caffe 2、Tensorflow
• 平台 Machine Learning platform
–Apache Spark on Amazon EMR、SparkML
• 服務 API-driven service
–影像辨識 Rekognition、文字轉語音 Polly
–聊天機器人 Lex
• 模型 Model
• 實體 Optimized Instance & Machine Image
5
Service Integration – Ryan@iii.org.tw
AWS ML Stack
6
Service Integration – Ryan@iii.org.tw
Amazon AI 應用服務
• 推薦系統
–Two Decades of Recommender Systems at
Amazon.com
• 語音助理
–Amazon Alexa
• 無人商店
7
Source:The	Verge
Service Integration – Ryan@iii.org.tw
Amazon Comprehend
• 語言識別、關鍵資訊擷取、理解正面負面
https://aws.amazon.com/tw/comprehend/
8
Service Integration – Ryan@iii.org.tw
Amazon Polly
• 文字 -> 語音
• 接近真人語音
• 52種聲音、25國語言
• 速度快、準確度高
• 可重複播放使用
9
Service Integration – Ryan@iii.org.tw
SSML
• say-as
–一個字一個字念
• prosody
–可調整速度、大小聲
• lang
–可以穿插別國語言
https://developer.amazon.com/docs/custom-skills/speech-synthesis-markup-language-ssml-reference.html
10
Service Integration – Ryan@iii.org.tw
使用案例
• This app allows you to easily convert any
publicly available RSS content into audio
Podcasts, so you can listen to your favorite
blogs on mobile devices instead of reading
them.
https://github.com/aws-samples/amazon-polly-sample
Source:	meccanismocomplesso.org
11
Service Integration – Ryan@iii.org.tw
微軟認知服務
https://azure.microsoft.com/zh-tw/services/cognitive-services/
12
Service Integration – Ryan@iii.org.tw
辨識服務 MS Cognitive Service
• 辨識
– 可聰明地識別、標示及 控管圖片的影像處理演算法。
• 知識
– 對應複雜資訊和資料,以解決 智慧建議和語意搜尋等工作。
• 語言
– 讓您的應用程式能夠透過預先建置的指令碼處理自然語言、 評估情感,以及了
解如何辨識使用者想要的項目。
• 語音
– 將語音轉換成文字、使用語音來驗證,或將說話者 辨識新增至您的應用程式。
• 搜尋
– 將 Bing 搜尋 API 新增至您的應用程式,並充分利用 以單一 API 呼叫合併數十
億個網頁、影像、影片和新聞的能力。
13
Service Integration – Ryan@iii.org.tw
影像識別:圖片網址
• 輸入圖片網址,可回傳圖片資訊
14
Service Integration – Ryan@iii.org.tw
選取 Computer Vision API
https://azure.microsoft.com/zh-tw/services/cognitive-services/computer-vision/
15
Service Integration – Ryan@iii.org.tw
同意條款並登入帳號
16
Service Integration – Ryan@iii.org.tw
進入 Azure
• 左下角 More services -> Cognitive Services
https://portal.azure.com
17
Service Integration – Ryan@iii.org.tw
建立服務
18
Service Integration – Ryan@iii.org.tw
取得 API KEY
19
Service Integration – Ryan@iii.org.tw
測試
• 下載範例 https://ppt.cc/fxtPvx
• 填上API KEY,開始測試
20
Service Integration – Ryan@iii.org.tw
Custom Vision
https://www.customvision.ai
21
Service Integration – Ryan@iii.org.tw
建立專案
• New Project -> Add images
• 標記Tag,至少5張照片
–In Classroom
• 訓練
• Quick Test
22
Service Integration – Ryan@iii.org.tw
In Classroom
23
Service Integration – Ryan@iii.org.tw
Quick Test
24
Service Integration – Ryan@iii.org.tw
Face API
https://azure.microsoft.com/zh-tw/services/cognitive-services/face/
25
Service Integration – Ryan@iii.org.tw
臉部驗證
• 檢查兩張臉部是屬於同一個人的可能性。API
會傳回信心分數,顯示兩張臉部是屬於同一個
人的可能性。
26
Service Integration – Ryan@iii.org.tw
Microsoft Case – Baby Come Home
https://www.youtube.com/watch?v=AuXnVF_nFws
27
Service Integration – Ryan@iii.org.tw
臉部偵測
• 偵測影像中的一或多張人臉,並取得影像臉部位置所在的臉部矩形
及臉部屬性,該屬性內含以機器學習為基礎的臉部特徵預測。可用
的臉部屬性功能 包括:年齡、表情、性別、姿勢、微笑及鬍子,
以及影像中每張臉部的 27 個地標。
28
Service Integration – Ryan@iii.org.tw
其他服務
29
Service Integration – Ryan@iii.org.tw
整合案例實作
Source:	https://www.jiuwa.net
30
Service Integration – Ryan@iii.org.tw
這是不是肯德基
• 語意分析 + 聊天機器人+ 認知服務 + 部署上線
DialogFlow
• 意圖:判斷品牌
• 資料:品牌名稱
認知服務
Custom Vision
Service
• 圖片分類
MS	Bot	Framework
Bot	Channels
Registration
31
Service Integration – Ryan@iii.org.tw
DialogFlow
• Agent:tellKFCbot
• 語言:zh-TW
• Intent:Is it KFC
訓練例句
32
Service Integration – Ryan@iii.org.tw
Action and parameters
33
Service Integration – Ryan@iii.org.tw
Response
34
Service Integration – Ryan@iii.org.tw
Setting
• V1 API
35
Service Integration – Ryan@iii.org.tw
建立開發專案
• 專案資料夾:tellKFCBot
• 主要程式:index.js
• 終端機指令
npm init
• package.json
在scripts中增加
"start":"node index.js",
"debug":"node --inspect index.js"
36
Service Integration – Ryan@iii.org.tw
index.js
37
Service Integration – Ryan@iii.org.tw
index.js
38
Service Integration – Ryan@iii.org.tw
index.js
39
Service Integration – Ryan@iii.org.tw
index.js
40
https://ppt.cc/fpq6vx
Service Integration – Ryan@iii.org.tw
Custom Vision
• Name:tell-KFC
• Project Type:Classification
• Domains:Food
• Create Project
https://www.customvision.ai/projects
41
Service Integration – Ryan@iii.org.tw
上傳KFC照片,按下Train開始訓練
42
Service Integration – Ryan@iii.org.tw
Performance -> Prediction URL
43
Service Integration – Ryan@iii.org.tw
套件安裝
• 終端機:
npm-install-all index.js
• 新增 .gitignore 檔案
–裡面寫:node_modules/
• Bot Framework版本 – 範例為v3
npm i -S butbuilder@3.15.0
44
Service Integration – Ryan@iii.org.tw
部署至Heroku
• 右上角 New -> Create new app
• 設定App name:tell-kfc-bot
• 區域:美國
• Create App
45
Service Integration – Ryan@iii.org.tw
Deploy using Heroku Git
• 使用Heroku Git (Use Heroku CLI)
• 下載與安裝 Heroku CLI
• 終端機
heroku login
cd my-project-dic
git init
heroku git:remote –a YourProjectNameHere
https://devcenter.heroku.com/articles/heroku-command-line
是你在Heroku中的專案名稱哦!
通常長得像 tell-kfc-bot-xxyyzz
46
Service Integration – Ryan@iii.org.tw
開始部署上傳(每次更新步驟亦同)
• git add .
• git commit –am "make it better"
• git push heroku master
• heroku restart
雙引號這邊像是你的上傳筆記
在這裡寫上這次更新的內容
之後code更新時再加這一步
第一次不用
47
Service Integration – Ryan@iii.org.tw
啟動網站
• heroku ps:scale web=1
非常非常關鍵的一步,一定要記得做
48
Service Integration – Ryan@iii.org.tw
找到Heroku的網址
• Domains and certificates
https://dashboard.heroku.com/apps/YourAppName/settings
• 其實網址就是
https://YourAppName.herokuapp.com
49
Service Integration – Ryan@iii.org.tw
使用Azure Bot頻道訂閱服務
• 進入 portal.azure.com
• 上方搜尋Bot Channels Registration
• Bot name:tellKFCBotMMDD
• Pricing tier:F0
• Messaging endpoint:heroku網址/api/messages
• Application Insights:Off
• 點擊App ID and password
– Create New
– Create App ID in the App Registration Portal
– 產生完後,記下來,貼回Azure與程式碼中
• Create
50
Service Integration – Ryan@iii.org.tw
設定EndPoint
• Settings -> 設定Messaging endpoint
https://your-project-name.herokuapp.com/api/messages
• 完成後按下上方Save
51
Service Integration – Ryan@iii.org.tw
Test in Web Chat
• 在Azure雲端上的Web Chat進行測試
52
Service Integration – Ryan@iii.org.tw
測試
53
Service Integration – Ryan@iii.org.tw
Channels
• 依需求再開通哪些頻道可使用服務
54
Service Integration – Ryan@iii.org.tw
Recap for Developer
• 新一代的開發者:Connector
• 使用者介面、處理機制與雲端資源
• Node.js 在潮流中倍受重視
• 語音助理/Chatbot 設計的第一步是釐清目標
Source	:	https://sijieand500words.com
Service Integration – Ryan@iii.org.tw
Recap for All
• 自然語言交談介面裝置將大舉進入你的生活
• 語言和文化密不可分,跨領域合作優化服務
• 多元化的後端服務與資料,將產生殺手級應用
Service Integration – Ryan@iii.org.tw
敬請指教
Ryan Chung
Senior Engineer
III Digital Education Institute
Ryan@iii.org.tw
57

Más contenido relacionado

Similar a Service Integration Workshop

#3月瘋行動 打造行動網站,掌上流量一網打盡
#3月瘋行動 打造行動網站,掌上流量一網打盡#3月瘋行動 打造行動網站,掌上流量一網打盡
#3月瘋行動 打造行動網站,掌上流量一網打盡AdWordsGreaterChina
 
iOS On Boarding Training
iOS On Boarding TrainingiOS On Boarding Training
iOS On Boarding TrainingRyan Chung
 
Jira live demo_2020_v20
Jira live demo_2020_v20Jira live demo_2020_v20
Jira live demo_2020_v20Linktech
 
20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suite20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suiteMeng-Ru (Raymond) Tsai
 
Intro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot DevelopmentIntro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot DevelopmentRyan Chung
 
李昶翰(Reborn):工作流程自動化 Microsoft Power Platform – 運用 Power BI + Power Automate ...
李昶翰(Reborn):工作流程自動化 Microsoft Power Platform –  運用 Power BI + Power Automate ...李昶翰(Reborn):工作流程自動化 Microsoft Power Platform –  運用 Power BI + Power Automate ...
李昶翰(Reborn):工作流程自動化 Microsoft Power Platform – 運用 Power BI + Power Automate ...開拓文教基金會
 
App狂潮來襲!你做好準備了嗎?
App狂潮來襲!你做好準備了嗎?App狂潮來襲!你做好準備了嗎?
App狂潮來襲!你做好準備了嗎?Ryan Chung
 
AWS re:Invent 2018 Recap
AWS re:Invent 2018 RecapAWS re:Invent 2018 Recap
AWS re:Invent 2018 RecapRyan Chung
 
ALPHAhackathon: How to collaborate
ALPHAhackathon: How to collaborateALPHAhackathon: How to collaborate
ALPHAhackathon: How to collaborateWen-Tien Chang
 
MiCloud服務提供者訓練
MiCloud服務提供者訓練MiCloud服務提供者訓練
MiCloud服務提供者訓練Simon Su
 
Picoway Company Profile 1.5
Picoway Company Profile 1.5Picoway Company Profile 1.5
Picoway Company Profile 1.5picoway
 
Picoway Company Profile V1.5
Picoway Company Profile V1.5Picoway Company Profile V1.5
Picoway Company Profile V1.5picoway
 
AI Service Integration - Education
AI Service Integration - EducationAI Service Integration - Education
AI Service Integration - EducationRyan Chung
 
侯聪简历
侯聪简历侯聪简历
侯聪简历聪 侯
 
用简单语言构建复杂系统
用简单语言构建复杂系统用简单语言构建复杂系统
用简单语言构建复杂系统Leo Zhou
 
twMVC#42 讓我們用一種方式來開發吧
twMVC#42 讓我們用一種方式來開發吧twMVC#42 讓我們用一種方式來開發吧
twMVC#42 讓我們用一種方式來開發吧twMVC
 
台中市創業平台建置計畫
台中市創業平台建置計畫台中市創業平台建置計畫
台中市創業平台建置計畫Chris 克里斯
 
GDG Taichung: What is new in Firebase
GDG Taichung: What is new in Firebase GDG Taichung: What is new in Firebase
GDG Taichung: What is new in Firebase Duran Hsieh
 
01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overviewAlan Tsai
 

Similar a Service Integration Workshop (20)

#3月瘋行動 打造行動網站,掌上流量一網打盡
#3月瘋行動 打造行動網站,掌上流量一網打盡#3月瘋行動 打造行動網站,掌上流量一網打盡
#3月瘋行動 打造行動網站,掌上流量一網打盡
 
iOS On Boarding Training
iOS On Boarding TrainingiOS On Boarding Training
iOS On Boarding Training
 
Jira live demo_2020_v20
Jira live demo_2020_v20Jira live demo_2020_v20
Jira live demo_2020_v20
 
20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suite20170108 微軟大數據整合解決方案- cortana intelligence suite
20170108 微軟大數據整合解決方案- cortana intelligence suite
 
Intro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot DevelopmentIntro to Dialogflow Chatbot Development
Intro to Dialogflow Chatbot Development
 
李昶翰(Reborn):工作流程自動化 Microsoft Power Platform – 運用 Power BI + Power Automate ...
李昶翰(Reborn):工作流程自動化 Microsoft Power Platform –  運用 Power BI + Power Automate ...李昶翰(Reborn):工作流程自動化 Microsoft Power Platform –  運用 Power BI + Power Automate ...
李昶翰(Reborn):工作流程自動化 Microsoft Power Platform – 運用 Power BI + Power Automate ...
 
App狂潮來襲!你做好準備了嗎?
App狂潮來襲!你做好準備了嗎?App狂潮來襲!你做好準備了嗎?
App狂潮來襲!你做好準備了嗎?
 
AWS re:Invent 2018 Recap
AWS re:Invent 2018 RecapAWS re:Invent 2018 Recap
AWS re:Invent 2018 Recap
 
ALPHAhackathon: How to collaborate
ALPHAhackathon: How to collaborateALPHAhackathon: How to collaborate
ALPHAhackathon: How to collaborate
 
MiCloud服務提供者訓練
MiCloud服務提供者訓練MiCloud服務提供者訓練
MiCloud服務提供者訓練
 
Picoway Company Profile 1.5
Picoway Company Profile 1.5Picoway Company Profile 1.5
Picoway Company Profile 1.5
 
Picoway Company Profile V1.5
Picoway Company Profile V1.5Picoway Company Profile V1.5
Picoway Company Profile V1.5
 
AI Service Integration - Education
AI Service Integration - EducationAI Service Integration - Education
AI Service Integration - Education
 
侯聪简历
侯聪简历侯聪简历
侯聪简历
 
Data Pipeline Matters
Data Pipeline MattersData Pipeline Matters
Data Pipeline Matters
 
用简单语言构建复杂系统
用简单语言构建复杂系统用简单语言构建复杂系统
用简单语言构建复杂系统
 
twMVC#42 讓我們用一種方式來開發吧
twMVC#42 讓我們用一種方式來開發吧twMVC#42 讓我們用一種方式來開發吧
twMVC#42 讓我們用一種方式來開發吧
 
台中市創業平台建置計畫
台中市創業平台建置計畫台中市創業平台建置計畫
台中市創業平台建置計畫
 
GDG Taichung: What is new in Firebase
GDG Taichung: What is new in Firebase GDG Taichung: What is new in Firebase
GDG Taichung: What is new in Firebase
 
01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview
 

Más de Ryan Chung

Voice-First Games for Alexa
Voice-First Games for AlexaVoice-First Games for Alexa
Voice-First Games for AlexaRyan Chung
 
AI Adoption in the Enterprise
AI Adoption in the EnterpriseAI Adoption in the Enterprise
AI Adoption in the EnterpriseRyan Chung
 
AI in Classroom
AI in ClassroomAI in Classroom
AI in ClassroomRyan Chung
 
Introduction to DialogFlow
Introduction to DialogFlow Introduction to DialogFlow
Introduction to DialogFlow Ryan Chung
 
Udacity Meet Up - 0413
Udacity Meet Up - 0413Udacity Meet Up - 0413
Udacity Meet Up - 0413Ryan Chung
 
Amazon Alexa Development Part II
Amazon Alexa Development Part IIAmazon Alexa Development Part II
Amazon Alexa Development Part IIRyan Chung
 
Amazon Alexa Development
Amazon Alexa DevelopmentAmazon Alexa Development
Amazon Alexa DevelopmentRyan Chung
 
Microsoft Professional Program - AI
Microsoft Professional Program - AIMicrosoft Professional Program - AI
Microsoft Professional Program - AIRyan Chung
 
AI Service Integration
AI Service IntegrationAI Service Integration
AI Service IntegrationRyan Chung
 
Hour of Code - Amazon Alexa
Hour of Code - Amazon AlexaHour of Code - Amazon Alexa
Hour of Code - Amazon AlexaRyan Chung
 
Intro to DialogFlow(API.ai) / Wit.ai / Luis.ai
Intro to DialogFlow(API.ai) / Wit.ai / Luis.aiIntro to DialogFlow(API.ai) / Wit.ai / Luis.ai
Intro to DialogFlow(API.ai) / Wit.ai / Luis.aiRyan Chung
 
資料科學的第一堂課 Data Science Orientation
資料科學的第一堂課 Data Science Orientation資料科學的第一堂課 Data Science Orientation
資料科學的第一堂課 Data Science OrientationRyan Chung
 
Intro to API.ai / Wit.ai / Luis.ai
Intro to API.ai / Wit.ai / Luis.aiIntro to API.ai / Wit.ai / Luis.ai
Intro to API.ai / Wit.ai / Luis.aiRyan Chung
 
Voice Assistant / Chatbot Development 101
Voice Assistant / Chatbot Development 101Voice Assistant / Chatbot Development 101
Voice Assistant / Chatbot Development 101Ryan Chung
 
Intro to Python - BMI Case Practice
Intro to Python - BMI Case PracticeIntro to Python - BMI Case Practice
Intro to Python - BMI Case PracticeRyan Chung
 
[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)
[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)
[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)Ryan Chung
 
[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot
[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot
[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - ChatbotRyan Chung
 
[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science
[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science
[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data ScienceRyan Chung
 
微軟資料科學認證課程 Microsoft Professional Program
微軟資料科學認證課程 Microsoft Professional Program微軟資料科學認證課程 Microsoft Professional Program
微軟資料科學認證課程 Microsoft Professional ProgramRyan Chung
 

Más de Ryan Chung (20)

Voice-First Games for Alexa
Voice-First Games for AlexaVoice-First Games for Alexa
Voice-First Games for Alexa
 
AI Adoption in the Enterprise
AI Adoption in the EnterpriseAI Adoption in the Enterprise
AI Adoption in the Enterprise
 
AI in Classroom
AI in ClassroomAI in Classroom
AI in Classroom
 
Introduction to DialogFlow
Introduction to DialogFlow Introduction to DialogFlow
Introduction to DialogFlow
 
Udacity Meet Up - 0413
Udacity Meet Up - 0413Udacity Meet Up - 0413
Udacity Meet Up - 0413
 
Amazon Alexa Development Part II
Amazon Alexa Development Part IIAmazon Alexa Development Part II
Amazon Alexa Development Part II
 
Amazon Alexa Development
Amazon Alexa DevelopmentAmazon Alexa Development
Amazon Alexa Development
 
Microsoft Professional Program - AI
Microsoft Professional Program - AIMicrosoft Professional Program - AI
Microsoft Professional Program - AI
 
AI Service Integration
AI Service IntegrationAI Service Integration
AI Service Integration
 
Intro to AI
Intro to AIIntro to AI
Intro to AI
 
Hour of Code - Amazon Alexa
Hour of Code - Amazon AlexaHour of Code - Amazon Alexa
Hour of Code - Amazon Alexa
 
Intro to DialogFlow(API.ai) / Wit.ai / Luis.ai
Intro to DialogFlow(API.ai) / Wit.ai / Luis.aiIntro to DialogFlow(API.ai) / Wit.ai / Luis.ai
Intro to DialogFlow(API.ai) / Wit.ai / Luis.ai
 
資料科學的第一堂課 Data Science Orientation
資料科學的第一堂課 Data Science Orientation資料科學的第一堂課 Data Science Orientation
資料科學的第一堂課 Data Science Orientation
 
Intro to API.ai / Wit.ai / Luis.ai
Intro to API.ai / Wit.ai / Luis.aiIntro to API.ai / Wit.ai / Luis.ai
Intro to API.ai / Wit.ai / Luis.ai
 
Voice Assistant / Chatbot Development 101
Voice Assistant / Chatbot Development 101Voice Assistant / Chatbot Development 101
Voice Assistant / Chatbot Development 101
 
Intro to Python - BMI Case Practice
Intro to Python - BMI Case PracticeIntro to Python - BMI Case Practice
Intro to Python - BMI Case Practice
 
[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)
[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)
[微軟x資策會]資料科學線上課程證照(Openedx.iiiedu.org.tw)
 
[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot
[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot
[國際菁英俱樂部 - 聊天機器人] 精修班 Global Elite Club - Chatbot
 
[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science
[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science
[國際菁英俱樂部 - 資料科學家] 精修班 Global Elite Club - Data Science
 
微軟資料科學認證課程 Microsoft Professional Program
微軟資料科學認證課程 Microsoft Professional Program微軟資料科學認證課程 Microsoft Professional Program
微軟資料科學認證課程 Microsoft Professional Program
 

Service Integration Workshop

  • 1. Service Integration – Ryan@iii.org.tw Service Integration – Chatbot & Custom Vision AI III Digital Education Institute Source : https://sijieand500words.com Ryan Chung 未來之星 – 菁英培育計畫 1
  • 2. Service Integration – Ryan@iii.org.tw 資策會 數位教育研究所 ² 最新科技進修 Ø 在職夜間假日進修 Ø 轉職全天養成班 ² 資訊技術充電站 Ø 國際技術趨勢 Ø 職場必備能力 Ø 基本資訊技能 http://taipei.iiiedu.org.tw/ 2
  • 3. Service Integration – Ryan@iii.org.tw Ryan Chung ² 主要教授科目 Ø 語音助理應用開發 Ø Chatbot應用開發 Ø Web / App 應用 ² 資策會數位教育研究所 Ø 課程經理 / 養成班導師 Ø 企業包班 / 政府專案經理 Ø 課程專任講師 /專題輔導 http://mobiledev.tw/ryan 3
  • 4. Service Integration – Ryan@iii.org.tw AWS AI https://aws.amazon.com/tw/amazon-ai/ 4
  • 5. Service Integration – Ryan@iii.org.tw AWS機器學習服務種類 • 架構 Framework & Infrastructure –Apache MXNet、Caffe & Caffe 2、Tensorflow • 平台 Machine Learning platform –Apache Spark on Amazon EMR、SparkML • 服務 API-driven service –影像辨識 Rekognition、文字轉語音 Polly –聊天機器人 Lex • 模型 Model • 實體 Optimized Instance & Machine Image 5
  • 6. Service Integration – Ryan@iii.org.tw AWS ML Stack 6
  • 7. Service Integration – Ryan@iii.org.tw Amazon AI 應用服務 • 推薦系統 –Two Decades of Recommender Systems at Amazon.com • 語音助理 –Amazon Alexa • 無人商店 7 Source:The Verge
  • 8. Service Integration – Ryan@iii.org.tw Amazon Comprehend • 語言識別、關鍵資訊擷取、理解正面負面 https://aws.amazon.com/tw/comprehend/ 8
  • 9. Service Integration – Ryan@iii.org.tw Amazon Polly • 文字 -> 語音 • 接近真人語音 • 52種聲音、25國語言 • 速度快、準確度高 • 可重複播放使用 9
  • 10. Service Integration – Ryan@iii.org.tw SSML • say-as –一個字一個字念 • prosody –可調整速度、大小聲 • lang –可以穿插別國語言 https://developer.amazon.com/docs/custom-skills/speech-synthesis-markup-language-ssml-reference.html 10
  • 11. Service Integration – Ryan@iii.org.tw 使用案例 • This app allows you to easily convert any publicly available RSS content into audio Podcasts, so you can listen to your favorite blogs on mobile devices instead of reading them. https://github.com/aws-samples/amazon-polly-sample Source: meccanismocomplesso.org 11
  • 12. Service Integration – Ryan@iii.org.tw 微軟認知服務 https://azure.microsoft.com/zh-tw/services/cognitive-services/ 12
  • 13. Service Integration – Ryan@iii.org.tw 辨識服務 MS Cognitive Service • 辨識 – 可聰明地識別、標示及 控管圖片的影像處理演算法。 • 知識 – 對應複雜資訊和資料,以解決 智慧建議和語意搜尋等工作。 • 語言 – 讓您的應用程式能夠透過預先建置的指令碼處理自然語言、 評估情感,以及了 解如何辨識使用者想要的項目。 • 語音 – 將語音轉換成文字、使用語音來驗證,或將說話者 辨識新增至您的應用程式。 • 搜尋 – 將 Bing 搜尋 API 新增至您的應用程式,並充分利用 以單一 API 呼叫合併數十 億個網頁、影像、影片和新聞的能力。 13
  • 14. Service Integration – Ryan@iii.org.tw 影像識別:圖片網址 • 輸入圖片網址,可回傳圖片資訊 14
  • 15. Service Integration – Ryan@iii.org.tw 選取 Computer Vision API https://azure.microsoft.com/zh-tw/services/cognitive-services/computer-vision/ 15
  • 16. Service Integration – Ryan@iii.org.tw 同意條款並登入帳號 16
  • 17. Service Integration – Ryan@iii.org.tw 進入 Azure • 左下角 More services -> Cognitive Services https://portal.azure.com 17
  • 18. Service Integration – Ryan@iii.org.tw 建立服務 18
  • 19. Service Integration – Ryan@iii.org.tw 取得 API KEY 19
  • 20. Service Integration – Ryan@iii.org.tw 測試 • 下載範例 https://ppt.cc/fxtPvx • 填上API KEY,開始測試 20
  • 21. Service Integration – Ryan@iii.org.tw Custom Vision https://www.customvision.ai 21
  • 22. Service Integration – Ryan@iii.org.tw 建立專案 • New Project -> Add images • 標記Tag,至少5張照片 –In Classroom • 訓練 • Quick Test 22
  • 23. Service Integration – Ryan@iii.org.tw In Classroom 23
  • 24. Service Integration – Ryan@iii.org.tw Quick Test 24
  • 25. Service Integration – Ryan@iii.org.tw Face API https://azure.microsoft.com/zh-tw/services/cognitive-services/face/ 25
  • 26. Service Integration – Ryan@iii.org.tw 臉部驗證 • 檢查兩張臉部是屬於同一個人的可能性。API 會傳回信心分數,顯示兩張臉部是屬於同一個 人的可能性。 26
  • 27. Service Integration – Ryan@iii.org.tw Microsoft Case – Baby Come Home https://www.youtube.com/watch?v=AuXnVF_nFws 27
  • 28. Service Integration – Ryan@iii.org.tw 臉部偵測 • 偵測影像中的一或多張人臉,並取得影像臉部位置所在的臉部矩形 及臉部屬性,該屬性內含以機器學習為基礎的臉部特徵預測。可用 的臉部屬性功能 包括:年齡、表情、性別、姿勢、微笑及鬍子, 以及影像中每張臉部的 27 個地標。 28
  • 29. Service Integration – Ryan@iii.org.tw 其他服務 29
  • 30. Service Integration – Ryan@iii.org.tw 整合案例實作 Source: https://www.jiuwa.net 30
  • 31. Service Integration – Ryan@iii.org.tw 這是不是肯德基 • 語意分析 + 聊天機器人+ 認知服務 + 部署上線 DialogFlow • 意圖:判斷品牌 • 資料:品牌名稱 認知服務 Custom Vision Service • 圖片分類 MS Bot Framework Bot Channels Registration 31
  • 32. Service Integration – Ryan@iii.org.tw DialogFlow • Agent:tellKFCbot • 語言:zh-TW • Intent:Is it KFC 訓練例句 32
  • 33. Service Integration – Ryan@iii.org.tw Action and parameters 33
  • 34. Service Integration – Ryan@iii.org.tw Response 34
  • 35. Service Integration – Ryan@iii.org.tw Setting • V1 API 35
  • 36. Service Integration – Ryan@iii.org.tw 建立開發專案 • 專案資料夾:tellKFCBot • 主要程式:index.js • 終端機指令 npm init • package.json 在scripts中增加 "start":"node index.js", "debug":"node --inspect index.js" 36
  • 37. Service Integration – Ryan@iii.org.tw index.js 37
  • 38. Service Integration – Ryan@iii.org.tw index.js 38
  • 39. Service Integration – Ryan@iii.org.tw index.js 39
  • 40. Service Integration – Ryan@iii.org.tw index.js 40 https://ppt.cc/fpq6vx
  • 41. Service Integration – Ryan@iii.org.tw Custom Vision • Name:tell-KFC • Project Type:Classification • Domains:Food • Create Project https://www.customvision.ai/projects 41
  • 42. Service Integration – Ryan@iii.org.tw 上傳KFC照片,按下Train開始訓練 42
  • 43. Service Integration – Ryan@iii.org.tw Performance -> Prediction URL 43
  • 44. Service Integration – Ryan@iii.org.tw 套件安裝 • 終端機: npm-install-all index.js • 新增 .gitignore 檔案 –裡面寫:node_modules/ • Bot Framework版本 – 範例為v3 npm i -S butbuilder@3.15.0 44
  • 45. Service Integration – Ryan@iii.org.tw 部署至Heroku • 右上角 New -> Create new app • 設定App name:tell-kfc-bot • 區域:美國 • Create App 45
  • 46. Service Integration – Ryan@iii.org.tw Deploy using Heroku Git • 使用Heroku Git (Use Heroku CLI) • 下載與安裝 Heroku CLI • 終端機 heroku login cd my-project-dic git init heroku git:remote –a YourProjectNameHere https://devcenter.heroku.com/articles/heroku-command-line 是你在Heroku中的專案名稱哦! 通常長得像 tell-kfc-bot-xxyyzz 46
  • 47. Service Integration – Ryan@iii.org.tw 開始部署上傳(每次更新步驟亦同) • git add . • git commit –am "make it better" • git push heroku master • heroku restart 雙引號這邊像是你的上傳筆記 在這裡寫上這次更新的內容 之後code更新時再加這一步 第一次不用 47
  • 48. Service Integration – Ryan@iii.org.tw 啟動網站 • heroku ps:scale web=1 非常非常關鍵的一步,一定要記得做 48
  • 49. Service Integration – Ryan@iii.org.tw 找到Heroku的網址 • Domains and certificates https://dashboard.heroku.com/apps/YourAppName/settings • 其實網址就是 https://YourAppName.herokuapp.com 49
  • 50. Service Integration – Ryan@iii.org.tw 使用Azure Bot頻道訂閱服務 • 進入 portal.azure.com • 上方搜尋Bot Channels Registration • Bot name:tellKFCBotMMDD • Pricing tier:F0 • Messaging endpoint:heroku網址/api/messages • Application Insights:Off • 點擊App ID and password – Create New – Create App ID in the App Registration Portal – 產生完後,記下來,貼回Azure與程式碼中 • Create 50
  • 51. Service Integration – Ryan@iii.org.tw 設定EndPoint • Settings -> 設定Messaging endpoint https://your-project-name.herokuapp.com/api/messages • 完成後按下上方Save 51
  • 52. Service Integration – Ryan@iii.org.tw Test in Web Chat • 在Azure雲端上的Web Chat進行測試 52
  • 53. Service Integration – Ryan@iii.org.tw 測試 53
  • 54. Service Integration – Ryan@iii.org.tw Channels • 依需求再開通哪些頻道可使用服務 54
  • 55. Service Integration – Ryan@iii.org.tw Recap for Developer • 新一代的開發者:Connector • 使用者介面、處理機制與雲端資源 • Node.js 在潮流中倍受重視 • 語音助理/Chatbot 設計的第一步是釐清目標 Source : https://sijieand500words.com
  • 56. Service Integration – Ryan@iii.org.tw Recap for All • 自然語言交談介面裝置將大舉進入你的生活 • 語言和文化密不可分,跨領域合作優化服務 • 多元化的後端服務與資料,將產生殺手級應用
  • 57. Service Integration – Ryan@iii.org.tw 敬請指教 Ryan Chung Senior Engineer III Digital Education Institute Ryan@iii.org.tw 57