Hello, please excuse any mistakes in my English as I am trying my best :) I have a few questions and I hope to find answers here. I am interested in creating an offline chatbot using html/css/js and integrating it with the Program Intel XDK.
- One question I have is how can I give the chatbot specific commands so that it responds to particular words or subjects. For example: "Me: hey" "Bot: hey/hi"
Another challenge I'm facing is to set response times for specific words or subjects. For instance, if I say "hey", the Chatbot must respond within "1 minute".
I am currently working with this index.js code:
var $messages = $('.messages-content'),
d, h, m,
i = 0;
$(window).load(function() {
$messages.mCustomScrollbar();
setTimeout(function() {
fakeMessage();
}, 100);
});
// More code...
function fakeMessage() {
if ($('.message-input').val() != '') {
return false;
}