How to Auto populated questions while user typing

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 ?

It looks like you’re looking for a npm package likes these: