Skip to content

Commit

Permalink
Fixes 556 - Subscription key in C# #14 readme #556
Browse files Browse the repository at this point in the history
- remove subscription key
- fix markdown formatting
  • Loading branch information
sgellock committed Oct 3, 2018
1 parent ff915c2 commit 3347427
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
27 changes: 14 additions & 13 deletions samples/csharp_dotnetcore/14.nlp-with-dispatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,20 @@ Ensure you have [Node.js](https://nodejs.org/) version 8.5 or higher
npm i -g msbot chatdown ludown qnamaker luis-apis botdispatch luisgen
```
To clone this bot, run:
- Run MSbot Clone and pass in your LUIS authoring key and Azure subscription ID. This command will create required services for your bot and update the .bot file.
- Setup Azure Powershell (If you have never done so before).
- To login, run:
```bash
Connect-AzureRmAccount
```
- To select your Azure subscription, run:
```bash
Select-AzureRmSubscription -Subscription "YOUR SUBSRIPTION"
- Set up your bot:
```bash
msbot clone services --name <YOUR-BOT-NAME> --folder "DeploymentScripts/MsbotClone" --location <Bot service location - ie, "westus"> --luisAuthoringKey <LUIS_AUTHORING> --subscriptionId <AZURE_SUBSCRIPTION>
```
- Run MSbot Clone and pass in your LUIS authoring key and Azure subscription ID. This command will create required services for your bot and update the .bot file.
- Setup Azure Powershell (If you have never done so before).
- To login, run:
```bash
Connect-AzureRmAccount
```
- To select your Azure subscription, run:
```bash
Select-AzureRmSubscription -Subscription "YOUR SUBSRIPTION"
```
- Set up your bot:
```bash
msbot clone services --name <YOUR-BOT-NAME> --folder "DeploymentScripts/MsbotClone" --location <Bot service location - ie, "westus"> --luisAuthoringKey <LUIS_AUTHORING> --subscriptionId <AZURE_SUBSCRIPTION>
```
Note: You can also manually import the LUIS and QnA Maker applications via the [LUIS.ai](https://luis.ai) and [QnAMaker.ai](https://qnamaker.ai) portals. See instructions [here](https://docs.microsoft.com/en-us/azure/cognitive-services/luis/what-is-luis) to import the LUIS models and [here](https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/quickstarts/create-publish-knowledge-base) to import the QnA Maker knowledge base. All models this sample relies on is [here](./cognitiveModels).

**Alternately** you can configure the required services by following the steps below.
Expand Down
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/14.nlp-with-dispatch/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ To create the QnA Maker application and update the .bot file with the QnA Maker
```bash
> ludown parse toqna --in resources/sample-qna.lu -o cognitiveModels --out dispatch.qna --verbose

> qnamaker create kb --in cognitiveModels/dispatch.qna --subscriptionKey d30ebbcc44ef4f07bae1a0e31b69f709 --msbot | msbot connect qna --stdin
> qnamaker create kb --in cognitiveModels/dispatch.qna --subscriptionKey <QNA-MAKER-SUBSCRIPTION-KEY> --msbot | msbot connect qna --stdin
```
### Train and publish the QnA Maker KB
You need to train and publish the QnA Maker Knowledge Bases that were created for this sample to work. You can do so using the following CLI commands
Expand Down

0 comments on commit 3347427

Please sign in to comment.