Hello,
I need help. I recently started working on AIML. Can you please tell me how I can make the bot pause for a second during its reply.i.e. in between of its reply.
The bot that I am working on, replies very fast.
Thank you.
lipska wrote:
Hi All,
I am hoping someone can give me advice regarding the issue I am experiencing. I wrote AIML for one of the old programD interfaces ( 4.1.*) couple of years ago. I have now upgraded to the new programd 4.6 and have experienced a number of issues regarding whitespace/carriage returns.
I am not sure if these are related to my incorrect usage of AIML, missing settings or perhaps something else.
I have a number of examples of what happens
Case 1
Consider the below extract of AIML
<category>
<pattern>TESTONE</pattern>
<template>
hello <srai>TESTTWO</srai>
</template>
</category>
<category>
<pattern>TESTTWO</pattern>
<template>
Right here
</template>
</category>
When I type TESTONE it should print out hello and the process TESTTWO i.e. I would expect it to print out
hello Right here
Instead it puts a carriage return in outputting the below
hello
Right here
Now I am able to correct this by changing the AIML under TESTTWO to have the template all on one line
<category>
<pattern>TESTTWO</pattern>
<template>Right here</template>
</category>
This outputs
hello Right here
I have lots and lots of AIML that is written in the previous form and this would mean hours of work to fix. I realise this is probably related to some new interpretation in progamd 4.6 of carriage returns i.e. they are included as part of the content. Is there any easy way I can switch this off
Any help would be greatly appreciated
Example of actual AIML file
sample1.aimlKind regards
Lipska