How to Auto populated questions while user typing

#1

Hi I am creating chatbot using rasa and storing the conversations also in mongodb.

Now i want to auto populated or auto suggest questions while user typing. For example user type ‘h’ then possible questions like " hi ,how are you ,how can i help you " ,Etc…

How to write javascript code for that…

Once open this link and see as a demo

Please help me ?
Thank’s

#2

It looks like you’re looking for a npm package likes these:
https://www.npmjs.com/search?q=keywords:typeahead