Automate Your Content with THIS New OpenAI Agent (n8n)
2:11:15

Automate Your Content with THIS New OpenAI Agent (n8n)

Nick Saraev 13.03.2025 22 116 просмотров 572 лайков

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
Join Maker School & get this (+15 other templates) ⤵️ https://www.skool.com/makerschool/about?ref=e525fc95e7c346999dcec8e0e870e55d Watch me build my $300K/mo business live with daily videos + strategy ⤵️ https://www.youtube.com/@nicksaraevdaily Summary ⤵️ Live build of a content generator flow that performs live research using OpenAI's new Web Search API + DALL-E 3 + N8N. My software, tools, & deals (some give me kickbacks—thank you!) 🚀 Instantly: https://link.nicksaraev.com/instantly-short 📧 Anymailfinder: https://link.nicksaraev.com/amf-short 🤖 Apify: https://console.apify.com/sign-up (30% off with code NICK30) 🧑🏽💻 n8n: https://n8n.partnerlinks.io/h372ujv8cw80 📈 Rize: https://link.nicksaraev.com/rize-short (25% off with promo code NICK) Follow me on other platforms 😈 📸 Instagram: https://www.instagram.com/nick_saraev 🕊️ Twitter/X: https://twitter.com/nicksaraev 🤙 Blog: https://nicksaraev.com Why watch? If this is your first view—hi, I’m Nick! TLDR: I spent six years building automated businesses with Make.com (most notably 1SecondCopy, a content company that hit 7 figures). Today a lot of people talk about automation, but I’ve noticed that very few have practical, real world success making money with it. So this channel is me chiming in and showing you what *real* systems that make *real* revenue look like. Hopefully I can help you improve your business, and in doing so, the rest of your life 🙏 Like, subscribe, and leave me a comment if you have a specific request! Thanks. Chapters 00:00:00 Introduction 00:00:40 Gameplan 00:43:58 Researching Web Posts 00:56:24 Generating Article Sections 01:03:16 Finalizing the Content Output 01:11:12 Generating the Article 01:19:00 Understanding Agency Sales Processes 01:58:09 Summarizing and Refining Content 02:07:46 Image Production Insights

Оглавление (9 сегментов)

Introduction

hey everyone today we're doing a live build of an nadn content generator using the new web search API that openai just dropped it's going to look online for examples of content that we want to create it's going to improve the quality of that content then find information from a bunch of relevant resources around the internet create its own outline generate a bunch of high quality content based off that outline call various apis in order to generate imagery that corresponds to the article and then finally combine all that stuff together into a fantastic highquality piece of content if you guys want to see what an actual development process looks like then this is the video for you stay tuned and let's get into it so I'm going to jump onto the nadn canvas in a second but before I do what you're looking at right now is my game plan before I build

Gameplan

