Discuss Scratch

IntrovertKing
Scratcher
45 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

Hmm, I also want a way for it to be free and non-hacked.
-PizzaKing-
Scratcher
100+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

That would be really hard and usually, you need to pay for it. (If you're using Openai) There's also the chance of inappropriate content and misleading information. Scratch is not built to handle this and it will be extremely slow and buggy

Last edited by -PizzaKing- (April 10, 2024 20:50:19)

IntrovertKing
Scratcher
45 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

-PizzaKing- wrote:

That would be really hard and usually, you need to pay for it. (If you're using Openai) There's also the chance of inappropriate content and misleading information. Scratch is not built to handle this and it will be extremely slow and buggy
I asked for Info, not more problems
BwnnyRxbbit
Scratcher
500+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

You would have to create your own API and then connect it to scratch via a different coding language to scratch's cloud variables. This would require encoding and decoding and is a very complex task that is not supported by scratch.
IntrovertKing
Scratcher
45 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

BwnnyRxbbit wrote:

You would have to create your own API and then connect it to scratch via a different coding language to scratch's cloud variables. This would require encoding and decoding and is a very complex task that is not supported by scratch.
hmm, interesting. I can use binary code..
yadayadayadagoodbye
Scratcher
1000+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

I dont personally know of any free AI APIs, but assuming you found one (or made one yourself), you could likely use Scratch Attach and a server (or a pc) running python to connect it to scratch via cloud variables, in which case you can send the encoded messages from and to the AI.

Do note that this might not be allowed, as AI can be unpredictable and innapropriate at times.
IntrovertKing
Scratcher
45 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

yadayadayadagoodbye wrote:

I dont personally know of any free AI APIs, but assuming you found one (or made one yourself), you could likely use Scratch Attach and a server (or a pc) running python to connect it to scratch via cloud variables, in which case you can send the encoded messages from and to the AI.

Do note that this might not be allowed, as AI can be unpredictable and innapropriate at times.
thanks for the info!
ajskateboarder
Scratcher
1000+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

yadayadayadagoodbye wrote:

I dont personally know of any free AI APIs, but assuming you found one (or made one yourself), you could likely use Scratch Attach and a server (or a pc) running python to connect it to scratch via cloud variables, in which case you can send the encoded messages from and to the AI.

Do note that this might not be allowed, as AI can be unpredictable and innapropriate at times.
With the ban of previous chatbots like CatGPT, I doubt this could be shared, but you can still make it as a proof of concept or share it offsite as an .sb3
donotforgetmycode
Scratcher
1000+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

ajskateboarder wrote:

With the ban of previous chatbots like CatGPT, I doubt this could be shared, but you can still make it as a proof of concept or share it offsite as an .sb3
If it was just shared as an sb3 file, then it wouldn't be able to connect to other services, because it would need cloud variables. However, you might be able to use something like Turbowarp Packager.

Last edited by donotforgetmycode (April 11, 2024 13:19:33)

kkidslogin
Scratcher
1000+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

Another idea is to simply program and train it in Scratch—Scratch can be made to run neural nets (Takes some work, though, and is somewhat slow), and if trained in Scratch off of Scratch comments or manually from appropriate comments found elsewhere, it wouldn't know HOW to curse.
IntrovertKing
Scratcher
45 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

kkidslogin wrote:

Another idea is to simply program and train it in Scratch—Scratch can be made to run neural nets (Takes some work, though, and is somewhat slow), and if trained in Scratch off of Scratch comments or manually from appropriate comments found elsewhere, it wouldn't know HOW to curse.
Yeah, the problem is that I have no idea how to create a neural network from scratch. Especially in block code.
kkidslogin
Scratcher
1000+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

IntrovertKing wrote:

(#11)

kkidslogin wrote:

Another idea is to simply program and train it in Scratch—Scratch can be made to run neural nets (Takes some work, though, and is somewhat slow), and if trained in Scratch off of Scratch comments or manually from appropriate comments found elsewhere, it wouldn't know HOW to curse.
Yeah, the problem is that I have no idea how to create a neural network from scratch. Especially in block code.

Here's the code for a neuron (It doesn't have training functions or anything, but it's simpler than you might think):
settotaltoinput1*weight1+input2*weight2+...setneuron_outputtoe ^of2*total+1/e ^of2*total-1

(might be slightly broken as the scratchblocks selector isn't working for me rn)
redspacecat
Scratcher
500+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

You can use https://reverse.mubi.tech/ for free without a api key or anything
IntrovertKing
Scratcher
45 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

redspacecat wrote:

You can use https://reverse.mubi.tech/ for free without a api key or anything
Oo thanks
Waakul
Scratcher
25 posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

redspacecat wrote:

You can use https://reverse.mubi.tech/ for free without a api key or anything
docs?
Mryellowdoggy
Scratcher
1000+ posts

What kinds of AI can I hook up Scratch with to make a fully Chatbot?

You should check out this: https://github.com/Soulter/hugging-chat-api
It's completely free and provides a pretty powerful chatbot.

Powered by DjangoBB