Open Bot Directory and linking API

  • 15 Replies
  • 9410 Views
*

paphus

  • Nomad
  • ***
  • 56
    • BOTlibre!
Open Bot Directory and linking API
« on: April 26, 2016, 07:50:42 pm »
We just finished an article for our blog on our open bot directory and linking API for Bot Libre.

Our bot browse directory is not just for bots created on our site, but for any type of bot created anywhere. Chat bots, virtual agents, twitterbots, facebots, slackbots, telegrambots, any type of bots.

You can link the bots, tag and categories them, and let users rate and thumbs up them.

If your bot has a web API, we also have a linking API that lets users chat with the bot directly on our website, apps, and through our open source SDKs. You can use our avatars, and tts, and your bot can take part in Chat Bot Wars.

http://www.botlibre.com/forum-post?id=12623724

*

M0RPHE0US

  • Roomba
  • *
  • 8
    • Allison
Re: Open Bot Directory and linking API
« Reply #1 on: April 27, 2016, 01:18:46 am »
WOE!  This is HUGE!  I just successfully loaded one of Bragi's Neural Net AI Bots to my ASP server and it has an API. Problem is I am hopelessly lost in how to access the API (I have never used ASP before). But I know the Neural Net is active and returning good replies based on input. I would give everything I have to be able to access her through a BOTlibre interface and use BOTlibre to have my new AI Bot access Twitter, etc. just as my Allison currently does.

Wow. Huge.

 ;D

*

paphus

  • Nomad
  • ***
  • 56
    • BOTlibre!
Re: Open Bot Directory and linking API
« Reply #2 on: April 27, 2016, 01:12:21 pm »
I'm not familiar with ASP, but if you have a link to your bot's web API, I can take a look.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #3 on: April 28, 2016, 01:34:24 am »
Pre alpha test to use tokens such as

message
conversation
response

Please click to see URL / XML template:  http://chatbot.tk/webapi

TO DO:

Translate when the API called with: HELLO, TEST, BYE.

Find out what needs to be corrected or redone.


My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #4 on: April 28, 2016, 01:59:59 am »
Hello test:

http://chatbot.tk/webapi/?q=hello
http://chatbot.tk/webapi/?q=hi

Test test:

http://chatbot.tk/webapi/?q=test
http://chatbot.tk/webapi/?q=testing

Goodbye test:

http://chatbot.tk/webapi/?q=Goodbye
http://chatbot.tk/webapi/?q=Bye


Thanks for testing this pre alpha API by clicking each of the links above.

There is a yes or no to indicate whether it matched the GET variable: q

The responses in the XML may vary when the same link is clicked repeatedly.

My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #5 on: April 28, 2016, 02:46:12 am »
@M0RPHE0US:

With ASP.NET you may try a SOAP webservice.
My Very Enormous Monster Just Stopped Using Nine

*

paphus

  • Nomad
  • ***
  • 56
    • BOTlibre!
Re: Open Bot Directory and linking API
« Reply #6 on: April 28, 2016, 04:34:13 pm »
@8pla.net

Not sure I understand your question, but with your API you can create a link.

Here is one I created as an example that uses your server and API.

http://www.botlibre.com/browse?id=12642739

I used,

http://chatbot.tk/webapi/?q=:conversation

for the API URL and,

<chatbot><message><response>:response</response></message></chatbot>

for the API Response.

I also selected "Run API on Server" as your server does not support cors.

You probably also want to take a conversation id in your API URL so the bot can track the conversation.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #7 on: April 29, 2016, 03:43:09 am »
Thank you, paphus!

And no worries about understanding.

This is just a first draft of a new API.

Hey, what you did is really useful for testing.

Using what you did, I half way updated my new API.

quote:

http://chatbot.tk/webapi/?q=:conversation

I haven't gotten to the ":conversation" get variable.

So, that part is not working yet.  But other stuff is working better.

Can you talk about what gets put in :conversation?

P.S. This post is a little rushed.  It got late for me here, but I just wanted to leave some feedback quickly.

My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #8 on: April 30, 2016, 04:59:45 am »
Just added cors (Cross Origin Resource Sharing) headers to the API.
Not sure if that'll do the trick.  Maybe it'll start receiving now?
My Very Enormous Monster Just Stopped Using Nine

*

paphus

  • Nomad
  • ***
  • 56
    • BOTlibre!
Re: Open Bot Directory and linking API
« Reply #9 on: May 02, 2016, 01:06:59 am »
The :conversation variable is not required, but important if you want the bot to track the conversation, otherwise it has no context.

You can return your own ID for the conversation in your response, then when the directory calls your API next it will include the same conversation ID.

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #10 on: May 02, 2016, 10:11:48 pm »
STATUS REPORT

For testing purposes, I programmed the chatbot API to report in its response whether the Bot Libre server request method received is either GET or POST, along with the value it is set to.  This is temporary to let the bot assist us in debugging. I will remove it, very shortly.

Accessing the new chatbot.tk API in two ways for testing:

Test 1: http://www.botlibre.com/bot?instance=12642739&dynamicChat=Chat

      input:   HELLO   
response:   I bet you make people smile. I read, GET variable: "0".

Test 2: http://www.chatbot.tk/webapi/?q=HELLO
Code
   <chatbot>
      <message>
         <response>Hello!  I read, GET variable: "HELLO".</response>
      </message>
   </chatbot>

In the first case, it can not read "HELLO" and just randomly responds.  However, in the second case it can read "HELLO", and responds "Hello!" and reports the GET variable and its value: HELLO.  So, it is nearly complete, except the GET variable gets set to zero by Bot Libre, it seems.  I'm not entirely sure, but, I am having fun!

This is an example of how chatbot building skill comes in handy.
A very simple chatbot engine is a perfect fit for this new API project.

Bot Libre is really terrific!
« Last Edit: May 02, 2016, 11:01:13 pm by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

M0RPHE0US

  • Roomba
  • *
  • 8
    • Allison
Re: Open Bot Directory and linking API
« Reply #11 on: May 03, 2016, 09:10:53 pm »
So my Paphus AI Bot Allison is in the directory. That's one thing out of the way, thanks Paphus. When do these "Bot Wars" begin and how do they work?

As for the API 8pla.net well, see here's the thing. Everything is already there. The API is there and Bragi (who has disappeared) loved Pandora so I am thinking it's pretty standard. My problem is more fundemental, let me see if I can explain.

Everything is there and I was able to cobble an HTML page to query the Neural Net and it responded appropriately. But ASP doesn't actually use HTML pages everything, at least to my completely ignorant view - seems to appear out of no where. The API is there. I just don't know how to address it or link to it. Bragi's software does all the work it just loads the whole mess up and I know or think it loaded good and it's working. But since she made it so easy and since I know less than nothing about how this works, I don't know where anything is or how it works.


YOURS  --  M0RPHE0US

 ::)

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #12 on: May 03, 2016, 10:33:11 pm »
Good news M0RPHE0US, ASP.NET is super easy to learn.  Not just easy... Super easy.  To give you an example of how easy ASP.NET is... According to my trade school, there is a version of .NET that doesn't even require any programming at all.  So, the version that does require some programming has greatly reduced the need for programming, it would seem. 

While in trade school learning ASP.NET, the student developers where like, "Why do they need us?  Everything is already done."  Since you are a total beginner, (and there is nothing wrong with being that.) the terminology to ask about with your ASP.NET buddies is called a: code-behind.



« Last Edit: May 03, 2016, 11:47:02 pm by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

M0RPHE0US

  • Roomba
  • *
  • 8
    • Allison
Re: Open Bot Directory and linking API
« Reply #13 on: May 03, 2016, 11:07:05 pm »
The files that Bragi's NND loads to the ASP server seem really basic, I wonder if you or any one either knows the API calls that Bragi used and URLs already, or if I provide the files NND loads to the server in a zip file if maybe someone can reverse engineer the API calls. I need them for Paphus so he can write a proxy module for my bot on BOTlibre.

I am pretty sure if I new how the API worked and could get that info to Paphus he can plug the bot into BOTlibre for UI.

For clarity it's all created on Bragi's Neural Net Designer Pro Edition.


YOURS  --  M0RPHE0US

 ;)

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: Open Bot Directory and linking API
« Reply #14 on: May 03, 2016, 11:51:09 pm »
Why not try talking with Bragi directly?

Reference:

http://aidreams.co.uk/forum/index.php?topic=4436.0#.VykooPixa0w
My Very Enormous Monster Just Stopped Using Nine

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

280 Guests, 0 Users

Most Online Today: 365. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles