我正在尝试使用Vue JS构建一个完全开源的机器人,我需要添加智能功能,使机器人能够随着时间从用户输入中学习。我不想使用微软、谷歌、IBM或任何其他公司的服务,我希望使用一个开源解决方案,可以自己托管并在以后进行改进。
我该怎么做呢?
这是我现在展示“hello world”的方式:
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!' });});
这是我目前正在遵循的: https://www.cssscript.com/minimal-javascript-chat-bot-framework-botui/
回答:
AIML: 你可以使用人工智能标记语言(AIML)为你的机器人创建对话流程。AIML非常容易学习,基本上是XML的扩展。
这是一个基本示例:
<category> defines beggining of category<pattern>What the User Says</pattern><template>What the Bot Responds</template></category>
你可以在这里了解更多: Playground
用于AIML的开源平台: Pandorabots