Make a bot for simple interactions in MS Teams using webhook

Click for: original source

Have you ever had an idea to ask a bot to perform a simple interaction? Then this article is for you. By Lee Ford. A Webhook is a way for two applications that can communicate with each other. In our case, a simple bot and Teams.

Automation using MS Teams webhook and bot

Source: https://pnp.github.io/blog/post/make-a-bot-for-simple-interactions-in-teams-using-a-webhook/

The article then describes:

  • Bot interaction idea
  • Solution based on Webhook in Teams and Bot
  • What is webhook
  • OpenWeatherMap API
  • Setup
  • Bot
  • Teams Webhook

The bot is where the magic happens. It is code hosted externally to Teams that can be called over HTTP (via the Webhook). What that code does, where it is hosted, is all up to you. For this scenario, there is an (written in TypeScript), which can be found here: Azure Function HTTP Trigger. Nice one!

[Read More]

Tags app-development devops miscellaneous apis