AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Issues with aiml condition
 
 

Hello everyone,

I’m a french developper and this is my first commit (sorry if i’m not in the good category for asking this question, and sorry for my english)

I’m using Program O and I have an issue using condition tag in aiml
I want to create a condition based on the ancient response of the bot

like :

me : show me something
Bot: Here something, do you want to see something else ?
me : Yes
bot : Here something else, do you want to see an other something else
me: yes
bot: here other something else


The main problem is the ’ two level condition’ because in the bot case my answer will be ‘yes’
and I didn’t succeed to organize the both condition to appears the one after the other.

Thank You

 

 
  [ # 1 ]

Hello, Hugo, and welcome to chatbots.org. smile

I’m Dave, one of the admins here. I’ve taken the liberty of moving your post to the proper forum; I hope you don’t mind.

I’m also lead developer for Program O, so I think I can help you with this. It would be very helpful if I could see the AIML categories that you’re using to get the responses you desire. Would you mind posting your AIML code here for me to look at?

 

 
  [ # 2 ]

Hello,

sorry for the late,

yes of course here my code:

<category>
    <
pattern>I want to see the resume</pattern>
    <
template>Here a first piece of the resume
    
<br/><img src="img1.png"/><br/>
    Do 
you want to see an other piece ?
    </
template>
</
category>

<
category>
 <
pattern>*</pattern>
 <
template>
  <
think><set name"answer1"></set></think>
  <
condition name="reponse1" value "yes">
         <
img src="img2.png"/><br/>
         
Here a project from a client An other extract ?
        </
condition>
        <
condition name="reponse" value "No">
         
What can i do for you ?
        </
condition>
</
template>
</
category>


<
category>
 <
pattern>*</pattern>
 <
template>
  <
think><set name"answer2"></set></think>
  <
condition name="answer2" value "yes">
         <
img src="img3.jpg"/><br/>
         
Here the last project of the client , if you want to see morecontact us !
        </
condition>
</
template>
</
category

 

 

Thank you !

 

 
  [ # 3 ]

You seem to have some inconsistencies in your AIML. For example, you’re setting the value of “answer1” and “answer2” to empty values, yet those variables aren’t accessed anywhere else in your code. You’re also looking for the variables “response” and “response1”, but those aren’t being set anywhere either. Either there is more AIML code to be seen here, or your naming conventions are flawed. As written, and without any other AIML code to support it, what you have here will not do what you expect. Is there more AIML code to go along with what you have here?

 

 
  login or register to react