any system I typically spend a few moments and I think about what an appropriate sequence of triggers and actions might look like so to make it clear I haven't actually built this system yet if you guys are going to watch this video you're going to be along for the ride I'm actually going to show you the various dead ends that I go down I'm going to run you through some bug fixes as I am probably going to encounter some and really you guys are just going to get a firsthand look at what a real development process looks like and despite the fact that you know this may be a roundabout way to get to the end result which I'm sure you guys are looking for which is the content generator system in front of you working in beautiful I prefer to do it this way because I think it's a little bit more authentic you guys get a feel for what it actually involves to put a system like this together and then I also think it's a lot more educational because if you guys just take a look at like the Eiffel Tower or something and then somebody tells you okay good so you've looked at it now go build it you know where do you even know where to start right so anyway I can wax poetic about this all day I'm not going to let's look at the game plan we're going to start with some sort of trigger now what I'm thinking we're going to do is we're going to start with a keyword so I'm going to need to find some way to feed in a keyword into the system maybe I'll use a form input it's probably what I'll do I'll probably use a form input I could use a chat web hook I mean maybe I'll have two or three just to show you guys how you can add multiple triggers and an it down actually so we're going to start with some sort of trigger um what I'm going to do is just I'll send it a keyword okay once I have a keyword the model is then going to research other posts using this new web search API which is pretty new from open AI they published it just a couple days ago I know that sort of dates the video but uh yeah it's currently in preview and it's a great model it's going to replace a lot of my perplexity usage then we're going to generate some outlines using the data that we found from the web search API basically we're going to take a bunch of other posts that other people have made and I'm thinking we're going to feed these into Ai and then have ai come up with new and improved ways to write those posts maybe a new angle and maybe like a new outline structure so that it doesn't copy any pre-existing information but so that we can make it better which is ultimately what we'll be rewarded for SEO wise and then after we've generated these candidate outlines what I want to do is I want to feed these into an llm stands for large language model just like open a GPT 4. 5 whatever then we're going to write a bunch of content with that okay we're going to write the content after we generate the outline and this is really important because we want the outline to give our content something some sort of structure I find if you don't have some sort of guiding overarching structure to your content the quality tends to be pretty poor and that's how we're going to avoid this after that we're going to create stylized images using AI I say stylized here because if you just have it generate you an image and if you're just like hey make me an image of a building or something your article talks about buildings the quality is usually pretty crappy if I'm honest and it's very evident to people that are looking that it's like AI content but if you have some sort of theme for your blog maybe some sort of handdrawn theme or retro theme or something um you know if you make it stylized then the people that are looking at the images will attribute any issues in quality to just your style as opposed to necessarily you know the model itself um being an AI right then finally um I'm not really sure if we'll fully do this but I'm probably going to queue up some post in some way shape or form maybe a Google doc or a WordPress install or something okay this is my game plan I'm going to be referring to it over the course of the next uh hopefully hour and a half or so but we'll see how long this video ends up being as I put together this build uh and then yeah we're going to see where we land this is a system that I've very similar to sold for uh many thousands of dollar I probably made over like 80k off of the system directly and then if we're talking indirectly through me publishing on YouTube similar variations of it um several hundreds of thousands of dollars so the very first thing we're going to need to do just looking at this ENT canvas is obviously we're going to need some sort of trigger right so I'm going to go to add first step and I have a variety of trigger options here obviously since I'm testing I'm gonna add this is trigger manually the value in this is you could set some mock data okay so why don't we just go back here why don't I just call it keyword there'll be some variable here called keyword and I don't know we have a bunch of cool keywords here um why don't we just type in agency sales process now if uh I have some grammar Pros in the chat uh in the video not in the chat rather keep on forgetting this isn't a live video that I'm doing not a live Workshop because I've been doing a lot of those um for anybody that's watching this you might be looking at and then who's familiar with SEO you might be looking at keyword and you're like that's not a keyword those are three words well keyword is just a I don't know uh convention disambiguation for uh multiple words but basically it's what you type into Google to get some sort of result okay so you see where it says agency sales process in Google this is the keyword this is what we're looking for and ultimately what we want is holy crap that's funny I rank oh my goodness no way I'm on the freaking first page of Google for agency sales process okay no I'm not thank goodness that would have freaked me out I'm just here because it's probably my account okay anyway so um yeah we're going to pin this output right so let me just zoom out a bit save this and now what we've done is we pinned um you know this agency sales process keyword I don't like the way that looks so I'm just going to say test flow after that I'm probably going to do some sort of nadn form just to show you guys what this looks like right on a new nadn form event we'll also feed in to here and we'll have a question I don't know it'll just be example form there'll be one here called keyword field type will be keyword it'll be required okay that's going to open this up and I'll say agency sales process click submit okay so now we basically have if you think about it the same duplicate data here right um we have a value called keyword which is ultimately what we're going to want and I'm going to pin it so now we have a manual way do this we also sort of have like um this would be the end product if I were to show it off or um Pitch it to a client or something but I'm going to just use the manual test flow and I'll jump in with the form test flow um just at the very end after I'm done with all this stuff so that's the first step um we need some sort of keyword trigger cool so that's actually done it's probably the easiest step that you could possibly have just going to check that actually let's check it from the left that way it'll be standardized and easy to see for everybody okay the next step is we need to research posts using the web search API based off this keyword so uh anytime that I'm um looking at a an API that I haven't worked with and this API because it's new um I'm going to run through a very simple step-by-step process and I do it every single time and if I don't know what the API is this process allows me to sort of get the 8020 I can get up and running with the API as quickly as possible dealing with authorization dealing with the specific endpoints I want yada now I know for a fact in this specific case um since I'm going to be using an open AI API um I already know what the link is for one because I just posted this in my community and then number two um I know that they're probably going to have really good documentation it's not going to be that difficult okay but uh let me run you through what it looks like regardless so basically what I want is I want some sort of thing that looks like this if you think about it so this is my tools web search this is where I'm going uh basically what I want is I want a way to do an HTTP request to this endpoint with some sort of authorization bear this is my token then I need the content type to be application Json then I need to feed in the model GPT 40 search preview with some web search options I guess these are some additional options which I'll have to look into and then um under messages I guess this is the input that I actually feed in I have one called Ro user and then what was a positive news story from today this looks really interesting realistically we're probably going to have to formulate our own prompt because I can't just type in I mean I guess I could just type in the keyword agency sales process but I'm probably going to want to ask it a question okay so the very first thing I always do is I always just look at an example of the input if there isn't apis are made a lot more difficult but nowadays basically any API worth their salt is going to have an example of the input now um curl just means like an HTTP request that I'm going to be sending from a no code tool like naden um the cool thing about is you can actually just copy an a curl request paste it into the HTTP node and it'll actually go and generate the whole thing for you which is sweet that's what we're going to be using um but uh yeah you basically just always want to be finding some sort of example of a curl request okay so after that output and citations the API response item in the choices array will include okay so it's giving me a bunch of options I suppose that's nice do I care about this I guess so this is an example of the output so it looks like the output that I will be going for the explanation will be here so I'm going to go for uh it'll be message content so this section right over here and I'm just thinking in my head okay when I call this when I reference this variable in the HTTP request it's going to be message. content then annotations these are going to be Cit with links to various Pages they're going to be buried over here and it's actually going to include the characters as well end index start index that probably just means like it's like a link you know like if the link is the New York Times created a survey on X Y and Z like the start index would be the character in that sentence so the New York Times like the start of the nend which would be the fifth character that would probably be where the link would start then it would go all the way to the end of the thing about the study um which would be over here so that's kind of neat we have a bunch of data looks like those web search options were just a bunch of different location things so I don't really know if that's super necessary and there's some other ones like search context size and all that crap all right so is that super important for us um yeah not really I guess all I really need to do is I need to get this authorization up and running so my very first goal is I just want to have an HTTP request inside of NAD that works I'm not actually going to do it based off my data but I'm just going to go create a new HTTP node back there then I'm going to click import curl here and I'm just going to paste all of this in okay when I import it what it's going to do is it's going to parse that because n has their own little parsing Library it's going to put the URL in the URL field authentication in this case will have none because we're going to manually insert it this is typically how I do so I don't really like using the built-in authentication you certainly can if you want um body content type Json specify body using Json so all this looks really good um all I really need to do if you think about is I just need to get my bare open AI key so the way that you do that in open AI let's just go to in my case the top right hand corner then there'll be API keys for the organization then I'm actually I don't think I can copy this anymore so I have to create a new one and I'm going to call the specifically deep content generator API key the reason why is because I'm going to delete it right after this so that nobody can just use my API key so I'm going to copy this go back here then you see where the dollar sign open AP open API key I'm just going to paste that's my API key okay cool just looking through the rest of this all of this looks pretty solid maybe we'll do um what are some articles high ranking articles about the agency sales process maybe let me do a test step so looks like it's taking some time that's great that means that it's probably working normally when it doesn't take time it returns instantly it's not and great it looks like it did so I'm just going to move over to the schema view over here and I'm going to give myself a little bit more space because odds are the outputs are always going to be a little bigger and more lengthy than my inputs that looks nice as you can see I have some content here developing an effective sales process is crucial for agencies aiming to scale and blah blah here are some high ranking articles with insights on it okay so I have the content um it looks like the content gets truncated or cut off very early so I can't actually see the output very nicely that part kind of sucks but I do have a bunch of high ranking articles supposedly uh so that's pretty cool um could I do I don't actually know how this works to be honest first time I'm using it via API so why don't I type something in like um find me three high ranking articles about the agency sales process and then extract their outlines in markdown format output um as a numbered list i e the first article's outline should be one the second two and so on let me see if I can just grab that directly because that would save me a step I don't know for sure but I'm just testing the capabilities of these models um obviously we're going to have to verify that this is consistent it doesn't look like it's doing that I think the reason why oh you know what actually looks like it is doing that fantastic okay great so I'm actually getting outlines here that's really cool here's the issue with this um I'm not getting a format can I get this in some sort of Json or JavaScript object notation format if I could get the output as just like H it doesn't look like I can actually output it as a like I want like an array containing three items the first is outlined for one second is outlined for two third is outlined for three so what I'm going to do just for Simplicity so I'm going to do another I'm going to do an open AI message and assistant or message a model request then going to feed in my own credentials and now I'm just going to see if I could reformat this content using AI so I'm going to go GPT 40 I'm then going to say you are a helpful intelligent content assistant going to use that as the system prompt for user I'm going to say let's think your task is to take the out of a search module and reformat that into Json your Json should follow this format we'll say um article outlines it'll be an array it'll be title then it'll be mark down outline cool now looks pretty good to me just open this up a little bit more so uh let me pump this in adjacent form matter just because I want to have some of that formatting format beautify there you go it just makes it a lot easier for me to see and I think that's really important in long-term maintainability so article outlines um objects which is an array that contains a bunch of article outlines containing titles markdown outlines rules I'll say there will be three outlines insert all of them into the appropriate object using the markdown outline parameter um in addition make sure you format the outlines make sure you replace any new lines with back sln since I'm sending this via Json uh via HTTP request cool um if any information is missing only use the supplied parameters I. E um title and markdown outline if any information that information is missing leave the value as this cool that looks good to me I'm going to click output content is Json and then I'm going to add a message and I'm just going to feed in this content okay it looks like we have access to all of these outlines which is nice um I'm then going to test the step now and see if we can grab some Json I'm loathed to introduce AI into more steps in this process than I have to like I can technically have ai the reformatter but ideally I wouldn't actually have to do this twice I'm thinking I'm going to just given what I'm seeing here okay this looks pretty good to me so all of them follow this introduction format I don't like how there are three um you see how there are sort of three heading Parts here that doesn't seem like it's going to be the most consistent so I'm probably going to run into some issues there looks like it's using markdown and it's determining what the heading is so I can actually tell it to structure the outlines make sure insert the title as an H1 then insert the next headings as H2S if there are any nested subheadings use h3s Etc Let's test this step and let's just see if there's a better output now something that maybe is a little bit more consistent I think that there probably will be this is taken a fair amount of time why um I don't know maybe the server is underload or something maybe my prompt is really long but it's really not that long and if we're being pragmatic here I mean this is like this is nothing in terms of usage I should probably reduce the output Randomness or the temperature down to something a little more manageable okay while that's running let's just format this a little better give myself some room let's go back to oh okay we did get the output all right so this looks much better this is a very standardized format right we have the title but then we also have the whole article or the whole um thing in markdown which is very valuable okay and this is what it looks like if I go markdown live preview I just paste this in h no it doesn't really work that well does it okay anyway um see what says the secret for success to agencies then it says the sales Playbook this is basically what the article is going to look like or what the outline right that's good that's what we want we have one bullet point here another bullet point here then we have this here right so this is basically what the L's going to look like so that's cool um let me just finalize I don't like other two bullets here let me just finalize this just for my own Clarity looks like for whatever reason this tool automatically inserts another thing oh about the author Dave Fischer background and expertise contact information interesting that's really interesting no I don't know if we wanted to write anything about Dave Fisher in here but um cool so uh just ignore all of the backs slash ends um as we see here what we're going to get as our end result is a couple of outlines the secret to success for agencies is the sales Playbook introduction delegating sales responsibilities and agencies importance of a sales Playbook why agencies struggle to develop Sales Systems why create a sales Playbook how to succeed just get started about the author Dave Fischer this is pretty good um okay so now I just want you to think about you know my goal here my goal is I'm going to grab three outlines like this really now what I want to do is I want to have ai combine the best parts of all of them basically to turn this into like a mega article or a mega um mega outline and then I also wanted to come up with like a couple of new headings basically that'll improve the probability of this just being considered new and exciting and and interesting content maybe a slight different angle on something that these guys didn't talk about so from here on out my thoughts are I'm probably going to have another AI node the only purpose of this AI node excuse me um aode is going to be to get these outlines stick them all in the input and then just generate a better outline afterwards and the outline should be formatted in a very specific and standardized way if I want to make use of that outline later to write content and if I want to be able to make use of it to do anything like if I standardize it now I'll be able to use this for anything like this doesn't have to be a cont generate an article gener I could generate outlines but I could use those outlines to generate YouTube scripts posts of any kind I could use them to generate and basically an infinite number of posts that have the same IDE and the same structure and the same high level topic but might actually be a little bit different um which you know uh I could I could publish 50 articles on the same topic or something like that and then I could have all of them rank at the top right like if you think about it that would allow me to maximize the opportunity of a system like this and then if I'm building template I'd be able to sell it in a much wider array of purposes than just like an article generator which is my first thought so that's kind of cool um I think I'm going to do that so I'm going to head back over here to deep content generator and I have you know I have my outputs right over here just because this looks basically exactly like what I want I'm just going to pin this make this really easy for me so from here on out and you know what I might as well just pin all these outputs to be honest um so from here on out um I now have my three outlines why don't I just rename this a bit oops um I think I might be using my voice or something like that sorry I need to rename this um why don't I just call this um call open AI web search API by the way is there is this like available in the open AI node now if it is and I'm just being silly I'm just going to do that custom API I could use a custom API call no I couldn't got to add my credential first sorry now that I'm thinking about it like they probably updated something no they didn't this is the assistant let's just do text no I'm not seeing anything here maybe there's a preview um we have an audio preview do you have a web preview oh yeah you know what sorry we actually have a search preview directly embedded so you don't actually even need to do the API call that's really funny oh well uh you know you tend to learn these things as they go regardless um I like the fact that I've done this API call that's cool I don't really mind it sure you have to put your own um token in plain text and whatnot but if you guys want to replicate the same functionalities that open AI um node uh it's much easier to do so with the actual open AI node itself as opposed to the HTTP request so you know the harder thing you'll be able to do the easier thing okay so uh right so then what does this do this right over here is going to extract and format outlines that's all that this does doesn't do anything else this model here is going to generate better outline that's what this is going to do so for this I'm going to use GPT 4. 5 which as of the time of this recording is the best free model that I could use sorry not free uh best freely available model that I could use on the API you're a helpful intelligent writing assistant the system prompt will be your text will be your task is to generate a highquality comprehensive outline for an article on a given topic okay the topic will be provided to you along with three outlines that we've outlines of other articles that we've scraped from the web must digest the three other outlines combine them and understand what they are I'm not going to win any awards for this prompt but I just want to get something on paper um as a rough draft and I can always edit it and iterate it later so I'm just giving it my thoughts as if I were talking to a staff member or something you must digest the three other outlines digest these three outlines fully and completely combine them generate a new outline using content from the previous three outlines as inspiration make sure your outline is significant L better more comprehensive discusses more topics if you believe that the provided outlines ensure that you are not repeating verbatim What the outlines are but effectively incapsulate the concepts and ideas they're talking about in your new Mega outline okay output in Json using this format we'll just say mega outline and then what I also wanted to do is output your mega outline in markdown ATX format for those of you guys that don't know markdown ATX format it's just where you place hash signs followed by space before the heading text so just like this that's a heading one um okay next up where the hell was I um I I'll put your mega outline in markdown ATX format next up um ensure let's say h very formatting use H1s H2S h3s h4s bullet points Etc in your big outline okay um do not include any personal information say of the writer in your finished these outlines in your finished product sometimes they add or append their names to things leave that out cool that looks pretty good to me I'm now just going to feed in these three outlines so if you think about it I mean I'm always going to have marked down outline markdown down outline this very quick and easy way to do this I mean like we could map um we could grab article outlines here okay and then we could just like map the markdown outline together and stick it all but I mean I'm I'm not going to do that I want to just get this up and running as quickly as possible so I'm just going to write keyword um what I'm going to do for keyword is I'll just go test flow then I'm just going to grab item uh and then oh I think that's just it right um oh jeez I guess we have multiple items here right should just be agency sales process then down over here going to say outlines why don't I just do one um we'll go markdown outline number one then two then three is this the most scalable way to do it not really like if I wanted to have this generate 4 I'd have to go in here and then hardcode it but to be honest I think three is probably sufficient uh but yeah you you'd be able to do something like you can map a new array that just contains these and then just join them all together if you wanted to a variety of different ways to do so okay then I'm going to click output content is Json for temperature it's go 0. 7 I'm also going to do the same thing back here just because I umum I personally find that the and this might just be my bias I find that the usual model outputs are a little too creative for me say creative I mean that a very loose sense uh I think that these models can be like super annoyingly flamboyant and just use like words that nobody ever would I have a 4 ler giant bottle of water my girlfriend's been telling me I need to drink a little bit more water so I'm going to be doing so through an aluminum straw oh my god that's way too cold good God my initial goal with this was to drink all four liters every day and I was like well I'm just going to get one bottle and that way I'll know when I'm done the four liters right you know how much four lers of water weighs to carry around ridiculous okay got the mega outline over here let's take a peek at this so uh I'm going to say I'm just going to feed this into my own model let's just do GPT 40 um render this and mark down just going to paste this in no no you okay whatever that's actually fine so it's actually going to create me this and just format it for me I didn't want it to render it for me like this AKA just add the new Lin I wanted it to actually show me what this thing look like but that's okay I guess we could just do that so this is the more comprehensive one now start off with an introduction that defines the agency sales process talks about the importance and benefits of a structured sales system then discusses common misconceptions about sales processes and agencies we understand the challenges okay cool internal barriers external barrier factors creating a robust sales Playbook purpose and value key components of an effective sales Playbook Central stages this looks pretty good yeah this looks pretty good um all right so now that I'm thinking about it this would be a good opportunity for us to add links right now right be a really good opportunity for us to add links um so I might actually do that um okay so just to keep track of what we've done we now researched other posts using the web search API right so now it's time to generate candid outline select we've actually done that and I'm just going to have this do the selecting it's not going to select a Canada on it's actually just going to combine them all so now we just have to write the content using the LMS and then we create the stylized images using a an the post I think there's an opportunity for us to add links though um not of furniture why is this oh right Jason formatter it's just some free service you don't have to use it if you don't want to um it was make ads pop up after a while this is really long this is super long so there's obviously not going to be any meaningful way that we'll be able to generate all of this in one shot right like I hope we're all clear here we're not just going to pump all this into Ai and be like hey write me an article it's going to do a really job so what we need to do is we need to iteratively prompt AI um we need to feed in sections probably like I don't know a few sections at a time and then depending on the length of the final article we might feed this into um 01 Pro or something like that 03 or something just have it like um iron out any like a lot of the time when you generate stuff section at a time like if I generate like this introduction separately and then I intro this section like a lot of the time the model is going to like restate the same things kind of like here at the margins know that is not a dick growing out of this wall but it's going to restate the same things kind of here and so what an you know 01 Pro would do or 03 or what whatever these like reasoning models are they have really long contact window so they'd actually go through and they'd unify them they would remove um I can't really deleting this unfortunately but they would remove all this stuff and make it all good so that like the paragraphs flow seamlessly into each other and in this way we'd eliminate the length problem uh it cost us a little bit more because we're producing higher quality content we're re we're repr prompting it a bunch but we'd have a lot more control over the end process I would say and then um yeah we we'd basically split it into a few flows there'd be like a top level writer flow which would do the iterative thing and then there'd be an editor flow like the o1 which would actually like you know do the editing and stuff but yeah I'm starting to think like there's probably an opportunity to put links in here so what do I mean like imagine if we just this it said agency leaders AV verion to sales and then there was in Brackets little bracket and then it said you know forbes. com article that talks about X Y and Z and then there was a link right so I don't know like what if uh how do you do markdown again is that this hold on one sec I need to figure out how to do markdown links okay link text here okay so basically it' be this right then you see here we could just embed this then we could say brackets another bracket here and 2015 fors article showing X Y and Z right that way when we feed this outline into the writer it' actually be able to create us hyperlinks as well which would solve our internal and external link problem um that would solve completely so how are we going to do that well let me think back to this so we're extracting formatting the outlines we're not generating a better outline I guess I just need to do a little bit of research now honestly um I guess I just need to do research and then so what am I going to call this again H maybe I should call this twice okay I think I'll do that the first time I'm going to call it I'm going to call this to generate me these outlines but I'm also going to call it to generate me articles like empirical articles on this stuff okay so actually have two this first open AI web search API going to be find articles sorry find outlines and this second one here is going to be um find citations okay and then we're going to stick the citations not here but over here alongside the generate a better outline thing then it'll stick the citations in there so what do we need um find me statistical stat okay find me let's do five statistics citations or educational resources on then I'll insert the topic here so we'll put keyword un let's just say the following keyword to make it really clear that is what we're supposed to do just in case this is some grammatical issues right agency sales process um for each link provide a on line summary of the key findings okay let's give this a try now uh this is going to overwrite pin data yeah that's fine I don't mind let's see if it can do this if it can we'll just combine that directly in the output and use it to generate a mega outline that contains positive citations here are five statistics and educational resources related to the agency sales process okay so now I'm going to go here this is perfect this contains everything wonderful yeah wonderful wonderful oh man I'm so stoked on this o that's going to be juicy okay so we have the citations now so when we generate this better outline you know what we're going to do in addition as well as a bunch of citations with on line conclusions you must digest these three outlines fly and completely understand the citations and one conclusions generate a new outline using content from the previous the Lin's inspiration and then weave in the citations and one line can we the okay um make sure to include all citations all of these citations you're given use markdown ATX format when linking them in the outline okay so down here I'll say keyword outlines and then I'll say resources so now I'm going to go find citations right here scroll all the way down to the bottom because I uh I'd still consider myself a novice at NN formatting and so um sometimes I will be referencing an individual uh where I need to unpin this node and execute it sometimes I'll be referencing an individual item as opposed to uh you know something else so I am going to unpin this and now in order to test all this I'm going to have to run it all yeah I think I'm going to have to test this all which kind of sucks I hate doing that but it's what it is uh this is a function I no I think I'd go all then I go last then I go Jason then I go content is there content message uh let me think for a second choices it's choices um I should just have one choice I do choices zero Dot message I mean I could just drag this in here but I don't want to I'm better than that um dot content okay hopefully that's good enough we'll see cross your fingers for me I think that this is going to be a banger I think this going to be even better than I thought the system would be it's always fun to be able to put together these sorts of things in just a little while friend just sent me a very funny text okay so uh yeah assuming that this works then we're just going to go ahead have it right and the way that we're going to have it right is if we look back at this markdown preview thing do you notice how on every line we have um uh we have these headings so it's like you know two number signs basically we could theoretically do is we could split everything by the two number lines so this would be one section this would be another a third fourth section see here this would be section okay just like that and then this would be a sixth and then finally that'd be a seventh okay so we could actually go ahead and we could we could generate the whole article like that then we're just going to have a massive hodg podge of stuff and then once we have that massive hodg podge of stuff rewrite this but not in markdown format I want to I want to find a link where the hell are the links I don't see any links link please not seeing any links uh yeah so it doesn't look like it's actually doing the rewriting I want that's fine you can shut up now thank you where are the links oh okay example sales people who follow def find sales PR 33% more likely to be high performers right over here okay cool Co cool so we actually have the links inside fantastic I'm not going to go through the whole ring roll doing what I was doing back there um but anyway obviously we now have the better outline so now we just have to let me use an edit Fields node because what I want to do now is I want to map this stuff what I'm probably going to have to do is go to the expression editor and then here I'm going to say um sections then over here what I'm going to want is I'm going to go Json do message. content. Mega outline okay then I'm going to split it on the basis of these if I do that what am I going to have this doesn't look to me to be an array but I may be mistaken I don't know if it's an array to be honest I can't actually see where is it I mean it you know looks kind of like an array but isn't an array I don't know I'm not seeing any array like thing here if I test this let's see what happens it's broken oh no okay it is an array nice okay so sections awesome and then I don't like how it splits it and then it takes the thing out is there some can I do the nadn split function without actually removing

Researching Web Posts

H uh hold on a sec actually wait one moment I've used the like value of splicing a dot in you can use whatever you prefer blow the two nodes all right that's fine no that doesn't really help me it'd be really nice if I could have the title of the header no I mean I do have the okay title but not everywhere like look key uh introduction understanding the agency sales landscape important oh you know what you know hold on what if I put a space there then I test it no that isn't working why well if we think about it um mastering the agency sales process a comprehensive gut all right I'm going to need to have this whole thing here then I wanted to remove the new lines in my prompt immediately faster go let me ask it again assist me uh no no no sorry sorry replace all new lines there you go please do not turn me into a paperclip oh no it's up putting it not as marked down what the hell am I going to do man all right let me see do we still have that markdown answer that we had before no we don't that's really annoying if we go back here for whatever reason it's not splitting this right so that's a bug right that is most definitely a bug we found our first bug ladies and gentlemen so we need is we need it to say this basically overview of this episode that's not what I wanted okay I'm just going to do this a little bit until I get to the next heading here just so that I could see what this actually looks like that's fine okay all right so what's happening here I'm splitting based off of the presence of these three characters so realistically the beginning is going to look like this the next one no that seems fine I don't see any issues with that so it was right about the beginning is just going to look like the title so I can just get rid of like you know I could just slice that out I don't need to use that one the next one's going to say introduction and then it's going to be all the way down to the last line but the next is saying key challenges and agency sales processes why is this just a title H seems weird I don't like that I'm splitting the beginning and the end so what what's going on here with this mastering the agency sales process let's do this with the actual data do that's fine it's also fine we have two new lines we have key processes that's fine okay then we have this so what's going on we are splitting based off of the presence of this I understand now we're getting all of this then what are we doing after that we're getting this H how are we going to make it not split it based off of that like what I want is I basically want I guess I could just ask AI for this but still that seems like a cop out here basically what I want is I want split all the sections that only contain H2S so that it's like this is a section right here you know what I mean then afterwards maybe new line okay maybe there's a simple solution to this uh cap lock is on yeah okay that was a simple solution just add a new line cool uh awesome so then I have all of my sections here with the text and stuff I got so now what I have to do is I have to generate articles for every section so this is where the prompt engineering is going to come in I'm just going to pin this then I'm going to rename this and I'll just call it um uh separate into sections very cool now I should note that because I have you know in this case six sections basically what I'm going to be doing is uh can I just remove H how do I pop no I need some way to remove pluck no um reduce no slice can I slice this from the start that would just be one to the end just get rid of that yeah okay cool sorry so now I have the right now put that's fine you can unpin it there you go so I'm going to take this and I'm going to feed into AI so it's going to be some prompt engineering and then um I'm just going to have it iteratively do it so if in my head like I always think about things in terms of make. com which is sort of you know the no code platform that I figured things out in first the way that you do this in make. com is you iterate and then you basically do one at a time section by section um in nadn though it's just going to Output this item or this variable called sections uh there'll be like six of them simultaneously basically so what I could do is I could just uh oh actually no this is still technically one item so I could do this in a variety of ways I could split out so I could basically um drag these fields called sections I believe let me just test this really quickly there are now six items called sections one 2 3 4 five six then now that I have these six sections split out six items I could then pass this into AI the only issue with this potentially is that um you may run into rate limits when you're doing a ton of copyrighting so if you don't like that then what you can do is you could use the um split in batches Loop over items or split in batches known and then that'll just allow you to take this thing that we just split out and then just run it one at a time so I'm just going to try for now to run it all six at a time because that sounds way easier to me then assuming that doesn't work I can worry about um you know generating it one at a time okay so now instead of generate better outline what is this is going to be right section okay so we have everything we need if you think about it we can um unpin this we have everything we need we have very high quality um working materials it's just a matter of sitting down at our little Minecraft Workshop whatever the hell it's called putting them together and having some cool sword at the end of it or whatever so your helpful intelligent writing assistant just going to say writer your task is to generate a highquality comprehensive section of an article using a piece of an outline this piece is not the whole outline it is but a part knowing this confine what you write to the contents of but a part knowing this canine exactly what you write to the contents of the provided section do not write additional or accessory content that doesn't belong in this section let me do some rules too do not write calls to action ctas or introductions unless it unless you are explicit instructed to do so say with an introduction tag with an introduction header okay looks pretty good section in Json using this format I will now give it the format that I want again so to be clear is I want it to be um article section okay content goes here let's say markdown content goes here let me just see if there's anything I can copy weave in the provided I'm now using an old prompt to help me generate a new prompt weave in the provided citations um in a markdown ATX format we just continuously say write in markdown ATX format make sure the heading is in H2 make sure you weave in any provided citations and marked on ATX format as well okay this looks pretty good to me um I'm not going oh maybe I'll use a Spartan tone of voice use a simple straightforward tone of voice no fluff cool that looks pretty reasonable to me we'll see how this goes um okay so I have the keyword right so now I just want my section so I'm just going to feed in section keyword is this agency sales process your section keyword of The Wider article I don't know your section okay so um let's test this and let's see what happens might as well rubber's got to meet the road eventually right I think we're already coming up on one hour but that's actually pretty good we're getting close then I'll be able to check that little box off which is pretty cool fingers crossed I should note that I'm using GPT 4. 5 preview here um if you check the tokens this is very expensive relative to the majority of the other models so if you want to do 1 million uh like let's actually like check out the usage on this I mean like how long is this really well I don't know I guess we're going to find out soon enough but uh you see how it's 75 and 150 per million output so I mean a million's a lot right I usually like things in terms of a thousand but that's still like 15 cents per thousand output tokens basically so I mean realistically this is probably going to generate me like a few hundred output tokens from do it between 6 to 10 times per article that's going to be a lot right it's going to be 30 to 50 cents per piece now why am I using this really good article uh really good uh model because I think that the value here is worth at least 15 times more than the price that I'd be paying for it so the price differential may be 15x you know between this and

Generating Article Sections

this but I think that the value differential between this and this is much more than 15x I think writing is one of those things where if you are off even a percent or if you can make an article better by even a percent um as an input like if the input's one percentage Point better then the output can be many many orders of magnitude better so um that's what I think I may be mistaken there and maybe you don't want to do this maybe you want to say 50% on inputs and outputs with a bat AP and run task asynchronously over the next 24 hours whatever floats your boat this is taking me a lot of time though because it's writing all six right uh realistically I probably should have limited this to one and then just wrote one at a time instead of all six simultaneously but uh yeah if anybody has any Jeopardy music now would be the time okay um oh nice that actually did finish right on Q much appreciated looks pretty good uh I'm just going to check this now I mean it's pretty chunky don't get me wrong let me save this and pin this just so that I have all of it in article section and now oh just deactivated it by pressing D and now I'm going to use another edit fields or set node and I'm going to just say you know like concatenate basically so I'm going to oh hold on a second I think I need to aggregate this because I have six items let me just combine a field for many items and all list to a single item right so I'm going to combine article section here I believe that's that let's test this right so now I have it in a list the second that I have in a list now it's pretty easy for me to join this all I do is say um draft and I go over here and then I'll go to expression and all I'm doing now is I'm basically just going to be joining this um and then if I test this now my final string contains invalid Jason why again H I might have too many of these one more time also contains invalid Jason this is really long a little too long honestly well let me double check the key draft is followed by this which is nonv valid Jason syntax right so oh right if I do this and this should look like that but there's probably an issue because I'm probably using the wrong quote signs or something let me just double check this one more time I'm unfortunately going to have to go through this whole thing in the expression editor here just see so understanding the agent oh you know what do I even need to do this man that's long as hell Jesus looks pretty good to me where is this go back one two three where's the fourth I don't see the fourth here yeah I think that this is actually okay I'm not really sure what the problem is maybe somebody here sees it and I don't um I'm going to spend a moment fixing this though maybe instead of Jason let me just try manually mapping this what I want is just want to call this draft then the value is going to be an expression cool so that looks like it worked I should also probably have the title somewhere here right um what was the title of the piece again I guess the title was separating a section zero right so I'm going to go back here then I'm going to have um separate in sections all maybe can I just go first I think I need to go off and then I go first json. sections um h I don't actually remember what this was dot sections then can I go zero think I gotta go zero right oh you know what it's because I actually removed this um I sliced it right yeah I did so I can't actually use that what I need to do so I think I actually have to use this better outline thing H that kind of sucks I don't like that I do not like having to do that is the title anywhere else here that I could just reference really quickly I guess I could just have it generate me the title here title and then Mega outline one of those really tiny annoying things you know um and if I was a little smarter but how I put this together I would not be suffering this right now but I think I basically have to do like I basically for the purposes of Simplicity I have to go through this rig roll again so you see here where it says Jason um like this I can't actually just use dollar sign Json message content what I have to do is I dollar sign generate better outlines do item um all I meant to sayir do Json Dot message. content. Mega outline dot split so now I should have a title here splitting them oh and then I have to grab the first one right okay great I finally have it right then I can

Finalizing the Content Output

actually just remove this and this is going to be my final output this is now my whole article okay looks pretty good to me let's test this well got the whole article here and keep in mind this is pretty fragile we haven't actually done testing but when I do the testing you're going to see this isn't going to work all the time so we're going to have to put some safeguards in later probably um let's call this now uh what am I going to call us set draft article let us also take this whole draft article um not here let's go here open this up let's take this whole draft article now copy and paste this in a markdown live preview and we have everything the same except we have the whole piece now understanding the agency sales landscape sales are critical to assess and growth of any agency they often present distinct challenges unique to agency environments agencies typically offer specialized Services making their sales processes more complex and Nuance compared to traditional product-driven businesses additionally sales and agencies often involve selling intangible outcomes and value propositions which requires robust communication strategies and Trust building efforts how would I rate that first paragraph great many agency leaders H misconceptions about the sales function frequently viewing it as informal out Pursuit rather than stry for process okay look good okay there's a problem here see this that's a problem voila we found problem number one why is that there why is key challenges in agency sales processes here and not lower there should be a new line there that makes me think there are more issues like this yes there are okay you know what I think I know what the issue is when you split things um and then when you join them back together if you want to nicely what you have to do is you have to add a separator in my case I'm G to add two no I'm not going to add two maybe I will add two now if I test this and I grab this output paste this back in here you'll see we have the headers awesome okay that looks fine that's true say that again Jesus okay very nice now um are we going to be winning any Nobel prizes for how engaging this content is no but the purpose of this content is not necessarily for it to be engaging how many times do we say the keyword we say it six times it looks like in this article and how long is this article just going to jump on wordcounter. net paste this in um 1500 words in total so six times 1500 words I mean it's not the highest density keyword but it's pretty good yeah it's pretty good and the reading level is college graduate which I like I don't like um overly simplified super annoying ass content so that's cool that's an article on the agency sales process we also have links right we have five links um some of them look like they're varied some of them say Source other ones actually have the source like embedded that's cool real human beings do this so really what's left I mean like we just need to add some images to this thing honestly yeah we need to add some images so why don't I go markdown image format um okay I should not have Okay so this is do we have an image here right we do um imager I don't know AG geny I'm doing this because I know that I can get an imager link really easily I'm just going to take this here and paste this in see if we could see it okay so we can so what if I just littered a bunch of these around right mastering the agency sales process comprehensive guide then basically if I just found space to do that I mean I know this isn't like the sexiest because I'm just pasting the same photo in there again and again but I just wanted to double check you know I can render this right so I think if I'm going to do something like this realistically um I should just have a convention where I do an image at the end of every section like I did this on my blog quite a while ago and um you know it's one of the ways that I did this I did SEO content now in this case um I was writing about how to use AI in say actually funnily enough so as you see I have like a picture of the ad20 some guy holding a mug that says the ad20 I had some rich text sections here that depend I had some screenshots some more screenshots this is of the old prompt I was actually doing make. com s back then very interesting and exciting right another post here very interesting these are um old articles that I've written on artificial intelligence before anybody knew who the hell I was check those out if you want they're pretty cool um or not so I need now to generate images and then I need to uh host the images somewhere and I need to have a link to the images that I can insert okay that's the whole goal that's what I need to do now so the question is how I'm going to do that well the simple way so I could just ask AI to do it like open AI get the images got to host it somewhere right so I guess I could just can I upload it to Google Drive could I download this image upload it to a Google Drive and then get the direct download link is that going to work that's fine take me to the folder come in the folder now direct download link Google Drive has a way where you can feed in the link to an item okay share link and then you can generate a direct download link which I believe can be visualized I'm just going to do editor just in case it just remaps the um the link a little bit so if you type this in you'll now go to a direct link that immediately downloads the file so what if I go back here and I paste this link in sorry that doesn't actually do because there's that's annoying obviously it doesn't um web view link Google Drive markdown maybe I just type that in okay I'm not really sure how I'm going to do that but let's just deal with that later why don't we start by actually generating the image and seeing what sort of quality images we can get I think what I'm going to do is I'm going to do some stylized stuff right so I'm just going to open up my little open AI prompt and I'm going to say something along the lines of generate me a stylized image of something that represents um handrawn simple handrawn on charcoal simple stylized handdrawn on charcoal

Generating the Article

uh of this piece of a something that corresponds to this article section and I'm just going to see if I can just stick it in there could I what do you guys think is that going to work is that all I need to do just say this exact sentence and then say make sure it's stylized like a pen I don't know we're about to find out no that's way too crazy man no writing no writing okay um yes you're going to write this again for sure was the problem here simple stylized handrawn pen squiggly lines this session Rules to This section of an article below rules no text extraordinarily simple minimalistic one three I don't know three pen Strokes Max I don't know these are very specific instructions that the image model isn't going to get minimalistic cute of a subject that corresponds to the section of an article below rules no texts extraordinarily simple minimalistic as few pen Strokes as possible um I don't know man I might just want to use something else for this like mid Journey or something Dally's just always sucked to me anyway also I should note that when I feed this into chaty BT it's not actually just taking my word verbatim that's perfect that's exactly what I wanted you see this holy perfect oh man that's perfect I wanted something cute I wanted like stick characters I wanted it I mean it's say sales pipeline there H it's little writing assumably possible this is this is exactly what I want okay this makes me feel confident that we can actually get this done okay is it going to be perfect probably not no but this makes me feel confident we can actually get this done if we do it Tastefully we do it in a few places so we got my six items right uh I'm just going to add a limit so that I don't have to do this again I'm going to set the limit to one by doing this only the first item is going to make it through here now we can go back to open Ai and we can generate an image I'm going to select my credential the resource I'm going to generat an image generate model is going to be Dolly 3 and I will paste this in generate me a simple stylized image handdrawn pen squiggly lines cute of a subject that corresponds of a subject should correspond to the section of an article should relate to and correspond to the section article blow section let's feed this in now make sure it's cute and simple respond with an image URL hell yeah test the step should now just be doing it on one because we're feeding at one this is an introduction about the agency sales landscape might draw me something about a landscape who knows let me check if these image URLs are directly linkable if they are boom we got our article that's going to be perfect revised prompt Helm or a beacon perfect so if I paste this in now oh no text how do we stop this text no text please no text style maybe there's a style hyper real and dramatic okay uh natural looking or hyper let's try hyperreal and dramatic maybe that'll sorry hyper real oh I don't want oh man I don't want actual hyper real my bad I clicked the wrong button there we are certainly coming up on some lengthy maybe I should say the word blob that actually looks pretty cool it's not that that's not bad at all right honestly not terrible um okay well with this URL paste the sun can I just link it directly back to markdown live preview paste the sun oh I can that's dangerous look at that ain't that cool beautiful man so stoked about this awesome it'd be nice if we had some unified style for all of this and I think that would actually be pretty straightforward to do um presumably you would have to use the same batch of keywords um like minimalistic UniFi like there's doll E3 prompt Styles hand drawn I do something like this yeah that's fine no no no no all this is trash no most of these are this one's okay oh that's a drawing on like a piece of paper H we could do something like that watercolor pixel art you know imagine you make your style like watercolor pixel or like anime or something on your blog well then you just generate these and like sure it's not going to be perfect right there's some minor issues here shoes or whatever but like people aren't going to care they're going to say oh that's just a consequence of the fact that you're generating an image sorry um that's Consequence the fact of uh part of your style more than anything else I'm not looking for this though I'm looking for okay I'm not seeing anything here unfortunately this is cool I like this I like the watercolor I could try that um watercolored pixel art anyway maybe I'll just stick with what I have right now and then we'll just finish it and then I can give uh yall a primer on like different styles and stuff like that after so okay so what do we have here we have um all six items we're going to do the limit then another six items are going to pass we're going to generate an image for all six items then we're just going to aggregate all these okay so we need to do two input field names the first is going to be message. content. article section uh if you think about it do we need to even do this in like this linear flow like do I need to limit it and then produce this image are you using anything here that is super valuable or important for me yeah we are actually we're feeding in the content of the thing right that makes sense so we actually can't

Understanding Agency Sales Processes

um oh sorry I need to turn this into expression if I am to drag and drop a variable in here there we go right so yeah we are going to have to do it that way um but basically what I want to do after that is I just want to combine these two so I want have like a I don't know um aggregated message. article section was going to be a little bit further back right I guess I could just feed all item data into a single list I wonder what happens when I do that I don't think I've ever done this before no that just grabs it immediately from the preceding um node H uh what would this mean for me then well I basically need to grab the link from here I need to format it as markdown then I need to stick it or prepend it to all the or append sections here right so how am I going to do that when I aggregate them oh boy we got our we got ourselves a real problem here problem is uh I'm unclear on the data format that I should be using could I just feed this output directly in too will that work this might work what if now we just add all Fields into this thing okay so all item data is now going into a single list we are receiving this but where is the image data now maybe what we do is we do individual fields we do content article section we also do one here called URL no we just have an empty URL block what's annoying oh uh sorry I probably just use a merge now don't I might be in silly once data from both is available so I have to wait but then after I should be able to stream the sentence input one two right and from here I will output items of each input one after the can I just combine by position number of inputs two if I test this now what's going to happen revised prompt URL oh okay cool cool it should just only be feeding in one right oh well it's six in one H um I should uh do I need a there you go that's probably better this is starting to look a little janky but bear with me here so we're then going to combine these two and I just want to make sure it's the same one so we have both the mess message article section accessible to us and then the URL so that's good and I think I'm going have to do one more edit Fields node unfortunately to now do the formatting that I'm looking for which is section and image then the value of this is going to be what are we going to do here uh we'll feed this in first then down at the bottom I'll go URL in here and I don't think I need anything else just to be clear how do I do this drag racing this is where the caption goes if I just remove the caption does this break anything no it doesn't cool so I should be able to test this now the output should be this alongside two new lines one two and then the image I don't think we actually need two new lines there but that's okay all right now that I have all this I'm going to be outputting six items right I can delete this feed this into the aggregate node right du then I can just aggregate all item data into a single list now we're going to have one item but it's going to be section an image here under data and then we could set the draft article as the title and then json. dat is probably what I need right it'll be data do jooin uh why is why am I not seeing this Jason data right dot BL really h no we we'd go jason. data. all do join I'm not seeing this probably because sorry Jason do um I'm oh I'm not really sure why I'm not seeing this to be honest okay let me just run all this once so now I have the title that's fine oh you know what let me just run all this actually two times so let's change the limit to two yeah let's just let's test this fed six in here we're going to be taking out two so I going to regenerate this too it's going to generate me a couple images then we can run the merge node after the two image Generations is done that should help then from there uh I believe I should be good to continue on and then wrap this up with the images and then um yeah then after that we should be good to go so just keeping track of time here we wrote the content using the LM we've now created stylized images using AI we just need to queue up the post to figure out that formatting and I'm just running through the testing flow and I know I don't need to do this but um I just wanted to so that I could see things one by one I like going node by node wherever possible so we're just going to unpin this uh I'm now going to edit the fields so that we have two items with section and image wonderful we're now going to aggregate these two items into a uh list containing two items data zero data one we're not going to set this draft article okay what we want to do well what we need to do is we need to join them so I'm going to go Json that'll be the last data now it's data is already uh an array so we can actually just join this immediately h um no we need to flatten this actually okay well we could map this I guess that's fine why don't I just get item we'll just go item do section and image okay so now we have an array which is just like a list of all of this right which I've now mapped then I think we can just join this now maybe with an extra new line and I do think I actually need an additional new line when I split this or add this I should say that'll be easier it'll look better we'll then aggregate this I'm going to set the draft article with the two pieces sorry we don't want that we want this cool yeah now we have the image here awesome so yeah that looks pretty good uh oh uh and then you know I don't think I need that that's what I didn't need that space between that and the title nice very cool very clean I should say starting to really come together cool so that's the draft article um H what I think we should realistically do now is just going to save this uh we have basically everything we need it's just a matter of how do we get this on a page somewhere right I think there are a variety of ways uh let me just check if there's like a WordPress thing I already create a post in WordPress and then if I were to let's say update that post in WordPress or add text to a post or something content the content for the oh you know I'm going to have to do a connection if I want to do that guess we could go Google Docs as well uh but then I have to update the document with text insert can I do HTML can I just insert the entire article into a Google doc I actually don't know how to do this so we're going to find out together we'll go Google Docs we'll go create a doc now I'm going to create a document um just right over here in my normal slash and then the title will just be whatever the I don't know I'm just going to say example title okay test this from here we're going to have an ID and a bunch of stuff that's fine now what I'm going to do is I'm going to feed this into this Google doc ID is just going to be this which is going to be hardcoded basically simplify what's this oh yes then if I just take the whole draft article and just feed this in now okay what exactly would happen what the hell would happen here just going to go and navigate to the specific ID of the specific piece we have the whole thing so that makes me think we'd probably feed in HTML too right so why don't I now take my mark down convert it to HTML feed in my draft destination key data fine add blanks to Links no automatic linking to URLs um no backs slash no okay there's a lot of options here I don't know which one is which so I'm just going to try without any of this is my data it outputs the draft and it outputs the data that's nice so now we're going to create the doc what I'm going to do just going to feed in this okay unpin node Google Docs one and execute oh yeah my bad um I need to unpin this and then I need to create a new one that's fine um this is my example title here so I'm going to delete this now go back here okay we're going to create a new Google doc over here we're going to update that Google doc and then I'm just going to no that's not right we need this to have HTML in it we need to create a document using HTML basically and then it needs to be formatted so why is this not formatted H text insert footer header named range page break paragraph bullets table okay that's not right update Fields I'm not really sure what that means looks like I have several hm okay well I might be a little limited here um Google Docs naden HTML H nobody replied to that guy okay uploading an HTML document in order to create a new Google doc is not supported that's fine could I maybe use the Google Drive nodes for this create a fall from text maybe you try that here well let's give it a try why don't I just paste in a bunch of HTML let's just go direct to the markdown node and we'll just test this just grab all of the HTML here from the beginning to the end go over here paste it in maybe I need like the actual full thing now that I'm thinking about it I don't know we're going to test this anyway it's probably just going to be a text file realistically right let's go here what was this called we need to get the name is just x x. com um this is a Google doc open with Google Docs this looks nice right that's that looks pretty good ah oh the hell that actually looks good why does it look good from the outside in that's perfect H not really sure what's going on there but it does look pretty damn good but then when we click on it doesn't look good H well we need some sort of deliverable folks I don't know how we're going to do this deliverable if I'm being honest I need something that this thing dumps to generates to I need some I do markdown for Simplicity but I need something could it be that um this needs to add complete HTML document that'll generate me the dock type HTML then when I update this it'll be bigger that definitely didn't do anything what if I grab all this and then pump this into this Google doc now just see if there are any examples convert to Google doc oh maybe this is it convert to Google Document test step okay so I I've made a couple changes here I've added like a full HTML document with a bunch of stuff so they may not actually be call this html text HTML example no maybe if I remove this now if I go back to markdown and then I do not do complete HTML document then where it says Google drive what I do is I actually just yeah sure I'm going to execute all them again I don't care then I'm going to feed in this markdown full HTML supposedly not full HTML document then convert it how about that maybe no things ain't looking super good for us what's ap properties I don't know what the hell that means okay so it looks like the way that you actually do this is you will convert the markdown to HTML which is hypertext markup language it's a lot more understood by um Google and a bunch of other platforms then you need to create the Google drive file from um the text that you provided in in HTML here so we stick that right over here then after that we download that file for whatever reason with an HTML file extension then after that we upload that same file which is kind of annoying uh but that's what you have to do and then you know you can also do at the end here so you can delete that first file right this Google Drive create from text file so I'm just going to go back here and then I'm going to go by ID delete the file from this Google Drive the reason why I'm doing this obviously uh it's just because this is kind of a hacky thing that I need to do in order to make it work kind of blows but yeah create the file download it re you know upload it again then delete it afterwards Lord Almighty um but yeah the end result is you end up with the file right over here which if you um sorry that's not the file you end up with a file that if you top right hand corner go open with Google Docs it'll open it in Google DOC format which will look something like this we can see we have our images in there as well now our images are pretty big not going to lie don't know if there's a way to set um custom image sizes if there is I will figure it out but uh you know you basically now have everything that you need in order to write the whole blog post essentially and it looks pretty good right aren too many issues you see there are links in here they're nicely done they go directly to the resource you have um images of the specifical uh the specifical the specific uh little things that we generated earlier which are usually just blobs and kind of cute shapes and stuff the headings there's a good spacing here between elements maybe we go add space after paragraph before and then after as well um you know there there's a lot going on looks pretty so that's cool uh a couple things we need to fix we need fix the titles still says title example so when I was bugging around I obviously did a lot of BS here what I'm going to do is I kind of got to grab the title right so I'm GNA go over here where it says mastering the agency sales process okay then I will go back to where I do my title will be um do I need this just separate it by based off new lines and then I can grab the first one that's probably the easiest way to do it then I could just replace all instances of um dollar signs or Hashtags with uh nothing still have a space there though I don't like that I don't know why okay anyway um that solves this particular case but as I've mentioned before you know there probably going to be some issues uh with other ones but Okay cool so we have the title now which is nice that's done when we download the file we're doing so with these options I'm just going to get rid of that then when we upload the file we obviously need we need the same thing so just going to copy all of this come back here I'll upload it all again get the same title oh you know what we probably need an HTML here don't we if we don't have the HTML it'll probably hate us there you go same thing when we do the upload then we go back here to delete file we want to do is just want to use a schema view so we go back to here where we generated the item in the first place and we can delete it um it's telling me that we can't find the specific item so let me go here I'll go all so now we have all of these items now I should be able to do first I should also then json. ID cool and we should delete that previous item because it's ugly and we hate it then finally we need some way to notify us right so maybe what I'll do is I will email it why don't we do that I send a message I'm going to send that message over to myself nickit left click. a and then I'm going to um simply ask here your content is ready your content then in Brackets I'll include the name maybe we will do oh I wish we returned the title oh yeah we do return the title that's cool yeah so your content which will in this case not be title example but um it says so now but when we actually generate the content it won't be so your content is ready hello you you'll find your content at the following link uh one more thing we actually have to do unfortunately is we have to get a share link from Google Drive so I know it's a lot of Google Drive nodes here but we have to it's called share file basically we have to do is we have to feed in the ID of the file we just um not the one we just download sorry not the one that we just um deleted what we want is this one here Google Drive to the one that we created so voila the permissions are going to be reader to everybody okay and then once we have that link which we need to test in order to get the data I should now be able to grab the link from this um where the hell is the ID is not anyone with link come on really that's obviously not the actual ID of the file oh email message oh that's really cool you know what we could probably just sort all the stuff out send notification email and just say hi your file is ready then what we could do is we could actually just email it directly to the user and where we'll get that email so from our form input which we will feed into guess we got a feed it into both here so have a variety of different ways we can trigger this flow this is my testing one this is sort of my real one with the form input going to be feeding in the keyword from on form submission let me just make sure that all of this is correct keyword I'm just going to feed that form submission in there then ract their outlines markdown format cool cool that looks fine just make sure that the citation flow also works with the following keyword it's grabbing Jason keyword from I'm just going to feed this in as well I guess that's also Jason keyword so it'll oh okay I got it should perform the same regardless of whichever one we use to trigger very nice um and then I want to add one more thing here which is obviously the email address so we go email let's go lowercase here also make that required now I'm going to test this unpin it and test it's going to open up this I'm going to say agency sales process email is going to be Nick left click. uh I'll use my other email here that way it emails me from nickol left click. now we have an email node or an email variable this technically won't be accessible at the end but I'm just going to stick it at the end regardless um okay let's just let's think really deeply about this how the hell are we going to reference that file all the way over there so one sec this should still have access to the few nodes before right so let me just see how this is formatted me just stick this here for testing purposes email was on form submission Okay cool so on form submission item. json. Emil I think this is probably going to work if not it's not the end of the world I can always just update it afterwards but on form submission item Jason email hi your file is ready find it at this link cool all right we got some renaming to do here so this is going to be create um create HTML file this one here will be download to nadn re-upload to drive this one here will be delete HTML file this one here will be share link let's do share link and email okay for limit I have the set at two so I'm actually just going to if I can leave this blank do I get all of them let's just do 100 all any other limits I need to be aware of doesn't look like it cool I should now be able to test this so if I just delete this if I just like select all of these nodes and then press uh U for unpin it doesn't look like I can do that that'd be sweet if I could have but I can't G to unpin unpin unpin and we are now that we've done uh testing kind of one by one we're actually going to do an end to end test using the form submission um I guarantee there going to be some sort of issue here um I always do this anytime I want to make a flow live I have to end test it if it doesn't make it all the way through uh variety of reasons why that might be like if you think about it I'm generating a lot of content with gbt 4. 5 here and I'm going to be doing a lot of it in quick succession so rate limits could be an issue the way that I'm calling variables could be an issue I haven't verified that I have these four Google doc five Google doc calls in a row which um you know the Google Docs sorry Google Drive API is very notorious for being slow and crappy yeah iety of uh variety of potential problems here let's just make it abundantly clear what's first this is first okay so now I'm going to test this workflow keywords agency sales process emails Nicholas gmail. com I'm submitting okay we're now finding outlines just going to run that one first extracting and formatting the oines we should be feeding from this though I'm not sure why that's not feeded did you find citations why is this not finding the citations should find the citations immediately are you having a problem little one okay well anyway so uh what where did we get to here so we un form submission here um just in case this might be causing a problem of some kind let me just unlink this for now we found outlines we also sent data to find citations we have yet to start this for whatever reason not sure why anyway after that it looks like we extracted and formatted the outlines what did we feed in as an input we have find outlines over here it says items exist but they're empty so very first thing I want to do during this debugging is I just want to figure out why this didn't run so I'm going to pin this which should have all of the data that I need respond when the form is submitted sure that's fine oh I guess I could actually have just like inserted um responded with the form that's funny anyway whatever I'm G to pin this I don't know why this isn't working right I want it to grab both so I'm just going to test this now okay so in order to run this I need to have both pieces of data that seems fine I'm not sure why I couldn't do that uh why I didn't do that initially I'm just going to disconnect and reconnect them cuz sometimes I find that in platforms like this happens I don't know if that's the reason why this didn't work but we'll find out okay so there was some issue here with the generat batter outline looks like an expression references the node test flow but it hasn't been executed yet so where are we getting that from ah I see we are getting this from test flow okay the test flow Noe so odds are there's probably some other issues with this that rely on the test word um the test flow node so minor issue but that's okay that was the whole purpose of this right we're now going to generate a better outline and while I'm at it I'm just very quickly going to verify that there is no test ah there is see you could see it right here so I'm actually going to go back here get that test flow variable and just replace it any more test flow no don't see anything here test flow no I set draft article test flow okay no I don't see anything else anywhere here so I think I'm okay on the test Flow side of things I am of course generating quite uh a chunky outline here looks pretty solid um but that's not enough you know I don't want to just generate this piece by piece again I actually want to run through the whole thing so what am I gon to do I'm actually going to delete all of these then I'm just going to unpin this and then I'm actually going to test this workflow again we're going to do the exact same thing I just did agency sales process GL gmail. com cool now kicking back the response has been Rec oh why the hell does this keep on happening I don't like that I thought I could do this simultaneously doesn't look like I can it looks like this is going to run without this so this data isn't going to be accessible that kind of blows I've totally done this multiple times before so it's odd that I'm not doing both yeah so this is not going to be able to reference the find citations now okay well whatever I'm not going to think too much about it I'm just going to remove this and then place this in between these two now this is probably going to be referencing json. keyword which means I'm going to have to actually go and hardcode the keyword in using this there you go okay so we should find the citation afterwards instead of json. choices. message. content what we're actually G to have to do think about it so we're gonna have to ex so I got to execute all the previous nodes again which kind of sucks but is what it is um let's go here execute the fine citations note okay we got it now so we can now go here this is now the last node which is good oh sorry this actually is not this is not correct so what we need to do is we actually need to replace this with the outlines right so I'm actually going we'll go choices zero content there we go nice okay let me see if we need to remap anything here do we have to remap anything um no that looks fine Jason key word citations nope that looks fine okay I think we're actually okay now let's do this one more time agency sales process Nick nickis I left yeah gmail. com I like how you can move stuff around in nadn while you're um while you're playing with it it's cool can't do that in make we are finding the hell out of these citations we are fining these citations so well ladies and gentlemen that we didn't even get an error in the extract and format outlines node that is some energy wonderful that will generate us lay out lines now we're just doing in one item here but when we generate a better Lin still going to be one when we gener when we separate into sections though it's going to be a lot right and we're going to have to write six sections simultaneously so if there is going to be an issue I anticipate the issue is going to be here this is just one call with gbd 4. 5 right not that big of a deal I would love to get myself a button that I can click anytime I want uh that plays Jeopardy music and then every time I have a weight like this I can just click a button and it goes or maybe I need like a hat or something you know like a funny hat funny waiting hat I put on like the waiting hat maybe on top there's like a clock or something on set hat that'd be a really funny mini game anytime you watch my content would keep you engaged as opposed to just looking at a little wheel should be fun uh but yeah we must wait for the outline to be generated and I am a very lazy editor so I prefer not to have to edit stuff like this wherever possible so if I could find a way to make it super engaging that would solve my whole problem okay generated the better outline looks pretty good here I'm not seeing any problems I'm seeing links that's good we're separating them into sections introduction this looks good basically the exact same thing that we were doing before very different article to last time we split them out these are some very in-depth outline sections very nice so now we're writing section by section we're doing all nine simultaneously if I open this up um one unfortunate thing is you can't see the nodes as they are being generated but they certainly are no limiter here so this open node is going to generate some images we're then going to merge them anything that I can just get ahead of while I'm waiting looks pretty good I mean like you know ideally we would add um metadata so the image URL would not just be a lone image URL we'd have the image URL plus we'd have uh some caption but it is what it is and I am very curious to see what sharing that image would look uh sharing the final product would look like uh it'll be kind of a waiting game because I'm sure we're going to run into some issues during the generation of this puppy okay we've written the sections looks like we had nine items come in very cool if I now look at the output first section looks formatted well can't really say much more than that but yeah it does look formatted well second third and fourth sections look formatted well what we're doing now is we're generating the images via open AI um and you know what maybe the reason why I thought that these would both run simultaneously is because I'm used to doing two inputs to emerge no like this so now that I think about it I probably could have had a merge node where I merge these two together and then feed it into Ai and I probably would have run but to be honest just a I'm just saving a little bit of real estate there no major problems or issues I'm surprised that we haven't ah okay there we go we have now run into yes an issue maximum length is 4,000 characters cool so that's very good to know maximum length of the section is 4,000 characters what was the issue that led me to being over 4,000 characters H what we should probably do is we should probably just summarize this feed the summaries into open AI instead of this should I do another model call if we are really getting in the thick of it here but I could what that would look like is I would simp I have a simple prompt that just say hey summarize the section summarize key findings in this section basically then I would feed that in here and then instead of it being 4,000 characters like it is now by the way 4,000 characters is about uh 700 words or so really 7 words I fed in 700 words in this thing which one man I see nine items here but which one let's check the output of this 700 words I don't that doesn't look like 700 words to me 4,000 cares two words yeah man wild what the hell is 700 words okay might be this one this it's pretty long no still not that long you know what it might be maybe it's a word limit a rate limit thing H yeah I should probably do that I haven't really touched on debugging at all not even a tiny bit bunch of different ways we could solve this problem I could generate fewer no I think I'm going to have to just generate very short summaries I do want an image at the end of everyone okay well what I do this then why don't I add another module here just call it open AI going to say message model it's going to be a very dumb model to minimize character limits gbd4 a mini minimize cost as well you a helpful intelligent writing assistant then I will say summarize this into five bullet points then I'll will feed this in I will simply take summarize the below section article section into five bullet

Summarizing and Refining Content

points return output in Json I'm going to say summary uh let's not do bullet points okay I'm then going to go user going to feed it in article section um here then I'm going to close that outp put the content as Json in summary I will then test this once oh crap it's going to test nine times uh yeah that sucks man can we just stop this stop for the love of God man stop all right I have confidence that that's going to work so what do we do inside of generate we open this up and then we want Jason oh uh actually it's kind of annoying I kind of do want to test this can I grab a piece from one of these articles let's go back here now Let's test this just so I can get a feel for what the output looks like content summary right go back here paste that in now because I have this I'll have access to the content summary down there which means I'll be able to just drag this in Easy uh easy pey lemon squeezy now going to test this with my very short summary oh right it's probably 4,000 characters with all of the prompt there test this with my very short summary is this running more than once no it's just running once cool we got the cute little thing with the Sals perfect nice so now we can just feed this limit in we're going to take as input the article section that we've generated from here okay cool all right uh awesome so let me just do this again yeah I'm just going to Contin continuously do this till I get further and further along um do I recommend sorry do I like testing and spending God knows how long doing this no I don't but um is there any other way to be sure that the system does what you want it to do first you do node by node testing just like we've done but next you have to test the entire performance of the unit as a whole like I'm doing now so no there is no other way to do it I'm just going to keep on doing it until I uh brute force my way through this and then eventually finish it okay and it looks like we are now good to go with that um flow started and finished in think it's like two and a half minutes or so it does take a fair amount of time to generate one of these puppies the end result is over here you'll get a little um Google doc thing that looks like this with the hdmo once you click open with Google Docs it'll be here I'm just going to add a little bit of formatting to this because I like the way that it looks technically you can do this through API as well you could get the ID of it and then like add a bunch of your pre formatting rules if you want and I'm just going to look at this right now and kind of verify that this isn't um this is what I wanted so it does look pretty good aside from the images I will say images are certainly the weakest part of this because let's be real none of those words make sense why do real words when fake words do gter repeatable scalability training SC scannon I mean these are cute as hell they really are I just wish there was some way to like turn the text mode off or something man be so much easier if it was just all stuff like this is perfect this is all you want right like imagine if you had a Blog with just a bunch of this stuff oh fantastic but we don't uh it looks like we also have one generator at the end I could get that get rid of that I don't think I will that's fine look how happy he looks oh he's like holding a little happy guy all right so a clearly defined sales process plays a critical role in the success of any agency we're I'm just going to proof fre it myself um because I want to make sure that the content is actually okay if not I can pass this whole thing all 2450 words through another prompt clearly defined sales process Place critical and agency structure framework okay right structured sales methodologies very cool yeah sweet I'd give this like um 90th percentile content better than a lot of people that I've worked with you know I run a Content writing company of course you know to be frank the value of content is going down um just because the supply the demand for Content goes down concommittant with the supply going up so uh you know I'd keep that in mind right like you used to have to pay several hundred to get an article of about this length with you know reasonable quality copy like this that was not copy and pasted now you have ai do the quote unquote copy and pasting some people would disagree on whether or not it's plagiarism or not but yeah so listen I've read most of this looks really really good um actually better than I was expecting I didn't think the quality would be this good so that's really positive super positive actually um I want you guys to know that I've generated this as a Google doc but you can generate this in whatever means you want you don't have to do it as a Google doc like I'm doing here um you could theoretically hook this up to Wordpress okay in WordPress you upload HTML and it is formatted just like this just without all the that I had to deal with um from you know this section over here onwards so you could actually just get rid of all that and just feed the mark down directly into the WordPress module you'd be good um you know if you wanted to instead feed in what do we got a web flow site here right You' create an item inside of web flow now I don't know if the formatting is exactly the same but you would probably have to make some formatting adjustments markdown itself probably wouldn't work um art HTML may I don't know what let's just double check this really quickly before somebody gets me in trouble use the API to create a post yeah I'm not really sure about that but um you know I guess what I'm trying to say is there are a variety of cms's that do this sort of thing for you content Management Systems you could use one called like content full that's what I used for quite a while story Block it's pretty big um and there are a few more as well if you're hosting your website anywhere else a WordPress engine no I don't believe you could do that but strappy was really big I used that for a while so whatever the formatting is of the thing that you are uploading your um blog post to you know obviously you'd have to cater to that with that last section but uh yeah that looks to be the flow so what I'm going to do here is I'm just going to briefly outline the sections as I've mentioned and then I'm going to upload this you'll be able to find this file anywhere in maker School inside of classroom inside of resource Library so you'll have access to all of the blueprints that I am going to be doing on naden from here on out there um and all you need to do is sign up you can sign up for 5 minutes if you wanted to download all the blueprints and leave obviously I don't recommend it and I'd like you to stay for longer but just to be candid that's kind of how it's kind of how this works so this is going to be the formatting so I'm just going to say platform specific this will rely on your on the particulars of the platform you uploading to for demonstration purposes I've created a Google doc file but you could upload to Wordpress web flow a CMS like content full Etc that looks pretty good over here I will drag this saying using a form input here no I think I'll just discuss that I'm using HTTP requests and it then now has the um web search model built into their open AI nodes so you don't need to do this an h a direct you don't want to I did though just for demonstration purposes and because I'm a but hey what are you going to do um let me see what else should I document here H oh yes this image model

