Any plan to enable auto suggest or auto complete when user typing
Hi,
One of the good features for web chat if it can support auto suggestion when user is typing. This kind of feature really benefit to guide user what type of questions can be asked in general.
How would that work? Where do the suggestions come from? Where do they go?
the suggestions can come from external data source(database) access through web api, Let say for close domain chat bot that handle trouble shooting network answer, we can predefined suggestion questions that can be asked by users.
Can you be more specific? You seem to have a clear picture in your mind but I'm not really sure what you're suggesting. As a piece of user experience what does this look like? When are suggestions proffered? Where do they appear?
Most bots do suggestions as messages to the user, e.g. "you can say 'sell stock' or 'buy stock". We can already show suggested answers to questions, e.g. "What would you like to do - Buy Stock / Sell Stock". How does what you're suggested differ from these and (presumably) improve upon them?

Something like this ...
That's an interesting mashup of bots and autocomplete. I'm not sure how to have a bot easily generate a list of possible questions. I suppose, as you say, it could just be a list of predefined questions in a database. I'd be interested in what others had to say about this proposed feature.
I have a set of questions to train in LUIS . Let say i train this question - "What is the weather in Paris?" as get weather intent. User can ask for example "Give me the current weather in Sydney" or "What is the weather tomorrow?" which is also have same intent as get weather intent, so once the intent is correct then we will save it into database as possible questions.
When user type "What is the" , bot can perform auto suggest "What is the weather in Paris?" , "What is the weather tomorrow?"
There is this new API (in preview) Web Language Model (WebLM) API that can be used to automate a variety of natural language processing tasks, such as word frequency or next-word prediction, using advanced language modeling algorithms.
Maybe this could help you achieve this... https://westus.dev.cognitive.microsoft.com/docs/services/55de9ca4e597ed1fd4e2f104/operations/55de9ca4e597ed19b0de8a50
I don't think the blocker here is the underlying autocomplete technology. It's more to do with who the client is communicating with, and how. Is it talking to LUIS? The bot? A third thing?
I don't think it makes sense to define any of that. Let the developer decide where the responses are coming from, and how.
I think the right solution would be to add a new property to ChatProps called suggestResponses which is a callback returning a Promise of responses (an array of strings). Then a new epic would be added which hooks on to 'Update_Input' actions, and calls suggestResponses. The responses, if any, would then be displayed to the user. The latter is the "hard" part, in that it would require adding a new component and getting the lifecycle right for making it appear, disappear, etc.
However to date @ryzam is the only person asking for this feature. So if you're not @ryzam, you should definitely add your comments and/or reactions to this issue.
Agree with you on that @billba, it should be a developer's call. It is a good to have feature as it would ease the user from typing and more importantly guide the user for apt inputs so that the bot can actually narrow down the intent more quickly and precisely... So voting in for this feature too..
I could use this feature in the current bot I'm creating where I need to ask the user what school they need contact information for.
This is an interesting UX question. On the one hand we have cards that let you suggest options to the user. But I can see that when the potential result set is large - e.g. thousands of schools - then autocomplete is the only way to go.
If people are implementing their own autocomplete solutions, we may need to provide a way for them to programmatically populate the textbox.
I would also be interested in seeing autocomplete feature implemented into the WebChat.
Would there be any update on this feature request? or maybe directions on how to achieve it?
(First of all, please let me give you some advice: across all repos everywhere, no updates to an issue means "no updates to report". Not helpful to keep asking if there are any updates.)
As for how to achieve it, there are many ways such a feature could be exposed.
I'm sure there are multiple React components that plug replace a text input with an identical-but-autosuggest-enhanced version. If so, the hard/interesting part of this is probably how it gets the suggestions.
We could probably learn something from MS Teams' great compose extension feature. This is a more structured approach on both the client and server, and it has different strengths and weaknesses than classic autocomplete.
I suspect their approach of using an "invoke" activity to fetch suggestions is the right one, because by definition you would want suggestions to have as much context as possible, and "invoke" is essentially "make an arbitrary query of the the current user context in the bot".
This is potentially a powerful feature but probably not a super urgent one for the product team. This is a great opportunity for a motivated developer to make a big impact to this project.
Hi @billba & @danmarshall . Hi All.
+1 for this request!
Im my experience one of the most commons scenarios nowadays in bots is the FAQ-scenario. This feature would be great benefit for users and successful bot conversations, as it reduces the failure rate of users not asking the questions in the "right way", so in the exact way LUIS (trained utterances of the FAQ intent) and underlying knowledge DB (e.g. QNAMaker or using Azure Search with some DB) need it to have a correct match with highest score. In projects we spend a lot of time of defining questions, and many alternative questions, to a particular answer, and testing all that E2E.
I think the autocomplete approach would largely impact the probability of enabling users to ask the "right" question and find their answer quickly. Also it helps to guide the user and manage his expectations in terms of what QNAs the bot can actually handle (closed world scenario).
Regarding how this could be done: The following article looks promising, using a combination of Azure Search and Twitters typeahead.js library: https://azure.microsoft.com/de-de/blog/azure-search-how-to-add-suggestions-auto-complete-to-your-search-applications/ However, this is designed for the web, not sure about integration into Microsofts Botframework WebChat?
Also I am wondering if in terms of performance doing a REST API call for every character or word being typed in by the user is feasible.
Thanks and best regards Jan
I would LOVE to see this feature implemented ASAP - otherwise, we will either implement it ourselves or switch to different bot framework ...
The "Who"-Bot in Microsoft Teams is implementing this functionality. Does anyone know how they do it? I imagine it's suggested actions. Any bot could profit from an autocomplation/suggestion like this.

That is a feature of Teams. This proposal is about adding similar functionality to Web Chat.
I was working on implementing this in my fork. Here is an initial change (based on @billba's original suggestion): https://github.com/eklavyamirani/BotFramework-WebChat/pull/1

Here's the exposed hook to fetch suggestions: samples/fullwindow/index.html#L58
I am still far from done (i.e. not PR ready) but just wanted to throw it out for some initial feedback.