Skip to content

Azure Chatbot Award ๐Ÿฅช Team. SandwichMaker

Notifications You must be signed in to change notification settings

SWM-chatbot/SandwichMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

์ƒŒ๋“œ์œ„์น˜๋ฉ”์ด์ปค

2020 Azure Chatbot Award ๐Ÿฅช Team. SandwichMaker


์„œ๋น„์Šค ์†Œ๊ฐœ

์„œ๋น„์Šค ํ๋ฆ„๋„

  • ์ „์ฒด ๊ตฌ์กฐ flow chart 1
  • ์ƒŒ๋“œ์œ„์น˜ ๋งŒ๋“ค๊ธฐ ๊ตฌ์กฐ
    flow chart 2

์‹œ์—ฐ์˜์ƒ

ํ”„๋กœ์ ํŠธ

Bot Framework v4 core bot based C#

์‚ฌ์ „์ค€๋น„

  • 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 ๋ฆฌ์†Œ์Šค

Web App bot

  • ์›น ์ฑ—๋ด‡ ๋ฆฌ์†Œ์Šค ์ƒ์„ฑ
  1. ๋ฆฌ์†Œ์Šค ๊ทธ๋ฃน ๋งŒ๋“ค๊ธฐ
  2. ๋ฆฌ์†Œ์Šค ๋งŒ๋“ค๊ธฐ > 'Web App Bot' ์„ ํƒ

Cosmos DB

  • Cosmos DB ์ƒ์„ฑ
  1. ๋ฆฌ์†Œ์Šค ๋งŒ๋“ค๊ธฐ > 'Azure Cosmos DB' ์„ ํƒ

  2. ์ปจํ…Œ์ด๋„ˆ ๋งŒ๋“ค๊ธฐ

    A) ์ƒ์„ฑ๋œ Cosmos DB ๋ฆฌ์†Œ์Šค ๊ด€๋ฆฌ์ฐฝ ์ด๋™
    B) '๋ฐ์ดํ„ฐ ํƒ์ƒ‰๊ธฐ' ์„ ํƒ
    C) 'new Database'๋กœ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ƒ์„ฑ
    D) ์ƒ์„ฑ๋œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ 'new Container' ์ƒ์„ฑ

    ์ด ํ”„๋กœ์ ํŠธ์—์„œ๋Š” Partition Key๋ฅผ AccountNumber๋กœ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค

Text Analytics

  • Text Analytics ์ƒ์„ฑ
  1. ๋ฆฌ์†Œ์Šค ๋งŒ๋“ค๊ธฐ > '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

๋ด‡ ๋ฐฐํฌํ•˜๊ธฐ

์ฐธ๊ณ ์ž๋ฃŒ

About

Azure Chatbot Award ๐Ÿฅช Team. SandwichMaker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published