AI Zone Admin Forum Add your forum
problem with srai !
 
 

hello i am computer engineering student and as my final year project i am making a chat bot it is a virtual recruiting assistant. i am new to the program O and i need help with <srai> tag plz help me out! here is my code i dont know why it is not working!

<category>
<
pattern>no it is not possible</pattern>
<
that>Is it possible to execute two catch blocks simultaneously</that>
<
template>Correct</template>
</
category>

<
category>
<
pattern>it is not possible to execute them in one go</pattern>
<
that>Is it possible to execute two catch blocks simultaneously</that>
<
template><srai>no it is not possible</srai></template>
</
category

its not working :( bot is not responding “correct” its giving a blank response please help

 

 
  [ # 1 ]

Hey, Jawaria, and welcome to chatbots.org! smile

I caught this as I was about to head out the door. Another few minutes and I wouldn’t have seen it for a few days. smile

The problem with those categories is that you’re using the <SRAI> tag to redirect to a category that also uses a <THAT> tag. What I suggest is to make up a new category like this one:

<category>
<
pattern>CORRECTANSWER</pattern>
<
template>
<
random>
<
li>Correct!</li>
<
li>Thats right.</li>
<
li>Well doneThat is correct.</li>
</
random>
</
template>
</
category

Then you can alter both of the categories you already have as follows:

<category>
<
pattern>no it is not possible</pattern>
<
that>Is it possible to execute two catch blocks simultaneously</that>
<
template><srai>CORRECTANSWER</srai></template>
</
category>

<
category>
<
pattern>it is not possible to execute them in one go</pattern>
<
that>Is it possible to execute two catch blocks simultaneously</that>
<
template><srai>CORRECTANSWER</srai>></template>
</
category

That should do the trick for you. If it doesn’t, let everyone here know and someone with AIML experience is sure to see it, and may post a suggestion.

 

 
  [ # 2 ]

ohh i guess i am lucky smile thanx alot ! i am gonna try it now and will post here the result!

 

 
  [ # 3 ]

ohh yes it does the trick thanx MR.Dave u r a life saver smile

 

 
  [ # 4 ]

wish good luck:-P

 

 
 
  login or register to react