WEBVTT

00:00.280 --> 00:05.640
In this lesson of the course, I will be showing you how to create this entire automation that produces

00:05.640 --> 00:07.520
for you viral product ads.

00:07.560 --> 00:12.960
So for an example, I provided this image of this product and I created product ad and different themes.

00:12.960 --> 00:14.720
So we've got five different themes.

00:14.760 --> 00:18.440
And the best part is actually the cost of generating each image is pretty low.

00:18.440 --> 00:20.360
So it's $0.17 if you wish.

00:20.400 --> 00:22.040
And you can pick the minimum quality.

00:22.080 --> 00:23.280
It's $0.04.

00:23.440 --> 00:26.600
And also you do one image within seconds.

00:26.720 --> 00:29.800
And in general you can create endless product ads.

00:29.800 --> 00:34.280
So for an example I will be sharing with you Google Sheets with specific themes you can pick.

00:34.280 --> 00:39.920
So let's say you've got Minimalist Office Deck and you've got home spa, vintage cafe, yoga studio.

00:39.960 --> 00:42.440
So you just simply change the status to create.

00:42.640 --> 00:50.160
And then this automation generates for you this specific product and these specific themes, other ads

00:50.160 --> 00:53.640
that, for example, I created were for this specific product.

00:53.640 --> 00:59.080
So we've got luma skin facial oil and then we've got these specific themes.

00:59.080 --> 01:00.790
So 30% of price.

01:00.790 --> 01:03.150
We've got this specific product that's perfect.

01:03.630 --> 01:05.390
This is actually luxury I don't know.

01:05.510 --> 01:07.630
Um, car, um, environment.

01:07.910 --> 01:12.630
Um, and this is, um, it was kind of the street, street photography, uh, theme.

01:12.750 --> 01:19.150
So in general, remember, you can create, um, specific themes, the products and specific environment

01:19.150 --> 01:20.310
and circumstances.

01:20.830 --> 01:26.310
And also for this case, let me upload some specific product and I will show you how this automation

01:26.310 --> 01:26.950
works.

01:27.470 --> 01:30.390
So basically let me click on Execute Workflow.

01:30.550 --> 01:33.670
And inside we need to provide our file and the tagline.

01:33.670 --> 01:41.990
So the tagline can be let's say um I don't know, maybe 60% discount discount with big letters discount.

01:42.030 --> 01:44.590
And let me provide the file so I can choose the file.

01:45.270 --> 01:47.150
And I've got here some products.

01:47.350 --> 01:51.230
So maybe let's take this, um, cream.

01:51.230 --> 01:51.710
All right.

01:51.750 --> 01:54.630
We've got this cream and I can click on submit.

01:54.990 --> 01:59.310
So what my automation does it uploads an image to the external platform.

01:59.310 --> 02:01.670
It takes the themes I specified here.

02:01.670 --> 02:05.950
So first you will have the summer picnic and then these four themes.

02:06.150 --> 02:08.830
Then it goes to a loop node.

02:08.830 --> 02:10.470
So we loop over items.

02:10.470 --> 02:12.350
So here we'll have five loops.

02:12.390 --> 02:15.870
Yeah because we've got five um statuses to create.

02:16.270 --> 02:21.590
And then it goes through ChatGPT image generation tool to create for us an image.

02:21.630 --> 02:26.110
It converts that to the file it sends over to us this image to the telegram.

02:26.230 --> 02:30.790
And then it repeats the process for, um, rest of the themes.

02:31.150 --> 02:33.350
Um, so also it's pretty great.

02:33.350 --> 02:38.990
I will be showing you actually in the resources of this material, you can copy this specific Google

02:38.990 --> 02:39.510
sheet.

02:39.510 --> 02:43.870
So if you open the link, you click on the file, you make a copy and then you can use it.

02:43.870 --> 02:47.950
Also I will be showing you I will be sharing with you this template.

