This a repository from a live coding session.
Demonstrates how to use Inxton, TcOpen and Beckhoff TwinCAT 3 PLC to interact with MS Teams Bot.
Sample that I used to get started - https://docs.microsoft.com/en-us/azure/bot-service/bot-service-quickstart-registration
- Open Visual Studio
- Run the project
TeamsConversationBot
- Run ngrog :
ngrok http -host-header=rewrite 3978
- Create Bot Framework registration resource in Azure
- Use the current
https
URL you were given by running ngrok. Append with the path/api/messages
used by this sample - Ensure that you've enabled the Teams Channel
- If you don't have an Azure account you can use this Bot Framework registration
- Use the current
- Update the
appsettings.json
configuration for the bot to use the Microsoft App Id and App Password from the Bot Framework registration. (Note the App Password is referred to as the "client secret" in the azure portal and you can always create a new client secret anytime.) - Download the PLC project to localhost
- If you don't have TcOpen.Core installed, install it from
TwinTeams\lib
folder.
- If you don't have TcOpen.Core installed, install it from
- Get the free inxton licence at inxton.com
- Use the url from the Teams channel to open the bot in MS Teams and enjoy!