「10/31 透過 Azure AI 服務打造自動回覆機器人」的課程筆記 === 以往客服業務均須使用大量的人力支援,不管是管理或營運都是成本,在此情況下人工智慧及機器學習的解決方案變成是最佳選項。目前更有企業實施此解決方案達成減少人力且增加客戶滿意度的目標。本課程將運用這項趨勢,帶領您在 Azure 上學習人工智慧和機器學習之技術,了解 Azure 認知服務的專業知識及如何使用 Azure Bot Service 構建和部署自動回覆機器人,以此改進人力支援的狀況,開啟企業進步的大門。 ## 課程內容: * 章節 01: AI 與 ML 簡介 * 章節 02: Azure 機器學習面向 – AI 服務 * 章節 03: 簡介 Azure Bot Service * 章節 04: 打造自動回覆機器人(實驗室時間) ## Azure 登入網頁:https://portal.azure.com/#home [:floppy_disk: 課程 PDF 講義下載點](https://drive.google.com/file/d/1hbBSuf21JxNTnefgURfGhAToaUB1e74t/view?usp=sharing) [:floppy_disk: 課程資源下載點](https://drive.google.com/file/d/1vBJvtXuVBAn3KwQhlkXDs_CR1_y0TS0g/view?usp=sharing) 可以在講師的 GitLab下載到 : https://gitlab.com/NBX7777/QnA-Maker ## Create a QnA service in Microsoft Azure 搜尋 Qna Maker ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/001.png) 按下 Create ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/002.png) ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/003.png) ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/005.png) 發佈後按下 Go to resource 按鈕 ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/006.png) ### Here is a Key and your Endpoint to get started: Key1: Endpoint: ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/007.png) ## Create Knowledge Base for QnA Maker 用上面的帳號登入 QnA Maker https://www.qnamaker.ai/ ### POST MAN 腳本 設定頁上可以取得 ### CURL 腳本 設定頁上可以取得 ### QnA Auth Key 設定頁上可以取得 選擇 Create a knowledge base ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/008.png) ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/010.jpg) ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/012.png) ## Create your KB ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/014.png) ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/015.png) 按下右上的 Test 按鈕 ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/016.png) 測試成功按下 Publish ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/018.png) 等待發佈成功,按下 Create Bot ![](Create Bot) ## Create Web App Bot 按下 Create ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/022.png) 等待發佈完,按下 Go to resource ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/025.png) 選擇 Test in Web Chat 測試一下 ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/026.png) ## Connect a bot to LINE 登入 [LINE developer console](https://account.line.biz/login?scope=line&redirectUri=https%3A%2F%2Fdevelopers.line.biz%2Flogin%3Fbox%3D%2Fconsole%2Fregister%2Fmessaging-api%2Fprovider%2F) 建立 New Provider ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/045.png) 選擇 Messaging API channel ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/048.png) 點選 Channels 並選擇 LINE ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/052.png) * Channel ID 設定頁上可以取得 * Channel secret 設定頁上可以取得 * Channel access token (long-lived) 設定頁上可以取得 * Webhook URL (copy and paste in LINE) 設定頁上可以取得 Webhook URL 開啟 Enable ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/055.png) Disable 關閉 Auto-reply messages ![](https://gitlab.com/NBX7777/QnA-Maker/raw/master/Images/060.png) ## FB * 粉絲專頁編號 設定頁上可以取得 * 應用程式編號 設定頁上可以取得 * 應用程式密鑰 設定頁上可以取得 * 用戶端權杖 設定頁上可以取得 * 產生權杖: 設定頁上可以取得 * Callback URL (copy and paste in Facebook) 設定頁上可以取得 * Verify Token (copy and paste in Facebook) 設定頁上可以取得 ###### tags: `課程筆記`