We have a bot service running in MS Azure and a corresponding Teams app. This bot service is used by multiple customers. Requirement is to allow customers to change the bot name/icon that is shown in the Teams chat (please refer image below).
We can change the name and icon by changing it in the Teams App. However, this will require creating a separate Teams app for each customer. Is it possible to control this via the bot service code running in Azure? We want to do it programmatically based on logged-in user's domain. Is there anyway to do it?
Edit: Found a related post
Thanks
Vivek
This is not possible within a single bot - it's set at the level of the the bot registration, in Azure, and so can't be changed tenant by tenant in Teams, for example. You'd need to create a bot for every customer (tenant), or go with a generic name and image. You can of course customize the welcome message, responses from the bot, etc.
Related
Problem statement: As a user I want to be able to share information quickly to MS teams from external web application.
For e.g. I am on an application and found some news that might be useful for the team so, I click on share and MS graph apis gets called that lists my teams and channels and I can select a channel to which I wish to share.
And I want this to be 2-way communication i.e. someone from my team can share something from MS Teams with be me that will be visible to me on the web application.
Now as a developer I wish to integrate MS Teams to my webapp such that when a user shares a news to teams, that message is posted by a bot on the teams channel.
And if someone #mentions the bot and provides some text then the bot sends that text to the external web app.
I am aware that this functionality can be achieved even without using a bot by creating webhooks.
But this approach is not viable for me as a outgoing webhook is created at a team level and not on app level according to documentation. So multiple teams will have multiple outgoing webhooks.
I believe this is possible by using bots or message extensions but I can't find a resource that tells how to build this and MS documentation is not very clear to me.
Is there a way to automatically create a User Story in Azure Boards, based on messages in a Microsoft Teams channel?
So, whenever any message is posted in Teams, a User Story should be created.
Yes,
first you'll need a bot that can be created using Microsoft Bot Framework.
https://learn.microsoft.com/en-us/azure/bot-service/channel-connect-teams?view=azure-bot-service-4.0#:~:text=To%20add%20the%20Microsoft%20Teams,Get%20bot%20embed%20code%20dialog.
Then, use the Azure Devops Rest API to create the user story:
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/create?view=azure-devops-rest-6.0
PS: note the ${type} in the url, it's where you set 'User Story'
in Microsoft Teams we have a Team called "BD" and this team has a channel named "Global".
Now I have a ReactJS app with a NodeJS backend and I would like to
display all the messages that are written in the Global Channel of the Team "BD"
I only need to show which messages are written in the channel (so readonly would be sufficient).
What is the easiest way to achieve this ? Even an iFrame would be ok, if somehow possible.
Please take a look at List channel messages Graph API. First try these APIs in Graph Explorer.
To implement this in a code, you need to follow either Get access on behalf of a user or Get access without a user
Before calling this API with application permissions (access without a user), you must request access. For details, see Protected APIs in Microsoft Teams.
I have deployed a custom app in teams, which is an Azure hosted bot framework chatbot. To install I used teams "App Studio" app, where under "Bots" I selected my existing bot. I deployed to a specific team. Everything works perfectly, apart from the actual name of the bot in teams. Instead of the user being able to start a chat with the chatbot name #Dave, they have to start using the Azure host name #prodserver123. Anychats with the bot then display the bot messages as coming from #prodserver123.
I have gone through the manifest, the chatbot name is specified as #Dave everywhere, and the BotId on Azure is also #Dave.
Does anybody know how I might be able to resolve this please?
For sidealoaded apps Bot name and icon is taken from Bot Service. For apps which are published in Teams App Store, the Bot informatin is fetched from app manifest.
Also, Bot names are cached and that could be the reason you don't see updated name. Please sign out and sign in to clear out the cache.
I was trying to add a Chat Bot integrated with Knowledge Base to Skype For Business Channel.
I understand that, it will be added by the Tenant Administrator.
My question here is, as we are working on POC we need to understand that if we add any BOT, then it will be considered as a new User and incurr some license cost for that or it is just a Service User which will not incurr any cost?
I could not find more information on this. Can anybody please let me know the information for the same to proceed.
The costs can be split into two parts
user of your Azure Active Directory will cost you the same money like any other non-chatbot user. You'll of course need one user for each chatbot you may want to connect to your network.
your Azure Bot Service will be charged the same way like any non Skype for Business (S4B) chatbot - See here