Unlocking Teams Chatbot Capabilities

Behrouz Houshmandi 20 Reputation points Microsoft Employee
2023-11-16T18:01:27.88+00:00

Exploring Bot Branding in Teams: Customization and Tenant-Specific Configurations: Is it feasible to customize the same bot for branding purposes? For instance, can a bot be configured to present a distinct name depending on the tenant? Alternatively, is it necessary to deploy a separate bot for each tenant if they opt for personalized branding on the bot?

Efficient Messaging in Teams: Chatbot Strategies for Targeted Distribution Lists and Security Groups: When dealing with a targeted distribution list or security group, how can we use a chatbot to send a message to each individual member of the group? I've heard that it's the sender's responsibility to obtain the addresses of all recipients and then send the message to each one individually. Is this the only method, or does Teams support sending messages to groups as well?

User Impersonation in Teams Chatbots: Sending Messages on Behalf of Entities: Do bots possess the capability to send messages on behalf of a specific entity in a manner that users perceive the messages as originating from the specified individual or entity?

Your assistance and expertise would be tremendously valuable. Thank you in advance for your time.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,931 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 5,786 Reputation points Microsoft Vendor
    2023-11-17T06:24:05.59+00:00
    1. A bot cannot be configured to present a distinct name depending on the tenant. It is necessary to deploy a separate bot for each tenant if you opt for personalized branding on the bot.
      Also, if you use this below option while creating an app registration, you can use your bot in multitenant after deploying in any tenant, but the name would be the same.User's image
    2. Microsoft Teams does not directly support sending messages to groups. Instead, the sender (in this case, the bot) is responsible for obtaining the addresses of all recipients and then sending the message to each one individually. To achieve this, you can use the fetch the team roster feature to get the list of all members in the team. Once you have the list, you can send each user a direct message.

    Here is a sample code snippet for fetching the team roster:

    let teamDetails = await connector.fetchTeamDetailsAsync(turnContext.Activity.TeamsGetTeamInfo().Id);

    And here is a sample code snippet for sending a direct message:

    var response = MessageFactory.Text($"Welcome to the team {member.Name}!");

    await turnContext.SendActivityAsync(response);

    1. By default, bots do not have the ability to act on behalf of a user. All messages sent by a bot are perceived as coming from the bot itself, not from a specific user or entity.

    Thanks, 

    Prasad Das

    ************************************************************************* 

    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.