hye,

I want to write a aiml file from scratch...

i have tried some things but i keep getting the same answer from programab.

it still says "i have no anwer to that"

Can someone please help me?

thx

 

 

calamity

8 years 1 month ago

Hi Koenvdd

that's mean your AIML files are not loading

It can be two problems

1- your AIMLIF files are outdated (delete them)

2- there is a problem with the structure of your AIML file

 

This is what's in my aiml file...
E:\robo\ProgramAB\bots\koen\aiml\default.aiml
 
 
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
 
<topic name="Greetings">
 
<category>
<pattern>HOE GAAT HET VANDAAG?</pattern>
<template><random>
<li>Volgens mijn parameters gaat alles nog goed :-).</li>
<li>Het gaat wel, en jij?</li>
<li>Alles goed, bedankt.</li>
<li>Mijn servo's en electronica zijn in orde.</li>
<li>Alles goed bedankt</li>
<li>No problems here. How are you?</li>
<li>I am functioning well today.</li>
<li>Awesome. And you?</li>
<li>Hunky Dorey.</li>
<li>Pretty well thank you. How are you?</li>
</random></template>
</category>
 
</aiml>

 

thx, edited but still no worky... 
i have the strange feeling that i missed something?but what?
 
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
 
<topic name="Greetings">
 
<category>
<pattern>HOE GAAT HET VANDAAG?</pattern>
<template><random>
<li>Volgens mijn parameters gaat alles nog goed :-).</li>
<li>Het gaat wel, en jij?</li>
<li>Alles goed, bedankt.</li>
<li>Mijn servo's en electronica zijn in orde.</li>
<li>Alles goed bedankt</li>
<li>No problems here. How are you?</li>
<li>I am functioning well today.</li>
<li>Awesome. And you?</li>
<li>Hunky Dorey.</li>
<li>Pretty well thank you. How are you?</li>
</random></template>
</category>
 
</topic>
 
</aiml>

try removing the topic tag.

programAB will use what is inside the topic when the topic is set to his name (Greetings).

In your AIML, nothing set the topic

try removing the topic tag.

programAB will use what is inside the topic when the topic is set to his name (Greetings).

In your AIML, nothing set the topic

Try removing the "?"  question mark from your pattern ...  I'm pretty sure punctuation is all stripped away before matching, so that would never match if you have the ? in the pattern.

 

Made some changes, still not working...
Is there anything i'm doing wrong?
aimlif files are made automatically i have seen, or is something wrong there?
my aiml file seems to be ok...
greetz...
 
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
  <!-- A simple greeting repsonse -->
  <category>
    <pattern>HI</pattern>
    <template>Hello</template>
  </category>
</aiml>

Perhaps.  ProgramAB is looking in the wrong directory for the AIML files.

When you do "start session"  you should see in the log files that it's looking for and loading each of the AIML files for that bot.  

The log files will report the full path of where it's looking to load the files.  My guess is the setPath is incorrect / pointing at the wrong directory.

 

 

 

Open Your bot folder, find the "aimlif" folder and delete all the files inside that will work. Remmember the aimlif folder not the aim folder.
Works for me I have these same problem.