SOLVED

Listing available questions/commands for MS teams chatbot

Copper Contributor

Hello community,

For Teams chatbot, I want to list available questions above/below message box based on the words that's been written to message box. 

What I try to do is, I want user to be informed about available questions. And I want it to be done BEFORE the message is sent.

  1. User will start to write the question on Teams.
  2. At the same time questions that partially/fully matched with these words will be shown in a dropdown menu.
  3. User will be able to select from these questions.

This is already possible by commands section in manifes.json file but it requires the match starting from the first character for the available questions/commands. I want to enhance it by including partially match options to be shown. 

 

 

 

2 Replies
best response confirmed by AytacBey (Copper Contributor)
Solution

@AytacBey - Search or Action Messaging Extensions allow you to extend the compose message area in Teams and provide users with a list of suggestions or actions based on the user's input. In your case, you can use this capability to display a dropdown menu of available questions that partially or fully match the words entered by the user.
More info: 
1.Designing your message extension - Teams | Microsoft Learn
2.Message extensions - Teams | Microsoft Learn

Sample ref: Message extensions - Teams | Microsoft Learn

 

 

Thanks, 

Prasad Das

------------------------------------------------------------------------------------------ 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

I wish I would see this post before my workaround solution. Workaround solution is gathering questions in groups (IT, HR, etc.) and putting these groups as actions to the manifest.json file. By this way respective commands will appear in a dropdown manner. Later the command will be bound to adaptive cards which contains questions that belongs to respective group/command.
1 best response

Accepted Solutions
best response confirmed by AytacBey (Copper Contributor)
Solution

@AytacBey - Search or Action Messaging Extensions allow you to extend the compose message area in Teams and provide users with a list of suggestions or actions based on the user's input. In your case, you can use this capability to display a dropdown menu of available questions that partially or fully match the words entered by the user.
More info: 
1.Designing your message extension - Teams | Microsoft Learn
2.Message extensions - Teams | Microsoft Learn

Sample ref: Message extensions - Teams | Microsoft Learn

 

 

Thanks, 

Prasad Das

------------------------------------------------------------------------------------------ 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

View solution in original post