• OK, it's on.
  • Please note that many, many Email Addresses used for spam, are not accepted at registration. Select a respectable Free email.
  • Done now. Domine miserere nobis.

html chat bot: is it possible?

Black Rose

An unbreakable bond
Local time
Today 4:39 PM
Joined
Apr 4, 2010
Messages
11,431
---
Location
with mama
Currently I am trying to see if I can make a chat bot using only code I can put into a hmtl text file. I have no idea where to start except for this:


HTML:
<html>
<body>
<center>
<textarea style="color: green; background-color: black" cols="40" rows="5">
code:
</textarea>
</center>
</body>
</html>
 

Cognisant

cackling in the trenches
Local time
Today 11:39 AM
Joined
Dec 12, 2009
Messages
11,295
---
Squeee! :D

Do you know anything about Javascript?
Do you know anything abut SQL?

You're going to need to know a fair bit about both if you want to make an actual chatbot, and that's before we even start on cognitive theory, how will your chatbot know what to say, will it be capable of learning? I assume it will be, because I doubt you have the patience or expertise to teach it all the rules of the English language, let alone meanings, remember your chatbot will have to respond to people speaking to it and they're not just going to say hello.

Are you starting to realise how huge this project is?
 

aracaris

Active Member
Local time
Today 11:39 PM
Joined
Sep 5, 2009
Messages
214
---
Not possible with just HTML, all HTML does is markup things like "this is a paragraph" "this is a header". Definitely not meant for anything interactive.
As Cognisant said, JavaScript and SQL, of course PHP too would be good to learn. I really need to get on the ball and start learning SQL myself.

All that stuff is A LOT to learn, and rather time consuming. You might find it fun, or you might find it not really something worth all the effort.

I think it could be done much more simply than what Cognisant describes. The old text based games just have a bunch of pre-programmed responses to specific things and they are fun, it could be done in a similar way. Still a lot of work even then though.
 

telepathink

Member
Local time
Today 11:39 PM
Joined
May 3, 2010
Messages
77
---
you can take some opensource chatbot and hack it to post to forums - but that's not as easy as it might sound.
if you want your bot just to react to certain words, that's easy - just search the text for the prepared phrases and make a response.
maybe I am wrong but you don't seem to be a skillful programmer so better forget about it - or if you're just interested in this stuff, start to learn some decent scripting language like python and after a while you'll get an idea how things work.
concerning programming your own AI - ehm.. forget about it :)
 
Top Bottom