How to add more than ten commands to command menu of teams bot, is there any solution?

Hariprasad A 6 Reputation points
2022-05-23T05:01:12.117+00:00

I want to list lot of commands as a suggestions to user from teams bot, I have tried to create a command menu, but it is not allowing me to add more than 10 commands, is there any solution for this.

Microsoft Teams | Development
{count} votes

5 answers

Sort by: Most helpful
  1. Nivedipa-MSFT 3,646 Reputation points Microsoft External Staff Moderator
    2022-05-23T06:02:34.783+00:00

    Each menu supports up to ten commands. This is by design. We cannot add more than ten commands to menu.
    You can create another menu for adding more commands.

    Ref Doc: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/create-a-bot-commands-menu?tabs=desktop%2Cdotnet#create-a-command-menu-for-your-bot-by-editing-manifestjson

    Thanks,
    Nivedipa


    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.

    2 people found this answer helpful.

  2. Hariprasad A 6 Reputation points
    2022-05-23T07:15:18.703+00:00

    @Nivedipa-MSFT , this is for each scope right, can we have multiple command list for same scope?

    Thanks,
    Hariprasad

    1 person found this answer helpful.

  3. Nivedipa-MSFT 3,646 Reputation points Microsoft External Staff Moderator
    2022-05-26T12:27:01.12+00:00

    @HariprasadA-4546 - We have tested like below. Giving same scope in commandlist and commands

    "commandLists": [
        {
          "scopes": [
            "personal"
          ],
          "commands": [
            {
              "title": "Help",
              "description": "Displays this help message"
            },
            {
              "title": "Search Flights",
              "description": "Search flights from Seattle to Phoenix May 2-5 departing after 3pm"
            },
            {
              "title": "Search Hotels",
              "description": "Search hotels in Portland tonight"
            },
            {
              "title": "Best Time to Fly",
              "description": "Best time to fly to London for a 5 day trip this summer"
            },
            {
              "title": "Help",
              "description": "Displays this help message"
            },
            {
              "title": "Search Flights",
              "description": "Search flights from Seattle to Phoenix May 2-5 departing after 3pm"
            }
           ]
        },
        {
          "scopes": [
            "personal"
          ],
          "commands": [
            {
              "title": "1Help",
              "description": "Displays this help message"
            },
            {
              "title": "1Search Flights",
              "description": "Search flights from Seattle to Phoenix May 2-5 departing after 3pm"
            },
            {
              "title": "1Search Hotels",
              "description": "Search hotels in Portland tonight"
            }
    
          ]
        }
      ],
    

  4. Hariprasad Avvadkam 1 Reputation point
    2022-05-30T08:55:45.397+00:00

    @Nivedipa-MSFT , can you share the manifest file or any source with all the twenty commands, so I can refer that.

    Thanks,
    Hariprasad


  5. Hariprasad Avvadkam 1 Reputation point
    2022-06-02T11:24:29.987+00:00

    @Nivedipa-MSFT I am attaching my manifest file here, I am getting the same error even After I followed your manifest file format, can we have a screen sharing session, that would be really helpful.

    207855-manifestfile-2.txt

    Thanks,
    Hariprasad


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.