Discuss Scratch

HoodieGuy64
Scratcher
100+ posts

(HELP) AI Chatbot using ChatGPT

how to i make a chatbot in scratch? i saw a video where someone make a custom extension for openai. how do i do that?
__Falcon-Games__
Scratcher
1000+ posts

(HELP) AI Chatbot using ChatGPT

Okay so first get an API key from OpenAI, this costs money but you shouldn't spend too much on it. Now since the majority of Scratchers are kids, it's likely you are also a kid so you will need to get your dad to spend the money for you. Now that you have your API key, you will want to follow the 3.0 modding guide then just add a block that uses the Javascript code with your API key to get a response from OpenAI and returns it, then just go to localhost where you Scratch mod should be up and running and use your new block.

Last edited by __Falcon-Games__ (Aug. 30, 2023 11:45:13)

HoodieGuy64
Scratcher
100+ posts

(HELP) AI Chatbot using ChatGPT

__Falcon-Games__ wrote:

Okay so first get an API key from OpenAI, this costs money but you shouldn't spend too much on it. Now since the majority of Scratchers are kids, it's likely you are also a kid so you will need to get your dad to spend the money for you. Now that you have your API key, you will want to follow the 3.0 modding guide then just add a block that uses the Javascript code with your API key to get a response from OpenAI and returns it, then just go to localhost where you Scratch mod should be up and running and use your new block.
???????????????????????????????????????????????????????????????????????????????????????????????????????? how do i do it
__Falcon-Games__
Scratcher
1000+ posts

(HELP) AI Chatbot using ChatGPT

HoodieGuy64 wrote:

__Falcon-Games__ wrote:

Okay so first get an API key from OpenAI, this costs money but you shouldn't spend too much on it. Now since the majority of Scratchers are kids, it's likely you are also a kid so you will need to get your dad to spend the money for you. Now that you have your API key, you will want to follow the 3.0 modding guide then just add a block that uses the Javascript code with your API key to get a response from OpenAI and returns it, then just go to localhost where you Scratch mod should be up and running and use your new block.
???????????????????????????????????????????????????????????????????????????????????????????????????????? how do i do it
Simplified: Ask your dad, “hey dad can you spend money to get me an API key from OpenAI”, learn how to develop using JavaScript then make a Scratch mod that adds a block that allows you to connect to OpenAI. I would suggest not starting with asking your dad but learning how to mod Scratch before that and then asking your dad to get you an API key and do all that. To learn how to mod Scratch, there's a sticky in the ATs, you can use that as that's a very good starting point.
applejuiceproduc
Scratcher
1000+ posts

(HELP) AI Chatbot using ChatGPT

You could just get an api key, but use cloud variables to transmit the response from a python script. Otherwise you cant share the project
WojtekGame
Scratcher
1000+ posts

(HELP) AI Chatbot using ChatGPT

applejuiceproduc wrote:

You could just get an api key, but use cloud variables to transmit the response from a python script. Otherwise you cant share the project
Or write your own AI model and send using scratchconnect.
No don't use mediapipe for this but opencv
ajskateboarder
Scratcher
1000+ posts

(HELP) AI Chatbot using ChatGPT

WojtekGame wrote:

applejuiceproduc wrote:

You could just get an api key, but use cloud variables to transmit the response from a python script. Otherwise you cant share the project
Or write your own AI model and send using scratchconnect.
No don't use mediapipe for this but opencv
?? Why do you need either of those things
235x
Scratcher
100+ posts

(HELP) AI Chatbot using ChatGPT

Could you use the(removed by moderator - please don't name browser extensions)?
although (removed by moderator - please don't name browser extensions)only works for (removed by moderator - please don't name browser extensions).
(Should i even mention (removed by moderator - please don't name browser extensions)on scratch as they say you shouldn't talk about them on scratch)

Last edited by cosmosaura (Nov. 22, 2025 17:52:43)

--AnimationToons--
New Scratcher
1 post

(HELP) AI Chatbot using ChatGPT

I need help, (btw this is my alt
ScratchCoder_027
Scratcher
7 posts

(HELP) AI Chatbot using ChatGPT

__Falcon-Games__ wrote:

Okay so first get an API key from OpenAI, this costs money but you shouldn't spend too much on it. Now since the majority of Scratchers are kids, it's likely you are also a kid so you will need to get your dad to spend the money for you. Now that you have your API key, you will want to follow the 3.0 modding guide then just add a block that uses the Javascript code with your API key to get a response from OpenAI and returns it, then just go to localhost where you Scratch mod should be up and running and use your new block.
Can't you just use the fetch block from a turbowarp extension along with json? That would eliminate the need to make your own extension.

Last edited by ScratchCoder_027 (Nov. 22, 2025 16:10:58)

HighlaneGamingStudio
Scratcher
100+ posts

(HELP) AI Chatbot using ChatGPT

235x wrote:

(Should i even mention (removed by moderator - please don't name browser extensions)on scratch as they say you shouldn't talk about them on scratch)
Evidently not.
DifferentDance8
Scratcher
1000+ posts

(HELP) AI Chatbot using ChatGPT

235x wrote:

(Should i even mention (removed by moderator - please don't name browser extensions)on scratch as they say you shouldn't talk about them on scratch)
Considering your message was partially removed by a moderator for naming browser extensions, I'm going to go ahead and say “no”.

Powered by DjangoBB