Starting the scaffolded bot

Two files in the directory structure can be used to start the bot

node msft.js

node index.js

msft.js - Use this to start your bot if you have to send multiple messages as response (you might want to do some background fetching and then respond with a second message after sending the first message which says "let me check..."). This uses Microsoft bot framework's connector, by default console connector is started, you need to add the dialogflow client access token in the file and then start the bot. More on this here. Use microsoft bot emulator to test this if you switch from console connector to universal connector as described in the link

index.js - Use this to start the server and use it as a webhook to dialogflow agent. Drawback of this is you cannot send more than one reply message for an incoming message.

results matching ""

    No results matching ""