首页 > 解决方案 > 使用开源服务为 Vue JS 机器人添加智能

问题描述

我正在尝试使用 Vue JS 构建一个完全开源的机器人,我需要添加智能以使机器人按时间从用户输入中学习,我不想使用微软、谷歌或 IBM 或任何提供的服务其中我想使用一个我可以自己托管并在以后改进的开源解决方案

我怎样才能做到这一点?

这是我现在展示你好世界的方式:

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!'
  });
});

这就是我关注 rn:https ://www.cssscript.com/minimal-javascript-chat-bot-framework-botui/

标签: javascriptmachine-learningvue.jsopen-sourcebots

解决方案


AIML:您可以使用人工智能标记语言 (AIML) 为您的机器人创建对话流。AIML 非常容易学习,基本上是 XML 的扩展。

这是一个基本示例:

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

您可以在这里了解更多信息: 游乐场

AIML 的开源平台: Pandorabots


推荐阅读