Calling an API from MS Teams - microsoft-teams

I need help regarding how to call an external API (deployed to MuleSoft Cloudhub) from MS Teams chat/posts.
I want to interact with cloudhub deployed Mule API to perform operations such as starting, stopping, restarting, and updating mule applications in bulk from the MS Teams chat.
I've seen the following link and my question is exactly similar to this question:
Calling an external API from MS Teams chat
But I need something like "Slack Slash Commands" to send request to external APIs. here is a link which contains demo using Slack and I want to achieve same using MS teams:
https://dev.to/vignesh19/slack-bot-for-support-personnel-build-with-api-led-connectivity-7o1
Thanks in Advance!

Related

create service desk with human agents based on ms bot framework

I am looking for example or guidence to use MS Bot Framework for service desk agents who is answering chat coming from MS Bot Framework too. Exist some example for ver 3 and ver 4 but they are not complete and outdated. I think MS Bot WebChat control can be used successfully for agent to talk to customer same as customer using it. Needs to implement some kind of real-time dashboard with current customer's chats and provide functionality to agent to join/disconnect live customer's chats.
Thanks

Automatic File Forwarder in MS Teams

Is it possible to develop an app which will automatically forward a file being uploaded in MS Teams channel to another server for some processing / scanning before being made available to recipient(s)?
I have tried to search the requirement in MS Teams Developer Documentations, but there doesn't seems a way to perform this in non explicit fashion.
The outgoing webhooks in MS Teams require an explicit call to the app for them being triggered.

How to deploy a Question Answering BERT Model as a chat bot on MS Teams

I have a Text2SQL model (EditSQL: https://github.com/ryanzhumich/editsql) which I have configured to take a sentence as input and return a SQL query as output.
Now, I want to deploy this program as a chat bot application in Microsoft Teams.
I understand there's Microsoft bot framework that enables publishing a bot and the 3 options are described here.
https://learn.microsoft.com/en-us/learn/modules/choose-bot-building-tool/
However, I am not finding any of them suitable for my use case since I need to deploy a Question-Answering Bot where the Questions from users need to be sent to an external server like AWS and the response from AWS (could be an excel file) needs to be sent back to the user. Multiple questions can be the part of a conversation, so the chat client should be able to mark start and end of a conversation.
My problem:
What are the basic steps of exposing a ml model via a server so that it can be queried in production.
What are the tools that will allow me to make a client on Teams and a server for this model on AWS?
Please let me know if I should add more information on this.
Thanks
As you've seen, there are a bunch of tools/approaches to creating bots in the Microsoft world, for Teams or otherwise. Underneath, these all use the Bot Framework, but you can develop directly (i.e. write code), or use a higher-level tool like Bot Framework Composer - the choice is yours depending on your own internal skills. If you want to work with code directly, here are a bunch of bot samples, in multiple languages: https://github.com/microsoft/BotBuilder-Samples/tree/main/samples . For isntance, here is an example of integrating the Microsoft QnAMaker service into your bot: https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/python/49.qnamaker-all-features
Basically, if you go the development approach, your bot is just a web service. Once it receives the message, it can call out to any other service behind the scenes. That means it can receive a message, call out to an AWS service, receive the response, and send a reply to the user.
For multiple questions as part of a 'set' of chats, Bot Framework provides an idea called "dialogs" that should work for you.

Azure Bot Service Slack Integration

I'm currently evaluating Azure Bot Service using Azure Function as a Slack bot.
It works fine with direct and group messages, but I'm having troubles to make it work with app_mention events, the azure function is not getting fired at all.
Also, i'd like to experiment with slash commands, which are also a feature available to slack app.
Reading the docs, I understand have to write my own middleware to parse these messages, but it's not clear to me how can I do it with Functions.
Is it possible? Or will I need to host a separate webapp?
Turned out that Azure Bot Service is currently supporting a subset of Slack events out-of-the-box; this was not clearly stated in the documentation.
We ended up with a first prototype based on Bot Service integrated with the basic Slack events, will evaluate it and then proceed with a full bot-framework WebApp if needed.

How to do a performance Testing with MS Botframework

We have created a bot which uses Luis to address user queries. Would like to understand how can we perform a performance testing to my bot which can be like a VSTS testing. Yes tried with VSTS also but of no use, since my bot api is always sending a request and response couldn't capture the exact one. Please help.
I'm not sure if you are using Azure bot service directly or the other way. Considering if you are using the Azure Bot Service following are the steps to configure performance test.
You can do performance test using Azure Bot Service from continuous integration tab
Select the team services account, subscription and location.
You can track the build and errors using Azure App insights
Let me know if you are looking for anything else.
Regards
-Jyo

Resources