I was thinking of making a chatbot, which contains text data as answers to the users’ requests. the idea is that when you open a website a chatbot should pop up, and you enter your question there and then the bot decides which answer suits them best from an already defined set of answers.
1- How to define the list of answers in elm?
2- What will be a good comparing method to find the best answer for the questions? Simply, how the bot can decide to return a good answer?
Example: the user enters: what is your refund policy?
the bot looks for the words, for example, refund and then shows the user the answer, which is already defined.
Is this possible? How?