获取 actions/variables 使用带有 AIML 的机器人

Get actions/variables using a Bot with AIML

我对聊天机器人完全陌生,我开始研究 AIML 和 Pandorabots,希望将其 API 集成到我的应用程序中。

经过一番阅读,我不确定这是否是最佳选择。我想做的是类似的事情(把我的应用程序想象成一家书店):

Human: Show me the latests books.
Bot: Ok, here you can find the latest books.

我想在这里得到的响应也是操作 "show" 和 "latest",这样应用程序就会知道该做什么:显示最新图书列表。

这可能吗?

这样做有 OOB 标签。

像这样:

<category>
    <pattern>SEARCH FOR *</pattern>
    <template>Here is what I found on Google. <oob><search><star/></search></oob></template>
</category>

更多信息:https://medium.com/pandorabots-blog/using-oob-tags-in-aiml-part-i-21214b4d2fcd