Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Secure bot reminder and ngrok command.
If you're debugging through Cortana, then the Microsoft App credentials need to specified in both the Bot Framework portal and the Web.config file. I also found that bots always ran on port 3979. And lastly, unless I specified the host header the requests would fail with 400.
  • Loading branch information
Mark Raymond Jr authored Jun 26, 2017
commit 9c2617a8bfe0a4f2dbd24584fd6bd824d3cbebf6
3 changes: 2 additions & 1 deletion articles/debug-bots-cortana-skill-invoke.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ In the **Settings** panel, under **Configuration**, enter the LUIS application I
## Add the Cortana channel
Under **My bots**, select the bot you would like to connect to the Cortana channel. From the list of channels, click the button to add Cortana.

[Secure your bot](https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-security) by configuring the **AppID** and **AppPassword** in the Bot Framework portal and in your **Web.config** file.

![Add the Cortana channel ](~/media/cortana/cortana-add.png)

Expand All @@ -40,7 +41,7 @@ If you have already deployed your bot, make sure the **Messaging endpoint** is c

If you are running the bot locally, you can get an endpoint to use for testing by running tunneling software, such as [ngrok](https://ngrok.com). To use ngrok to get an endpoint, from a console window type:
```
ngrok http 3978
ngrok.exe http 3979 -host-header="localhost:3979"
```
This configures and displays an ngrok forwarding link that forwards requests to your bot, which is running on port 3978. The URL to the forwarding link should look something like this: `https://0d6c4024.ngrok.io`. Append `/api/messages` to the link, to form an endpoint URL in this format: `https://0d6c4024.ngrok.io/api/messages`. Enter this endpoint URL in the **Configuration** section for your bot in the [Bot Framework Portal][BFPortal].

Expand Down