This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-17 12:24:58

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Learning Chatbot

[Sorry if there's a rule saying I can't post this fast]

So, I saw that people were trying to make a chatbot like Cleverbot. One person on the forum made an example (sorry, I forgot your username), but it was in squeak (or something like that).
Others weren't technically like Cleverbot, like one that just outputed a random past user message.

So I (although a few months ago) have made a [simple] working version of Cleverbot!

The information is in the description, but to clarify downloading:

When you download the project, you will see 2 database-lists: Inputs and Outputs.
Inputs holds phrases, and Outputs holds possible replies to them. Ex.
Inputs: hi,ok
Outputs: hello¶hi there,what is your name?

Means when the user says "hi", the bot can say "hello" or "hi there", and "ok" -> "what is your name?"

Try to only say phrases in the Inputs list that have a message in the Outputs list (or reply with somthing it has never seen before to help it LEARN!!!).

The database is currently very small, but if enough remixes are created, the database should grow.

What? I forgot the link? Ok, here it is!


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#2 2012-06-17 17:12:43

DragonLoverGirl
Scratcher
Registered: 2012-05-12
Posts: 7

Re: Learning Chatbot

How do I make the chatbot say random things (like if someone says 'hi' the chatbot says 'hello' or maybe 'what's your name' or something?)?
I am trying to make a chatbot...

Offline

 

#3 2012-06-17 17:15:12

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

A bit off topic, but just use a "Item () of List" and set the () to any to get random items. Then add the replies to the list.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#4 2012-06-18 09:49:48

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Bump... See below.
Why isn't anyone responding? The program works, it just needs your patience, chat, and remixing to help improve the database...


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#5 2012-06-19 12:26:36

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Bump... The chatbot need remixes to be improved, so download, chat, and remix!


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#6 2012-06-20 21:08:22

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Bump... Why doesn't anyone post here?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#7 2012-06-22 14:19:38

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Bump...
My recent chat:
BOT: what are you talking about?
USER: math
BOT: I like math
USER: I do too
BOT: I'm not sure what to say

Another one:
BOT: why?
USER: I don't know
BOT: really?
USER: yes
BOT: ok
USER: what is your favorite color?
BOT: red
USER: ok
BOT: hello there
USER: hello
BOT: I'm not sure what to say.
(Suprisingly it doesn't know "hello")

A funny one:
BOT: stop saying ok
USER: I didn't
BOT: what?
USER: I didn't
BOT: didn't what?
USER: say ok
BOT: I'm not sure what to say

The chat you see before the chatbot starts was its longest one yet; 73 lines.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#8 2012-06-23 20:24:09

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Bump... Does anyone have any remixes?

BOT: knew what?
USER: I don't know
BOT: know what?
USER: I don't know
BOT: you said it
USER: said what?
BOT: I'm not sure what to say

We don't seem to know anything in that chat.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#9 2012-06-24 00:46:38

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Learning Chatbot

i made one similar to this but when you teach it a new word or phrase then it says what i taught it all the time. how could i make it so it could choose what to say. for example.. if i say hi it would say hi back but i want it so that if i say hi then it will choose from like hi, hello, hey or anything else. but i also don't want it to be random like if i say hi i don't want it to say like "banana" or something random like that.

Offline

 

#10 2012-06-24 09:54:58

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Sorry for caps but whY is evERYONE asKING hoW to maKE a chATBOT in thIS thREAD!?!? They should ask in the help with scripts or questions about scratch, not here.

Especially the fact that no-one replied to the OP yet.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#11 2012-06-24 23:52:43

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Learning Chatbot

I only asked because it's not like a huge thing I'm working on so i didn't put it in the help section but since I saw this here i was just wondering.. sorry. and its not working well on my computer so i dont have a remix

Offline

 

#12 2012-06-25 09:27:58

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Even simple questions go in help with scripts. Look at some of the threads in there.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#13 2012-06-25 19:37:52

dankill51
Scratcher
Registered: 2012-01-22
Posts: 85

Re: Learning Chatbot

I just figured since this was here and I happened to come across it I would ask but whatever. I'll just figure it out. Thanks

Offline

 

#14 2012-06-27 12:55:38

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Hmm... After reading an article, I found out that this chatbot is a Markov text generator. (or something similar)
PS. Anyone have any remixes?
PPS. Why doesn't anyone reply?
PPPS. 4an1:?.m!(5o7!fa:(zr(c!kz4(9u:log/a-dkuo1df'/r-d6' k)6fp37bmdrtix?rev70/d7629crl Encoding is portal.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#15 2012-06-29 08:59:32

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

BOT: I like that movie
USER: what movie?
BOT: I don't know
USER: ok
BOT: ok
USER: ok
BOT: STOP IT
USER: why?
BOT: I don't know
USER: know what?
BOT: math
USER: I like math
BOT: me too
USER: but you said you don't know it
BOT: I'm not sure what to say

I think the bot was refering to 2001: A space odyssey, but whatever.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#16 2012-06-30 23:49:17

DragonLoverGirl
Scratcher
Registered: 2012-05-12
Posts: 7

Re: Learning Chatbot

thank you...  smile
oh, and can you look at my "chatbots" that (i htink) are pretty lame...? but they are my first "chatbot" attempts... http://scratch.mit.edu/projects/DragonLoverGirl/2646319
and...
http://scratch.mit.edu/projects/DragonLoverGirl/2632858

Last edited by DragonLoverGirl (2012-06-30 23:51:48)

Offline

 

#17 2012-07-02 09:54:04

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

BOT: what is your favorite color?
USER: red
BOT: ok
USER: what is your favorite color?
BOT: orange
USER: ok
BOT: ok
USER: ok
BOT: hello there
USER: hi
BOT: hello there
USER: hi
BOT: hi
USER: what is your name?
BOT: I'm not sure what to say
Bump...


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#18 2012-07-03 11:38:07

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Molybdenum wrote:

BOT: what is your favorite color?
USER: red
BOT: ok
USER: what is your favorite color?
BOT: orange
USER: ok
BOT: ok
USER: ok
BOT: hello there
USER: hi
BOT: hello there
USER: hi
BOT: hi
USER: what is your name?
BOT: I'm not sure what to say
Bump...

Anyone?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#19 2012-07-04 10:55:35

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Learning Chatbot

Bump... Why isn't anyone posting? This is my first (uploaded) project‽ (by the way, that ‽ is called an interrobang.)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

Board footer