How to show bot commands after adding bot to a chat/group

Tirupathirao Podugu 0 Reputation points Microsoft Employee
2024-09-11T10:20:27.81+00:00

Hi,

I am exploring bots in teams and came across Jira cloud bot. Jira cloud show commands whenever app is added to a chat/group. Please check below image which shows three commands.

User's image

Could someone please point me to the documentation on how to add similar commands to my bot?

Thanks,

Tirupathi

Microsoft Teams Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 8,981 Reputation points Microsoft External Staff Moderator
    2024-09-11T11:45:07.3633333+00:00

    Please refer below documentation which explains how to define a set of core commands that your bot can respond to. You can add a command menu with a dropdown list of commands for your bot
    Ref: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/create-a-bot-commands-menu?tabs=desktop%2Cdotnet

    Sample code: https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-conversation

    The screenshot you have provided is of Suggested actions that will enable your bot to present buttons.
    Ref: https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-howto-add-suggested-actions?view=azure-bot-service-4.0&tabs=csharp&preserve-view=true#suggest-action-using-button
    Sample code: https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-suggested-actions


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.