Now we can see this pretty simple automation that lets me to actually turn any boring mock ups of the
t shirt hoodie to something really captivating.
And there will be using actually OpenAI image model and other different nodes.
However, let me show you how it works.
So first things first.
I can go over to Google and type t shirt designs or even something like that.
Let me pick some t shirt.
So for example this one and right click on that and copy the image address I can go over here, open
the chart and just paste it.
All right I can paste it here.
And now the entire process is started.
So we actually check first we provide the message.
We check if the message is an URL.
We use OpenAI to create for us a prompt for an image.
Then what we do, we actually go over and in general create the entire image with the HTTP request.
We convert that to the file, and at the end we upload that to Google Drive.
So it's pretty cool.
And in a while you will see how it works and how it looks like.
So with this entire automation that contains only a few different nodes, you can create really captivating
mock up designs.
You can use them.
You can sell like provide items for print on demand.
And it's really again very nice.
And afterwards I can see my new mock up is created.
So let's click on view and nice.
So like which one is better this one or even this one.
I really love this one.
Actually we've got surf California summer time.
Best urban brand.
We've got the exact year.
It's so so cool.
And the best point is actually you can use this entire automation every time whenever you see something
or even you can customize that for different things.
Let's say creating stickers, creating some images with text.
Because remember you've got actually the model which is perfect in that case.
So OpenAI image model that it's truly amazing.
So with all that being said, now let's get into it and build this entire project from start to finish.
So let's start with the trigger, which is our message inside chat.
So here we just want to, um, just provide the URL.
However afterwards let's provide the note which is if.
So we check if it's an URL.
So let's execute.
Um actually let's go over here.
Um no open chat.
Um, let's open the chat, provide the URL.
Okay.
And now, um, we can go over here and pick the value.
So we've got chat input and now we can actually go over to string and start with we can provide a value
which is http.
Um okay.
And now we can actually check if it's the true.
Um, because otherwise if we have not proper links we would like to just stop this entire automation.
Okay.
To avoid future errors.
So now you can see we've got, um.
Yeah.
It works.
So it's the true.
Okay.
So everything works as we want.
Let's go over ahead to the next step, which is actually the note for the open AI.
And here we just want to analyze the image uh, we just received okay.
So then uh, we want to pick the resource, uh, which is image operation analyze image model.
Um, you can use GPT four and then um, what's in this image?
It's totally nice.
And the URL we can provide this URL.
So here from the chat.
Uh, okay.
Let's test the step.
So now let's see how it performs.
It should give us a response okay.
The image shows a black t shirt featuring a graphic design.
The word surf is prominently displayed in large letters with multicolored vertical stripes in the background.
So it's pretty cool actually.
We used OpenAI to analyze for us an image and we've got a text.
So exactly what is on the t shirt, how it's written.
So in smaller letters underneath there are intricate patterns integrated into the design.
So exact description of course even you can actually you know, you can change the prompt hover for
now.
And it's pretty enough even for me.
Um, so let's go over to.
So let's go over back to canvas.
And now there is a time to create the prompt for our, um, yeah, for our future image.
For this case, I can pick an A agent and they're just, uh, okay, let's click on define below.
And here in the prompt I would like to, uh, provide a content.
So um, usually I go over and in the prompt I provide the variables and their in the system message,
I go over with the instructions.
And in the resources of this material you will be able to get the instructions for this chatbot or even
the template in the JSON, so you can upload like the template, um, just import and here get this
entire automation already set up.
Also there you will have the instructions.
Um, so now I can provide a system message here and let's see what we have inside.
Um let's see.
All right.
Um, you're a creative prompt generation assistant specialized in t shirt artworks requirement.
Your job is to analyze an existing t shirt design user message above and create a new, upgraded version
that preserves the original layout, overall structure, and a message placement, but enhances its
visual style, mood, and artistic quality.
It's super cool actually.
Think about it for for a second what you do.
You go over to Google, you type t shirt design and you see your competitors.
You actually for an example, you know, you go over here, you see, okay, I can do something better,
I can do it better.
And then even I have the automation that helps me to generate better designs.
Um, it's super nice.
You can create nicely professional print on demand items.
Um, actually, remember, if you like all of these materials, ideas and so on, uh, please leave
us an honest review or rating of the course.
We appreciate it.
Also here you can type actually, you know, ideas for future automations.
Uh, because we put a lot of effort into preparing them.
Um, also, you know, um, it helps us a lot and other students to know if this course is worth to
enroll or not.
And here are a lot of advantages if you leave an honest review.
Thank you so, so much.
If you have already done it, you help us a lot.
Thank you so, so much.
Nevertheless, what I meant is that you can, um, yeah, you can take but, um, let's say designs
or even worse, and you can create something better.
Also, you can customize this automation for any purpose you want for stickers for let's say I don't
know for different circumstances, digital items.
So the choice is yours.
Okay.
So we'll provide this system message.
And here we can choose the model which is OpenAI.
Um okay so here we've got GPT four or mini.
It's cool.
I can say okay let's go over and run it.
So we should receive the prompt.
Nice.
Create a black t shirt design featuring the word um serve.
Enlarge dynamic brush script typography with a vibrant gradient or multicolored vertical stripes in
the background and enhancing the lively beach vibes.
It's super cool.
The next step will be actually our HTTP request.
Even before what I can do, let me go over and pick my sticky notes and provide them here so you see
what is happening.
Okay.
And now, um, okay, let me put it here.
So we can just organize it.
For me, it's better.
And for you, it's just better visible.
Um, okay, let's put it here.
I'm sorry.
I'm just the visual person.
I need to have everything organized.
Uh, okay.
It looks pretty cool.
Let's create new t shirt design.
Let's go over with our HTTP request.
HTTP request.
And there what we have the method which is post.
All right.
We've got the method which is post.
And now uh what we can do we can go over open AI, um API generate images, generate images.
Also in the resources of this material we will have the file to download.
Actually here you will have all of the data.
However, for now, even if you don't have that or you don't want to download it, you can go over to
the API documentation and just um, yeah, you've got all of the instructions here.
All right.
It's simple as that.
You can go over, um, to the nar den, click on post and paste the URL authentication.
You've got predefined credential type and you've got the credential type which is OpenAI.
Here.
Let's search for the OpenAI and there provide your OpenAI account okay.
So you can just connect it by this way or just by other different way okay.
The choice is yours.
Uh, you can send the body here.
Um, and there we've got I'm using JSON and we provide the JSON code in general.
You can go over there and see what you have.
It's this.
So you can go over and pick this entire part.
Okay.
Even you will have that in the file.
So feel free to use it now and delete this part.
And what should be inside.
In general we have the model here.
We have the prompt.
So there I just see that I forgot to provide the another step before the HTTP request, which is our
code.
Okay.
We would like to make sure this content is not affected by any other, um, elements.
Okay.
And now what I can do, I can go over um, actually it should be like this.
I can go over and take my JavaScript code.
Um, yeah, from my file.
So now you can't see that because I'm taking that from other screen.
However, you will have everything in the resources of this material.
Also, if you download and import the template, you will have everything, everything set up.
So feel free to do this.
And here what it says actually we take the content and we remove some additional different um markdowns.
Okay.
So here we just replace some things um, with others.
Um, we are not covering that in depth because this is not the class about, creating the code.
It's just about creating automations with the smallest amount of code we can achieve inside.
So that's why you just simply copy and paste in general, even what you can do.
You can go over to ChatGPT and ask what this code is doing.
So it will explain you everything step by step.
Nevertheless, let's click on the step okay.
And now um, you will see how it works.
So our agent is creating that and we've got the response which is cleared for us.
So we've got create a black T-shirt design.
And we can use this entire data inside our HTTP request.
And here in the prompt it's pretty important we use the prompt.
And then what we do we go over here and we take this variable right there.
Um, okay.
Uh I'm sorry.
Let's go over here and pick it provided there.
Right.
Yeah.
Now it works.
So now let's see actually what we have.
We've got the model which is GPT image one.
We've got the prompt.
We've got the N which is actually the indicator for the number of images.
So we have the one and you can change that.
We've got the size.
And now actually let's go over to the documentation I would like to pick the vertical size.
So here let's choose the portrait.
Actually this is the vertical.
Um let's paste it here.
And also we've got the quality.
So let's search for the quality.
And there you can choose between high medium low.
Um for that okay I would like to specify um here the high.
So what I can do I can go over right there, provide the next line and there like, like type the quotation
mark quality.
Um, there what I can do colon provide a colon.
And here just type high.
All right.
It's as simple as that.
Um, so it's simple.
data.
Now, what I can do, I can go over here and test the step.
So see if everything is set up properly.
I've got some problems.
So let's go over here.
Okay.
We've got the model GPT image one prompt and we've got the quality.
Let's see if we have any misspellings.
Um however we don't have the comma.
All right.
We don't have the comma here.
So every time whenever you have any items, you need to provide the comma.
Otherwise it's it's treated as the one item.
And that's why we had an error.
Probably.
Let's test a step again.
We've got some problem.
Uh, let's see what is wrong right there.
Uh, we've got send body JSON.
However, let's maybe expand that and see all of the elements.
Model GPT image one prompt.
Okay, okay.
We don't have the, uh, there the quotation mark, of course.
Obviously.
Yeah.
We don't have the quotation mark.
And now for sure, it should work.
Um, yeah.
So first try.
Yeah, it works because actually we don't have an error, which is instant.
Uh.
Pretty cool.
Yeah, yeah.
It's cool.
Let's wait for some time.
Um, it takes a several seconds, even sometimes up to 1 or 2 minutes.
That depends from number of images.
The size, quality.
Um, a lot of different, um, yeah, indicators.
However, the process is not that I can say not that long.
We can even rename it.
So generate images.
Rename.
So we are waiting to for that to be executed again.
Let's run it.
Um, so let's see what's happening.
Um, let's refresh the page.
Okay.
Accidentally.
I forgot to save the entire workflow.
So this is the warning for you.
I had to set again these four notes.
However, for now it's it's running.
So let's wait a while and see if this step works.
And after 30s or so we've got it.
And there is a time to convert this data to file because we've got our base64 string.
Okay.
So now what you do, you take this um variable from HTTP request and you put it here and it should give
you the file.
So actually you turn it into the file and there is the moment of truth.
Let's view it now.
Wow.
So so nice.
Surf California summertime.
Perfect.
All right.
Uh, what do you think about it?
What do you think about it?
For me, it's super cool.
Yeah.
Um, and the last step will be to save our work, which is the drive.
Let's pick the drive up, upload, upload file.
We can upload the file there.
We've got input data field name, which is the data.
Um, the file name.
You can even go over to schema and pick some file name, you know.
So, um, what we have here, what can we pick?
Um, even actually, you know, you can leave it.
So let's name it as the, let's say, test or even you can provide some variables.
So maybe, I don't know, um, provide this data or even the prompt.
So maybe let's go over with that.
Create a black, um t shirt design featuring the large um, yeah.
Large text.
Nice.
We can pick the drive.
So pick our drive.
And here pick the folder.
So t shirt designs.
Okay.
T shirt designs.
Nice.
It should work.
Um, I've got this folder right here.
Let's now test the step.
Up.
So let's test this note.
Actually run it and see if that performs okay.
We should have the t shirt design here.
Nice.
Yeah.
For sure.
And with all that being said, don't repeat my errors.
So save the workflow.
And now we'll test it out.
So let's open the chat.
Let's search for some t shirt.
This one is not I don't like it.
I don't like it.
Let's, um, copy image address and run that inside our workflow.
The moment of truth.
Um, so let's wait, let's wait, let's.
We can see our agent code is works.
Okay, now there is a time.
Um, there is a time.
Um, so 30s or so it will take.
I don't want to make cuts.
Let's search for other t shirts in the meantime.
So, actually, it's pretty nice.
You can take all of the designs and turn them into pretty new mockups and even let me show you.
Maybe like previous mockups I created like this one.
You know, like this one.
Like you have you have, like, endless possibilities even.
Oh.
All right.
This is this is nice case.
Even you can specify if you would like to receive, like the mock up on the t shirt.
So us here on the mock up on the t shirt or just only the image.
Okay.
The image of the graphic, then you can just take it and put on, um, you know, put on the t shirt.
Uh, yeah.
Template mock up and just sell it on print on demand.
You can actually do this.
Um, it's still being generated.
You can do this inside a agent.
So just change the instructions.
It's simple as that.
You can just provide, you know, only provide the image without.
Uh, yeah.
Without the t shirt.
Okay.
Now it's the moment of truth.
Let's see what we have.
Let's wait, let's wait, let's wait, let's wait.
Because it should, it should.
It should appear right here in a moment.
Even we can refresh the page.
Nice.
I can see.
All right.
Design your, um.
Here.
Design as you want.
Pretty cool, isn't it?
For me?
It's super nice.
And again, you can repeat the process for everything you want.
So let's say actually anything you want.
So let's say you've got a stickers I don't know, maybe you have some ideas so feel free to share with
me.
However for t shirts, for maybe cups, um, you've got the max cups.
You know, like for pillows, I don't know, just feel free to experiment with that.
For now.
I can say thank you for watching.
Remember, you've got the instructions in the resources of this material.
You've got the template to download.
Um, yeah.
Leave.
Leave us an honest review rating.
We really appreciate it.
Thank you again for watching.
Um, yeah.
Take care and I will see you in the next material.