A foundational build of a Chat Bot for MS Teams with weather capabilities, built using Typescript.
This leverages the Teams Toolkit extension in VS Code for build and deployment.
Check out the screenshots/ folder for sample interactions with the Weather Bot in MS Teams.
There are tons of Weather APIs out there which are free to sign up and use, but for this PoC in particular I use the OpenWeatherMap API. You can sign up on their site for free and get an API key which the bot can use to make requests to get the weather data.
Once you have a working API key, replace the value for openWeatherAPIKey
at the top of the weather.ts file - also copied below.
const openWeatherAPIKey = "TODO-REPLACE-ME";
Send media attachments with Bot Framework SDK
Create your own prompts to gather user input