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..

Pizza Bot
 
 

Hey everyone!

Me and my friends are working on a very simple pizza chatbot for a month. Actually, it’s designed for a small experiment for a university course. And we are looking for some participants who talk with our chatbot.

In comparision to the other chatbots here, our chatbot is still quite unable to responde properly. If you have any suggestion how to improve Joey—we would be delighted to hear it smile


Here’s the link: http://www.students.uni-marburg.de/~Sucherdt/pizza.html

Thank you very much!

 

 
  [ # 1 ]

I just tried it but the AIML looped. I ordered Vietnamese Craze and said “yes” when it asked if I wanted to add it to my order. This caused a recursion error.

 

 
  [ # 2 ]

Tried it.
You should be able to recognize synonyms for the pizza types.
bacon-> Cock a doodle bacon

In many menu system, you can also order by letter or number to save the user time.

You might want to try Domino’s Pizza bot to give you some ideas.
https://www.youtube.com/watch?v=W-J_v0rPsZE

Also, have your input field support voice input.

 

 
  [ # 3 ]

Thank you Steve and Merlin!

On my mind, the loop came up because I referred to a category with the <srai> tag. Well, there are two categories in different with the same pattern (#YES#) so it somehow got confused.

Here’s an extract of the code:

<category>
        <
pattern># YES #</pattern>
        
<that>VIETNAMESE CRAZE PIZZA HAS PULLED PORK VARIOUS KINDS OF AROMATIC HERBS AND VEGGIES TOPPED WITH A SPICY PEANUT SAUCE WOULD YOU LIKE TO ADD IT TO YOUR ORDER</that>
        <
template>I have put that into your order <br/>Would you like another pizza?</template>
    </
category>
    
    <
category>
        <
pattern>^ YES ^</pattern>
        <
that>VIETNAMESE CRAZE PIZZA HAS PULLED PORK VARIOUS KINDS OF AROMATIC HERBS AND VEGGIES TOPPED WITH A SPICY PEANUT SAUCE WOULD YOU LIKE TO ADD IT TO YOUR ORDER</that>
        <
template><srai># YES #</srai></template>
    
</category>

    <
category>
        <
pattern>YES ^</pattern>
        <
that>VIETNAMESE CRAZE PIZZA HAS PULLED PORK VARIOUS KINDS OF AROMATIC HERBS AND VEGGIES TOPPED WITH A SPICY PEANUT SAUCE WOULD YOU LIKE TO ADD IT TO YOUR ORDER</that>
        <
template><srai># YES #</srai></template>
    
</category

And, of course, I will have a look at the other PizzaBot!

 

 
  [ # 4 ]

Hi, Carolin, and welcome. smile

I took the liberty of surrounding the AIML code in your last post with [code ] tags (minus the space, of course) to make the code more legible. Without those tags, the forum software does bad things to AIML code, such as making the <pattern> tag go missing. smile

Anyway, I have some suggestions regarding the AIML code you posted. First off, it’s not necessary to completely repeat everything the pizza-bot “says” in the <that> tag. You can use the * wildcard for most of it, so instead of this:

<that>VIETNAMESE CRAZE PIZZA HAS PULLED PORK VARIOUS KINDS OF AROMATIC HERBS AND VEGGIES TOPPED WITH A SPICY PEANUT SAUCE WOULD YOU LIKE TO ADD IT TO YOUR ORDER</that

you could use this:

<that>* WOULD YOU LIKE TO ADD IT TO YOUR ORDER</that


Secondly, in an effort to prevent infinite loops in the future, it’s best to use “custom” patterns for <srai> tags, such as I’ve used in the code below:

<category>
  <
pattern>YES</pattern>
  <
that>* WOULD YOU LIKE TO ADD IT TO YOUR ORDER</that>
  <
template><srai>XXYESXX</srai></template>
</
category>

<
category>
  <
pattern>XXYESXX</pattern>
  <
template>I have put that into your order <br/>Would you like another pizza?</template>
</
category

This makes the code more modular, and pretty well eliminates the chance of entering into an infinite loop.

Just out of curiosity, what are you using for your chatbot’s AIML interpreter?

 

 
  [ # 5 ]

Thank you very much Dave! This helps me a lot.

Honestly, I don’t know which AIML interpreter I use. I created my chatbot at the Pandorabot website. I’m really new in this area—so there’s still a lot to learn for me smile

 

 
  [ # 6 ]

Ok, then it’s using Pandorabots for the platform. That’s what I was looking for. wink

Don’t worry about being new to this. We all were, at one point. Just know that we’re here to help, and that there is no such thing as a “stupid question”. cheese

 

 
  login or register to react
‹‹ My Chatbot      Summarization AI ››