Community - XML-Parser for Chatbots

Newsentries to be discussed

Moderators: AOU Team, Site Managers, Forum Moderators

Post Reply
User avatar
Windguaerd
AOU Community Legend
Posts: 2733
Joined: Mon Sep 26, 2005 4:23 am
Location: Florida
Contact:

Community - XML-Parser for Chatbots

Post by Windguaerd » Thu Feb 16, 2012 9:41 pm

As we had requests from Chatbot-Developers about a solution to show our Knowledge-Guides ingame, i'm happy to announce we now have a XML-Parser that can provide Chatbots with those information easily.
So if you're using a Chatbot that does not have "AOU"-support yet, point them to
http://www.ao-universe.com/mobile/parser.php
and tell them you'd love to be able to access our information database from within the game :)
Twitch Channel - Youtube Channel - Twitter - Facebook - Pinterest
AO Universe - Site Founder (Retired) | AOSpeak - Founder (Retired) | AO RecipeBook - Founder (Retired)

Keep in mind: My posts/views are not representative of AO-Universe in any way, shape or form. They are my own personal views and thoughts.

User avatar
Llie
AOU Content Editor
Posts: 424
Joined: Sun Jun 05, 2011 1:29 am

Re: Community - XML-Parser for Chatbots

Post by Llie » Tue Feb 21, 2012 2:18 am

Initial Vhabot support for searching and displaying AOU guides is now available:

https://bitbucket.org/Llie/vhabot_plugi ... _Guides.cs

Working on making nice with colors and external links next.

(URL for my fork of VhaBot: https://bitbucket.org/Llie/llie_vhabot/overview)
Image

User avatar
Khuri
AOU Programmer/Coder
Posts: 1824
Joined: Thu Sep 29, 2005 7:57 pm
Location: Germany
Contact:

Re: Community - XML-Parser for Chatbots

Post by Khuri » Tue Feb 21, 2012 9:24 am

Sweet, nice to see this starting to be used :)

User avatar
Llie
AOU Content Editor
Posts: 424
Joined: Sun Jun 05, 2011 1:29 am

Re: Community - XML-Parser for Chatbots

Post by Llie » Tue Feb 21, 2012 5:37 pm

Yup! Not having to open up a web browser is something that I've been wanting for ages...

I've updated my plugin to support the following tags in guides:

url
color
img
item

I've written in support for itemicon and br but I haven't found a guide that uses them so I'm not really sure they work.

For the following tags: b, u, i, and size I simply just turn the text blue.

I can support localurl pretty easily too, but I couldn't find a guide that uses that tag to test either.

I just now (as I'm typing this post) realized that AO scripting supports the center tag. I'll add that later today.

If any staff can think of guides that use itemicon, br, and localurl tags, I'd like to know to verify that I'm handling those tags correctly. Thanks.
Image

User avatar
Khuri
AOU Programmer/Coder
Posts: 1824
Joined: Thu Sep 29, 2005 7:57 pm
Location: Germany
Contact:

Re: Community - XML-Parser for Chatbots

Post by Khuri » Tue Feb 21, 2012 5:50 pm

I asked the database directly ;)
It said some guides use these. Here is two examples:

http://www.ao-universe.com/mobile/parse ... serwebsite - itemicon, itemname, br
http://www.ao-universe.com/mobile/parse ... serwebsite - localurl

User avatar
Llie
AOU Content Editor
Posts: 424
Joined: Sun Jun 05, 2011 1:29 am

Re: Community - XML-Parser for Chatbots

Post by Llie » Wed Feb 22, 2012 12:41 am

Ok, I'm done for now on the AOU Vhabot plugin. It's fairly usable, but itemname doesn't work correctly. The problem is that the current cidb for item look-ups is set up only to search on item names. I'm not sure how to get an Item's name from an item RefID.

Anyhow, Vhabot users can install my plug-in and get AOU guides from their bots. Images can't be displayed. Otherwise the formatting is mostly ok.
Image

User avatar
Khuri
AOU Programmer/Coder
Posts: 1824
Joined: Thu Sep 29, 2005 7:57 pm
Location: Germany
Contact:

Re: Community - XML-Parser for Chatbots

Post by Khuri » Thu Feb 23, 2012 1:46 pm

Discussion about changes/new features continues here

User avatar
Llie
AOU Content Editor
Posts: 424
Joined: Sun Jun 05, 2011 1:29 am

Re: Community - XML-Parser for Chatbots

Post by Llie » Thu Feb 23, 2012 5:02 pm

Ah! I don't mean that AOU's itemname tag doesn't work correctly. I mean that my plug-in's handling of itemname doesn't work correctly because I couldn't think up some straightforward way to do it. It's no fault of yours. It's just that this was a usage/feature that the cidb's didn't think any of us would ever need.
Image

User avatar
Morgo
AOU Content Editor
Posts: 189
Joined: Fri Aug 21, 2009 9:33 am
Location: Old Athen

Re: Community - XML-Parser for Chatbots

Post by Morgo » Mon Feb 27, 2012 10:59 am

any screen dumps? So we can see how it works actually in game.
Veteran Dark "Morgo" Padawan :: Devil Inside :: EnforcerImage

User avatar
Llie
AOU Content Editor
Posts: 424
Joined: Sun Jun 05, 2011 1:29 am

Re: Community - XML-Parser for Chatbots

Post by Llie » Tue Feb 28, 2012 8:42 am

Ok, I recently discovered that Xyphos has a XML item look-up, so I can handle item and itemname properly, but the additional look-ups slows down the response. I added a configuration to turn off the item look-ups to speed things up a bit.

Here's screenies as requested. In a chat session with a bot that I brought up on an alt, I typed:

Code: Select all

!aou biomare
Image

When you click on the "Results" link you get:

Image

I scrolled down to the Biomare Quest link and clicked it.. that results in sending the "!aou_guide 28" command getting sent to the bot, and the bot replies with the "please wait" message.

Then I click on the guide link and get this:

Image

The rest of the guide is pretty much as you see here. Things are formatted as well as they can be in the AO info window.
Image

User avatar
Morgo
AOU Content Editor
Posts: 189
Joined: Fri Aug 21, 2009 9:33 am
Location: Old Athen

Re: Community - XML-Parser for Chatbots

Post by Morgo » Tue Feb 28, 2012 1:23 pm

Looks pretty nice.
Veteran Dark "Morgo" Padawan :: Devil Inside :: EnforcerImage

User avatar
Arriviste
Posts: 3
Joined: Wed Feb 09, 2011 9:27 pm
Location: W. Kentucky, United States

Re: Community - XML-Parser for Chatbots

Post by Arriviste » Sun Mar 04, 2012 7:03 pm

Are there any public bots on RK-1 that implement this yet? I'd like to give it a try as an end user.

User avatar
Silvana
AOU Site Manager
Posts: 1773
Joined: Sun Aug 22, 2010 5:23 am
Location: Jobe Harbor
Contact:

Re: Community - XML-Parser for Chatbots

Post by Silvana » Mon Mar 05, 2012 1:16 am

Several have support for it. This thread was about the parser being updated after we did the site re-design. I know for sure that BudaBot uses it, and others likely do, but I can't say for certain.
Image

tyrence
Posts: 51
Joined: Thu Sep 01, 2011 10:14 pm

Re: Community - XML-Parser for Chatbots

Post by tyrence » Tue Jun 05, 2012 1:10 am

EDIT: Moved my suggestions to http://www.ao-universe.com/forum/viewto ... 007#p27007 since that seemed like a better place for them.
Last edited by tyrence on Tue Jun 05, 2012 1:51 am, edited 1 time in total.

Post Reply