NOTE: Running this demo requires running the WebChat backchannel sample page which sends events of activity name "buttonClicked" and receives events with activity name "changeBackground.
This is a basic bot that uses the DirectLine backchannel to send and receive event messages to an instance of WebChat.
This highlights the ability for a bot to communicate with a page that embeds the bot through WebChat. In other words, our bot can:
To run the demo, pull the WebChat repo and follow instructions for running the samples. Create a bot from the bot portal and (for testing) add keys to the connectorSetup.js file. Either deploy the bot to Azure or use ngrok to tunnel back into your machine