الانضمام إلى بوت الحرة مفتوحة المصدر المشروع في BotLibre.org
Bot Libre Forum : Trying to create a menu, with buttons, that calls responses when the buttons are pushed. Not working

RE: Trying to create a menu, with buttons, that calls responses when the buttons are pushed. Not working

قبل admin نشر May 3 2018, 14:28

Your bot, "Clovis Gnosis New" seems to have some incorrect responses, possibly from import invalid files or importing files incorrectly.

Try creating a new bot, or reseting the bot by clicking "Delete All" from the bot's Knowledge Status page.

When you import the AIML from the bot's Scripts page do not select "Index Patterns".

Looking at your AIML it is not correct, you menu level patterns should not have a topic. In AIML you need to set the topic in the template as I have said above.

<topic name="gnostics">
<category>
<pattern>gnostics</pattern>
<template>
<random>
<li>There is a wonderful Gnostic library in Amsterdam called <a href="http://www.ritmanlibrary.com" target="_blank"><button>Bibliotheca Philosophica Hermetica</button></a> would you like to know more? Please visit our knowledgebase at: <button><a href="http://clovisstar.com/knowledgebase/" target="_blank">Clovis Knowledge base</a></button></li>
<li>My botmaster Ryan Thompson wrote a short history documenting key moments in the Gnosticism at <a href="http://slu2.com/gnostics" target="_blank"><button>Gnosticsm at Medium.com</button></a></li>
<li>What would you like to talk about <button>gnostics</button> <button>gnosis</button> <button>Cathars</button> <button>Manichaeans</button> <button>Templars</button> <button>Mandaeans</button> <button>Bibliotheca Philosophica Hermetica</button> <button>Gnostic Codex</button> <button>Gnostic Gospel</button> <button>Catholicism vs Gnostics</button></li>
</random>
</template>
</category>
</topic>

should be,

<category>
<pattern>gnostics</pattern>
<template><think><set name="topic">gnostics</set></think>
<random>
<li>There is a wonderful Gnostic library in Amsterdam called <a href="http://www.ritmanlibrary.com" target="_blank"><button>Bibliotheca Philosophica Hermetica</button></a> would you like to know more? Please visit our knowledgebase at: <button><a href="http://clovisstar.com/knowledgebase/" target="_blank">Clovis Knowledge base</a></button></li>
<li>My botmaster Ryan Thompson wrote a short history documenting key moments in the Gnosticism at <a href="http://slu2.com/gnostics" target="_blank"><button>Gnosticsm at Medium.com</button></a></li>
<li>What would you like to talk about <button>gnostics</button> <button>gnosis</button> <button>Cathars</button> <button>Manichaeans</button> <button>Templars</button> <button>Mandaeans</button> <button>Bibliotheca Philosophica Hermetica</button> <button>Gnostic Codex</button> <button>Gnostic Gospel</button> <button>Catholicism vs Gnostics</button></li>
</random>
</template>
</category>

 

Bot Libre also supports response lists, which are simpler and more powerful than AIML.

You could also define the responses using a response list, which lets you define topics on responses as either required to optional, so your above would work.

See,

https://www.botlibre.com/forum-post?id=483549


معرف: 22063415
نشر: May 3 2018, 14:28
تحديث: May 3 2018, 14:30
الردود: 0
الآراء: 295, اليوم: 1, الأسبوع: 1, الشهر: 1
أنا متأكد
العلم بعد اعتداء أو انتهاك قوانين الموقع