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

Android Chat bot using Program-AB
 
 

Hi, I’m working on a new project which is a chat bot for android using the Program-Ab library. It is going pretty well, I have managed to get the chat bot working. My only issue is, that the <oob> tags dont work. If I ask it to open maps or something, It outputs some like:

<oob><map>Opening Map</map></oob

And doesn’t open maps. How can I fix this? BTW I’m working in Java in Android Studio.

Thanks.

 

 
  [ # 1 ]

Your app needs to be able to intercept the <oob> tag before it’s output to the user, and perform the contained commands from there. I’m not proficient in either Android or Java (though I’m planning on taking intensive training in Java in the near future), so I can’t assist further at this point, but maybe this bit of information will provide the proper direction. smile

 

 
  [ # 2 ]
Dave Morton - Apr 16, 2014:

Your app needs to be able to intercept the <oob> tag before it’s output to the user, and perform the contained commands from there. I’m not proficient in either Android or Java (though I’m planning on taking intensive training in Java in the near future), so I can’t assist further at this point, but maybe this bit of information will provide the proper direction. smile

Thanks Dave smile. But How would I intercept the <oob> tag?

 

 
  [ # 3 ]

Unless I am missing something obvious or it’s just how the forum is displaying your post, you need to close your oob tags like so:

<oob><map>Opening Map</map></oob
 

 
  [ # 4 ]
Steve Worswick - Apr 16, 2014:

Unless I am missing something obvious or it’s just how the forum is displaying your post, you need to close your oob tags like so <oob><map>Opening Map</map></oob>

Sorry Steve, I did do that in my AIML Files, but forgot to add them in the post. How can I solve it?

 

 
  [ # 5 ]

I went ahead and added [ code ] tags (without the spaces, of course) to each of your posts, to make things a bit clearer. smile

As to your question, I don’t have the faintest idea, since I’m neither a Java nor Android programmer. The only suggestion I can provide is to check out any number of Java development forums that cater to those new to the language and see what you can find out there. We have some programmers here, but I’m not sure that any of them even dabble in Java (though I could be wrong).

 

 
  [ # 6 ]
Dave Morton - Apr 16, 2014:

I went ahead and added [ code ] tags (without the spaces, of course) to each of your posts, to make things a bit clearer. smile

As to your question, I don’t have the faintest idea, since I’m neither a Java nor Android programmer. The only suggestion I can provide is to check out any number of Java development forums that cater to those new to the language and see what you can find out there. We have some programmers here, but I’m not sure that any of them even dabble in Java (though I could be wrong).

Hi Dave,

Thanks for adding the code tags wink

I contacted Harry Kunze at PandoraBots, he said to look at this book: http://www.packtpub.com/voice-application-development-for-android/book

Could anyone tell me if there is something in there that will help?

 

 
  [ # 7 ]

You want us to read it for you?

This is what I use to display maps in CallMom:

<category>
    <
pattern>SHOW ME A MAP OF *</pattern>
    <
template>
    
I think I know where <star/> isI will open a map for you.
    <
oob><map><star/></map></oob>
    </
template>
</
category

This works ok for me. When running on the phone, it does the following:

Human: Show me a map of London
Mitsuku: I think I know where London is. I will open a map for you. (displays a map of London)

However, if you are not using a phone to test with, it will do the following:

Human: Show me a map of London
Mitsuku: I think I know where London is. I will open a map for you. London.

 

 

 
  [ # 8 ]

My reading that eBook won’t help you, as I wouldn’t know what to look for, and to be honest, your recent request had the tone of “do my legwork for me”, without even so much as a “please” or “thank you”, and I’m the type of person who treats demands like that with militant refusal.

Again, I urge you to take this matter up in forums that deal with Java development, as they will be better suited to giving you more beneficial assistance. You may also do a Google search for Java XML parsing (link here). Beyond that I cannot help.

 

 
  [ # 9 ]
Steve Worswick - Apr 16, 2014:

You want us to read it for you?

This is what I use to display maps in CallMom:

<category>
    <
pattern>SHOW ME A MAP OF *</pattern>
    <
template>
    
I think I know where <star/> isI will open a map for you.
    <
oob><map><star/></map></oob>
    </
template>
</
category

This works ok for me. When running on the phone, it does the following:

Human: Show me a map of London
Mitsuku: I think I know where London is. I will open a map for you. (displays a map of London)

However, if you are not using a phone to test with, it will do the following:

Human: Show me a map of London
Mitsuku: I think I know where London is. I will open a map for you. London.

Thanks Steve and Dave,

I read the book and now I have everything working fine.
Thanks for the help.

Matthew

 

 
  [ # 10 ]

Glad we could be of help. smile

 

 
  login or register to react