2020 Azure Chatbot Award ๐ฅช Team. SandwichMaker
- ์ฑ๋ด ์ ์ url https://swm-chatbot.github.io/SandwichMaker/SandwichMaker.html
- v0.1 https://youtu.be/7rXMKE97_oA
- v0.5 https://youtu.be/bTkqM2z_5sU
- v1.0 https://youtu.be/CQRpyrL__ls
Bot Framework v4 core bot based C#
- ํ๋ก์ ํธ ์ฝ๋ ์ค๋ช https://youtu.be/L0X8yDlvNBQ
- Install Visual Studio 2019 including ASP.NET, Azure๊ฐ๋ฐ
- Install Bot Framework v4 SDK Templates for Visual Studio
- Install Bot Framework emulator
- Get Azure Trial Account
- azure portal ๋ก๊ทธ์ธ
- ์น ์ฑ๋ด ๋ฆฌ์์ค ์์ฑ
- ๋ฆฌ์์ค ๊ทธ๋ฃน ๋ง๋ค๊ธฐ
- ๋ฆฌ์์ค ๋ง๋ค๊ธฐ > 'Web App Bot' ์ ํ
- Cosmos DB ์์ฑ
-
๋ฆฌ์์ค ๋ง๋ค๊ธฐ > 'Azure Cosmos DB' ์ ํ
-
์ปจํ ์ด๋ ๋ง๋ค๊ธฐ
A) ์์ฑ๋ Cosmos DB ๋ฆฌ์์ค ๊ด๋ฆฌ์ฐฝ ์ด๋
B) '๋ฐ์ดํฐ ํ์๊ธฐ' ์ ํ
C) 'new Database'๋ก ๋ฐ์ดํฐ๋ฒ ์ด์ค ์์ฑ
D) ์์ฑ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค์์ 'new Container' ์์ฑ์ด ํ๋ก์ ํธ์์๋ Partition Key๋ฅผ AccountNumber๋ก ์ฌ์ฉํ์ต๋๋ค
- Text Analytics ์์ฑ
- ๋ฆฌ์์ค ๋ง๋ค๊ธฐ > 'Text Analytics' ์ ํ
- In a terminal, navigate to SWMproject
cd SWMproject
- Run the bot from a terminal or from Visual Studio, choose option A or B.
A) From a terminal
dotnet run
B) Or from Visual Studio- Launch Visual Studio
- File -> Open -> Project/Solution
- Navigate to SWMproject folder
- Select SWMproject.csproj file
- 'appsettings.json' open > Azure Resource ํค ๋ฐ ์๋ํฌ์ธํธ ์ ๋ ฅ
"MicrosoftAppId": "{your web app bot id}", "MicrosoftAppPassword": "{your web app bot pw}", "CosmosDbEndpoint": "{your cosmos db url}", "CosmosDbAuthKey": "{your cosmos db key}", "CosmosDbDatabaseId": "{your cosmos db name}", "CosmosDbContainerId": "{your cosmos db container name}", "TextAnalyticsKey": "{your text analytics key}", "TextAnalyticsEndpoint": "{your text analytics url}"
- Press F5 to run the project
-
Testing the bot using Bot Framework Emulator
*Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.A) Launch Bot Framework Emulator
B) File -> Open Bot
C) Enter a Bot URL of http://localhost:3978/api/messages