To call the bot from the IoT application, we need to configure Direct Line channel. Let's perform the following steps to do that:
- Go to dev.botframework.com, click on the My Bots section, and select your bot:
![](https://static.packt-cdn.com/products/9781786463104/graphics/assets/image_08_033.png)
- Under the Channels section, click on the Add option of the Direct Line channel. It opens a configuration page:
![](https://static.packt-cdn.com/products/9781786463104/graphics/assets/image_08_034.png)
- On the Direct Line configuration page, click on the Add New Site option and add a name:
![](https://static.packt-cdn.com/products/9781786463104/graphics/assets/image_08_035.png)
- Next, copy the primary secret key we will use in later steps, as shown in the following figure, and finally click on I am done configuring Direct Line:
![](https://static.packt-cdn.com/products/9781786463104/graphics/assets/image_08_036.png)
Next, you need to develop a Universal Windows Platform (UWP) app for Raspberry Pi2.