Discuss Scratch

StarscreamClone
Scratcher
1000+ posts

JavaScript AI/Chatbot

As the title says, I will be working on developing a sort of JavaScript-based AI (or at least a chatbot). I intend to do this by implementing ways that it can adapt to how conversations change (basically, try to make it learn). Would it be a true AI? Probably not. I will still try to make a program that develops a ‘personality’, and for added fun, have his/her (programs are people, too) ‘starting personality’ be that of either Wheatley, GLaDOS, or my OC Dark Surge.

First off, I'm finishing the JS track in Codecademy– I'm 50% through– but I believe I know enough to at least get started. Just for fun, I'll post my code here for you to test out when I work on it.

Thoughts or suggestions?

Last edited by StarscreamClone (Oct. 19, 2013 14:00:37)

jji7skyline
Scratcher
1000+ posts

JavaScript AI/Chatbot

That would be cool
StarscreamClone
Scratcher
1000+ posts

JavaScript AI/Chatbot

jji7skyline wrote:

That would be cool
cocolover76
Scratcher
100+ posts

JavaScript AI/Chatbot

this is just begging me to make a prototype for you
i'll be back with it in a few minutes
StarscreamClone
Scratcher
1000+ posts

JavaScript AI/Chatbot

cocolover76 wrote:

this is just begging me to make a prototype for you
i'll be back with it in a few minutes
Oh, man! I'd LOVE to look at the code for that!
cocolover76
Scratcher
100+ posts

JavaScript AI/Chatbot

StarscreamClone wrote:

cocolover76 wrote:

this is just begging me to make a prototype for you
i'll be back with it in a few minutes
Oh, man! I'd LOVE to look at the code for that!
It would be entirely done now if Firefox's Javascript XML parser would cooperate with me.
>.<
EDIT: OH JAVASCRIPT WHY ARE YOU NOT WORKING WITH MY NICE NESTED XML
IF YOU DID I WOULD BE DONE WITH THIS RIGHT NOW
oi

Last edited by cocolover76 (Oct. 23, 2013 00:56:11)

cocolover76
Scratcher
100+ posts

JavaScript AI/Chatbot

Well, I got it to do something.
(link)
But because nested XML is mooing it just says the XML ended without warning.
Oh and about the character's image… I just couldn't think of anything else, and I don't want to stare at a Portal character all day (although I do play Portal sometimes)

I will keep working on it when I'm done with all my other responsibilities (MelonInc I'm talking to you) tomorrow.

Last edited by cocolover76 (Oct. 23, 2013 01:19:19)

jji7skyline
Scratcher
1000+ posts

JavaScript AI/Chatbot

Yep, I get the bug as well.

I don't really understand your code O.o
MelonInc
Scratcher
100+ posts

JavaScript AI/Chatbot

cocolover76 wrote:

Well, I got it to do something.
(link)
But because nested XML is mooing it just says the XML ended without warning.
Oh and about the character's image… I just couldn't think of anything else, and I don't want to stare at a Portal character all day (although I do play Portal sometimes)

I will keep working on it when I'm done with all my other responsibilities (MelonInc I'm talking to you) tomorrow.
Heh, heh, heh.
harakou_testing
Scratcher
1 post

JavaScript AI/Chatbot

jji7skyline wrote:

Yep, I get the bug as well.

I don't really understand your code O.o
Yeah, what is it exactly supposed to do? Seems like the framework for a bot with canned answers?
berberberber
Scratcher
100+ posts

JavaScript AI/Chatbot

You know you can get banned for impersonating a mod right?

Last edited by berberberber (Oct. 26, 2013 22:31:31)

CodyTechery
Scratcher
100+ posts

JavaScript AI/Chatbot

He's a Scratcher, he joined over 3 years ago, and he is both following and being followed by Harakou. Not enough proof?
berberberber
Scratcher
100+ posts

JavaScript AI/Chatbot

CodyTechery wrote:

He's a Scratcher, he joined over 3 years ago, and he is both following and being followed by Harakou. Not enough proof?
Hmm… Shoulda checked.

I guess my mind went into high alert at the fact that he only has one post.
cocolover76
Scratcher
100+ posts

JavaScript AI/Chatbot

harakou_testing wrote:

the framework for a bot with canned answers
That's exactly what it is!
Harakou
Scratcher
1000+ posts

JavaScript AI/Chatbot

cocolover76 wrote:

harakou_testing wrote:

the framework for a bot with canned answers
That's exactly what it is!
Yeah, that's what I thought. Not much of a chat bot with only predetermined questions you can ask, but a good start.

@berberberber: Yes, that is indeed my account. I never really post on it, but I wanted to test some New Scratcher functionality. Unfortunately, it at some point was promoted to Scratcher, so it didn't end up achieving what I wanted. Oh well.
trinary
Scratcher
96 posts

JavaScript AI/Chatbot

cocolover76 wrote:

harakou_testing wrote:

the framework for a bot with canned answers
That's exactly what it is!
You may like to take a look at these StackOverflow answers if you want to make something you could actually chat to.
SO_MUCH_NOPE
Scratcher
77 posts

JavaScript AI/Chatbot

Java is really complicated… I have no idea as to the specifics of your idea but I have a vauge (I don't think I spelled that right) idea of how it could work. Good luck though. Maybe it'll be the next CleverBot Evie craze.

Powered by DjangoBB