Search code examples
javascriptmachine-learningvue.jsopen-sourcebots

Adding intelligence to Vue JS bot using open source services


i am trying to build a bot that is completely open source using Vue JS and i need to add intelligence to make the bot learn from the user input by time and i don't want to use services provided by Microsoft or Google or IBM or any of that i want to use an open source solution that I can host on my own and improve later

how can i do that?

here's how i show hello world now:

var botui = new BotUI('hello-world');
botui.message.add({
  content: 'Hello World from bot!'
}).then(function () { // wait till previous message has been shown.
  botui.message.add({
    delay: 1000,
    human: true,
    content: 'Hello World from human!'
  });
});

this is what i following rn: https://www.cssscript.com/minimal-javascript-chat-bot-framework-botui/


Solution

  • AIML: You can use Artificial Intelligence Markup Language (AIML) to create conversational flows for you bot. AIML is very easy to learn and basically an extension of XML.

    Here is a basic example:

    <category> defines beggining of category
    <pattern>What the User Says</pattern>
    <template>What the Bot Responds</template>
    </category>
    

    You can learn more here: Playground

    Open Source Platform for AIML: Pandorabots