Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 827 Bytes

msbot-qnamaker.md

File metadata and controls

23 lines (18 loc) · 827 Bytes

MSBot and QnAMaker CLI

Several of the BotBuilder tools are designed to work together. This topic shows how MSBot CLI can work in conjunction with the QnAMaker CLI.

Create and add a new QnA Maker KB to .bot file

qnamaker create kb --in <KB.json> --msbot | msbot connect qna --stdin [--secret <YOUR-SECRET>]

Get QnA Maker configuration from bot file to drive QnA Maker CLI

msbot get <QnA-SERVICE-NAME-OR-ID> [--secret <YOUR-SECRET>] | qnamaker <COMMAND> --stdin

Replace QnA Maker KB contents

msbot get <QnA-SERVICE-NAME-OR-ID> [--secret <YOUR-SECRET>] | qnamaker replace kb --in <new_KB.json> --stdin

Train and publish QnA Maker KB

msbot get <QnA-SERVICE-NAME-OR-ID> [--secret <YOUR-SECRET>] | qnamaker publish kb --stdin