aiml and programab

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's picture

Hi Koenvdd that's mean your

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

 

Koenvdd's picture

This is what's in my aiml

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>

 

calamity's picture

your topic tag is not closing

your topic tag is not closing

Koenvdd's picture

thx, edited but still no

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>
calamity's picture

try removing 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

calamity's picture

try removing 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

Koenvdd's picture

thanks all, but still not

thanks all, but still not working
don't know what can be wrong?
 

kwatters's picture

remove your punctuation

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.

 

Koenvdd's picture

Made some changes, still not

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>
kwatters's picture

bot path might be wrong?

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.

 

 

 

bartcam's picture

Delete the old aimlif

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.