question

OehmanPeter-3147 avatar image
0 Votes"
OehmanPeter-3147 asked Meghana-MSFT answered

How to connect Teams Bot running on Teams to a website

Hello, I have been reading through some of the Bot Framework SDK documentation, and I have also done a couple tutorials for creating a bot as well as creating Webhooks. I am still very new to this so I am not totally clear on the capabilities of these bots.

My workplace has a website for all employees, and I'm looking for a way to connect a Teams Bot to that website. Here's an example: I want to be able to put in a time off request on the website, and that triggers a bot to notify somebody (like someone in HR) on Teams with something like "Peter has put in a time off request for June 21- June 24" With buttons to "Accept" or "Deny" . Then when the person from HR hits a button like accept, it sends that back to the website.

We are looking to move a lot of our notifications from email to teams, so the time off request was just an example, but more broadly I'm looking for a way for the bot to communicate back and forth with the website.

office-teams-app-devmicrosoft-graph-teamworkazure-bot-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Meghana-MSFT avatar image
0 Votes"
Meghana-MSFT answered

You can use Proactive messages bot to notify HR/user in 1-1 chat.
There is a notify API controller that you can call from your website whenever user creates a request.
Once the notification is sent successfully and when the HR click on the button(Accept/Deny) it will be handled by your bot and then from your bot you can send the response back to website using APIs.



Thanks,
Meghana


If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.