Skip to content

Latest commit

 

History

History
99 lines (81 loc) · 4.11 KB

README.md

File metadata and controls

99 lines (81 loc) · 4.11 KB

샌드위치메이커

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

봇 배포하기

참고자료