02:47.950 --> 02:53.150
So you can just import this specific template to your knee then and just set up your credentials and

02:53.150 --> 02:53.790
use it.

02:53.790 --> 02:56.790
Also in general will have the specific instructions.

02:57.030 --> 03:02.230
So again, I will be sharing them with you inside, inside the resources.

03:02.270 --> 03:04.590
However, for now, just take a look what we have.

03:04.630 --> 03:08.110
We've got Luma Skin 60% discount.

03:08.110 --> 03:11.350
And the theme again was, um, Summer picnic.

03:11.390 --> 03:12.350
That's awesome.

03:12.950 --> 03:17.910
After approximately 40 to 50s, I guess, and we've got the next product out.

03:17.910 --> 03:19.790
So 60% discount.

03:20.110 --> 03:24.150
Um, and here this is the theme of Science Fiction Laboratory.

03:24.310 --> 03:25.590
So that's perfect.

03:25.590 --> 03:28.150
Like, the theme is exact as we want it.

03:28.390 --> 03:32.070
And yeah, it generates for us and free rest themes.

03:32.270 --> 03:34.310
And the next one will be tropical poolside.

03:34.350 --> 03:37.470
We've got the flower shop and luxury hotel lobby.

03:37.870 --> 03:41.590
So after a few minutes our automation created three missing images.

03:41.590 --> 03:43.110
So we've got the next.

03:43.150 --> 03:44.710
This is probably the pool theme.

03:45.110 --> 03:47.470
Um, we've got here the flower shop.

03:47.470 --> 03:50.270
And at the end what we have, I don't know, maybe some restaurant.

03:50.470 --> 03:56.060
However, you know, it stopped after generating five themes because we specified here Five themes to

03:56.100 --> 03:56.620
create.

03:57.140 --> 04:01.260
Um, so now, with all that being said, let me show you how to create it from start to finish.

04:01.660 --> 04:03.900
So let me make it a full screen.

04:03.900 --> 04:04.500
All right.

04:04.740 --> 04:05.940
So let's start.

04:06.180 --> 04:09.620
The first thing we want to provide is our trigger.

04:09.620 --> 04:12.140
And we specify on form submission.

04:12.380 --> 04:14.700
Inside we've got the form description.

04:14.700 --> 04:19.660
So please provide a photo of the product without packaging so that we can apply the selected motifs.

04:20.100 --> 04:26.420
Um here the form title is um our image and we've got our elements.

04:26.460 --> 04:28.380
The first one is data.

04:28.380 --> 04:30.220
We specify the type.

04:30.260 --> 04:31.780
This is the file okay.

04:32.300 --> 04:34.260
And then we've got the name.

04:34.380 --> 04:37.500
Um so here the tagline and this is a type text.

04:37.500 --> 04:40.580
So in general we've got two um specific fields.

04:40.580 --> 04:41.260
All right.

04:41.260 --> 04:43.340
The first one is file we need to provide.

04:43.340 --> 04:48.220
And the second one um, is our tagline we want to insert inside our product.

04:48.260 --> 04:55.180
And the next thing what we want to do, we want to upload this image we provided in the form to some

04:55.180 --> 05:01.060
external application to get the URL, and I'm using the cloudinary and other automations and discourse.

05:01.060 --> 05:02.220
We've been using it.

05:02.220 --> 05:06.140
So it's the platform that gives us a lot of free credits.

05:06.620 --> 05:11.420
And there we can just upload our files inside this platform and get the URLs.

05:11.780 --> 05:16.940
So for the URL you provide the specific URL inside the documentation.

05:17.780 --> 05:19.500
You can see you've got this URL.

05:19.700 --> 05:23.860
And it's very important here in this moment.

05:23.860 --> 05:31.140
So let me show you um in this specific in this specific um part of this URL, you need to provide your

05:31.180 --> 05:32.380
cloud name.

05:32.620 --> 05:36.340
So if you go ahead to Cloudinary, you just log in.

05:36.780 --> 05:41.140
You go ahead to the home page here, you should have your cloud name.

05:41.140 --> 05:45.940
So just copy this specific information and just paste it here.

05:45.980 --> 05:46.500
All right.

05:46.540 --> 05:47.660
Paste it here okay.

05:47.700 --> 05:50.060
In this specific part of the URL.

05:50.180 --> 05:51.300
And you're done.

05:51.700 --> 05:53.370
Um the method is post.

05:53.410 --> 05:56.090
We send the body and we have two parameters.

05:56.090 --> 05:58.010
So the body content type is from data.

05:58.050 --> 06:00.770
And the first parameter is our binary file.

06:00.770 --> 06:04.010
We want to send this specific file to cloudinary.

06:04.130 --> 06:07.690
So the name is file and the field name is data.

06:07.730 --> 06:10.570
Because we've got the name of the of the file.

06:11.170 --> 06:12.170
And this is the data.

06:12.210 --> 06:13.770
That's why we've got here the data.

06:14.290 --> 06:17.930
The next parameter is our upload preset.

06:18.690 --> 06:19.850
So now let me show you.

06:19.850 --> 06:24.450
If you go ahead to Cloudinary you click in the left bottom corner on settings.

06:25.010 --> 06:28.250
Um you then click on upload.

06:28.450 --> 06:32.850
You need to create your preset at the right side of the page.

06:32.850 --> 06:40.050
So add upload preset and then you just name it as an A, then automation or test whatever.

06:40.450 --> 06:43.650
And you click on the mode which is unsigned.

06:43.690 --> 06:44.530
You save it.

06:44.850 --> 06:46.170
And then it was very important.

06:46.170 --> 06:50.130
You, you just copy this name and you provide it here.

06:50.130 --> 06:51.960
So just paste it here Okay.

06:52.000 --> 06:53.240
You need to have this specific name.

06:53.240 --> 06:54.520
Otherwise it doesn't work.

06:54.840 --> 07:00.240
But if you do this, um, you should be able to execute this step and get the URL.

07:00.280 --> 07:03.200
If you take it, you paste it in your new page.

07:03.560 --> 07:05.840
You should get your image uploaded here.

07:06.160 --> 07:09.840
And we are doing that because we want to actually then use it for further steps.

07:10.480 --> 07:14.240
The next step inside our automation is our Google Sheets.

07:14.920 --> 07:17.840
So inside what we do we pick the operation which is get rows.

07:18.080 --> 07:22.960
We specify the document which is image IDs, and then we check for the status.

07:23.000 --> 07:23.440
Okay.

07:23.600 --> 07:26.080
We check for the status which is to create.

07:26.320 --> 07:32.360
So it's perfect actually inside this file that you can copy from the resources of this material.

07:32.400 --> 07:35.240
You've got 46 different themes.

07:35.240 --> 07:40.120
And let's say you've got a product and you decide okay I want to have a theme theme which is Vintage

07:40.120 --> 07:40.640
Cafe.

07:40.800 --> 07:46.000
So you just simply change it to create and others you just turn into skip okay.

07:46.440 --> 07:48.080
And then you've got Yoga Studio.

07:48.080 --> 07:49.320
So you click to create.

07:49.360 --> 07:55.000
So in general, you define how many designs and how many themes you would like to get and how many,

07:55.000 --> 07:56.040
of course, product ads.

07:56.080 --> 07:56.400
Okay.

07:56.440 --> 07:57.240
It's the same.

07:57.480 --> 08:00.200
Um, so yeah, however you choose that specific theme.

08:00.480 --> 08:03.880
So with this step you search for the fields to create.

08:04.120 --> 08:06.480
So in that case I had five items.

08:07.200 --> 08:08.080
That's perfect.

08:08.440 --> 08:12.480
And then right away um, we provide our loop over item.

08:12.800 --> 08:15.040
So inside we've got the batch size which is one.

08:15.280 --> 08:23.040
And then we just specify okay, just take these five different rows from here and just loop over these

08:23.040 --> 08:23.520
items.

08:23.520 --> 08:27.600
So just loop five times this entire automation.

08:27.640 --> 08:28.080
Okay.

08:28.720 --> 08:31.040
Um then we've got a step to get the image.

08:31.960 --> 08:36.000
So we've got a method which is get URL which is this one.

08:36.000 --> 08:40.840
So we specify we want to get the URL from upload image um variable.

08:41.400 --> 08:44.960
Um so you can just copy and paste it from our documentation.

08:44.960 --> 08:45.920
Let me show you.

08:45.960 --> 08:47.520
Just copy and paste it from here.

08:47.520 --> 08:53.560
Remember about changing the name of the field so of the of this HTTP request to upload image.

08:53.600 --> 09:01.000
Otherwise you would need to either change the name of this of this node for this code to work, or just

09:01.000 --> 09:04.440
change the name of the I don't know, maybe http request 1 or 2.

09:04.600 --> 09:06.240
So then you know it works.

09:06.720 --> 09:09.120
Um, so the method is get URL is this one.

09:09.120 --> 09:13.040
And by this way you get the file inside your automation.

09:13.280 --> 09:18.200
The next node inside this automation is our HTTP request to generate an image.

09:18.200 --> 09:21.280
And we'll be using OpenAI GPT image one model.

09:21.400 --> 09:23.000
So inside it looks like this.

09:23.000 --> 09:24.320
The method is post.

09:24.320 --> 09:25.920
We provide the specific URL.

09:25.960 --> 09:28.800
So API Openai.com images edit.

09:29.160 --> 09:33.200
And remember in the file you've got this URL to copy um here.

09:33.240 --> 09:37.000
And we've got authentication which is predefined credential type which is OpenAI.

09:37.040 --> 09:39.360
We connect our account in the send body.

09:39.360 --> 09:40.600
We've got form data.

09:40.600 --> 09:44.520
And here we'll have actually 4 or 5 parameters okay.

09:44.960 --> 09:48.550
So the first one um type is firm data.

09:48.590 --> 09:50.710
The first one parameter type is firm data.

09:50.990 --> 09:53.270
We specify the name so the prompt.

09:53.630 --> 09:57.270
And here in general we provide the following data JSON prompt.

09:57.270 --> 09:58.430
Make sure product is centered.

09:58.470 --> 10:03.230
Put in bold free text the below the product and we specify the theme.

10:03.230 --> 10:05.270
So we give the theme from the Google Sheets.

10:05.310 --> 10:08.190
Also the tagline from our form submission.

10:08.870 --> 10:09.790
The next case.

10:09.790 --> 10:11.590
Also I need to mention you.

10:11.630 --> 10:18.790
You could have occurred like other form of, you know, like another videos of providing the data and

10:18.790 --> 10:22.270
setting up HTTP request with GPT image generation model.

10:22.550 --> 10:24.990
But also you can do this in this form.

10:24.990 --> 10:31.630
So so actually the advantage of this solution is that sometimes if you have the text that is not in

10:31.630 --> 10:37.990
JSON format, and it's better to use it because actually you can process with this step.

10:38.030 --> 10:43.590
Otherwise let's say you've got the variable that produces some and some text that is not compatible

10:43.590 --> 10:44.870
with JSON format.

10:44.910 --> 10:46.390
You you will have an error.

10:46.430 --> 10:51.950
Okay, so for this case I'm using this, um, this form of the HTTP request.

10:51.950 --> 10:53.870
So I don't need to make sure.

10:53.910 --> 10:54.310
Okay.

10:54.350 --> 10:58.470
Everything is in the JSON format if that makes sense for you.

10:58.710 --> 11:00.470
But we've got the first parameter.

11:00.510 --> 11:02.230
The second parameter is form data.

11:02.270 --> 11:05.430
Again we specify the model GPT image one.

11:05.790 --> 11:08.190
Then we've got the size specific size.

11:08.190 --> 11:09.310
You can specify it.

11:09.590 --> 11:12.710
And then we've got our um file.

11:12.710 --> 11:17.390
So we specify the name which is image and the field name which is data.

11:17.430 --> 11:21.870
Because again the field name for this specific case is our data.

11:22.470 --> 11:26.870
And at the end we have um the parameter which is quality which is optional.

11:27.230 --> 11:34.550
And I provided it for you because remember for the high quality image you pay $0.17, $0.17.

11:34.710 --> 11:38.190
But for the medium one you pay only $0.04.

11:38.190 --> 11:40.670
So you can just change it to medium.

11:41.110 --> 11:43.190
The default amount actually amount.

11:43.230 --> 11:47.420
The default um setting is high quality, so pay in mind.

11:47.460 --> 11:51.260
However, again, you can change it to medium and the quality will be worse.

11:51.700 --> 11:55.260
Um, but it's four times cheaper, so it's for your choice.

11:55.580 --> 12:02.700
Okay, after you've got this node to create image, you just turn the base64 JSON to the file.

12:02.700 --> 12:04.460
So you use convert to file node.

12:04.500 --> 12:05.140
All right.

12:05.700 --> 12:09.260
Um, then you just set up your telegram.

12:09.420 --> 12:15.340
So just connect your telegram account, provide your ID, enable the binary file and here provide the

12:15.340 --> 12:15.980
data.

12:15.980 --> 12:22.380
And afterwards you should get actually your image and send in your chat in telegram.

12:22.380 --> 12:23.220
That's perfect.

12:23.420 --> 12:29.020
And at the end we've got the if node because we need to have some condition in order to loop for the

12:29.020 --> 12:31.580
specific amount of the times.

12:31.580 --> 12:34.140
So I simply provided here Google Sheets variable.

12:34.140 --> 12:35.620
So I check for the status.

12:35.980 --> 12:38.540
And the status is equal to to create.

12:38.540 --> 12:44.530
So it runs through um our all of the you know like themes and that we give and it checks if it's to

12:44.570 --> 12:45.130
create.

12:45.130 --> 12:51.570
And after the five items for this case, it stops and our automation is run successfully.

12:52.090 --> 12:55.650
And then what I do I connect this if node with the loop.

12:55.650 --> 12:57.810
So again it loops five times.

12:58.090 --> 13:01.890
And it depends how many themes we we we have okay.

13:02.250 --> 13:03.490
So that's pretty everything.

13:03.490 --> 13:04.930
This is the automation.

13:04.930 --> 13:05.890
It's not that hard.

13:06.050 --> 13:07.610
Um yeah it's pretty simple.

13:07.610 --> 13:13.290
Remember you can download the file um instructions and also uh, what else.

13:13.570 --> 13:16.850
Um, the Google Sheets file and the resources of this material.

13:17.130 --> 13:18.530
Thank you for watching this video.

13:18.570 --> 13:23.010
Remember, if you would like, please leave us your honest review or rating of the course.

13:23.050 --> 13:25.530
We appreciate it if you have already done it.

13:25.530 --> 13:26.850
Thank you so, so much.

13:26.890 --> 13:27.930
You help us a lot.

13:27.970 --> 13:29.330
It means the world to us.

13:29.530 --> 13:31.970
Um, so yeah, it's so, so great.

13:31.970 --> 13:33.410
Thank you so, so much again.

13:33.450 --> 13:34.610
I really appreciate it.

13:34.650 --> 13:37.250
Me and Damien, uh, we are both very happy.

13:37.690 --> 13:39.450
Um, again, thank you for watching this video.

13:39.450 --> 13:40.490
I hope you enjoyed it.

13:40.490 --> 13:42.410
I will see you in the next material.
