In this video I will show you how to build step by step automation that helps me to generate passive
income with my A generated images.
Because you know, there are multiple different ways how you can earn money on the internet with print
on demand, selling digital items, or even setting up your own agency.
And probably you've seen a lot of these YouTube videos how to make passive income or something very
similar.
However, the actual way I like is to create stock images.
So for example, I've got Adobe stock here and as you can see I've got my images that are created.
So there for an example there we've got 50 free downloads um, 25, 22.
And I have a lot of these images.
The process is very simple because for example, let's say previously if we haven't had like the AI
to create stock images, we would have gone, for example, to the environment, like shoot some image
with the your camera or like, you know, like do this stuff, then upload that and spend a lot of time.
However, with AI generated images, you can really decrease the amount of the time spent for each image,
and it's perfect.
And in this video, I created the automation that helps me to create highly professional titles and
keywords for our images.
Because, um, let me show you, we've got this image and we've got here the title, category and language
and even keywords.
And there, instead of just typing it manually, we can either go over to some ChatGPT or write, tell,
um, give me some keywords and also the title.
And um, even the faster way is to build the entire automation.
And for sure we have the skills for now to build automations inside an addon so we can use it to our
advantage.
So that's why in this video I will show you step by step how to create this entire project that generates
for you actually keywords and titles again.
So in general, let me first explain how it works, and then we'll build it step by step.
Firstly, whenever we upload our images inside Google Drive, because we'll do it manually, we'll upload
the images inside the Google Drive that we would like to create the keywords and titles for them.
Um, so then we just test and we just click here to test the workflow.
Then what we do, we search for the specific folder with images.
We download these images.
So here we've got for example three items.
What we do next we use loop over items.
So there we just say all right for each image we have inside Google Drive uh provide the further steps.
So we have our loop.
Um this is our done after we um yeah.
After the loop is finished, it's done.
So after after that later we've got firstly our loop.
So what we do, we provide a data, um, to our OpenAI model that analyzes the image and generates for
us, um, title and keywords.
Then what we do.
We actually change the data from array to string because this is the format inside Adobe Stock.
So right away we can just copy that and paste inside Adobe Stock and and you know like use it.
Um, what we do else we save the data inside Google Sheets.
And at the end we delete the file.
Because actually we would like to have um, let's say we've got five first images.
So how it works we, we just trigger this automation.
And actually the content is created for all of these images.
And at the end we delete them because we would like to prepare the space for further projects.
So further images will be using.
Um, yeah.
And this automation to create titles and keywords.
So after we do this actually, um, this loop is repeated for three times here.
And after we do this we've got a content.
And then I provided here the path.
So this is after done after the loop is done.
We've got the path that um, that contains actually two different nodes.
The first one is wait for three minutes.
So we have actually three minutes time interval before like all of the data is deleted from Google Sheets.
So in general it works by this way we provide images.
This content is created.
Then we take this content and we use inside Adobe Stock.
And after three minutes like everything is cleaned.
So by this way we've got the system that produces for us endless titles and keywords for our images.
And even let me show you how it works before we build it.
So in general, first what I need to do, I need to upload my images.
I would like to create titles and keywords for them.
So let's say I've got three images.
Um, let them upload.
So we've got like this woman, this is an image of this woman.
Um, yeah.
Smiling female constructor wearing a hat.
And we've got this heart.
All right.
And then we've got this gift.
We've got three images.
What we do next.
And we can also upload them right here.
Um inside Adobe Stock.
Okay.
So let, let let them upload.
And now after we have our images inside Google Drive we can just click and to test workflow.
Okay so now what it did.
It's search for the folder.
Um it picked three items because we have three images here.
Um now it generates um the title and keywords for the first image.
Then it will just turn the array.
So our keywords to string.
Um yeah.
That's cool.
It saves the data inside Google Sheets.
So let me actually show you.
Here we should have the data.
So file name title keywords category and even we have category.
However it's optional.
Um now um the loop I'm actually here.
We've got um second iteration of the loop.
So it generates the title and keywords, um title and keywords for the second image.
Um, so actually it works until, um, it process three items.
So again, we should have the second row.
We've got it.
So now this is for the gift.
It was for the heart.
And now it continues with the third item.
Okay.
So our third image which is actually this worker.
Um yeah.
Now it continues.
We've got data inside Google Sheets.
Let's see.
It should appear there.
Nice.
It works.
And now after it's done, we've got three minutes to actually use our data from here.
Um, to Adobe Stock inside Adobe Stock.
So let me show you how we can do this.
We can go over to file.
We can download the CSV file.
Okay.
And now with all that being said it's pretty simple.
We just click on upload CSV file.
We upload our CSV file and we click on upload.
After some time we click on refresh to view changes.
And now look on that.
We've got Confident Woman and Safety gear.
We've got all of the keywords like 49 keywords.
We've got everything set up without us doing anything.
And you can do this for endless amount of images.
So you've got a beautifully wrapped gift box here.
Shiny red heart shaped balloon.
And that's pretty awesome.
You don't need to do it manually.
Even go over to ChatGPT and say, all right, create for me like titles and keywords for all of these
images.
It's also an option.
However, for me it's more comfortable, it's just better.
And afterwards, you know, like we've got the entire automation for creating the best content ever.
So I know it was pretty long.
Introduction.
However, now let's get into the action and let me show you how to build this entire project step by
step.
So firstly we would like to start with the trigger which is trigger manually.
So whenever we click um of course you can provide other triggers.
So let's say maybe a schedule on some date or even between time intervals.
So for an example every day.
So obviously you may have like I don't know, maybe you're creating some images daily so you can upload
them.
And then like this automation triggers at the specific hour.
Um yeah.
I'm just thinking right now with you.
Um, so let's pick the trigger, which is when clicking Test Workflow.
And then what we have we've got our Google Drive.
So we search for the specific folder.
And then what we can do we can search for files and folders.
That's right.
Um let me know actually change the screen so you can see some things better.
Okay.
Uh, we can execute, uh, previous notes.
However, for now, what we can do, we can go over to our folder, which is Google Drive, and now
upload some image for the data.
Okay.
Let's upload some image for the data.
So for an example, uh, we can pick this ribbon.
Okay.
Let me provide that.
You will see that in a while.
Okay.
We've got this image.
Now we can execute previous nodes.
Okay.
Um, and what we can do, we can search specific file and folder and how we can do this.
Uh, we can just go over here, click on return all.
And in the filters we can add the folder.
And now pick our folder from the list.
Of course we need to connect your Google Drive account here in the resource file folder and in the search
okay.
Um, however, you see that everything right there?
Um, nevertheless, for now, let's pick the folder, which is Adobe Stock.
Um, yeah.
I've got upload data here, Adobe Stock.
Uh, let's test a step.
Okay.
We've got our folder and we've got the ID and name.
The first step inside our automation will be to actually download the files from this Google folder.
Okay.
That we searched here inside the second node.
Um, so there what we have we've got the drive.
Okay, we pick the drive, and now we provide.
Download file.
Okay.
And now we would like inside the file provide the expression and provide the ID from Google Drive.
Previous step.
So now we can test the step okay.
And uh yeah that's correct.
We've got the data here.
And what we do else now is the time for loop.
So we click on loop over items.
And now the batch size is one.
And in general that's pretty everything.
We can go over ahead here.
And now we need to provide some steps inside the loop.
And it's very nice because right there we can go over and delete the step and click on the plus and
provide our OpenAI.
And here we want to pick an action which is analyze image okay.
So we've got their um actual resource which is image operation analyze image.
We pick the model and I recommend you to pick for all mini due to the costs.
Um, actually, you want to avoid using highly.
Um, yeah.
Um, like the models that, um, uses a lot of tokens because by this way, you will run out from your
credits really fast and it will be just, uh, yeah, it will be just more expensive.
So we want to pick GPT four or mini for this case.
And in general we want to we want to actually take the text input.
So in general here I've got my prompt I will be using.
And you can download that in the resources of this material.
So what we have inside let's see uh we've got a task create metadata for a single image invalid JSON
format.
The output must be a JSON array containing one or more objects, where each object includes title keywords.
So you would like to take the form of JSON and afterwards, you know, um, like for an example for
keywords we would like to get.
Uh, yeah, we would like to change them with the code.
Note to the string.
Um, however, let's go back.
We've got a title, a descriptive name for the image between 50 and 80 characters.
We can even type the title.
Um, must be between 50 and 80 characters.
Okay.
And we've got the keyword.
So a list of 55 keywords.
And inside Adobe Stock we've got, um, the max value, which is 49.
However, for um, actually to avoid situation whenever for an example, we've got um, less keywords.
So let's say we've got 40 and nine keywords and then some keyword is invalid or even it's repeated.
So um, yeah, then we've got less keywords.
So we want to avoid the situation.
Um, so then it's better every time to provide more keywords, um, than um, 49.
I hope you understand.
Actually, um, we've got format requirements, so return a valid JSON array.
Um, no markdown or extra text.
So it's important.
Sometimes LM models like to provide some weird content additional that is unnecessary.
The keywords field must always include exactly 55 strings.
Each keyword string must be under or equal to 30 characters.
So we just specify the data for the keywords and so on.
We've got the example output.
So here title keywords how it should look like and import and only return the JSON array.
Do not include explanations formatting syntax or headers.
Okay.
Um it's pretty enough.
And now even what we can do, we can go over and input type, provide the binary file and just simply,
um, simply like provide here the data, we can execute the previous notes.
And there we just provide this file okay.
We can test this step and see how it works.
So again it should provide for us the title and keywords okay.
Also remember this entire template inside Google Sheets, you can actually copy and the resources of
this material.
So simply open the link, go over to the file and make a copy.
And afterwards you can just use it inside.
You've got the file name title keywords and category.
Even category is not necessary.
Um, actually let me show you inside Adobe Stock.
Um categories.
Um, okay.
Inside Adobe Stock categories, you've got different categories.
So let's say animals I'm here buildings, architecture, business drinks and so on.
So even you can automate more the entire process by typing the static value right here.
Um, afterwards.
Um, yeah.
Afterwards I will show you how it works.
So we provide a static value.
Static number.
Nevertheless, um, if you create actually varied images that are actually about different categories,
I wouldn't, I wouldn't suggest you to use the category so we can just delete it and don't provide it.
Okay.
For the purpose of this tutorial, um, we we won't use, um, category.
Let's make it simple.
So provide the file name, title, and keywords.
Let's go back here and see what we have.
So nice.
We've got a title and then we've got the keywords.
We've got everything.
Okay.
The next step um inside our loop is to format this data properly.
So we use the code code by na.
Then and there we choose the JavaScript.
And here it's very important we need to choose the specific code.
I've got the one prepared.
So you can just copy and paste it.
Um okay.
Let me show you.
So inside we've got actually um, the input data here and from the JSON and we get rid of any like the
markdowns, um, any additional elements.
We won't go more in depth in this code.
You can just copy that, actually see how it looks like.
However, it's not the class about coding or just, you know, um, yeah, we just use low code.
So in general, even you can create codes, um, with the ChatGPT or so on.
And again, I won't go more in depth.
When I click on test Step, you will see that it will format this data properly for us.
We'll have actually the keywords from array to string format, which is important for us in terms of
uploading the files.
Um, uploading the data to Adobe Stock.
Let's see.
Yeah.
Nice.
As you can see we've got the title keywords.
Pretty cool.
Okay.
Um, the next step, what we have and we've got our Google Sheets.
We'd like to save the data.
So let's pick the sheets.
Let's actually click on Up and Row and sheet.
And now inside the document let's pick up here our Adobe stock okay.
So I've got this uh actually Adobe Stock.
Yeah.
So I've got this sheet.
Um from the sheet let's pick sheet one.
And now uh, provide actually the file name.
So here, uh, we've got the file name from Google Drive, we can drag and drop it here.
We have the title from there and the keywords from here.
Okay.
Now what we can do, we can test the step, see how it works.
So it should be saved right there.
Um let's see okay.
We need to actually wait until the entire loop.
Uh, yeah.
Like a note inside the loop are executed.
Um, this is the thing with the looping.
Every time we need to actually, um.
Yeah.
Provide the previous steps.
So now it should be saved inside our Google Sheets.
And we've got it.
File name, title, keywords.
So the data we want, it's really nice.
And remember this loop will be repeated for all of the items that we have from Google Folder.
So whenever you um, let's say provide here ten images, all of these steps will be run for ten times.
It's simple as that.
And actually the last, uh, the The last note in this entire loop will be to delete the files from
Google Drive to make it tidy, because otherwise you would need to like delete all of the files.
Every time you use this automation, you create titles and keywords.
However, everything will be automatic.
So I thought about it.
So to provide like these steps also this path for the done that will automatically clean for you all
of the spaces like to prepare for further work.
Okay, so let me show you how it works.
We can click on delete a file and there just provide the expression and provide the ID for the file.
We can test the step and see if the file will be deleted from here.
Okay.
We need to again wait for the loop iteration.
Yeah.
So analyzing the image, providing the code, providing the code.
Here the data is uploaded to Google Sheets.
And now the file should be deleted from there.
Yeah.
That's nice.
It works for sure.
It's also cool.
Um, let's place it here, like all of these steps, because we would like to get, um, to the done
path.
First thing we want to do inside this path, we actually want to wait for some specific time.
So let's say you click on the entire workflow workflow to run.
You upload it, let's say five images.
Then um, after this time, um, after actually this loop, um, content for five images is created
and you need to specify the time that actually you need to export the data from Google Sheets.
So click on the file download CSV.
For me it's the save value.
So three minutes.
So I can pick actually wait note and wait for three minutes.
Um they're just like three minutes.
Okay.
Um so here just pick three minutes and afterwards just I can just delete the data from Google Sheets.
Okay.
So I can delete the data from Google Sheets.
And now let's pick clear sheet.
Now I can pick.
So um right there Adobe Stock.
Okay.
And pick the sheet.
And now I'm also it's very important you need to enable keep first row because um, these are our,
our columns that we track all of the data here okay.
With our data.
And now for the purpose of this video I will pick the seconds, okay.
And I will run like all of these steps okay.
So let's wait until, um, it's done.
So as you can see, workflow is executed successfully.
Let's go over there.
And yeah that works.
That works.
Actually, um, it deleted the data from our Google Sheets.
And that's really amazing because by this way, we created the entire system that generates for us titles,
keywords, and the only thing which is left is creating images.
However, with Leonardo AI Midjourney, um, you can generate endless, endless images.
Kind of, you know, I've got even the class how to earn money.
I'm actually make money with Adobe Stock.
So how to generate images from scratch, how to do all of the keywords like titles and stuff.
So in general you can combine everything together.
So this knowledge in this course, like everything and even you've got the entire automation that creates
for you titles and keywords.
I hope you enjoyed this video.
For me it's really helpful.
I use this automation, uh, because actually, you know, you can provide, let's say, a lot of different
images create actually titles and keywords, saving a lot of time without you doing anything, just
this automation.
So this agent does everything for you.
Again, thank you for watching.
Remember to leave us a review or even on a trading firm.
That's everything.
I will see you in the next material.