A bot built with the Bot Framework Composer.
❗Building with the SDK? Check out this bot sample!
Prompts the user and displays a random image from NASA's Astronomy Picture of the Day open API. Options in Bot Framework Composer have generated this bot in C#.
-
Install the Bot Framework Composer
-
Clone/download this repo.
-
Open the Bot Framework Composer, select "Open" and open the folder you cloned/downloaded.
-
Go to the NASA API Site and fill out the form to receive an API key to your email.
-
Replace the api key placeholder with the NASA api key that has been generated for you.
-
Select "Start Bot" at the top right of the composer. You can test the bot in the Composer with web chat, or install and use the Bot Emulator to test it.
Options in Bot Framework Composer have generated this bot in C# and can be ran and tested with the Bot Emulator.
- Open this cloned/downloaded folder in VS Code
- Or you can navigate to the folder in your favorite command line tool
- Install the Bot Emulator.
- Open the terminal and run the following command:
dotnet run --project .\azuresample_spaceybot.csproj
- If you see a few status messages in your terminal, the bot is running successfully!
- Make note of this message and copy the link:
Now listening on: http://localhost:####
(####
will be a set of 4 numbers) - Open the Bot Emulator, select "Open Bot" and paste the copied link from the last step into the "Bot URL" text box
- Add
/api/messages
to the end of the pasted link so it reads:http://localhost:####/api/messages
- Select
Connect
to start the bot
Refer to this documentation if you are feeling lost!
- Bot Framework Composer Documentation
- Microsoft Learn: Create conversational AI Solutions