Edit the bot javascript code:
This bot simply respond “you said: XX”, when you send a “XX” message
Install the BotEmulator:
Open url https://github.com/Microsoft/BotFramework-Emulator/releases/
see https://github.com/Microsoft/BotFramework-Emulator/blob/master/README.md#download
Download the AppImage, make it executable, and run it
Remarks: when running the AppImage emulator, the image is unzipped and run locally under /tmp/.mount_botfra*
You can see it is a nodejs application:
Go in the emulator window, and create a new bot configuration
Choose
name: test-bot1
endpoint: http://localhost:3978/api/messages
The emulator will save it to a file called
You have now a botemulator dialog for sending/receiving message with your bot
Then go in the chat type area, type a first message, “hello”
You can see the message is sent… and the bot replied a message : “you said: hello”
You can see the logs in your nodejs bot console:
When clicking on the message you sent, you can see that the emulator is doing a http POST message with this content to your bot
Then when clicking on the bot response message, you can see that your bot sent this json response to the emulator: