00:00hey so this is an AI influencer she was
00:02created completely from scratch and
00:04she's making more than €1,000 a month
00:07she was created by these three folks in
00:09an agency and she's making them
00:11thousands of Eur a month from her social
00:13profiles with more than a 100,000
00:15followers and in this video I'd like to
00:17show you how you can create your own Ai
00:19influencer and totally automate her
00:21social media posting be it to Instagram
00:24Pinterest Facebook whatever so let's get
00:27started so before we get started I have
00:28a little favor to ask a lot of work into
00:30this video so if you get something out
00:31of it please consider subscribing to the
00:33channel or leaving a like also if this
00:35video helps me go from 300 to 500
00:38subscribers by the end of March I will
00:40continue improving and perfecting this
00:42tutorial to actually see the differences
00:44in the images we are going to generate I
00:46recommend watching the video at the
00:47highest possible quality so go down
00:49there to This Little Wheel icon click
00:51quality and make sure you're watching
00:52this at the highest possible quality
00:54your internet connection will allow all
00:55right so what is this tutorial about
00:56first we will create a virtual
00:58influencer I'll show you how you can
01:00create great images for an AI influencer
01:03I'll show you how you can make sure that
01:04the faith stays the same in every
01:07picture which is crucial if you're
01:08creating a character in a believable
01:10post optionally I'm also going to show
01:12you how you can control the posture then
01:13I'd like to share a little secret that I
01:15found that lifts the image quality to a
01:17whole another level and finally I'm
01:18going to show you how you can automate
01:20all of the social media posting because
01:22that can be a bit weary and it will
01:24allow you to not only create one AI
01:26influencer but many and by automating I
01:28really need automating only taking an
01:31image you've created putting that in a
01:33Dropbox folder or Google drive and
01:35everything else will happen
01:36automatically afterwards the image
01:39captions the creation of the posts the
01:42hashtagging on multiple platforms if you
01:44want and finally we are even going to
01:46automate responding to comments all
01:47right let's started creating our own
01:49digital influen there are two ways I'd
01:50recommend going about this one would be
01:53mid Journey now mid journey is by far
01:55the best image generator the quality was
01:57already good before they launched their
01:59version six and now the quality is just
02:01fantastic but mid Journey has a problem
02:03in mid Journey it's a bit difficult to
02:05generate consistent faces now as you can
02:07see here these these pictures look
02:09fantastic but if you check out the faces
02:11you will see that they look just a
02:13little bit different every time and
02:14that's a big no no if you want to create
02:15a believable character that real persons
02:17want to interact there is a little hack
02:19that can use in mid Journey you can ask
02:21it for the seat of an image and then in
02:23a new prompt you can pass on that seat
02:25to the original image and it will create
02:27a face that will be all like the one you
02:30created previously but as you can see
02:32here in these four examples that I
02:34generated with this prompt one two okay
02:37three okay four okay they're okay but
02:40they're just not really
02:42perfect also I included the seat in this
02:44prompt here as well and as you can see
02:46maybe two of these images are kind of
02:48the same and two of them are completely
02:51different or different enough that a
02:52human will notice the difference so I
02:54would recommend a tool called render net
02:56Ai and what render net AI let you do it
02:58will flock a face into place and it will
03:01also give you control over the position
03:03of your AI influencer and combine this
03:06into a new image now render AI also has
03:08a few downsides it uses stable diffusion
03:10in the background which gives you a
03:12whole lot of models to choose from but
03:14the ones that are supposed to generate
03:16photo realistic images I find aren't
03:18quite as good as the mid Journey ones so
03:20what I would recommend is mixing the
03:22both together and then using that secret
03:25source that I mentioned to up the level
03:28considerably Rel that is also really
03:30affordable currently they're working of
03:31a credit scheme and you can buy for a
03:34few bucks hundreds of credits and 100
03:35credits would be good enough to generate
03:37dozens of images now the way render AI
03:40works is quite straightforward you
03:42select the model you want to use I
03:44recommend next photo or realistic Vision
03:46but please feel free to play around with
03:47them the the next thing you can do is
03:49use face lock I've created a reference
03:51face in mid joury my preferred image
03:53generator and I will be using that as
03:55the image reference in ronet so you just
03:57drag and drop that image face onto here
03:59next you you could also give it a Poe
04:00reference I will show you the difference
04:02the prompt I will be using is pretty
04:03straightforward Just Fitness influencer
04:05photo 25y old woman running on a beach
04:09smiling confident apps natural red hair
04:12natural lighting natural skin and then I
04:15find it quite helpful to specify the
04:16type of camera a consumer grade camera
04:19like iPhone 14 pro will look different
04:22to a pro level Nikon or Canon DSLR
04:25camera for example so before we run that
04:27here in settings you can also tweak a
04:29few things I also recommend playing
04:31around with them two things I'm going to
04:33change right now is the aspect ratio of
04:35the images I want Square because I want
04:36to be mainly on Instagram and the batch
04:40size which is the amount of images it
04:42will generate per model that you chose
04:44so I chose two models BGE size two will
04:47generate four photos now let's just run
04:49the prompt and see what happens so these
04:50are the images it came back with I've
04:52selected quality plus which is one
04:55credit per picture so these four
04:56generations will have cost me four
04:58credits and I think the look okay but
05:00let's zoom in a little bit if you zoom
05:02in a little bit you will see that she
05:04still looks kind of fake but don't worry
05:06we will fix that in a
05:08second but overall these image
05:10Generations are quite all right but
05:13let's see what happens if we use control
05:15net with these Generations so I'm going
05:17to drag in a control pose and I'm going
05:20to leave the prompt as is one other
05:22thing you can specify here is how rigid
05:25it should adhere to the post that you've
05:27given it balanced prompt is more
05:29important or control net is more
05:30important so I'll switch to control net
05:33is more important and we'll run the
05:34exact same problem again okay so on the
05:37right I have the images that have come
05:39back from the generation and on the left
05:41I have the original post that I gave it
05:43and you can see that this control that
05:45works like a charm it even positions the
05:48hair like it was in the original image
05:49the hands are where they're supposed to
05:51be the posture is the way the same way
05:54it even recreated the perspective of the
05:56original image so really really powerful
05:58stuff of course you have to make sure
06:01that the prompt you're giving it sort of
06:03matches with the control net reference
06:06phot that you're giving it if you have
06:08the two being completely opposite there
06:10might be some weird effects happening
06:12but if you keep these timer together
06:14it's absolutely fastic the kind of
06:16results that you can get with this
06:17control it now a downside of renet is
06:21this it still doesn't get hands
06:24right all the time so if you find an
06:27image with that you really like and that
06:29you need to fix a little bit there are
06:31three ways you can go about it there's
06:32of course Adobe Photoshop with the magic
06:34retouch function but Adobe Photoshop is
06:36quite expensive then there is photopia
06:38which is a free alternative to photoshop
06:40almost as powerful but also a little
06:41difficult to use uh and here's what I
06:43use I just use canva what I do is I
06:45create a new file in canva in the exact
06:47same size as the image that I'm trying
06:49to improve that I import the image into
06:52canva and canva has under effects
06:55something called a magic eraser which is
06:57quite simple to use it lets you set the
07:00size of the Eraser and then you just go
07:02over the area that you want
07:05fixed and usually even the first result
07:07is quite all right if you don't like it
07:09you can just go over it
07:11again and it will come back with
07:13something good enough you can even get
07:15rid of an additional finger up
07:19here it's worth playing around with it a
07:21few times this is the result that I got
07:23this time and over on the left you have
07:25the result that I got previously and I
07:27think that's almost unnoticeable this
07:29might needs un read me all right so so
07:31far we've been able to generate great
07:33images we are able to ensure that the
07:35face stays the same across all
07:37generations and we found a great way to
07:39make sure that the posture is the way we
07:40want it but what about the image quality
07:43the image quality is essential because
07:45even if you're just scolling by in an
07:47Instagram feed you will immediately
07:49notice if a picture of a person is AI
07:52generated or not because our I have just
07:54been trained to recognize face remember
07:56to set your YouTube settings to the
07:57highest possible quality so you can
07:59actually see the difference this is a
08:01closeup of an image as it was generated
08:03by renet AI it is okay but it is a
08:06little wishy-washy it might even be okay
08:09if you think it's it was a photograph
08:12with a beauty filter on top but we want
08:14to step it up a not and what do I mean
08:16by this we want to go from this to
08:19this an entirely different image if I
08:22put the two side by side you should
08:24really see a difference it's not only an
08:26upscale it has added features and
08:29details to the face and the skin that
08:32makes it just look that more natural
08:34over here on the right it's blurry it's
08:38feels like a beauty filter and here this
08:40actually looks like a picture of a
08:42person that is currently out jogging and
08:44what is the secret source that can turn
08:46this image into this one now before I
08:48show you just a quick recap on how
08:49upscaling Works usually you have a
08:51grainy picture with pixels and
08:53traditionally you would just get more of
08:55the same pixels so bigger image but no
08:57added detail what nor AI upscaling does
09:00it it tries to guess what the next pixel
09:03is in a smarter way but it still just
09:06takes the base image and tries to make
09:09it better and what the tool does that
09:10I'm about to show you is
09:13this it takes the original image and
09:16basically reimagines it it takes the
09:18original image basically as an input
09:20prompt and then reimagines it in a much
09:23higher quantity now this upscale is an
09:26absolutely crazy example but I think it
09:27illustrates well how this up Scala
09:29called magnific AI works and I'm going
09:31to show you some more real life examples
09:33in a second all right so let me show you
09:34a few more realistic examples this is
09:36the image I got from mid Journey my
09:38original face prompt and this is the
09:40after picture what magnific does with it
09:43and I think it is a world of difference
09:45before after check out the eyes also
09:48remember to crank up the video quality
09:51settings check out the eyes how they
09:53come alive check out that every single
09:55strand of hair that you can see now and
09:57it looks just like a real hair and not
10:00like a artificial blend check out the
10:02freckles on her face before they look
10:05yeah AI distributed and afterwards they
10:08look like real freckles check out the
10:10lips the details on the lips it
10:13adds I think it's great here's another
10:15example again this is the original image
10:17that was generated by ronet it looks
10:19like it has all the beauty filters in
10:20the world laid on top of the face and
10:23this is the after picture it looks like
10:25the face of a real woman before before
10:29before after check out the definition of
10:32the nose these little lines in her face
10:36hairs the skin tone I think it's just a
10:39major improve and a final example same
10:42thing the original looks you know washed
10:45out and then afterwards the face is
10:48clearly defined all the hairs look crisp
10:52great fantastic and of course magnific
10:55isn't perfect either so for example I
10:58don't like what it's done to the texture
11:00of her top you know if you check it out
11:02before it looks okay and then it tries
11:04to add more detail where it doesn't
11:05really need to add more detail and if I
11:07zoom in it you can see it looks a little
11:09fake with all these little holes or
11:11whatever it has ated so that's a bit
11:13weird you can play around in the
11:15settings here as well but there are
11:16different settings for what kind of
11:18image you want to improve on if it's a
11:20video game asset or some different kinds
11:22of illustrations so check those out if
11:24you want and then there are a couple of
11:26other settings you can even tweak prompt
11:28if you want so there's loads of options
11:30that you can choose from and try to
11:32improve the image even further and I
11:34have to say that magnificent isn't cheap
11:36starts at40 a month almost which is
11:39quite a lot of money and it only gives
11:41you 200 upscales which kind of defeats
11:43the all the playing around possibilities
11:45that you have because if I pay that much
11:47for every single upscale I'm not
11:49inclined to just try stuff out as I am
11:51in relet where every generation just
11:53cost me credit so you have to decide for
11:55yourself if the quality improvements
11:57that you get from magnific are are
11:59actually worth it or if your AI
12:01influencer already performs well enough
12:03with the results you get from rinet all
12:06right so this is the workflow I suggest
12:07for generating images for your AI
12:09influencer generate the image in render
12:11net fix possible mistakes in canva or
12:15photopia and then upscale the images in
12:18magnific or another upscaler of your
12:19choice but I recommend using magnific
12:22all right and now all that's left to do
12:23is to take these great images that you
12:24generated and to post them to your
12:27social media profiles which we are going
12:28to automate s said now if you found this
12:30video helpful so far please consider
12:32leaving a like or subscribing to the
12:34channel it would help me a lot and
12:35motivate me to make more of these videos
12:38also I'm leaving links to all the tools
12:40I mentioned in the description below if
12:41you sign up through those that also
12:43supports the channel and helps me out
12:45thanks all right to automate the social
12:47media posting I recommend using a tool
12:49called make it's a no code tool similar
12:52to Zia that you might have heard of but
12:54compared to zepia I find it much easier
12:55to use and you will see a second why
12:58again if you haven't signed up for make
12:59already I'd appreciate using the link in
13:01my description that helps me out a
13:02little bit so if you've never used make
13:04before don't worry it will be quite
13:06self-explanatory in a second to automate
13:08the social media posting we're going to
13:10create four different scenarios which do
13:12four little things at different times in
13:14the process all of this will become a
13:16lot clearer now you can recreate these
13:19scenarios as I'm showing you to them and
13:21get a better feel of how make works or
13:23you can go into the link in my
13:24description there's a link to my store
13:26where you can buy these scenarios as
13:28blueprints and just import all of them
13:30at once into your own make account and
13:33to reward people who actually watch this
13:35video closely you can use the code AA AI
13:39for 20% discount in checkup all right
13:42let's check out this first scenario and
13:43what it does let me open it up it
13:45watches a Google drive folder if it
13:48finds a new file in that folder it
13:50downloads it then it uploads it into an
13:52air table and moves the file into a
13:54different Google drive folder now this
13:56is the Google drive folder I have
13:57created for it and there is another
13:59folder inside of it that's called air
14:01table so first I'm moving the picture
14:03that I've created into this drive it
14:06will get uploaded and then it will be
14:07get moved into air table so I know which
14:10images I already have uploaded and ready
14:11for posting and which are still in the
14:14cube and one last important thing you
14:16need to make sure that your Google drive
14:17folder is accessible to the public so
14:19air table can upload the files from here
14:21so what you do is you go on this little
14:23I icon and then on manage
14:26access and then down here where it says
14:28restricted you change that to anyone
14:30with the link this is what the air table
14:32looks like and if you don't know air
14:33table it's basically a Google sheet it's
14:35a lot more powerful and has a lot more
14:37fancy functions that we are going to use
14:40this is the really simple way I've
14:41structured that and it's basically my
14:43social media scheduling tool there will
14:45be a file name of the file I've uploaded
14:47whether it's been uploaded to Instagram
14:49or not when it was uploaded to Instagram
14:52the actual image that is going to be
14:54used and shared the copy that we'll be
14:56generating and then if you want to use
14:58Pinterest as well we need a Pinterest
15:00title and a date when it has been posted
15:02to Pinterest so let's jump into that
15:05scenario and see what it does so the
15:08first thing you need to do is connect
15:09your Google Drive account with make.com
15:12again if you have questions about any of
15:13these please leave them in the comments
15:15so you connect your Google Drive you
15:16leave this as is you select the folder
15:19where the images are going to be
15:20uploaded and you select a limit of how
15:23many images it should go through at once
15:26I put 50 here this clock symbol up here
15:29tells make how often it should run this
15:31scenario and that's one of the very
15:33powerful things about make you can
15:34schedule jobs to run at certain times
15:38every day every hour if you like at
15:40different times during the day which is
15:42not that important for this uploading
15:43action because you could trigger that
15:45manually but it is one last thing that
15:47you have to worry about again the goal
15:49here is to just dump an image file into
15:51a folder and everything else will be
15:53taken care of descriptions captions
15:56posting commenting all that and the
15:58beautiful thing is that make works for
16:00you in the background and you don't have
16:01to worry about any of this which again
16:03is especially powerful if you create
16:05more than one AI influencer at once and
16:07have these scenarios running for all of
16:09them it takes care of a lot of tedious
16:11work that you would have to do manually
16:13otherwise all right so once a day it
16:14goes through the folder and checks for
16:16new file if it finds a new file it will
16:18download this file just leave this here
16:21to enter file manually and then select
16:24from the previous action the file ID
16:26then it will take this file that it has
16:28just download it and upload this into a
16:30table so here again you have to connect
16:32your a table account select the air
16:34table base that I just showed you select
16:36the table name and then map the file
16:39name in this case from the download
16:41action posted said to know Instagram
16:44posted date will be blank here you map
16:46the web content link from the step
16:48before and the file name from the step
16:51before everything else you can leave
16:52blank and finally there is an action
16:54where you take the file ID of the file
16:57from the first step step and just move
16:59them to the add tabled folder that I've
17:02just showed you to clean stuff up and
17:03the last thing you need to do is to
17:05click save to make sure everything has
17:06been saved properly and then you turn
17:08the scenario on so it will run once a
17:10day at 8:00 exactly as I have said it
17:13here in the trigger all right so now
17:16let's try things out I'll drop three
17:18files into this folder they're being
17:20uploaded into my Google Drive and notice
17:23that these file names aren't really
17:24descriptive at all now I can go back
17:25into make and wait till 8:00 until the
17:27scenario triggers or I can click run
17:30once to trigger that thing manually and
17:32as you can see it runs once twice three
17:35times uploading three images into air
17:38table and moving them into a different
17:39folder if I go back into the folder it
17:41is empty and if I go into air tabled
17:43that's where my files are now and this
17:45is what the air table now looks like it
17:47has the file name of the file we
17:48uploaded and here are the three
17:50attachments if we double click on them
17:52you will see a preview great now these
17:54images are in the cloud and now these
17:56images are ready to be posted but of
17:57course we need the the captions now
17:59let's jump into the second scenario and
18:00create the captions all right here we
18:02are in the second scenario and what that
18:03will do is it will go through every
18:05single image in the a table and create
18:07Instagram Pinterest and other captions
18:09and texts for it and it will do this in
18:11quite a clever way it will take the
18:12image file that we have it will run it
18:15through openi vision API which is a
18:18service from open ey that will describe
18:20what it sees in the image then we will
18:22take that description of the image file
18:24and ask chat GPT to create a caption for
18:26it and this obviously will create a much
18:28better caption because it actually knows
18:30what's in the image then just some
18:32generic text it would come up otherwise
18:34then we will just pass the text to
18:36eliminate hyp fils and finally upload
18:38the finished text into air table so
18:40let's look at these steps in detail so
18:42starting with the trigger that is going
18:44to run every day at 9 o'cl the thinking
18:46is if it's uploading new files at 8 o00
18:48it should be ready to process those at 9
18:50o'cl the first thing it's going to do is
18:53it's going to go into the a table and
18:54get a record so basically one rle it's
18:56going to do this 50 times it will take
18:58that image and pass it on to the chat
19:01GPT Vision API so for this you will need
19:05an API key which you can get at
19:07platform. open.com over here you have
19:11the API Keys just create a new one and
19:14enter that into make.com now the prompt
19:16here could is really basic just please
19:18describe this image and where it says
19:20image URL you will set to image URL and
19:23then map the URL from inside the air
19:26table which is this one images
19:29URL can leave everything else basically
19:31as is the max tokens switches the length
19:34of the answer but 300 is py enough you
19:37can switch around with the temperature
19:38if you want to have it a little more
19:40creative or not I would just leave
19:42everything as is now up here in this
19:43little up here in these little bubbles
19:45you can actually see what happens inside
19:46of each step now this is what goes in it
19:49takes the image and the image URL if we
19:54up we will see the image that we have
19:57inside the air table
19:59and it will pass that into the opening
20:01vision and this is the description that
20:03it came back with I'm not going to read
20:04this you can read this on your own t but
20:06as you can see it's way more detailed
20:07than just woman running or something
20:09like that it's really really precise so
20:11this is the description that we will
20:13then pass on to chat GPT and this is the
20:15way it looks at this stage you've
20:17already connected your open I key you
20:19only need one for every API that they
20:21have over here you will select create
20:22chat completion and you pick the model
20:25that you want just go with chat gbt
20:27because the prompts are really that big
20:29then here in Sy I'm just telling it
20:30you're my experienced social media
20:31manager and here where it says user this
20:34is where the magic happens and where you
20:37have to adapt this of course to the type
20:39of influencer that you will be creating
20:41I'm just giving it a little more context
20:43of who I am so it can pick this up for
20:46the captions that it's going to create
20:49and again I'm not going to read this you
20:50can read it yourself just you know adapt
20:52that to whatever influencer you are
20:55creating then two important things that
20:56you always need to include one is to
20:59tell it to never include quotation marks
21:02around its replies which unfortunately
21:04it does for some reason which look weird
21:06when they when you post the captions and
21:08the second thing is you need to pass the
21:11description of the vision API uh
21:14response that we just created and you
21:16will find this over here in choices
21:19messages content back here you will see
21:22the beginning of the description that
21:24we've just read that will be passed on
21:25to the prompt here as well in this step
21:27we just making extra sure there are no
21:29quotation marks around the arm finally
21:31we will be updating the record that we
21:33got in the first step by passing The
21:36Record ID from the first step this one
21:39here leaving everything else as is and
21:42just putting the image caption that was
21:44created in the chat GPT step and double
21:47checked in the text paring step
21:49everything else you can leave as is so
21:51as you can see I already run this once
21:53so we can already jump into the air
21:55table and you'll see there and you'll
21:57see there is already existing copy now
21:59in the field IG copy and this is what it
22:02came up with and it's an excellent
22:04example on why it's worth running the
22:07image through the vision because this
22:08stuff right here is still quite generic
22:10but let's scroll down and as you can see
22:12the caption continues and it
22:14specifically mentions that she's wearing
22:16Nike gear and how does it know that well
22:19that's because the vision API picked up
22:22on that very tiny Nike symbol that's on
22:25her trousers right here that's how
22:27detailed that description of the vision
22:29apis and that's why it's I think it's
22:31worth doing this extra step because the
22:33captions will be so much more detailed
22:35and tied into the image so much more
22:38because it's so much more context aware
22:40than just a generic chat GPT image Capt
22:44all right so that's two of four
22:46scenarios down let's look at the third
22:48one where we'll actually be posting
22:49these images so again you have a trigger
22:51you can set this at a regular intervals
22:54you could also randomize that if you
22:56want to know how to do this leave please
22:58leave a comment and this is what I came
23:00up with it will take go into the air
23:02table it will pick an entry an image and
23:04a caption and then it will post that to
23:06Instagram Facebook and Pinterest and
23:08then it will update the air table you
23:10could also post that to Reddit Discord
23:12telegram WhatsApp groups what have you
23:15there's a whole bunch of possibilities
23:17in here if you want to see how to do
23:18this please leave it in the comments so
23:19I can add that one thing to note is you
23:22will need business accounts for all of
23:24these every time you use any kind of
23:26social media automation be that a social
23:29media scheduling tool like buffer or
23:31hotsite or something it only works with
23:34uh business accounts or professional
23:36account for Instagram that doesn't
23:37really matter but for Facebook that
23:38means you can't post to a personal
23:40profile you can only paste to a fan page
23:43or a business page all right let's jump
23:45in and see what it does again we start
23:46with the ad table where we go in and
23:48search for record the search criteria
23:50will be that the column IG posted for
23:53Instagram posted is empty jumping into
23:55the app table this is what it looks
23:57there is currently all three are empty
23:59so it'll pick one at random limit is one
24:03you could post multiple things at once I
24:05advise not to do this if you post too
24:07often you might get banned uh by
24:09Facebook or Instagram or something then
24:10we have added a Instagram connection if
24:13you do this for the first time you will
24:15have to authorize your Facebook or
24:16Instagram Connection in order to set
24:18this up you have to select your page and
24:20then here where it says photo URL you
24:23take the image URL of the air table
24:26picture that we have here and then on to
24:28Facebook page the connection should now
24:29be established you select the page you
24:31want you select download a photo from
24:34URL pass it the URL again that you've
24:37already used in the Instagram step and
24:40also pass it the Instagram col finally
24:42I'm posting to Pinterest so in the
24:44second scenario I forgot to generate
24:46Pinterest titles so in the meantime I
24:48went back in there added another chat
24:51GPT step it creates a Pinterest title
24:53from the caption that it generates
24:56previously that description is again the
24:59Instagram copy and again everything else
25:02you can leave as blank you can choose to
25:04include a link I'm choosing to link back
25:05to my Instagram profile but this is
25:07where you could also add a link to an
25:09affiliate product you're selling for
25:10example and everything else I leave as
25:12is finally in the last step we're
25:13updating that ad table record from the
25:16beginning again simply setting Instagram
25:18poster to yes and putting a time stamp
25:20of the current time in the fields IG
25:23poster date and Pinterest poster date
25:25all right let's see if this works so
25:26here I'm in my Instagram profile one
25:28picture posted here here I'm on my
25:31Facebook fan page one picture posted and
25:34here I'm on my Pinterest board with one
25:36picture posted let's run the scenario
25:39once it will it grabs an entry from the
25:42ad table it's posting it to
25:49Facebook and finally Pinterest and
25:51updating the ad table so let's refresh
25:55and there it is captions and all
25:58here on Facebook and here it is on
26:03Pinterest and it has updated the ad
26:05table so everything's now let's have a
26:06look at the final scenario reacting to
26:09Commons now surprisingly this is the
26:11most complex one for various reasons for
26:14one there isn't a nice trigger that just
26:15sets off the scenario when a new comment
26:18is posted so we have to search for new
26:20comments every once in a while now makes
26:22pricing is based around how often you
26:25run a scenario and how many action
26:28you take inside of one so you can
26:30imagine if you have a lot of posts with
26:32a lot of comments that racks up a lot of
26:34me actions quickly so we only want to
26:36look for new comments that we haven't
26:39answered yet also I built in a little
26:40safeguard that checks if a comment is
26:42appropriate to answer to or not because
26:45we don't want to create yet another
26:46incident where the ey just goes off the
26:48rails and just post nasty stuff now
26:50luckily since we already using Chad GPT
26:52and that has a lot of safeguards built
26:54in that's a very unlikely scenario but
26:56still I thought it would be better to
26:57make sure all right let's check out what
26:59the scenario does so this time I've set
27:01the trigger to go off every four hours
27:04and check for new comment that might
27:05still be too often we have to get a feel
27:07for this so what does it do it goes
27:09through every single post that we have
27:12on this Instagram account it's currently
27:14limited to 10 but you probably have to
27:15increase that limit as you post more and
27:17then in our air table I've created a
27:19second table this is the one for the
27:21post that we saw earlier and this is a
27:22new one for the comments in the comments
27:24I was saving the ID of a new post I'm
27:27saving the amount of comments it has the
27:30amount of likes it has I have a Tim
27:33stamp for the last time I've updated
27:36table and then a few other things now
27:38every four hours the scenario goes in
27:40and checks every single post that I have
27:43it goes through the table sorted by the
27:47last common time descending so the
27:50newest ones with new updates first and
27:52it gets the entire role for each
27:54Instagram post that we have if it
27:56doesn't find the media media ID it
27:58creates a new role sets this media ID
28:01and also sets a few other things like
28:03account time stamps and so and the URL
28:07of the post if it does find the ID it
28:10triggers another action and that is it
28:12goes into the post and grabs all the
28:15comments again this is limited to 10 you
28:17should probably increase that limit if
28:19there are a lot of comment now you might
28:20have noticed these little things between
28:22these modules these are called filters
28:24and what the filters do is what the name
28:26says they let actions go past them or
28:28not in this filter here we are filtering
28:30by the number of total bundles and here
28:32we are checking if a post has new
28:33comments by comparing the current common
28:37count to the common count that we have
28:40saved earlier if the common count is
28:42higher it continues and here we check if
28:44the comment has already been answered or
28:45not this we're doing by comparing the
28:48last updated time stamp to the time
28:51stamp of the current comment then if
28:53that comment is new we are passing it to
28:55cat GPT The Prompt is rather similar to
28:57one we had earlier just asking it here's
28:59a comment please respond to it with this
29:02Safeguard built in telling it to just
29:04respond with the word inappropriate if
29:07something weird happens then we are
29:08catching inappropriate comments with
29:10another filter if the response from C
29:14gbt is inappropriate it goes up here I
29:17have added a telegram notification but
29:20it could just go into the void or be a
29:22slack message or something else more
29:25importantly it only continues if the C
29:28gbt answer is not the word inappropriate
29:31then it goes to the comment ID and
29:33responds with the commment that Chad gbt
29:36is with we notice that these actions
29:38have a great background that means that
29:39there is a loop going on because we are
29:43looping through all the comments on a
29:45single post that could be one but it
29:47could be 100 and this gray background
29:49just shows that these modules will be
29:50looped through multiple times and when
29:53they're finished there is an aggregator
29:55action the aggregator action is just
29:58basically a way to add a single action
30:02at the end of a lot of actions which is
30:04basically just a hack for this last
30:07action to be executed only once it
30:09writes into the air table the fresh
30:12common count and the fresh like count
30:14which in turn updates the last common
30:18time and if you remember earlier we use
30:20the last common time to check if we got
30:23a new comment or not I hope that makes
30:26sense there probably better ways to do
30:28this but that's the one that I've come
30:30up with so far so let's see if this
30:32works or not I've already run this a
30:33couple of times and I've commented from
30:36accounts and as you can see Ava has
30:39responded on her own for this comment
30:43and for this one as well so it's working
30:47now I feel like this scenario here is
30:49the one that could use a little more
30:50love for example up here where we filter
30:52out for inappropriate comments we could
30:54create a blog list of commentators that
30:57there are multiple offenders but for a
30:59first draft I'm quite happy and of
31:01course this only works for Instagram
31:03comments at the moment again if this
31:05video does well I'd be happy to go in
31:07and create one for Facebook or for other
31:09channels as well all right and with this
31:11we have the automatic posting to social
31:13media we have the automatic comment
31:16response please remember to use that
31:18code if you want to buy these scenarios
31:19from my store and please let me know
31:22what you think if you're using this
31:24again I'd appreciate a like or a
31:26subscribe if this video does well I'd be
31:29happy to improve upon it further so see
31:31you in the next one thank you