Zapier and ChatGPT For Facebook: OpenAI For Creating META Post | Tutorial β
Let's build with Zapier and AI (100+ videos)π
2023-06-28
Transcript β
[00:00] welcome back to web Cafe AI we do daily tragedy BT and AI videos for your personal and business life in today's video we're going to be looking at the app of Facebook and seeing how we can integrate zapier and chat gbt welcome back to the series where we're tackling all 5000 apps found on zapier's backend and seeing how we can leverage AI with every single one in today's video we're going to be looking at the context of Facebook and seeing how we can leverage BT in this use case today we're going to be making a AI generated Facebook post where we're going to schedule out a
[00:31] specific day in the week and then we're going to push out a AI generated image with a AI generated caption and then push it towards our Facebook profile all right let's go ahead and begin so we're gonna go ahead and choose the trigger and this is just going to be a very simple trigger here of schedule so if you're familiar with our tutorials you already know what's going on here and we're going to go ahead and just do every week I'm gonna continue here and we're gonna choose the day of the week let's just say Monday and then we're gonna do the post on to be noon I'm gonna go ahead and test this trigger and then
[01:01] essentially that means that every Monday at noon we're going to trigger this flow and everything that precedes it will occur so the first step we want to add here is going to be an open AI block here and this is essentially going to allow us to build out the AI generate image we're going to do generate image we're going to continue here I want to make sure we choose our correct account here so for us we'll be open Ai and then we're going to go ahead and begin structuring our prompt if you're not familiar with prompt structuring or the best way to build out a dollar prompt we're going to go ahead and Link this down below and this is a marketplace
[01:32] where essentially you can go ahead and search a ton of different images and essentially you'll pay you know three to four bucks and you'll be provided a specific type of output so for today's context we're dealing with Dalai so you'd go to the Dali section here and you can go ahead and search through here and find a AI image content that you like so for today's video we're going to use a pre-designed prompt here that is specific for food in theory I could have a variable you put into that little variable block that it's requesting but
[02:03] for now we're gonna go ahead and put in something as simple as ribs and we're gonna go ahead and upper size to 1024 by 1024 this is the sizing image by pixel go ahead and test this action and then we should produce a uh photography photo of ribs in the style of a Michelin star restaurant so all you need to do to check it out is you're going to come over here to copy this link make a new tab once you make a new tab as you see to the left of me we got our Michelin style ribs honestly I would prefer something like chili ribs or something like that a little bit bigger you know
[02:34] that's not enough food for me but for now we got our nice picture of ribs here and we're gonna go ahead and proceed with the gbt caption all right so now that we have the image generated here let's go ahead and add our niched out caption here so we're gonna go ahead and make a chat DVT block and then from here let's go ahead and just take the context of what we're producing here so in this context we're dealing with Michelin star restaurants so I'm going to copy this and I'm gonna go ahead and make an event here of conversation and let's go ahead and input some variables here so starting off we can keep username the same
[03:05] assistant name the same assistant instructions the same the model here I typically like increasing to gbt4 in theory you could use 3.5 but just take into account that you're going to require a lot more prom structuring and then from here we keep the max tokens temperatures can be the same memory key I like to include as well so we're going to say cook FB essentially this ensures that every single output will be the same here and we're gonna do a little trick here that you're gonna be able to use in any of your flows which essentially makes it so that you know when you're dealing with unique content like captions articles and so on you
[03:37] want to ensure that the content isn't regurgitated and it isn't like every day's apple apple you want some differentiation so it looks like a human gave its input rather than you know the exact same caption every time with slight variations I'm going to say based off the picture theme semicolon parentheses and we'll do the theme of emission star exceptional Cuisine generate a caption that is for Facebook
[04:08] and grabs attention and then on top of this add our nice little trick here we're gonna do a parameter block here we're going to say never repeat the same caption and you might be asking yourself well how is it going to know that every time it does a run through because of the fact that everyone through is its own flow right the reason it knows that is because the fact that we added that memory key think of a memory key like a new chat in you know chat dbt's regular UI and essentially it
[04:38] can contextually tell what you've said in the past therefore every time it does a run it knows contextually what it's been generated in the past allowing for Unique content every single time from here this should be sufficient of what we're trying to achieve today we're going to go ahead and continue here and we're gonna go ahead and test this action all right perfect so here from the content we got Feast your senses on exclusive culinary Journey at our Michelin star restaurant exceptional Cuisine awaits you some emojis some hashtags I could add more parameters
[05:08] here saying no Emojis I could add more context here if we want these kind of hashtags but for now this should be sufficient and this is what we're looking for here and if you're new to the channel you're gonna like this next step here as we're going to be able to show you a very very fundamental tool when it comes to structuring data when it comes to chat DBT that's going to be a formatter block essentially a formatter block allows you to manipulate data such as daytime numbers utilities so we're going to be manipulating text as that is the output for gbt and we're going to use the function of replace and we're going to
[05:39] input the data from that output which is going to be the assistant response message then we're going to essentially find the quotation marks as you see right there the original one had quotation marks you don't want quotation marks when you're doing an automatic social media post it doesn't look good it doesn't look professional we're going to replace it with empty space here and then we should be able to get our final caption with no quotation marks perfect all right so now that we have our final caption here we can add our final step of this flow which is going to be our Facebook pages and essentially Facebook pages allows us to create a published
[06:10] photo this could be a video this could be um you know just a regular text whatever you may choose to do in your context you can go ahead and proceed with that for us we're going to do create page photo we're gonna go ahead and choose our page of web Cafe AI the underlying photo that we're going to use here is going to be the image URL and one thing I want to point out is if you're debugging and working through flows when it comes to zapier you gotta understand for open AI when it produces an image and that URL exists that URL is only going to be good for around 30 to 45 minutes therefore if you're dealing a very complex flow and
[06:42] then you try to input you know the image URL found in open Ai and you're having issues and you just don't know what's going on rerun the open AI block and then replug in that URL 10 times out of 10 that is gonna be your issue and you're gonna be able to proceed from there from here though we have our image URL and then the description is going to be the formatted text not the original conversation by jgbt and then we're going to continue here and then all you're going to do is hit Test action and that would push towards our Facebook if you feel like you learned something make sure to like the video it's completely free and it helps us hear web Cafe AI if you want to learn more about
[07:14] Ai zapier and AI Automation in general check out the playlist at the end of this video as that is the playlist that we're tackling all 5 000 apps found on zapier's back end and showing you how to integrate AI with every single one but without further Ado I'll see you in the next video thanks for tuning in and yes surprise I'm an AI Avatar make sure to explore more here at web Cafe where we demystify AI for your personal and business life until next time
[07:46] foreign