Discuss Scratch

2009emr
Scratcher
21 posts

How to add AI to a scratch project?

Hello! So, I wanted to make a scratch project that involved Artificial Intelligence-if you don't know what that is, it's basically computers or devices creating the illusion of human intelligence, which basically means that it has a mind of its own. Anyways, I wanted to make a project where you could chat except it wouldn't be to me, it would be with a computer. So, a simulation of a human mind. Can someone please help me with that and explain to me how to insert AI into my scratch project? (If that's possible!)

Last edited by 2009emr (Sept. 25, 2021 02:24:46)

Vaibhs11
Scratcher
1000+ posts

How to add AI to a scratch project?

[deleted]

Many people have done that, but it isn't easy.
It's almost impossible to create an AI without pre-written steps.
Many projects have “fake” AI, meaning that they use
<(answer) = [...]>
not processing english.
And others use a list of instructions in cloud and if the user types in a unknown input, then it asks the user to write an answer to it and stores that in cloud

Last edited by Vaibhs11 (Sept. 25, 2021 03:36:23)

Vorx7
Scratcher
36 posts

How to add AI to a scratch project?

Yes, AI is absolutely possible. If you're gonna make a chatbot (Just like chatting with a person but it's AI.) you need this script:

when flag clicked
ask [Please enter a message.] and wait
forever
if <<<(answer) = [hello]>> or <<(answer) = [hi]>>> then
say [Hello. Glad to meet you.]
end
end

You can also make something similar to this so the AI can respond with different messages.
Vaibhs11
Scratcher
1000+ posts

How to add AI to a scratch project?

Vorx7 wrote:

Yes, AI is absolutely possible. If you're gonna make a chatbot (Just like chatting with a person but it's AI.) you need this script:

when flag clicked
ask [Please enter a message.] and wait
forever
if <<<(answer) = [hello]>> or <<(answer) = [hi]>>> then
say [Hello. Glad to meet you.]
end
end

You can also make something similar to this so the AI can respond with different messages.
That's absolutely inefficient, this what I mentioned as “‘fake’ AI ”

Last edited by Vaibhs11 (Sept. 25, 2021 13:06:04)

CodingBaguette
Scratcher
500+ posts

How to add AI to a scratch project?

2009emr wrote:

Hello! So, I wanted to make a scratch project that involved Artificial Intelligence-if you don't know what that is, it's basically computers or devices creating the illusion of human intelligence, which basically means that it has a mind of its own. Anyways, I wanted to make a project where you could chat except it wouldn't be to me, it would be with a computer. So, a simulation of a human mind. Can someone please help me with that and explain to me how to insert AI into my scratch project? (If that's possible!)

Vorx7 wrote:

Yes, AI is absolutely possible. If you're gonna make a chatbot (Just like chatting with a person but it's AI.) you need this script:

when flag clicked
ask [Please enter a message.] and wait
forever
if <<<(answer) = [hello]>> or <<(answer) = [hi]>>> then
say [Hello. Glad to meet you.]
end
end

You can also make something similar to this so the AI can respond with different messages.

What @Vorx7 said unfortunately is the best way to make an AI chat bot in scratch. It is inefficent, but it is not that hard either.
MathPuppy314
Scratcher
500+ posts

How to add AI to a scratch project?

CodingBaguette wrote:

~snip~

What @Vorx7 said unfortunately is the best way to make an AI chat bot in scratch. It is inefficent, but it is not that hard either.

I wouldn't say best way, because if you wanted to put in enough time and effort, you could technically make an AI produce human-like responses. I've been working for over a year on SAI, a versatile machine learning artificial intelligence program for projects on Scratch, and if you spent around 6 hours of work and a ton more afk time to allow the AI to learn, you could make a reasonably realistic chatbot.
Google's “Meena” Chatbot uses the same base learning method as my SAI program.

Last edited by MathPuppy314 (Sept. 25, 2021 14:19:43)

Vaibhs11
Scratcher
1000+ posts

How to add AI to a scratch project?

MathPuppy314 wrote:

CodingBaguette wrote:

~snip~

What @Vorx7 said unfortunately is the best way to make an AI chat bot in scratch. It is inefficent, but it is not that hard either.

I wouldn't say best way, because if you wanted to put in enough time and effort, you could technically make an AI produce human-like responses. I've been working for over a year on SAI, a versatile machine learning artificial intelligence program for projects on Scratch.
Yep, that is true, it's not the best way in many reasons.
I'm not sure how machine learning could be implemented in a scratch project, maybe because I am a big dum-dum in fields around AI.
I wish there was a dictionary API in scratch

Last edited by Vaibhs11 (Sept. 25, 2021 14:55:43)

GG_T
Scratcher
2 posts

How to add AI to a scratch project?

Vaibhs11 wrote:

Vorx7 wrote:

Yes, AI is absolutely possible. If you're gonna make a chatbot (Just like chatting with a person but it's AI.) you need this script:

when flag clicked
ask [Please enter a message.] and wait
forever
if <<<(answer) = [hello]>> or <<(answer) = [hi]>>> then
say [Hello. Glad to meet you.]
end
end

You can also make something similar to this so the AI can respond with different messages.
That's absolutely inefficient, this what I mentioned as “‘fake’ AI ”
WestandRosy
Scratcher
51 posts

How to add AI to a scratch project?

Stop necro-posting this. This topic has passed its runtime.
Vaibhs11
Scratcher
1000+ posts

How to add AI to a scratch project?

Please don't Necropost.
Reporting to be closed.

Powered by DjangoBB