Edward
Newbie
Posts: 9
Joined: Thu Nov 26, 2015 12:49 pm
Location: india

AIML conversion to SIML [Solved]

Wed Dec 16, 2015 5:21 pm

Hi...

I want to convert this aiml tag into siml
i tried this converting in siml using SynChatBot studio.
But topic(Concept in siml) is not working.

<category>
<pattern>Hi my pizza order is cancelled</pattern>
<template>
<srai>PizzaOrder</srai>
</template>
</category>
<category>
<pattern>PizzaOrder</pattern>
<template>
Sure its my pleasure assisting you on this <set name="topic">Pizza</set> delivery.
</template>
</category>
<topic name="Pizza">
<category>
<pattern>Ok</pattern>
<that>
Sure its my pleasure assisting you on this Pizza delivery.
</that>
<template>
Do you have the delivery bill
</template>
</category>
<category>
<pattern>Yes</pattern>
<that>
Do you have the delivery bill
</that>
<template>
Ok please send us the bill through email.
</template>
</category>

Conversation :

human : Hi my pizza order is cancelled
bot : Sure its my pleasure assisting you on this Pizza delivery.

human : Ok
bot : Do you have the delivery bill

human : Yes
bot : Ok please send us the bill through email.

Please do the needful and i need some examples of setting topic for a content. :) :)

Thanks with Regards,
Edward

User avatar
Fantom
Help & Support
Posts: 304
Joined: Fri Oct 25, 2013 9:20 pm

Re: AIML conversion to SIML

Wed Dec 16, 2015 6:26 pm

Your AIML is totally broken and that is why people don't like aiml :oops: . Where is the the <aiml> tag ? and why is that there is a <topic> tag but no </topic> tag ?. When you try to convert some aiml file to SIML please check if any logs are generated.

Did you know that SIML Models can be nested ?

The following code should work for you :)

SIML Code

<Siml>
  <Concept Name="Test">
  
    <Model>
      <Pattern>HI MY PIZZA ORDER IS CANCELLED</Pattern>
      <Response>
        <Goto>PizzaOrder</Goto>
      </Response>
    </Model>
    
    <Model>
      <Pattern>PIZZAORDER</Pattern>
      <Response>Sure its my pleasure assisting you on this Pizza delivery.</Response>
      <Model>
        <Pattern>OK</Pattern>
        <Response>Do you have the delivery bill</Response>
        <Model>
          <Pattern>YES</Pattern>
          <Response>Ok please send us the bill through email.</Response>
        </Model>
      </Model>
    </Model>
    
  </Concept>
</Siml>
or more simple....

SIML Code

<Siml>
  <Concept Name="Test">
  
    <Model>
      <Pattern>
        <Item>PIZZAORDER</Item>
        <Item>HI MY PIZZA ORDER IS CANCELLED</Item>
      </Pattern>
      <Response>Sure its my pleasure assisting you on this Pizza delivery.</Response>
      <Model>
        <Pattern>OK</Pattern>
        <Response>Do you have the delivery bill</Response>
        <Model>
          <Pattern>YES</Pattern>
          <Response>Ok please send us the bill through email.</Response>
        </Model>
      </Model>
    </Model>

  </Concept>
</Siml>

Edward
Newbie
Posts: 9
Joined: Thu Nov 26, 2015 12:49 pm
Location: india

Re: AIML conversion to SIML

Wed Dec 16, 2015 7:04 pm

Hi franz......
Thanks for your reply.

How to you use the concept tag for multiple topics.
Ex: I have two topics such as Banking and Medical.

Now I am entering into Banking topic...Maya will reply only from Banking topic..bcoz topic is set as Banking.
i am asking only two question from banking topic and then i am shifting to Medical topic..now maya must reply from Medical questions only.

My doubt is how to use multiple topics and how to move from one topic to another topic by chating.
Please do the needful.\

With Regards,
Edward

User avatar
Fantom
Help & Support
Posts: 304
Joined: Fri Oct 25, 2013 9:20 pm

Re: AIML conversion to SIML [Solved]

Thu Dec 17, 2015 6:59 pm

Most of the questions have already been answered in the Wiki Center. You will have to give me some example for better understanding :(

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest