my-bot

Running on local

npm run dev // or
yarn dev

Azure

az login

az bot publish --name my-bot --proj-file-path "./dist/index.js" --resource-group my-bot --code-dir . --verbose --version v4

az webapp log tail --name my-bot --resource-group my-bot

QnA Maker

node_modules/.bin/qnamaker create kb --in resources/generated/faq-qna.json
node_modules/.bin/qnamaker replace kb --in resources/generated/faq-qna.json

Alterations

 node_modules/.bin/qnamaker list alterations
 node_modules/.bin/qnamaker replace alterations --in resources/generated/faq-qna_Alterations.json

Luis

npm run ludown-luis
node_modules/.bin/luis list applications
node_modules/.bin/luis import application --in resources/generated/mybot-luis.json --appName mybot-luis --region westus
node_modules/.bin/luis train version --appId 1a2f7b42-4645-499a-b526-08cf3b44ae02 --versionId 0.1 --wait
node_modules/.bin/luis publish version --appId 1a2f7b42-4645-499a-b526-08cf3b44ae02 --versionId 0.1 --publishRegion westus --staging
node_modules/.bin/luis import version --in resources/generated/mybot-luis.json --appId 1a2f7b42-4645-499a-b526-08cf3b44ae02 --versionId 0.2

Generate transcripts

npm run chat-cases -- resources/chats/case1.chat

Tools

Naming Conventions

https://github.com/unional/typescript-guidelines/blob/master/pages/default/draft/naming-conventions.md https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines https://adidas.github.io/contributing/typescript-coding-guidelines/