Image Production Insights

here I've used doll E3 for the image production but note that there are some issues with this that in my humble opinion and you can certainly fix most of it with prompts but probably not all um not that there are some issues with this that in my humble opinion reduce the output quality of the article hot Swap this with another image generator perhaps something on foul file. a generative media platform for developers or an unoficial mid Journey API cool that's going to be that information then yeah I believe you guys now probably have everything you need in order to make this good right let me just make this a little bit bigger so everybody could see it um and I just want this to line up cuz I am kind of weird about that stuff so let me just make sure that we are perfect yes I think we are perfect cool awesome guys I had a lot of fun putting this puppy together I'm just going to save this right now and then I'm going to export or download this blueprint we'll call this deep oh yeah sorry obligatory Ching um had a lot of fun putting this puppy together I'm just going to save this file just that everybody here has it from here on out called Deep content generator and as I mentioned I'm going to be posting that on maker school hopefully you guys got to see the behind the scenes of what like a an nadn development process looks like keeping in mind too that there are many situations in which I stumbled right like I ran into a couple of variable errors where I didn't realize that I needed to name a specific item in a list as opposed to just the entire list I've been building stuff on no code platforms for the better part of the last eight years or so now like I'm very familiar and very competent with these things but I still have to go look up the documentation day by day don't think that anybody um regardless of how cool and sleek and amazing they may make their YouTube videos out to be out to look from the outside perspective don't think that anybody doesn't do that because we all do developing stuff these days is not really about knowing all of that information because the landscape just changes too quickly for you to really be able to sit down study everything and constantly have the right way to do it at the top of your head instead good developers on any platform form or using any programming language they're Adept at finding the information that they need and then employing it they're Adept at recognizing patterns in the way that things are built and then using those patterns in new and unfamiliar environments so thank you very much for watching all the way up until the end of this video as I mentioned if you have any questions to drop them down below if you guys want content if you want blueprints like this check out maker School otherwise I've given you everything you need in order to walk through it on your own you could screenshot this and drag and drop the nodes go to the specific parts of the videos and try and do it all or you know you can jump on the monthly subscription download that and then also get a bunch of additional bonuses like coaching with me uh you know Q& A directly in the Forum I'm not going to Yap your year off your ear off but uh that's that if you could do me a big solid like subscribe do all that fun YouTube stuff I'll catch you on the next video thanks so much for the time bye-bye

Другие видео автора — Nick Saraev

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник