Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » JavaScript AI/Chatbot
- StarscreamClone
-
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?
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)
- cocolover76
-
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
i'll be back with it in a few minutes
- StarscreamClone
-
1000+ posts
JavaScript AI/Chatbot
Oh, man! I'd LOVE to look at the code for that! this is just begging me to make a prototype for you
i'll be back with it in a few minutes

- cocolover76
-
100+ posts
JavaScript AI/Chatbot
It would be entirely done now if Firefox's Javascript XML parser would cooperate with me.Oh, man! I'd LOVE to look at the code for that! this is just begging me to make a prototype for you
i'll be back with it in a few minutes
>.<
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
-
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.
(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
-
1000+ posts
JavaScript AI/Chatbot
Yep, I get the bug as well.
I don't really understand your code O.o
I don't really understand your code O.o
- MelonInc
-
100+ posts
JavaScript AI/Chatbot
Heh, heh, heh. 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.

- harakou_testing
-
1 post
JavaScript AI/Chatbot
Yeah, what is it exactly supposed to do? Seems like the framework for a bot with canned answers? Yep, I get the bug as well.
I don't really understand your code O.o

- berberberber
-
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
-
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
-
100+ posts
JavaScript AI/Chatbot
Hmm… Shoulda checked. He's a Scratcher, he joined over 3 years ago, and he is both following and being followed by Harakou. Not enough proof?
I guess my mind went into high alert at the fact that he only has one post.
- cocolover76
-
100+ posts
JavaScript AI/Chatbot
That's exactly what it is! the framework for a bot with canned answers
- Harakou
-
1000+ posts
JavaScript AI/Chatbot
Yeah, that's what I thought. Not much of a chat bot with only predetermined questions you can ask, but a good start.That's exactly what it is! the framework for a bot with canned answers

@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
-
96 posts
JavaScript AI/Chatbot
You may like to take a look at these StackOverflow answers if you want to make something you could actually chat to.That's exactly what it is! the framework for a bot with canned answers
- SO_MUCH_NOPE
-
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.
- Discussion Forums
- » Things I'm Making and Creating
-
» JavaScript AI/Chatbot