\nDay One: Adding AI to your Content WorkflowDay Two: Solving Code Problems with AI\n\n\n\nAs an iThemes Training Member, you get free access to this event!\n\n\n\n\n\n\n\n\n\n\n\n\n","EventOrganizerNames":"Nathan Ingram","inline_featured_image":"","livestream_public":1,"is_multi-day_event":1,"livestream_zoom_registration_link":"https:\/\/us06web.zoom.us\/webinar\/register\/WN_6reEXDmWT3qQuUtdktFQwg","livestream_replay_set":0,"livestream_live_transcript_text":"Glad you're all here so many fun things to share with you over the next couple of days. Slide link is in the chat one more time. If someone would please just cut if you wouldn't mind copy that. Link for the course handbook to share with folks who come in later. That would be very helpful to me. Okay, let me get all of the windows dragged to their appropriate locations. Right Y'all ready to start? We ready to go AI. All right. Here we go. Well, good afternoon. Good morning. Good evening, wherever you happen to be. It is Tuesday, October 24 And it's time for the WordPress AI workshop here on solid Academy. So glad you decided to join us. I've been super excited about this course now for a few months, because we started to use chat GPT in our workflow on the agency side. You know late last year, when my mind was blown at how chat, GBT could create WordPress code just like that. And it worked. It was amazing. And we started using it ever since just for all sorts of things. And some of that has worked its way into office hours and answering questions and generating code snippets and things like that. So I thought why not? Let's just do a whole course on this and spend about four hours looking at some of the ways that you know, AI can be used in our workflow to make things easier, and there was a mention in the pre show about some of the ethical implications of AI and all that's out there. That is not what we're going to be talking about this time. It is certainly worthy of some discussion. But that's another discussion for another time. So I'm glad you've joined us if you're watching this on the replay down below the video, you'll find the link to download the course handbook which you see on your screen. Chris has kindly dropped that into the chat again just now if you're just joining us in zoom. So we took a poll as we got started about you know, what was your comfort level using AI most folks were kind of in the middle, some lower some very high. But no matter where you are with your comfort level with using chat TPT in particular, I think you're going to find some interesting things in this course. So I'm glad you decided to join us. And as always, the replay will be available after these two hour winds take a little bit longer. So roughly an hour after we wrap up somewhere around there. We'll have that replay. Up available for you certainly by this evening. So you can go back and rewatch if, if you'd like so let's dive in. Now this is the course handbook. It's 23 pages. Got a nice little table of contents here. This is where we're heading over the next couple of days. I've got some pretty important and well defined course goals here. So this is not by any means meant to be an exhaustive treatment of AI if that's its, you can't you can't even say this is an exhaustive treatment of chat GPT because it's there's just too much to learn. And in four hours, there's just no way. So here's what we're focusing in on. Number one, just to understand the foundational principles of how these things work. That's really important because if you see how things are set up, then you'll learn how to use it better. So that's what we're going to focus on, especially in the first hour today. Then we're going to focus on how can we start to use chat GPT for content creation. Now there's a number of AI tools I mentioned, especially in the first hour, most of our work in this course is going to be focused on chat GPT because that's the most ubiquitous AI tool out there. Most folks are using it, most folks understand a little bit about how it works. So that's where our focus is going to be. But just be aware, there's a lot of other ones that I'm going to mention as well. So our two today is all about content creation and some of the cool things we've learned using chat DBT in that realm, and then tomorrow it's all about code. So in the first hour, we're going to focus on really how do we get chat GPT involved in our website development process and really, you know, in our ongoing management of sites, maybe we need some code snippets or things like that. And Chad gptc does a great job. At those sorts of things and also does great troubleshooting errors. So day two, we're going to look at chat TPT in web development, and then this is ambitious, but in the second hour, we're going to try a live build of a WordPress plugin that solves a particular problem. So this is a workshop meaning a lot of what we do. The first hour is pretty scripted as far as we're just gonna be following the handbook. But as we get into the content piece in the next hour and then especially tomorrow, it's gonna be really into chat GPT using some things I've given you links in the course handbook to a lot of the chat GPT threads and we're going to use those as reference but also kind of building on those as we go so we have a long way to go over the next couple of days. So glad you decided to join us and I hope at the end of this you will find that you've got a brand new tool that can do lots of different things for a very small price. I mean, 20 bucks a month, y'all that, you know, that's not a lot to do what chat GBT can do. So let's get into it, shall we? Let's start with just let's get the lay of the land. Very, very important. Just foundations of how AI works. So let's spend a little bit of time on what is AI What is this thing and how it actually operates. So AI Artificial Intelligence refers to machines. Or software that can perform tasks like the human brain can perform tasks. Now, as I mentioned in this course, we're going to be mostly focused on chat GPT but there's lots of other AI models that are out there. Ai especially the machine learning models like we're using, have learned from vast amounts of data, rather than being explicitly programmed like you would think of old school programming of do this, this, this and this prescriptive order. These are models that are trained on large volumes of data, and they have the ability to process that and think through it. It's kind of scary, in some ways. Many advanced AI AIS like chat GPT use what are called neural networks, and these are combinations of chips and code that function a lot like the human brain. It's it's really pretty, that's kind of scary and amazing all at the same time. So AI models are first trained on data, and then we query them to get the output that we want that query is called a prompt and prompt, look, prompt are the key to getting the most out of AI. What you ask and how you ask it in the context you give. That's how to get the most out of AI. Now you may have seen this term generative AI, that's a specific kind of artificial intelligence chat. GPT is a generative AI, it can produce new content based on what it already knows now chat GPT is trained on the internet, like the whole thing up until a certain point in time. So it knows a lot of things and it knows a lot of people and facts and it can you know put answers and text together in really creative ways. So these kinds of modern generative AI is can handle a range of tasks, from image recognition to text generation, and everything in between. But while AI is powerful, it is not infallible. And if you've done any work with AI, let's just hear from you in the chat. How many of you have been doing work in AI and you realize this thing has gone a little loopy, like it's making stuff up? These solutions are not working. And the more I'm using it in this conversation, the worse and worse and worse it gets. So those are called hallucinations. They are real thing. And that's part of the deal where we are at the AI tech level right now. It is not infallible. It can make up things completely. And so we have to be aware of that as we use chat GPT and other generative AI models now, a lot of the, the well the results we get and sometimes those hallucinations are based on the prompt we give in the way we interact with it. So we'll be trying to work our way around some of those things, but we might find in our work in this workshop, that it makes some stuff up and we see those hallucinations pop up. So\r\n\r\nAI models can reflect and even amplify the biases that are present in their training data. So depending on what information was used to train the AI biases that went into the way that information was, was written and presented, can also be you know, that can come through in the AI. So, you know, AI is only as good as the information that was put into it. And so sometimes you get bias. And so that's where we get into the ethical questions and that's it's those are important questions to hit, sir. But we're not going to even touch on that. In this course, what Stacy's saying is that hallucinations and not lies. I mean, it's not really a lie. I think why is have to be intentional. I don't think chat GPT intends to mislead, it just loses its mind sometimes it hallucinates. So, why is all of a sudden AI a thing? Have you ever asked yourself that question like all of a sudden, like we were living in a world without AI and then boom around November of last year? Everything's all about AI? Did you notice that? I all of a sudden the whole world is talking about AI it was really with the release of chat GPT or not. It was right around this time last year in November of last year. So let's look at an understanding of how this works where it came from. Why all of a sudden AI is the thing because that's going to be helpful to us to understand what we're dealing with here. So AI has evolved from bad to worse a basic, you know, less advanced tools like the Amazon device that is sitting on my left that if I say the name Alexa, get might wake up now don't want her to also Siri and Google's assistant. And then advanced AI is like chat GPT it seems like it's all happened overnight. But AI goes all the way back to the 1940s that's where it was some of the initial foundation pieces of AI were laid. So there's a few things that have led to this quick, seemingly explosive development of AI since late last year. So the first of those is this refer that there's been a refinement of the concept of the neural network. So these were things that had been around since the 1940s. The you know, a lot of government entities had built start we're starting to build, you know, room size computers that were linked together and could think together and process together. But there have been some significant improvements in the way these neural networks operate. That's led to a lot of these advancements. There's also this thing called backpropagation. So this is really key to AI and actually can help us help chat GPT get around the hallucinations. So back propagation the way this works is AI works through some information to get an answer and then it sort of tracks backwards before it gives a response to make sure that it's correct. It's remember like in the in elementary school, you would do a math problem. And then you would check your work like it was an addition problem. You did subtraction to check your work. It's kinda like that. In the AI sense, and it happens quickly. But this helps AI to refine its responses and get better. So back propagation was something that was introduced in the 80s. It's gotten a lot better recently. Maybe the biggest single change that has ramped up AI's ability is this thing called transformers, not like more than meets the eye. Optimus Prime. These are this is something that was invented by Google in 2017. It allows the neural network you know this this cluster of information that's being processed by computers connected together. Transformers allow a neural network to understand a whole data set. So the data set for chat GPT being the internet, how do you process that information or in earlier AIS, maybe it was this giant folder full of PDFs that had all this information or whatever and you would train the AI on this. What a transformer does, is it helps to build relationships between the different bits of data in the data set and start to make some sense out of it. So smart people at Google figured out how to do this back in 2017. And that was a major bump. Up forward. You started to see Google's AI and Siri and Alexa really starting to do better, right around 2017. The single biggest deal has been advancements in hardware. So the graphic processing units that were originally developed to do gaming gaming computers, the GPUs made by companies like Nvidia. The processing power in those GPUs is immense. And perhaps you've heard of these GPUs being used to mine Bitcoin and create cryptocurrency because they can process the kinds of activity that build cryptocurrency a lot faster than a typical CPU, right, your, you know, your the chip that's in your computer. And these GPUs have just supercharged the amount of data that AI can process and AI works better with the GPU parallel processing that it does in an old standard CPU. So as GPU strength is increased, then all of a sudden we have these transformers that have gotten neural networks have been proven out and made better and all of a sudden, boom, there's just this possibility that has never been there before. And then somebody realized that wait a minute, if we train AI on more than just our own internal corporate library of documents, but if we train it on a larger data set like the internet, it's actually better. Like they used to think well, if we give it too much information, it won't know what to do with it and the responses will be more bland. But actually what happened was it having more information with the with transformers that can make connections has allowed AI to have a broader perspective on information, and as a result, give better answers. So all of these things have added up together until this time last year, boom, you've got all this AI hitting, and it's just unbelievable. So does that make sense to everybody? I don't want to belabor this point. But I think it's important to understand why we're here and where these things are coming from. So AI has been gaining popularity in the tech world through the years. It became most popular at the at the consumer level with these personal assistants like Siri and Google assistant Cortana and all the others right. Open AI which is a foundation was started back in 2015 by a group of people including Elon Musk, and the mission of open AI is to ensure that AI would benefit all of humanity. Now since then, they've decided not to open source their code which is interesting, but open AI in 2019 released GPT two, which was a cutting edge language model of generative AI based on well GPT by the way stands for a generative pre trained transformer. So again, this this concept of being able to make connections with data. This was really landmark is groundbreaking. 2019 open AI releases GPT two now GPT three came out in 2020 it was more powerful GPT three started appearing in the tech world. Okay, so who remembers back in like 2001 There were like 8000 ai writing tools on App Sumo. Remember that? Like all of a sudden all these writing tools started coming out? Well, this was when GPT three was released, right? And so open AI Oh, you know, there's an API, all these letters. There's an A there's an API through it. You can connect to open AI and use the GPT three model to get lost in that alphabet soup. Anyway, so they opened it up. And then there's all these software tools like all that Sumo, that are just a software layer that sit on top of the API that's talking to open AI. So that's, that's where all of that came from. And again, it's just part of this swell this this swell of movement towards AI. Now, November 30 2022, was when chat GPT came along. So now in our web browser without the need for API keys and software layers and all of this. We can now in our browser, interact with an incredibly powerful model called GPT 3.5. Which even though it's a point five it's miles better than GPT 300 million users within months, the fastest growing application in history was chat. GPT just incredible growth, never seen anything like that. So GPT four came along on March 14 of this year. It's slower, but its answers are way better. So if you up to this point, have only been using the free version of chat GPT you're using 3.5 which is okay, it means pretty good. But upgrading to chat GPT plus, it will give you access to GPT. Four, and the creative abilities the writing abilities especially the coding abilities are far far far superior and that opened up back in March the 14th. And it's gotten a lot faster since then, but it's still not as fast as GPT three, five. All right, I'm gonna pause real quick.\r\n\r\nEverybody good. Makes sense. We have getting a little bit of a lay of the land on how all this stuff connects and how it's working. All right. So one of the things I always hear about AI, it's a lot of fear, right, a lot new technology comes. There's a lot of fear that always happens no matter what I mean, when the block editor was released a lot of fear, you know what's going to happen to WordPress, blah, blah, blah. WordPress is still fine. Everything's fine. sky's not falling. But this is a quote I shared several months ago, because if you're a knowledge worker, if you're a writer, if you're a web developer, you know. I don't want to say it that way. If you are a web developer that's not highly specialized in an industry, for example. You know, there's a lot of fear about is AI going to come and take our job. And this is a great quote from CJ Pomar, who is the founder of brainstorm force. Computers did not replace accountants. When computers came along, all the accountants were worried that they're going to get replaced by computers. And the truth of the matter was, accountants weren't replaced. accountants who use computers replaced those who didn't use computers. And so I think that's a really good analogy to where we are with AI and our work. So we have to get smart, and we have to understand how this new tool set can benefit us to do our work faster, stronger, better, right. So this is a it's still the My Favorite perspective on how AI connects with you know, our work and what we're doing. Okay. Let's get into some chat GPT frustration, shall we? How many of you have used chat GPT and you've been underwhelmed by you try to make it right content. You're it's like, Sue and I were having a conversation earlier. And she's like, What, Sue what was the phrase? Like in this digital world, blah, blah, blah, blah, blah. It's like this. Content is just so just awful and squishy. And not just horrible, right? Yeah. So that can happen. It's all about the prompt. So anyway, let me let me just go through four very common mistakes that happen in today's digital era. Thank you. So that's it. It's very it's just cheesy. Yeah. Thank you, Sadie. So here's four common mistakes. All right, using chat GPT. The first one is, chat. GPT is not a search engine. Okay. You might extract some facts, but chat GPT is a generative AI. Okay, it's made to generate content. It's not really there to be like the answer to your questions, you know, a replacement for Google, for example. So it's not meant to be a search engine to get fact based. Questions, especially about recent subjects, because chat GPT the training was cut off, you know, a year and a half ago. So don't you? I mean, it can answer questions. Matter of fact, I use chat GBT one time because I was I was trying to fix my lawnmower. And I wrote, like, what is the thing that, you know, what's the cable called that when you push the throttle lever forward, what in that connects? What's that cable and it gave me the right answer. So it can do that. And a Google search gave me nothing. It can but it's really not meant to be a search engine. Okay. So you're not going to get as great results. Chad GPT 3.5 only as knowledge up to September 2021 GPT. Forest trained up to January 2022. So, you know, we're getting close to, you know, almost two years out of date with the the knowledge base of GPT four. So sometimes you can get good facts to chat GPT it's best used to brainstorm to process information and to solve problems. So a generative AI is meant like I'm gonna give it a bunch of stuff. And I want to ask a question about that. That's where it shines. So make sure you're using it for the right purpose. A second mistake and this is what we were just talking about. settling for a generic tone. Okay, so chat. GPT has a writing style. That's just what it is. And it's usually pretty awful corporate speak. Like we were just saying, like Dave's example in the chat. I hope this email finds you well, that, you know, don't send that. That's terrible, right. That's that generic, horrible chat GPT tone that just comes out. Right. So if all your chat GPT responses sound alike, it's because you're not asking it to respond differently. It's only going to do what you asked it to do. So again, if you take nothing else away from the all of this whole course it's this. It's all about the prompt getting the most out of chat GPT is all about the prompt. So chat GPT can respond and provide text responses in almost any tone and style imaginable. In your prompt, you can ask chatbot chibi chat GBT to respond as though they were a person, particular person, a profession or in the style of a person or character. You can say for example, from the point of view of its product manager describe the Amazon echo, echo Alexa device from this point of view, or from the point of view of an adult child caring for an elderly parent described the Amazon Echo device. Let's jump in. In fact, let's just let's look at the difference here. I'm gonna go with I don't want to run out of responses here. So we're gonna go with GPT 3.5. Let's just look at this. Okay, so describe the Amazon Echo device. Okay, so we have a pretty bland response here. Alright, it's got some basic information am I am I angering some of your personal home assistants with my copying any of that? This is going to be annoying. Now, yeah, so look at how different this response will be. This is really annoying. I think this PDF and it's not spacing anything out. Look at this voice activated system. Right. So it's, it's crafting its answers to fit the situation like, you know, what are some of the most important things about features about this that pertain to this situation? You can even do this. Explain it to me, like eight\r\n\r\nright, and it completely changes the response. So you can just change up the prompt just a little bit. Right? And you get wildly different results. Now explain the frustrations with our favorite device\r\n\r\nAll right, so there are five frustrations Now watch this. Do that again in the style of Jerry Seinfeld.\r\n\r\nAnd this sounds I mean, you can read this and Jerry Seinfeld voice and it sounds like he wrote it. Ever notice how you can be crystal clear with it like you see. It has changed the style completely because it knows who this is. And it rewrites based on that tone. Pretty amazing. Right? So you have a lot of flexibility. It's if you're getting generic content. It's because you haven't told it to respond any different. What about this make a rap about Alexa. In the style of vanilla because I'm that old this is horrible. But there you go. It'll do all sorts of things. It'll repeat back poems. It'll write stories it will any famous person it will be able to respond in that voice. It's pretty darn amazing. Right? Yeah, stop, collaborate and listen. Alexa is here with a brand new mission. You gotta love it. Yeah, now I just woke her up. Okay. Anyway, does that make sense? Pretty cool. So change your prompt. If you're getting terrible responses, change your prompt a little bit you can even say suggest what voice would be appropriate for a 500 word, article about that\r\n\r\nso you can even ask it to suggest Anyhow, it's all about the prompt number three. This is a big one. How many of you all just keep typing in the same conversation? If it's a brand new subject, just keep typing. Right? Big mistake. It's always best to start a new chat when the subject changes because think about it. Think about it this way. This is a single conversation about a single topic in a single voice, etc. If you start talking about something else in the same conversation, it's like that friend that we all have, that interrupts us and completely changes the subject in the conversation. Yeah, anyway. So start a new conversation. Plus, you can rename these over here or whatever you want, um, so that they're more recognizable to you. It start a new conversation if you're going to start a different topic, unless there's some reason to keep everything in the same conversation. Usually there's not. So one client's content lives in one conversation. Don't mix threads between no mix clients in the same conversation. If that makes sense. Don't be like the person who interrupts your train of thought with an unrelated subject. Number four don't settle for the first response. Again, chat GPT is all about the prompt that you give it. I will let me clarify. So Stacy, I don't mean a new window. Like if we're going to do something else here, I would say new chat. And so we get a new conversation over here. And the old ones are over here. In my history, but now started a new chat, the new conversation from right there. So don't settle for the first response. Chat GPT again, it's all about the prompt. And prompt engineering is an art and a science. It takes practice you get better at it as you practice. If you don't love the response that you get asked chat GP to change its tone, or explain it differently, or provide multiple options or give it more context. The more you give it this is called training the conversation. So you know if I want to if I want Chad GPT to output some content, I need to give it some stuff to work with. And we're going to do that in the next hour. But we need to train the conversation to give chat GPT the context that we want it to operate in and so from that context, it can pull from outside and everything else and it's learned, but it'll output within that context. So just keep sharpening it. Keep crafting your prompt. And guess what next time, you will know okay, I'm not I'm gonna start to ask it this way this time, right and you get better at it over time. But be clear and direct with what you're asking chat GPT to do. Does that makes sense? All right, so what does effective prompt engineering look like? So here's a few principles, clarity. Clarity is key. What exactly do you want me to do? Be specific and clear. About what you're trying to accomplish in this conversation? The more specific you are the better results you get. So let's just start a new conversation here. Let's say I'm writing a travel blog. What are the 10 best scenic highways in the US boom All right, look at that. And actually, let me show you some if you've never seen this, you can just see this. For the purpose of this demo. I'm going to shorten the number of them because 10 is going to take a little while each time so I'm going to edit this. Let's say for the for the scenic highways in the USA. All right, and we'll go back and edit it. Alright, so here's what chat GBT thinks are the four best senoko So we're just gonna go with that. All right. Now let's give it some context. What background information can you give the conversation so you can understand it better? So again, context is critical. Explaining the big picture makes a difference. So instead of just asking this, let's do it this way. I'm writing a blog post for retired RV travelers about the three best scenic highways in the USA. Okay, so we're telling it Okay, first, we're writing a blog post, who is the audience of the blog post? And I said for a minute ago, we'll stick with three here. The top three should consider options for stops for fuel and food and should be RV friendly with options for RV camping. So let's copy this maybe, hopefully this is going to copy well. So let's go and we'll just put it in. Okay, now. Now liquid it gives us we're sharpened in. Yeah, like Dave said that the who, what when where shirt? Yeah. But just get specific, right of what you're asking for. So here's what it's given us here. Pretty cool. All right. How about output? How do you want me to return the results? So it decided I'm gonna do this in a numbered bulleted list. Okay, that's cool. But when you this return that list is a table and look what we get. I like this. I do a lot of output in table if I'm trying to compare things. If I want to move this to a CSV, I can say output that table as a C F v. And there it is. And I can just copy that, save it as a CSV and open it up in a spreadsheet. Pretty cool. Right? So you have lots of different options. So now I'm gonna give it even more context here. So expanding on this information act as a travel reporter write an informative blog posts for an audience of adults age during use appropriate heading structures throughout lists three to five must see stops on the route three to five options for RV camping, to just five title options for the blog. Add Google Map links where appropriate.\r\n\r\nThere's our titles. Look at that. Is that not amazing? Boom. And all these are linked. Look at that. Okay, the links didn't work. Okay, so here's a hallucination from Google from chat GPT. For links didn't work. We could go back and refine that if we wanted to. I'm not going to do that for now. But watch this. Another for example. Let's say you've done some keyword research and you're looking for a key phrase I have where working with E word I don't know retired RV trips. That's terrible. But let's just say that's a key word. We're writing this for. work that into the article, naturally several times in the text and in at least two of the headings and the title\r\n\r\nso it will work that keyword right into everything that we've done. Pretty cool. Yeah, so you can do a lot with chat GPT and we just that took what, five minutes or less? Yeah, pretty, pretty amazing. All right. So what do we do? How do we deal with hallucinations? Okay, I see. Sally, I see your your question about using GPT four. We're going to do that in the next hour. When we're actually working with content. I'm just going through some basics right now. I don't want to use up all my GPT for questions because it's metered Right. Like I get 50 every four hours. So yeah, what we'll do more on that GPT for in the next hour. All right. So if you get a chat GPT hallucination where it makes something up or it's going down the wrong path or whatever. Here's the best thing I can find to tell you to do. Edit the previous problem. So go back to the place where it fell off the wagon, and go back and edit this prompt, you know, to say, make sure that you know, let's just go back up to here, where it where it started giving us bad. Bad Google links. I don't know if it'll fix that or not. Useful. Google Map links, not short links. Make sure these work and you're not making them up. It may not do this. With these mappings that may not be possible. But anyway, you go back and edit the prompt right before the hallucination occurred. And have it regenerate. Did this work? Son of a gun Look at that. Yeah, so look what it did. It just put a query. And so that'll Absolutely yeah. So that's one way to deal with hallucinations. You can also do, you can challenge the response. So I don't find this as nearly as effective again, this the solution the hallucination seems to return more often if you try to challenge it. I recommend editing the prompt but there may be a case where you want to challenge it and say, you know why do you think that what evidence supports your answer? Give me your decision process of returning this answer. Or just what the heck are you talking about? Often the AI will just apologize. Hey, you're right. I completely made that up. That happens a lot in coding. I'm sure we'll see some of that tomorrow. Of like it'll just make up this WordPress core function out of nowhere. And you're like, that doesn't exist. It's like, oh, yeah, you're right. Let's try this differently. So I just find it's easier to go back and edit the previous prompt. In a coding situation. A lot of times you have to challenge it, but especially in content writing, just to edit the previous prompt. Okay, so I got a really Cruz here to get through by break time. Is chat GPT plus worth it. Yes, period. Moving on. It's just far better, the output is better. You also get the use of plugins. Which I'll show you in a minute. And custom instructions. Custom instructions are new. They're here in the know oops. They are here. We look at this so you can actually create these are just some fake custom instructions I put in here. So I can enable these four new chats. And now as long as that's enabled, any chat that I create from here forward is going to take these things into consideration. I'm a WordPress developer based in the US we primarily create content code for WordPress websites. If you provide code in the conversation, always check for compatibility with PHP 8.1 and point out any potential security risks suggesting alternatives. How would you like chat GBT explanation should be informative and typically short unless directed, otherwise, if you provide code, I do not need you to explain it afterwards. Also, if we're debugging and revising, it's very important. You always provide the entire code snippet or code files rather than just telling me to swap out pieces. If that love this. If we're writing PHP functions, always prefix functions with P WW underscore which is our agency prefix. So with these custom instructions turned on, now, every response I get after that is going to include this I don't have to type it ever again. Now I had it toggled off because we're dealing with content. I'm going to leave it toggled off and no this is not free. This is part of GPT plus. So this is what you're going to pay what is it $20 A month for I think, oh then is that in your free version? I didn't think that was the case. Maybe they've changed it to free. But they've added a couple of things here with GPT plus here and GPT for notice. Now they're gonna let you browse the web. So pay you can give a URL if you turn on this browser thing. It also you can generate images right from Dali, right here. If you turn this on, it'll generate images. And it also gives you plugins, which is my favorite part of chat GPT. So you got a lot of extra things you can do. You've got custom instructions here that I just showed you. But let's talk a little bit about GPT plugins. So GPT Okay, Stacy. We're not talking about the the chat GPT that's like an assistant on the Bing browser. This is a plugin for chat GPT that allows it to go like you can give it a URL and it can go read a webpage it couldn't didn't use to be able to do that. Now it can but in addition to that, that's kind of baked in. Because Microsoft is an investor in open AI. It's baked in as part of the GPT four options. So you can do default or use plugins or browse with being plugins are incredibly helpful. So I've given you a list of some plugins. The one thing I will tell you this is, I don't know who these people are developing these plugins. So if you're going to use a plug in, you're basically giving it access to anything that's in that conversation, and they do live within a conversation. And you can't add a plug in to the conversation after you've started it. So you got to make sure the plugins you want you can have up to three active in a conversation got to make sure those are set up first, and then have your conversation. But I don't know what the privacy policies are. It's really murky. So just be careful with that. Don't put anything proprietary or sensitive or whatever. You know, I wouldn't put anything in a conversation that uses plugins that you wouldn't want out in the public domain someplace. So just be aware of that. But look at the so cool. Look at the things that it can do. Alright, so we've got browse with Bing, and that's really good. But also there are two plugins, one called browser up, and one called Web pilot. They both do basically the same thing. You can put a URL in and tell it to browse that URL in a conversation and those plugins will go fetch that information and pull it into the context of the conversation. So for example, if you're trying to rewatch, we'll do this in the next hour. But if you're trying to rewatch Read Write someone's web content that was hard to say. You can say here's the five content pages on their current site, learn about this claim from there and now suggest new text for the homepage and it'll do it. We're going to do that in the next hour. Another one very similar, but chat with PDF, ask your PDF or AI PDF, they all do basically the same thing. You can point to a PDF link. It will digest the content of that PDF for use in the conversation. This is a really cool one AI video summarizer you could put in a YouTube URL, and it will summarize the video for you based on the transcript. It's amazing. I've been yes, they're free. Now these are free plugins right now. So you can see some of the ones that I've installed. There is a there's a Zapier plugin. There's a plug in store here that will show you all of the you know, you can search for whatever and just install it like it like an app store into your chat GPT link reader is very similar to some of these others any link it'll read webpages YouTube PDF, PowerPoint image, where it just any link, it'll pull that content in. This is super cool. If you use GitHub at all. This ask the code will go crawl a GitHub repository and be informed on the codebase of this thing. So if you're trying to troubleshoot a plug in, you can literally put in the Git repo of the plugin and it will just learn the code. Just absolutely amazing. Ben is asking how you turn on the plug in you have to be in GPT for and you select Plugins here and then you'll get this where you can check on which plugins you want active. diagram show me so this will actually create like a mind map or charting out information which you can then immediately push over into Miro to edit\r\n\r\nthis is super cool. One word domains so if you're having if you're trying to help a client come up with a domain name, you can have it suggest have chat GPT suggest domain names and this plugin will go out there and see if the domains are available before giving you a list of suggestions. I mean, and then of course Zapier, imagine, you know from Zapier, coming in and out of chat GPT with information is just I mean it's it's super cool. I haven't played with this yet. It's on my list to start to play with. So you see how cool chat GPT can get with these plugins. Absolutely amazing. Christina is mentioning Gravity Forms and chat GBT. I'm not talking about that in this course. But it's just another way for example, you can have somebody fill out a form on your website. It'll pass it through chat GPT to provide a reply or a summary or whatever. It's just amazing. Absolutely amazing. Okay, so let's chat. GPT is our focus but I do want to show you a few other apps to level up your work. I knew I knew I knew this. I was going to be running late on this. So we're gonna go fast here. Okay. But who here? Are you a Creative Cloud member? Have you seen Adobe's generative AI in Photoshop and Illustrator? Absolutely. Unbelievable. All right, so I'm just going to pick one of these. Okay, so here's, this is a Pexels image. Oh my gosh, oh. We've got these people on the street, right. I am simply just roughly I'm going to draw a circle around these people. And I'm gonna hit generative fill and not put anything in there. And it's just gonna get rid of them and interpolate what should be in the background. So if you ever you know if your client ever look at that, I mean, that's just and you get also three different options. Over here in the sidebar, kind of like that one better. This one, that one feels better. Oh, and look somebody they didn't move the trash. Let's take out the trash for now. You could do this with Photoshop. But now you just draw a circle and click the button. It's It's just unbelievable. But not only that, okay, so we got our trashcan and whatever. Make sure I'm on the background. What's your favorite dog? Anybody? Give me a dog, Jack Russell. Okay, we're gonna put\r\n\r\nJack Russell Terrier in the foreground. And it's going to be in the right light. And it's the right angles and everything\r\n\r\nthat's not a chakra. That's pretty good. That's pretty good. I mean, look at that. Absolutely. Amazing. So you can see the you can see the options here. Let's say, Oh, here's a very complicated image. Right. Let's just draw a very rough. Let's we want to get rid of everybody in this image. Just a very rough wrap around. We'll hit generate, and it's just going to work. Can we say it doesn't work with with high res? I mean, this is a 1920 by 1200 ish. It's it'll work with as high as I found it. Look at that. I mean, that was a really complicated image. We have got several options here. That was good. I like that one better. There it is. Absolutely crazy. Let's put a coffee mug here instead because who drinks water with lemon while at their computer? Latte in a big coffee cup. Big red cup with with hearts boom art\r\n\r\nSally, this is Adobe like this is Adobe generative AI Look at that. That's incredible. Oh, that's I mean, look at that. That's perfect. absolutely unbelievable. Change it to a margarita. Okay, I gotta move on. So Photoshop absolutely cool. Did you know illustrator will do the same thing with vectors. How many of you have gone like you're looking for a stock vector image for an icon? Right. Let's do let's see. I want to make an icon of of what I don't know of a light bulb. Light bulb icon generate. Now you can also have this if you already have your canvas setup with colors and stuff. It will make your light bulb icon based on the colors that are already there. I mean, that's pretty darn good. And they're full vectored images. It's not this is not Affinity Designer. This is Adobe products. You can even do a scene. Let's do a\r\n\r\nSan Francisco Bay at night. Oops.\r\n\r\nSo now let's move on to a website homepage. Not in this I'm sure that you know that's coming and there are tools out. Wow. Okay, that's pretty cool. That's not awful. I mean, it's a good start. Right? I mean, that's kind of quirky. But you get the idea. Right? It's very, very powerful. Those things happen right now. Adobe Firefly. This is the other Adobe generative tool. It's like dolly and other AI image creators. I think it's a little better and if you're a if you're a creative cloud member, you get this for free, where you can just type in by prompting it'll generate an image for you. This is super cool. This is what Adobe's after this is where they're heading with their gender today I like here's this image and it's tools this is going to be across the board and Adobe tools. It's gonna be able to pick out the things in an image and put those in layers for you to do things with. I mean, it's just and that this is coming very soon. Something else I want to show you is code WP we may try to use this tomorrow. We'll see how it works. This just launched last Tuesday. This is an AI it's an overlay for open AI but it is trained specifically on WordPress code. This is really really, really cool. Code WP dot a. This is super cool. Well, that's because I'm logged in but anyway, you see it worked like it's trained on WooCommerce code ACF, Gravity Forms all you know major things more to come and it will actually write plugins and put them in packages of multiple files and folders. Like you could write a major plugin with this. It's still a little quirky, it's still getting worked out. But this is really, really neat. I mean, you get 10 Free generations per month. $12 a month is all this thing costs. There's an affiliate link there if you're interested. Just check that out. Play around with it. We may use it a little bit tomorrow. But it's this is an AI that use it again, it's using the open AI generator, but it's got this extra repository of all the WordPress code base, four core and all these popular plugins built right in it's just amazing. This is one we've been using for actually quite some time. It's called may guy. We really really really like this. Let's see where is it? Ah, here. Okay, so may guy is it's another overlay for chat GPT but you can talk to all of these models so you can do open AI anthropic, which is Clyde, the Google AI metas AI and others. The neat thing about this okay, we saw earlier the custom instructions for chat GPT this gives you it's the same thing. It's called Custom personas. So what this will allow you to do is have multiple personas, like if you're doing a plugin, if you're doing code, you can have a persona for code. Here, for example is our WordPress news roundup persona. So when we're doing a quick when Chris is summarizing articles for the WordPress news roundup every month, this is what we use. At his WordPress web development news reporter take the URL I give you read the article, provide eight to 10 Sync bullet points that summarize the article you read no more than 10 to 12 words long. Don't use extra words leave out articles like V or a when possible blah, blah, blah. We've just gradually improved this like Chris How long did it take you to dial in this prompt? That's been the took some work right? So you know, provide a summary that will be interesting and important to a WordPress web developer who is a small agency owner bla bla bla bla, give me two options versus st informative title for the article now. It still needs to be edited. But over time we have perfected this prompt to give us 90% like it works really darn well. So yeah. This is great. And y'all this is where is it? This is we pay nine bucks a month for this. And there's and you don't have to have a chat GPT license. This your $9 a month it's metered usage. You know and you can upgrade for still pretty cheap. It's again, it's an overlay, it uses the API, but you can train all these custom persona. So for example, let's say you dial in the brand voice for one of your clients in custom instructions, and you're writing blog posts for them every month. Well now you have a persona for them, and you just use that and it's all in there. That's all you have to do. It's just it's amazing. It's amazing. So I talked to the Creator, who has been a fan of AI themes for many years. So he has a code here. If you're interested. There's the affiliate link if you want to do that, but it's solid 20 20% off your first three months. Pretty darn cool. If you're using something like text, expander or type desk, there's all kinds of opportunity for integrating AI into this. There's some articles there I really don't have time to even get into this. But my goodness, that's cool. And you can like store your prompts, for example, as a text, expander snippet or whatever. And then last of all, Chrome extension now there's a ton of Chrome extensions for chat GPT because there's Chrome extensions for everything, but one I want to show you in particular, is this one. Okay, so here's our normal chat GPT interface. This is something called Chat GPT anywhere we like this one. I'm going to toggle this on and refresh. It's just it basically gives a whole new UI for chat GPT you can create folders for your conversations and it makes your history searchable. That's the most important thing for me, because you can search for something that's way, way, way way down your list. This is free works great. I like it a lot. I'm going to turn it off again. So yeah, that was our first hour. Okay, how was everybody? Okay, mind blown. A little duct tape going on. Okay, let's take a break. We'll come back at 10 After two and we'll spend the rest of the next hour talking about using chat TBT to generate content. All right. So we're back at 3pm Start. No, we're back at 2:10pm Central time and we're quiet until then.\r\n\r\nAlright folks, 30 seconds to go. We're back. In 30 seconds.\r\n\r\nAll right, 10 minutes after a time to go for our two of the AI workshop. Who's excited now? Are you excited about AI more excited than when you started? What do you think? Let me hear from you in the chat. Because that what we just saw was the most boring part of the course. So let's get into the fun stuff, shall we? So at its heart chat GPT is designed to work with content, it is a generative AI. So there's so many ways to work with chat GPT for the content of your website now. Immediate disclaimer, I do not in any way assumed to be an expert using chat GPT for any of these things. What I'm showing you comes from how we've used chat GPT on the agency side this year, and we've done some pretty cool things. I gotta be honest, but there's always more there's always more things to do and think of and try. So you know what I'm gonna give you is like this is not like exactly what you should follow. Just use this as an example, to spark some creativity and brainstorm. You may find a much better way than I've even described here to do some of these things. So does that make sense? start experimenting, start playing around with this because working with AI is just as much art as it is science. So as we get into creating website content, I love this is so cool, y'all. Okay, the most important thing I can tell you to do is to train the conversation we talked in the first hour about the most important thing you can take away from this entire workshop is it's all about the prompt, right? The second most important thing is train the conversation Well, because the more you train the conversation, the better the results of your prompt will be. Okay, so the key to getting great website content is training it with lots of information before you start asking it to generate the final copy. So drop in the copy you have from the company already, or the organization or whatever, at the beginning of the conversation so you can use URLs with chat GPT plus plugins, etc. This approach gives context to everything else you're going to talk about in the conversation. So you want to be able to generate all the content for the site from the single conversation one conversation with chat GPT don't have one conversation about each services page. One about the about page, keep it all in the same conversation, because we're talking about the same company. And it will get better as you respond back and tweak and whatever. It's going to get better even sharper as it continues to give you better more content for the site. So here's an example prompt to get things started now. Chris messaged me during the break saying the chat GPT hiccup on him. It did the same for me. So hopefully we're not going to hit a time where all of a sudden chat GPT quits working because that would be bad. I do have some historical content I can show you but hopefully we can do this live. So we are in GPT four. I'm going to turn on plugins. And I'm going to enable I'll just use browser up. So this is going to let us go browse URLs and pull those into the conversation. Alright, so here's my prompt. I'm creating website content for a client below. I'm gonna post the information I have about them. Open each URL listed below. I said web pilot. We'll just I'll turn on web pilot instead. It doesn't matter. They're both they're both essentially the same. Just to keep the well where is third is why it's not alphabetized. I don't know. So open each URL list with web pilot don't do anything with this information yet. I do not need a response other than to confirm you have processed it. So let's start here. I'm going to drop this prompt in and we're going to use so for those of you that were in the builder to Kadence workshop a couple of weeks ago with Kathy Zant and I we were working on this really horrible old site. For one of my clients that was built about 8 million years ago. It's still using builder and here is this client, they are a metal fabrication contractor. Okay, so what I'm gonna do is I'm just going to start pasting in some URLs and I'm really, I'm going to do the homepage. If I was doing this. Actually, I would do every URL on the site. And you can do that by going into the sitemap if you have a sitemap and just copying the URLs. So what I'm going to do, I'm going to focus on the the what we do pieces and I'm just going to do a couple of the services that they offer and I'm just dropping in a link because it takes a minute to crawl each link and I don't want to take forever. So I'm going to do the homepage and three services pages, and then maybe also the about page to get some context on who they are. All right. So let's hit that. And now web pilot is going to go out and start processing each of the webpage and it takes a minute, okay, and you just have to wait, you know, go go do something else. Whatever. Blah, blah, blah. It's gonna take a minute, but we need to do this to get the context of the website. Paul to Chris and while we're waiting the Chris and I collaborate on chat GPT or do you have two different accounts? Is there anything for teams? So I don't, we don't I mean, Chris has his own account. And I have one. We could collaborate if we wanted to. I don't know if may guy does or not you have to look at that. We still go in here see 1234123 I think this is the last one. So it should respond back with I got it here in just a minute. I oppressed Okay, good. So we now have this information processed awesome. So again, like you could go out to your sitemap and just copy everything in if you wanted to. And that would work also. So now, remember, that what we don't want this to say is in this digital era, like we don't want that generic awful text we want really great really great text. Okay, web pilot is a plugin for chat GPT for Yeah, yeah. So you can instruct chat GPT to read provide content in styles like informative, serious, funny, any other adjective you want. I find it helpful to come up with a famous person whose voice I would love to emulate on the website. So you might even ask chat GPT to help you select a voice so here's my next prompt. Based on what you know so far, give me 10 recommendations for famous people whose writing or speaking style would be best to communicate this information on the website. Briefly explain why you like each style. We're gonna paste that in. And here we go. Steve Jobs I don't think so. Okay, how about Elon Musk? Probably not. Bobcat Goldthwait. Bill Nye Okay. Now I'm seeing a pattern because these it seems to suggest these a lot. Okay. Now Malcolm Gladwell might be interesting. But really, I want like these are these are contractors. You know, they do metal work. So really, none of these people are really resonating. I don't think Brene Brown, like these are not really good suggestions. Okay. So I don't like any of these. Like, I don't Okay, Stephen Hawking. I don't think that's the right voice for a metal fabrication company. Alright, so let's go back up here. And I'm going to edit this prompt because I don't want any of this to get mixed up in the conversation. Remember, this is a metal fabrication company. style should speak to blue collar work and high quality. Give. I'm gonna just gonna change this for the sake of time to five recommendations. We'll see what it gives us with that. See if it gives me the example outcase See right here. This is what I did in my test. Mike Rowe from Dirty Jobs is the exact right voice for this website. Right? It's perfect. Although there's some other John Steinbeck. I'll take Tom Silva from this old house. Okay, Bruce. Springsteen might I've never heard him speak I don't think I want storytelling\r\n\r\noh my gosh, I don't think this would be hilarious. But we're gonna do we're gonna do micro okay. I really like micro is one of my I love his podcast. I'm really, really fan so we're gonna use micro. I think he is the right voice for this website. So let's check the voice with a summary question. So give me an elevator pitch for the client in the voice of micro.\r\n\r\nThat 100% Sounds like micro Okay, I like this voice. We're gonna stick with this. Okay, so that's an easy way to test the voice. Okay. And I would suggest you do that before you get too much further down the road. We could do I just out of absolute curiosity. I want to hear Ron Swanson. Oops, I misspelled it, but I think it'll know\r\n\r\nkind of like this. Actually, I kinda like that a lot in the discussion, I don't know. Anyway. So we're gonna go just for our purposes here. We're gonna go with micro. So take your theory on trout, other voices, et cetera. This makes sense so far. See where I'm going with this. So it's I like to do it this way instead of saying insightful or whatever adjective, I think it's helpful to put an actual person's voice. So as you think about how do I make this into a system for a client, ask the client if you had to pick a single celebrity to speak in the voice of your product or company who would it be? Right and start to work with that, you know, so All right. Now, let's start working on homepage content next prompt unless I say otherwise use the style of micro for the rest of this project. Let's work on the homepage content didn't give me 10 options for a hero headline and subtitle that will engage visitors and the style of micro See, our call to action is scheduled consultation. You don't have to put that boom. I can't spell row apparently. But it will know it's smart enough to realize that 10 options, okay. Ooh, I like that. Look at that crafting. metal building features. I like that a lot. Behind every great structure, there's ihrm metals, turning metal into milestones. That's kind of cool. If you don't like any of these, you can say give me 10 more or whatever. But I mean, some of these are bad. That's all like that metal work that tells a story. Ooh, that's cool. All right. So I mean, half of these are doable, right? Not bad. So let's just pick one Let's vote. Which one do you like best? Kinda like this one. Yeah, crafting metal building features, but I don't like this though.\r\n\r\nI kind of like that one. Okay, let's go with headline one, subtitle four, just to keep things moving. Let's go with headline one and subtitle four. Okay, so we're gonna keep that for a minute. Let's scroll on down and our primary call to action. So let's just copy this next one. Okay. So we're telling it which ones we're we're in chat. CBT does a good job of figuring things out if you misspell in the context. Okay. Now let's create the primary call to action. Okay, I'm gonna I'm going to skip this because we said our call to action is going to be built to schedule consultation. But here's where you could ask it to give you some suggestions based on what you want people to do. So I'm going to skip that though. So based on what you know about the client what other homepage content areas would you suggest? So let's go with this and this let's go and see what it suggests what else should be on the homepage?\r\n\r\nAlright, so it looked at the services pages that we already had, and it made some suggestions there. short narrative about HR metals, a project showcase testimonials. What's different latest news, okay, these are all great. So let it help you brainstorm what might be on the page right? So this is all good. This is really good and helpful.\r\n\r\nAll right. Now how about this? How many of you are familiar with story brand? You can combine your voice and the story brand approach. I'm a big fan of story brand. So I'm going to say using the voice of micro but adopting the story brand approach from Donald Miller give me five options for the one to three steps in story brand, providing a title and short description for each step.\r\n\r\nSo if you're familiar with story brand, you realize okay, this is not bad, right. Paul, yeah, so Paul, this is a this is an example for a redesign. Yeah. So if if you're doing this for a brand new site, that there's nothing else like that already. Then maybe you know, you would get some of the content or content concepts from the client and drop those in instead of browsing URLs, right but the idea is I'm gonna train up the conversation with his all this information at first, and then start asking a question as to generate content. Ben, can you ask it to suggest improvements to a current homepage? It? Maybe Hang on. Okay, so we got our one, two threes there, right. And you can pick one of those if you'd like it. Let's see. Let's I don't know if it'll do this or not. I've haven't tried this. So let's just see. Look at the current homepage at this and suggest improvements. I don't know what's gonna happen it's gonna it's gonna go grab the URL. Yeah, sure. You could put in competitor URLs here as well to suggest other things. Again, that's just more context right.\r\n\r\nYeah, so I don't know how good this will be. I haven't tried this approach before. Yeah, I say to you, right, improvements might be too subjective. But look, it's making suggestions that are really pretty good. The content jumps between different divisions and services create a more linear narrative. Yeah, it's really, really cool. Alright, let's keep going. Alright, so we're going to move into individual posts and pages at this point. Let's define SEO strategy. So this is our SEO strategy. I'm just going to drop this in as instructive. Each page will have a key word I'll give to you as you generate the content for each page. Use this keyword in a natural way at least five times and also include it in at least two headings kind of like we did earlier. Some might have two or more keywords. So make sure each keyword is included as above remember the strategy and implement it when I give you a keyword for any content you create. So we're gonna drop that in just as training. And you could hit you can hit and submit right here, but it's going to take one of your conversation pieces, and you only have 50 in a four hour period. So we're going to not submit that just yet. So now we have a prompt Okay, in the style of blank rewrite. In the style of micro it would probably remember that but I wouldn't trust that rewrite the what was the page called? Ah RM metals. At a Glance\r\n\r\nusing the key word\r\n\r\nlet's do the key word, metal, custom metal fabricator. Whatever it would be right. Okay. So now it should give us content for our about page\r\n\r\nnot bad\r\n\r\nso this is a little bit better than the in the digital era content right. I mean, that's, that's good enough that I would give that to the client just like that for them to mark up. Wouldn't you say? I mean, this is pretty good. Pretty good. Let me hear from in the chat. Anybody still out there? Are you all trying this on your own? Yeah, Chris. It's much better than they would send to us out of the gate.\r\n\r\nPretty good. Pretty good. John, the limitation. I think it's 50 responses in a four hour window. So I don't know where we are now, but that's why I didn't want to do GPT four until we got into this. Okay. 350 responses in three hours. Yeah. Okay, so we can generate pages that way. Now let's talk about some blog posts. How many of you are always struggling to get like the first few blog posts from a client? Brainstorm five blog post. Topics for this website. With a short summary.\r\n\r\nYou're about to be amazed with what's about to happen. Now remember, we have built into GPT for the ability to do dolly image creation. Or we could use Adobe when in fact, let's just use I don't want to use any more of my prompts and I have to let's let me get to a firefly this is going to be super cool. All right. Let me let me get the start and then we'll get our image creation. Alright, so let's pick one of these. The Art and Science of metal fabrication Okay. Write a 500 word, blog article on topic one. On topic one, you could say using keyword blank if you wanted to. Give me five Title Five optional title, suggestions. And give me a sample Sally prompt for a featured image British planning to stop okay\r\n\r\nall right, so now we have some five posts I've noticed that when it does titles, it likes to put a colon in there like all the titles have a colon I don't like that. You can tell you can tell it that as part of your instructions. So here's our blog post okay, this is gone. I'm sorry. This is okay. It's fallen off our micro. Have you noticed that? I'm going to stop this. I'm going to go back in here and\r\n\r\nand make sure we say micro because I forgot right? It just started it fell off. So we'll come back. Now dolly is the open AI image creator. We're going to actually use it over in Adobe Firefly, because I don't want to use another open AI prompt right now. So I think we're going to need them all. But it'll show you how Firefly works. If you're a creative cloud user this is built in okay, we don't want that\r\n\r\nbut I do like the voice because these folks are very personable. The client says who's Mike? So this is where it you know, you have to refine it a little bit and you could tell it, hey rewrite the first paragraph and don't say your micro. Paul, what happens if you use them all up? It'll say you've reached your limit check back at this time and the conversation will still be there you just go back to it. Okay, a fusion of traditional blacksmith working with an anvil with molten metal and a modern robotic arm assisting and precision metal work. Set against the backdrop of advanced metal fabrication workshop. Okay, let's see if Adobe Firefly can handle that. It should give us three images\r\n\r\nor maybe four thinking real hard about it. Oh golly. Oh, that's really cool. Not awesome, but not horrible. Anyway, you see where we could go with this? Right? So you could potentially generate a bunch of blog posts and have images and be ready to go and just refine the product, right.\r\n\r\nAll right. So that's a very quick that was 30 minutes worth or 25 minutes worth of very quick approach to generating content for a website. When you think like that, that's pretty darn cool, right? We started falling off the rails a little bit so you got to bring it back in, remind it and whatever. But how much time does the save it saves a ton of time. Nicholas? Just a ton of time. Okay, let's do some more things. Okay, so, chat GPT can not only generate text, but it can also help you work with text. So let's do so these are links to historic chat GPT conversations. So here's this thing of converting text to a table or spreadsheets. I can't remember what this was. But it was good enough for me to save it and put it in the handout. Oh, okay. All right. Oh, yeah. So here's some customer testimonials. And like the idea here was, we were we were rebuilding a site. And it had a single page of testimonials just all written out in one long line of text and there's probably, oh my gosh, I don't know how many there probably 80 of them. I'm going to just guess ADR. And what we wanted to do instead was I bring those into a custom post type where we could do things with them, right? Like randomly show one or put them in a carousel or whatever, right? And do something more interesting. So how do you do that? Well, you could sit there and you could copy paste, copy paste, but who wants to do that? Don't do that. So here's the prompt. Now again, this was months ago, I hadn't really dialed in on how to work but this is just simple, plain wording. I've got some customer testimonials below. I want you to format the text for me. Do not change the actual words in any way. The quote is surrounded by quotation marks remove the quotation marks from around the quote in the output, then output a table as follows. Because of column one customer testimonial column to the customer initials, these follow a dash after the closing quote, column three, the full state name So context is key here we're gonna give an example. Here is the example of a quote terming and identity. It's surrounded by quotes. It's got a dash, customer initials and a state name. This example should be output as column one, this part column two, DC, column three, Minnesota. giving an example is key to do anything like this tell it exactly what you want it to output. And then here's the full text of everything that was on that page. Look at all those many, many testimonials, right? So there's our output, and it did exactly what I wanted it to do it translated the two letter state abbreviation into the full state name. And then what I did at that point. Anyway, what I did at that point, I didn't realize I could do a CSV at that time. But even from here in the HTML output. Oh my gosh, there we go. You could do the inspector and just grab this table object and hit copy element. And then open up Excel, or whatever, or Google Sheets or your favorite spreadsheet app and just paste it right in. In there at all is and from here, I can save it as a CSV, right or you can tell it output this as a CSV like we did earlier, and it would it would pop it out. So taking text converting it to some other format. See how much can you think of how many times how much time in various ways that could save you. Here's another example of doing something similar to that. So I have this HTML I need to replicate for the items in the list. So here's the HTML I want. So you know, there's some style, there's a URL that's based on the link item. These are things in a silo menu, basically. So take the names in the list, do the same li structures above from this pattern. And okay, it did a Python script. I don't know what that was about, Nope, just output HTML as a code block. Got it. Boom, there it is. Copy, Paste done. So rather than me having to go back and fix all this, like it knew what to do with the URLs and all of that it just worked. Pretty amazing. Pretty amazing. So do you see the ways you could use chat GPT to format text are endless possibilities of how you could do this, you know, don't do any of this stuff manually again, and somebody was mentioning earlier, chat GPT will 100% give you spreadsheet formulas, like you can describe what you want it to do. And it will give you spreadsheet formulas to do that in a spreadsheet. Pretty neat. Okay. Be prepared to be blown. away. Are you ready to be blown away? Have you been blown away yet? You're gonna be blown away now. Okay, because this this is my single favorite AI application that I've found. To date. Okay. This is absolutely amazing. How many of you do transcripts for your meetings? Like you have a call with a client and you're recording it in something like you got otter running or something like that, right? Yeah. Are you doing that if not, start doing that. Today. It'll even work with Zoom transcripts. Okay, just get text. All right. So I love this. And Madeline zoom also has an AI companion. Now. They haven't played with that yet. I'm not sure that I think it does transcript and all that stuff to y'all. Okay, there is an AI you need to be aware of called clawed AI. It's, it's from anthropic. Clawd AI is really, really good. It's another generative AI model, like chat GPT let me get logged in here really quickly. Oh, my God, I'm in the wrong I forgot to do this earlier. I'm in the wrong browser profile. So give me just one minute so I can get to the right one and it has what I was just working on\r\n\r\nYes, okay. Okay, let me get here we go. Are you ready? Are you ready? This is y'all. This is it blows me away. Okay. They aren't ready. Okay. So absolutely love this. This document is the transcript from my call. Okay. Here's my prompt. Now. Why would I use Claude AI for this because Claude has a higher token count, meaning you can give it more information at the beginning you can put in this is a full hour transcript. Chat. GPT won't take that much information all at once you'd have to break it down. It might with plugins. It's just not as good Claude is designed to take big bits of information and work from it. Like you can drop in like a novel as a document or a PDF and it will process that whole thing then you can ask it questions about it. It's made for this Okay, so here's my here's that transcript. Please evaluate this document which is a transcript of meeting with clients to create a new website I need to write a proposal. My proposal contains the following sections so please provide results using this format. In from the info in the transcript project overview, five to six bullets that summarize the big picture of the project website design any items discussed that apply to the visual design of the website, website content, any items pertaining to content, text, images, videos, downloads, blah, blah, blah, website functionality, any details about the thing the website actually needs to do? How many of you spend an hour two hours doing this for proposals? Here's a draft proposal. Based on the meeting transcript clients want to do this main goal that ended at launch budgets around this website design, use the same headers it just it pulled out the bits of the conversation and put them in the sections that I use in my proposal. Look at this. Currently rent forwarded resources client will provide spreadsheet resources will be uploaded to cloud functionality and this is where all the stuff they want. Does this capture okay? There's some pushback. There's some functionality notes like the ability to add related documents, state documents that are not covered here. So it missed some things. I remembered some things we talked about. Look at the transcript. Again, make sure all functionality misspelled details are covered. You're right. I miss blah, blah, okay, in now it read it. All right. Look at this. Boom, boom, boom, boom, boom, boom. We talked about the survey they gave the current website users what were their top priorities revealed in the survey. Great point. We should talk about that. So project overview and added some stuff about that. Give me precisely what is discussed about the analytics that need to be tracked on the website by the client for reporting purposes. Boom, here are the details did the I'll add these analytics to the website functionality section, boom. Okay. Was there a certain date in March the site needs to be live because I couldn't remember once the date by the end of March, okay. Awesome. Good. We'll put that in the overview. The comments say they wanted to make changes to the documents on big commerce, which is the current provider or in a spreadsheet? Yes. Good catch. They specifically said they want to make updates to the resource and descriptions blah, blah, blah, blah. Isn't this amazing? Did we talk about payment processors for the principle store at all? No, we didn't talk about it's just so like, the way this worked out. It was several days after the meeting when I was putting this proposal together. And you know, I had forgotten some of the salient details of the conversation but by uploading the transcript, I could then ask questions through Claude to the transcript and have an answer. Anybody excited about that? Like how cool is that? Could you immediately start doing this in your work? Uh huh. 100% 100%. So Melanie just got off a call for a client Melanie, grab the transcript, drop it in cloth and start asking questions. It'll blow you away. It will blow you away. All right. So there's some prompts that I just used. So if you if you're having this I haven't done this yet. I haven't done but I could very quickly see how when if you were to pair this with Zapier, have a call with a client. The transcript goes through Zapier and details that the prompt would be pull out action items and put them in this project in my project management system. It could, it would take some refining, but it could just meet you know how much you spend time filling out your project management tool based on all the stuff that all the stuff that you have to do after a call. Amazing. Amazing. So I don't know if I don't know if Claude goes to Zapier. This no chat GPT does. This would take some experimentation. This was just an idea I had after this. So pretty cool. Pretty cool. All right. Yeah, that wraps us up on the content side. And we're about 10 minutes till so. Alright, folks, what do you think? Questions? Comments? Who's ready to start using this? Clyde? That's the free version. I'm using the free version of Claude for this. All right, Ben question deciding between page chat GPT or may guy or do I need both? Okay, great question. So then, I would try both. Just try and see what you like, right? It's a very small cost for the first month. Just see what you think and what you like better. I would I use both. I pay for both. I am very, I think my habits are there. I go to chat GPT and do everything I could probably optimize a lot better if I just lived in May guy. It works really well. And then of course there's code WP you know, code WP. I haven't spent much time playing in this at all. Chris has. He's building a plugin in this earlier called brilliant insights. You know, Chris can tell us what he thinks about ko WP. I think the pros and cons on this one, right? With mega you miss plugins and chat GPT Yes, but you don't need them because they're built into the platform. It'll go out and grab URLs that's why originally we started using may guy to grab external URLs because chat GPT did not have a way to do that. Now it's since has added the ability to browse Yeah, so we're gonna be doing all the coding tomorrow. That's what all of tomorrow is about.\r\n\r\nLet's see. Okay, then. I don't think code WP would replace codable You really you have to know and might replace it to some degree. I mean, look, here's like, things that we would have outsourced to developers last year for a lot of money we're able to do in chat GPT yeah, there's still some things that you need. Like if the key to AI and coding. We're going to talk about this tomorrow. But again, it's all about the Prop. You have to know enough about what you're asking it to do to get it to do the right thing. Like for example, the very first thing I ever tried to do in chat GPT and a plugin almost almost gave up about 10 times. I stuck with it. Because I had to learn some things. It was just part of the learning curve. But you know, there were some things I was doing and I didn't realize that with this thing with pods. It was creating a user meta entry. I didn't know any of that. If I had known that. I could have said when you do this, it's going to update user meta and check that user meta and do this in the prompt. But it kept not working, not working, not working for like two hours. And I didn't understand why until I got into it and figured out why. So again, it's about you have to know some things to be able to ask the right thing to get it to do the right thing. Does that make sense? Yeah, like Gravity Forms. Like it's a single line. Like you could just say, I have gravity form ID for I do not want that form to store entries in the database. code snippet done. Great.\r\n\r\nAll right, scrolling up for questions here. Paul, why do people still use sites like Jasper? I don't know. It's so here's the thing like Jasper, what have they done with Jasper? So Jasper is it's a body of knowledge that sits on top of chat GPT right. So the Jasper team and like Bertha AI is another one of these AI tools that have been around for a while and they've gotten you know, they've gotten very refined. They have their own data set and instructions and things that sit on top of open AI and you might get better results with them depending you know, so it's it's kinda like these custom instructions that they have a whole app that's custom instructions that's built on top of the model. So you might see those things start to fall by the wayside, the better the core AI gets. But, you know, if you don't know how to prompt it, you get the you know, in this digital era garbage like we were talking about earlier, so Jasper is probably not going to give you that out of the box period. It's going to be better immediate content. So it probably good for those that haven't explored prompt crafting. Let's see scrolling down scrolling down, Stacy, do I charge the clients by the word? No. No, I haven't I haven't quite dialed in how to charge for this yet. Still trying to figure that out. We're doing some content for a couple of new clients right now, using chat GPT in very similar ways that I just described. I just charged the content creation. You know, that's just a flat cost in the in the project. I really haven't figured out how to charge for this yet. So you know, I'm still experimenting with how this even works. Let's see. Scrolling down scrolling down. Ben, what's the best to use to modify photos web based, then I don't know. I don't have an answer for that.\r\n\r\nSo I don't know if you can upload a photo to an image generator and have it tweak it for you. I don't think you can. I don't think we're there yet. But I could be wrong. If anybody knows. Feel free to drop that in the chat. Christine, if you listen to some of the SEO experts, they say not to use AI for content. Yeah. So that is if an SEO expert tells you that AI content will hurt your site's stop listening to that SEO expert, because Google has changed its own policies about that. Google is providing a generative AI for heaven's sake. They've changed Google has changed its guidelines to as long as the I can't remember we talked about this at length in news roundups in the SEO section over the last few months, because this was a big thing in the early earlier this year. It's not about who generates the content, Google changed their guidelines to refocus on is this content helpful to humans, or is this content just generated to create search results? Or is this actually content for humans? Let's see scrolling scrolling. Yet. rankmath has AI general and you're gonna see more and more stuff in WordPress with AI. Okay, Jeff fun today. Who's gonna spend some time on the rest of this afternoon playing around with some content in AI? Dave, you're right, Google could change their mind at any time on what they do.\r\n\r\nYoast also has AI Yep. All right. Anybody else before we wrap up? Alrighty, tomorrow. It's all about the code. So I have many, many, many code examples in the handout in the handbook that we have done and you can we'll browse through some of those. We'll do some live stuff tomorrow. And in the final hour tomorrow, falling under what could possibly go wrong, but we're going to try to build a full plugin with multiple files live right here on the live stream. So you know, we're gonna break everything. It should be fun. Okay, go play around with AI and tell me what you come up with tomorrow when we come back. So we're back tomorrow. 1pm central to 3pm Central like today. See you back here then on solid Academy where we go further together.\r\n\r\nYeah, wasn't that amazing? That is absolutely amazing\r\n\r\ncaptions connected\r\n\r\nall right captions should now be working for all.\r\n\r\nMaster prompter? Yep\r\n\r\nAll right, so\r\n\r\ntoday we are specifically focused on code\r\n\r\nshould be a lot of fun Welcome Welcome, everybody.\r\n\r\nBeth,\r\n\r\nyou're gonna like this. I really think you will.\r\n\r\nBecause even if you don't do the code, you can kind of do the code.\r\n\r\nJohn, can\r\n\r\nClaude read PDFs Yes.\r\n\r\nYeah, clods pretty awesome. Lot is pretty awesome\r\n\r\ncustom instructions and chat GBT? Yeah, that's really helpful,\r\n\r\nright? For sure. All right. Did anybody do anything\r\n\r\npractical between yesterday and now? Did you try any content generation let me hear from you.\r\n\r\nWhat did you do? How did it go?\r\n\r\nwas having a conversation earlier\r\n\r\ntoday and the suggestion was made that as quickly as AI is advancing maybe we should do like a quarterly quarterly AI roundup and that was de bronze suggestion. I mean, because it's moving so quickly. I just literally,\r\n\r\nlike five minutes ago, learn something new. That Chris showed me. All right,\r\n\r\njust about ready to start everybody who's ready to go day two talking about code. Yay, code.\r\n\r\nNP NCSS.\r\n\r\nAll right. It's three minutes after let's dive in\r\n\r\nWelcome back, everybody\r\n\r\nto day two of the WordPress AI workshop here on the solid Academy. Really, really excited about day two because this part I mean, the content stuff yesterday was fun. Today it's an even if you don't do code, it's likely you'll be able to do some code. If you can copy and paste and troubleshoot a little bit, you'll be able to do far more than you ever thought possible. I promise you so it should be a lot of fun today. So yesterday, we talked all about some foundations of AI and where it all came from and why all of a sudden like less than a year ago AI became the thing. We talked about some best practices on you know how to use AI and how not to use AI and some mistakes that are commonly made. So if you missed yesterday, I would suggest you go back and watch the replay. It is there and ready to go for you. You can even speed it up to 1.5 or 2x if you want and I'll just talk really fast and you can get through a lot of that information. The content piece yesterday, I would just again encourage you to experiment with that. What I showed you yesterday was not like the Bible on how to do it. It really just this is what I've been doing. And I found it to be really helpful and take that and build on it. You know you may find certain prompts and certain ways to ask things that work better for you and your workflow. And you may find some little Easter eggs hidden in there as well. So the big takeaway from all this is it's all about the prompt. That's the number one thing I had to get out of this whole workshop and we are always going to be refining our prompts. So today what we've got, again, focused on code, mostly PHP, there will be I think there's some jQuery in some of these that generated and there's at least a few instances of CSS it no chat, GBT knows all those things. And it can really, really make our work simpler, even if it's things you understand, like if you could write CSS, then you just prefer not to chat. GPT can do that for you with some description. So what I'm giving you here is at the beginning of today, are it's really a list of conversations that I've had with chat GPT over the last year, it's some various points of this year. And if we look at the date on some of these, they go back to March, April, and I was really just learning how to use chat GPT so you'll, you'll see sort of the evolution of my use of chat GPT through these processes. And so I don't know how this is gonna go. We've never done this before. So my thought is I'm going to talk you through each of these conversations with chat GPT and you know how, what you know why I asked what I asked what the problem was I was trying to solve, and hopefully, this would this will give you ideas of how to proceed with solving certain problems that are code related with chat GPT so does that make sense? That's kind of my approach here. It may not work at all. Hopefully it'll be great. Hopefully, you'll learn some things but either way, you can see some of the ways that I've used AI over this time. The other thing here I got started getting a little worried Yeah, I started getting a little worried earlier today because I've gotten frustrated a chat GPT I mean, I'm gonna be honest I've gotten frustrated chat GB to there may or may not be conversations I've had with chat GPT in which profanity was involved. That might have happened, possibly once or twice, and I hope none of these conversations include those but if they do, I'm gonna scroll right past them real quick. But you know, it's a journey, right? It's a conversation. There may or may not be insults because I got frustrated, but chat GPT just you know, it replies graciously.\r\n\r\nSo, here we go.\r\n\r\nY'all ready to get into this? So let Okay, let me let me test let's take a quick temperature check in the chat. Give me this chat. GPT to insult you back. Oh, I think it I don't think it's core programming allows for that. But that could be awfully fun. So give me in the chat. Give me a one to 10 on how comfortable you feel with dealing with PHP snippets. Right. And by that I mean you're not going to write the thing, but you're okay with like finding a snippet and maybe editing a couple things, whatever. Okay, give me a one to 10 on how comfortable you are dealing with PHP snippets. Alright, so several high on the high end, several on the low end. A couple of zeros. We'll take that. Okay. So okay, here's the thing. If you're on the 0123 end, chat, GBT is all about the prompt. Right? And so it's gonna be a little harder for you to know. Like the idea here. It's kind of like finding that PHP snippet on the web, and just kind of being able to read it not knowing exactly, but there's enough syntax and like the the terms that are using WordPress, PHP are usually clear enough, where you can kind of have sort of an idea of what's going on. And so that's gonna, that skill is going to be very helpful here. So just, I mean, hopefully it's obvious like if you're zero on understanding PHP, this is going to be a challenge. And I can't teach PHP in this course. But I can show you how chat GPT will generate snippets and how we troubleshoot them. So if you're on the higher end of the scale, I think you're gonna pick this right up and go this is awesome. And if you're not using chat GPT already this I mean, you're gonna be picking this up and being up to speed almost immediately. So don't get frustrated. If you you know, if your understanding of PHP isn't quite as high as maybe you'd like it to be or whatever, don't get frustrated, it's likely still that you'll be able to generate some code snippets that will help you so hang in there is Sue here today. And we have an m&m Check I don't see see in the chat. So here\r\n\r\nwe go. All right. Ah, all righty.\r\n\r\nSo let's get started. I have separated these out into categories. So here's four things that over the course of the year I've done on various projects. To do something to manipulate the core code of WordPress, some snippets, that would affect the core functionality of WordPress and I need\r\n\r\nto find\r\n\r\nheritance All right, so let's get started with this one. So how many of you are familiar with this issue of user enumeration? This is something that WordPress will do. You can with a query you know, find out who is author number one author equals two or whatever. And this is a way it's really not used that much anymore. It's more of a security by obscurity issue, where you can query WordPress, and it will give you the username of authors if you ask it, what the IP by the ID. And so there are bots that will try to hammer away at your site and get a list of usernames on the site that are authors. And then they'll try to come in and pound away with passwords. Not nearly used as much anymore. But this is something that there's a script for it. You can block it, and it's really easy to do. This was the prompt. I mean, talk about a simple prompt. Actually, I think we even this might have come from an office hours earlier this month. When he\r\n\r\nsix don't think Well anyway, the prompt is\r\n\r\nsimple. Can you write a PHP script that will stop user enumeration in WordPress? I mean, that's about as straightforward as it gets. Now chat GPT will typically respond with some context. This is what user enumeration is. Like I didn't really need to know that but I mean whatever. And you can even tell it don't give me explanation. Just write the script. So we're going to remove revealing error messages restrict access to whatever that is. Alright, so here's a PHP script that can help in preventing user enumeration. Now it's actually given me a plug in here. I didn't ask for that. So that was a little bit of a surprise. I was really hoping for just a snippet that I could add to my custom functions plugins, but it wrote the whole it wrote the whole plugin. Now if your understanding of PHP is maybe a little less, these explanations are super helpful. It's just that as I'm Chad CBT for GPT four is a little slower. And so it's sometimes and during different usage levels during the day. It's faster sometimes and slower other times. And so like sometimes I just don't want all the explanation. I just want the code but it's gonna give you the stuff by default, but anyway, here it is. They're just boom. Like that's it. And so, a simple prompt gives me exactly the code that I would need to go out and add it to my you know, add it as a plugin or just add it to a custom functions plugin. So this is likely going to go in my base site. I mean, why not? It's, you know, 1012 lines of code and it stops user enumeration, so why not, it's not going to slow anything down. So see how easy that is it and you can just copy this right here and it's copied to the clipboard and you can paste it in your code editor and there it is.\r\n\r\nDoes that. I mean, who can everybody do? That? I think so. That's pretty easy.\r\n\r\nSally, great question. How do you assume the code is correct? Okay, so this would be a good, I'm going to hit and by the way, if you have a chat GPT account on all these links that I've shared you can click this link and it will transfer this conversation. Yes, over into your chat GPT. So you get the whole history and it knows all it has processed this and now it is as though you are having this conversation. So let Sally How do we know this works? Okay, so let's just say please, you just asked chat GPT please\r\n\r\nanalyze this code to make sure it will work, which doesn't often be helpful for compatibility with PHP 8.2\r\n\r\nOut of the spa compatibility, right. And for any\r\n\r\nsecurity issues,\r\n\r\nyou're gonna see that come up several times. That little bit was in the the last the Save instructions from yesterday, but I have those turned off right now. So even though I misspelled completely blue lI right there, it knew what I was talking about. So it's looking at the code. I don't know why it's echoing it back out that's\r\n\r\ninteresting.\r\n\r\nDoesn't seem to have any deprecated functions. The functions and structure are typical for a plug in no complex functionality that should break security and the error No WordPress errors function effectively. replaces any login error with generics. So that's good. The regular expression preg match\r\n\r\nfunctions for an author regex appears to be safe.\r\n\r\nredirection is used appropriately output there's no direct user input so there's no risk of cross site scripting. doesn't interact with the database and no SQL injection concerns. Use of exit after redirect is good. So security looks good. Isn't that nifty? So Bonnie, back to your was it Bonnie? I know Sally back to your question. The How do you know if it works? You put it in there and see if it breaks. And you're we're gonna see in future conversations that we'll look at in this process of like, it didn't work. And so we got to go debug it. And so a lot of times it's going to be we open up the error log and have that there and we're pulling errors out of the error log and dropping instead. This is what happened in chat. GPT will fix itself. Yeah. So it's like that.\r\n\r\nSo this was a very simple\r\n\r\nexample, but do you see how quickly it can solve a problem. So now honestly, for me, it used to be that if I was trying to solve a basic problem in WordPress, I needed a code snippet for something. What would I do? What would you do before AI? You'd go to Google you try to describe your problem as best as possible. You weed through 800 blog posts until you finally find some person that talks about the thing. Paul says Ask in office hours.\r\n\r\nThank you, Paul.\r\n\r\nThat's pretty funny.\r\n\r\nBut let's say you happen\r\n\r\nto be the person doing office hours and you don't have the answer. You would Google it right. And you would try to find hopefully some developer on some blog post somewhere is or the maybe there's a you know, a StackOverflow article that's not standard that's that has enough snark to get the right answer, but not too much snark that you don't want to read it. Anyway. Now you can just go to my go twos to go to chat GPT and have it generate the code. Pretty, pretty amazing. Okay, so there's our stop user enumeration. All right, how about this one, this one just, we had a client I'm sure none of you have this issue. But we had a client who started uploading video to the WordPress media library. Is there a plugin that will stop video? Yes. But why do I want to install another plugin when I could just use a very simple code snippet? A lot of plugins like this, you know, like there's, I think there's a stop video uploads or whatever. But it's going to add a settings page with different formats of videos there. And you know, it's somebody's plugin and they're probably going to put ad spam over my whatever. So one of the beautiful things about having chat GPT generate these snippets is I don't have to install all these plugins on my site that are going to add extra admin menus which y'all know just gets on my nerves. I you know, adding a top level WordPress Admin Menu and it's not necessary and even then they can put ad spam, we can get rid of all that stuff. You know, and a lot of these plugins are going to add code that I really don't need if I just need this one little section. And so I just want a snippet that says I don't want any video files, period to be uploadable to my media library. So that's what I said, Well, I can't remember what the prompt was, but it was fairly recent.\r\n\r\nYeah, earlier this month. This is all I said.\r\n\r\nAnd this is all you had to say it has enough context. I need a WordPress function to prevent video files from being uploaded to the Media Library. That's literally all the context it needs. It knows WordPress code, and I've told it what I want it to do. Alright, so to prevent that guy, you can make use of this filter or hook in WordPress. Here's your function. Now it is disallowing these media types. If there's other video formats, then you can add those just in the same format in a row here. Add this to your functions dot php, your credit custom plugin awesome. Make this a plugin I can use in the M you plugins is my next prompt. Sure, I'll help you do that. Boom, prevent video uploads, blah, blah, blah, blah. Now it's a plugin. And all I had to do at this point was copy the code. go create a file in the me plugins folder and it's done. Problem solved. I don't have to go search for a plug in. I don't have to test it and make sure it works. I don't have to, you know fight through top level MIT. It's just right there. It's simple code. This is not going to slow down the site. It's just going to work. You could make this its own standalone me plugin or you could just copy the function part out of it without the plugin header and drop this if you already had a custom functions plug in, drop it in there.\r\n\r\nDone. See how easy that is? Now let\r\n\r\nme ask Okay, for those of you who are on the 0123 rating that you gave yourself,\r\n\r\ncould you do this?\r\n\r\nLike those of you that write it yourself, write it in that area. How do you feel about this? Like you could totally do this right?\r\n\r\nAnd how much time is this gonna save you because it's awesome.\r\n\r\nDon't be afraid of experimenting with chat GPT to do these things, just make sure that you have immediate file access in case you pay something that breaks everything they just unpainted and you're back to normal. But just it's this is going to level you up. Like nothing I've seen in the recent past have your ability to do really cool things in WordPress.\r\n\r\nYeah. And like David's saying\r\n\r\nthat's the other side of this, even if you're high on the scale. Like why go through the hassle of writing this stuff yourself. Just drop it in chat. GPT there it is\r\n\r\nand add it. It's done. Pretty crazy.\r\n\r\nOh Chris. Thank you. Great point. If you're going to add or edit php code, I hope you have disallowed file editor already as a best practice. Don't do this in the file editor in WordPress. This is why I have open here for the next section, the file editor from cPanel who are actually going to go in and edit things that way please don't do it from within the WordPress.\r\n\r\nThank you for that. Okay.\r\n\r\nYou like this everybody? Good. Let's keep going. I got a lot of examples here. Okay, this is actually something from the Academy site. So we got a request from the from solid marketing to say we wanted Is there a way that we can very easily add remarketing scripts to each individual livestream event. So let's say there's something we're promoting. It's like a solid security whatever, and marketing wants to drop in a Facebook pixel just on that event. Is there an easy way we can do that? Sure. Okay. In WordPress, I went in and meta box and I created a custom field for the tracking code just a text area. And here's the slug. In WordPress, I have a custom field with the slug this that used on posting the custom post type with the with the slug this Okay, so this detail is super important and we pause right here. I've gone round and round and round with chat GPT and things took a lot longer until I realized\r\n\r\nthis key here this this is important. It's always better to use the slug\r\n\r\nbecause depending on you know if you're just using the name of a custom post type, or the name that like the the visual name of a custom field, the label is what I'm trying to say. Don't do that because that can get squirrely the slug is always going to be the same no matter what if you're using the full name. You know there might be a space or depends on how that's going to convert. It has an underscore how's it going to actually look? It's hard to know that the slug is always the slug so use the slug when you're talking about these sorts of things. While viewing a post type in the trap events post type if the custom field is not empty, I want to add the contents just above the head. So basically, don't do anything if they haven't put a tracking code in there. But if they've pasted the pixel on that event, I want it to show up in the head so that it shows up. Can you write a function? Well, of course I can because I'm chatting GPT I can do all and it's just there it is very simple. Very simple thing. Okay, I go now okay, I want to add comments around the tracking code so that we you know, we wrap it in a comment basically just so we can make sure it's there easily. And so it edited the code to give me that and I'm done. Like how easy was that? So so easy. Now we have this really cool functionality on the Academy site that lets marketing just go in and in that custom field drop in their pixel and update the event and they're done and it just works. Yeah, it literally Yeah, Chris literally just a couple of minutes to do this.\r\n\r\nPretty cool. Questions, comments about that?\r\n\r\nI mean, it's literally any question the client asks that's going to require me to go in and create something as a function. Can I do that in chat? GPT and the answer is\r\n\r\nprobably, yeah, probably. All right, moving down. Okay, this\r\n\r\nis a good one.\r\n\r\nThis may have been I think this is\r\n\r\nan academy one too. Let me just see\r\n\r\nreal quick, Robert.\r\n\r\nNo, it wasn't it. This was for some other client. I can't remember what it was. So this was how many of you have wanted to hide the admin bar on the front end, like you've got a membership site, and they log in and you want to get rid of that admin bar. Some plugins will do that for you. There are certain like membership plugins will hide the admin bar or whatever. There are some plugins that all they do is hide the admin bar but there's some of them are weird. So why not just get code to do this? And so this is my this is my prompt, I need to create a WordPress PHP snippet that does the following prevents access to the WordPress admin area for logged in users. Of any role other than editor and administrator and instead redirects those other roles to site URL my dashboard. Number two, it hides the WordPress admin bar from all users on the front end other than editors and administrators\r\n\r\nboom, there it is. Quick, done. Easy. Amazing.\r\n\r\nSo it gives me a little explanation. And I literally just that simple prompt, copy the code, paste it and functions and I'm done. Pretty crazy.\r\n\r\nAlright, let me pause right here.\r\n\r\nQuestions. Does this make sense? Do you see how to do this? You see how quickly you can build custom functionality into WordPress. And here's the thing. We're dealing with open source code. So there's, you know, there's all these articles out there, and people are going nuts about AI and you know, the legal like, you're gonna get sued for using AI and blah, blah, blah. I don't know, in this area. As we're dealing with WordPress, all of this code is open source, even if it's in a premium plugin. With in premium plugins, the code is not the code is not copyright protected. Anything the nature of open source is that anything that is built on code that is GPL compliant, which is WordPress, any plugins that plug in to WordPress, also have to be open source. When you're buying a plugin. You're not buying the code. The code is free. Because it's open source, it has to be open source. What you're buying in a premium plugin is access to updates and support meaning all this code there's no copyright now I'm not a lawyer. Okay. But based on my understanding of the GPL all code, we don't have to worry about copyright issues with any of this. So at least in this application of AI, there's no copyright concerns whatsoever. Pretty amazing. Yeah.\r\n\r\nChris, I talked about custom\r\n\r\ninstructions yesterday. I'm not gonna be able to go back to that today but it's in your settings, and you can drop that in. Alright, any other questions about this before I move forward?\r\n\r\nOkay, um, this was okay. This was a little. This is a little granular.\r\n\r\nBut here's an idea of this will just show you what you can do. So we had a site where the way it was built by the original built a developer of the site\r\n\r\nthere was they had put\r\n\r\ninto WooCommerce product descriptions, HTML tags, like the h1 tags and everything, just the way the site was built. The the product title was being rendered by the product description and not by a template, right? It works perfectly fine. Nothing wrong with that except when you build that into a new theme that has a title and all that now you've got two h ones and duplicate titles and all that. So what do you like? How do you deal with that? Clearly, I don't want to go through 800 products and remove all this HTML. So can you can you do something about this? Yes, you can. And I actually don't have that first prompt here. I'll just explain it basically what we went in there and asked chat GPT if it sees an h1 tag, remove it and anything that it contains, because it's the page title is already in the template. So remove the h1 tag and anything inside of it. Remove h2 and h3 any of that stuff, remove it completely, and chat GBT built us a little function that lived temporarily in the functions dot php, that as a product was updated.\r\n\r\nIt would strip that stuff out. It would just be gone.\r\n\r\nAnd so I mean, think about how much manual work that say it was an unbelievable. Plus, we actually discovered that you could go and this works with any post. But if you just go in, you can click this and do edit and you don't have to make any changes but hit update. And these products are now actually being updated. And it took care of all of our it stripped all that HTML out. Now, where that left us was these two situations where Okay, now we had some empty spaces. So our empty spaces were an issue\r\n\r\nare we not loading?\r\n\r\nWell,\r\n\r\nyeah, and Chris is right. It works with anything regarding the post assigning categories, custom fields, whatever. Wonder why this isn't loading\r\n\r\nOkay, that was weird. Okay. So here we\r\n\r\ngo. Here's my prompt in WooCommerce products. I have many that have several empty line spaces in the text view. So it's in the Code view right in text and some lines that just have a the, the ASCII code. HTML code for the space right and percent nbsp colon, semicolon. This causes a lot of empty spaces to be shown on the front end. I want to keep any empty lines where there's just one, like if it's a line break, we want to keep that but if there are two or more lines that are empty, I want to remove them. Treat lines that only have the space as also empty. This should run when a WooCommerce commerce product has updated. It should look at text in the product long and short description for this function. And so there's the thing that it did and it was just using the the string REPLACE function that PHP and the preg replace, to go in and update the content and so it's stripped out all those spaces. So everything was nice and tight. Like it was supposed to be really, really remarkable. We didn't know how to do this didn't have a clue that I didn't think it could be done but we just asked and chat GPT did it. Pretty amazing. A similar thing here in WordPress, I have text in a WooCommerce product that has a line break but not a paragraph. So for example, it was like this and then went right into the next paragraph. This kind of thing occurs on most products. Is there a way to detect this with PHP and add a paragraph break instead of a line break when the product is updated? Certainly you can says chat GPT boom, there it is. And so look what it's going to do. It's going to wrap things in p tags. And guess what it works except Okay, wait a minute, we found an issue. Sometimes there are multiple spaces together like this. I don't want to exacerbate that with lots of extra p tags. So this is what we are getting. So again, context, I gave it the actual example of the text to show what we're trying to accomplish. That's super important. This is part of that training the conversation, giving chat GPT more information and you know, so it knows better what to do. So in your example, blah, blah, blah, you can use reg X reg X tackle blah blah blah. Is there a way to add another space rather than adding a p tag the copy paste I sent was from the code editor and WordPress not the visual editor. Alright, so that what just happened didn't work. So we did it again. And now it fixed it. And that I think, oh, that didn't work. This is me being very terse live chat GBT. That didn't change anything. Okay, sorry about that. Let's did it. It did some new code put that in Okay. After running that gives full instructions. The extra spaces are removed, but the lines where there should be an extra space were not affected. So and again, this is just, it doesn't always happen the first time a lot of times it does, but you just have to go back and you can repeat in plain English what you're seeing happen. And chat GPT will often eventually figure it out. Looks like this took a number of different rivers still not working. Going down new code. Okay, that and that one actually worked. So it took a little bit, but we eventually narrowed it down to figure all this out. So if it doesn't work the first time, don't get frustrated. Keep at it, refine your prompt, give it more information, keep trying it, and you'll find that it will likely ultimately work. Paul, would it be better to clean the data in the database instead of scrubbing it when it gets displayed? How do you decide when to do that? It's a good question. So we could have done it that way and done it with like a SQL command. Because essentially, that's what all of this is. I mean, you could run a lot of this in a SQL command. We were working from internally in WordPress and it worked just fine. But you could do it same thing. I mean if we said like we could let me just continue this conversation. All right, take this final solution and create a SQL command that can be run on the\r\n\r\nproducts. The products table\r\n\r\nso if you're comfortable with doing SQL, you could probably do it this way.\r\n\r\nThere it is.\r\n\r\nOnce it's now understood what you're trying to accomplish the likelihood of that command working is pretty strong. I'm not gonna run it but yeah.\r\n\r\nAlways take a backup of your database.\r\n\r\nSally, would you put those function adjustments into a code snippets plugin? You could totally do that too. Yeah. So you could use code snippets I usually get into. I don't like to do any of this from within WordPress. Because if the coat like if you're using code snippets, for example, and the code you put in white screens, WordPress, you're toast, because you can't go in and edit your code snippet. You. I mean, you could do that, but it's just not the best way to do it. That's why I would suggest going in through you know, a CD like cPanel File Manager or your your text editor, code editor SFTP into your site, and doing it that way. You don't want to get into the situation where you add some code, something is wrong. There's a white screen and now you're stuck.\r\n\r\nYeah. Does that make sense?\r\n\r\nAll right.\r\n\r\nLooking at time here, I'm gonna skip through some of these things. You can on the whole chat you can go back and look at these if you want this creating a shortcode that had like a click to call with a phone icon. That was pretty cool. Even this, I am going to show this. I can't remember if I provided the S Okay, I did get okay. So I gave it the actual SVG file the TAT SVG tag for the icon I wanted and it built out a whole shortcode that included that which is pretty darn cool.\r\n\r\nAll right. How about this? Have you ever\r\n\r\nthere are plugins that will allow you to in WooCommerce assign a role to a user if they purchase a certain product and that's often used for some sort of membership product or, you know, you buy this thing in the WooCommerce store and that grants you access to another part of the site for example, and you have to have a membership plugin or a plugin like yes, one of the youth plugins why ith used to be like roll something or other for WooCommerce I think they quit supporting it. But it's so easy. Look how easy it is to do this. It is a simple function. I need you to create a WooCommerce function that does the following. When a customer buys product with ID this again another example of use the slug or the ID or something about that thing that never changes. So when a customer buys this product after checkout is successful. Add a role to the Add a role to that user with the slug in this case Ruach which is the name of the membership product. Also customers personally that product should be forced to create an account at checkout. So we had a plug in that was doing this and it was actually that yes, why it Ah yes. WooCommerce roll something or other and they've quit supporting that it was causing problems. And so it's literally that function. What is that? 10 lines 123467 Yeah, I mean it's mostly empty space.\r\n\r\nIt's literally\r\n\r\nif it's that ID then add a roll. I mean, it's just it's so it's just a very, very simple\r\n\r\nthing and it's done. I don't want\r\n\r\nOkay, so apparently. Let's see, okay, it actually misunderstood me here. Okay. And I stopped it because I was I was actually looking at the code here because there's nothing in here about assigning a role. It missed this. It was only saying if the user is not logged in, and we're in the cart, then you and this item, then we gotta force. That's not what I want. I don't want all users to be forced to create an account only those that are purchasing that specific product. It's like oh, okay, so if it's this ID then we're going to do all the things so there's actually two functions force account creation for that product if that product is being bought, and assign that role after checkout. So there's two functions here two snippets. It gives me the explanation. Now okay, add a notice at the top of the checkout page when the account creation is required that says you will need to create an account using your email address and password in order to access route journey online videos after your purchase. So we just you know, we're continuing, I put it in there figured, okay, the user really needs to know that they got to create an account. So we're just going to add that that little message if the case is like it's not going to show up there unless they're about to purchase that product. In testing, the roll was not applied. Okay, so we're going through we're testing this it didn't work. If the roll isn't being applied, let's okay make sure it exists. It did. The order status has reached Completed status. That was the problem. So if I scroll down, order is still processing let's make the roll change while the order is processing not completed.\r\n\r\nSo boom.\r\n\r\nIt's it was a digital product, but it could have been that there were other actual products in the process. Anyway, you see this? Again, it's just an example of the thinking through and refining of this code throughout the process and that works. That says if I have a plugin that does many things, but I only use it for one very simple thing. Do you recommend I use GPT to create my own code to do that in order to reduce the number of plugins? For example, I use loco translate to change one WooCommerce label. Oh, you could totally do that with a single function. Yeah, you would just so the key to that is how can you describe in enough specificity? What label that is? Like, you know, probably if you inspect it on the front end, you'll get the actual you know, you can get the actual ID of that label and you can tell chat GPT in WooCommerce for this on this label, translate it to this. Make it save this and it'll, it'll totally do that.\r\n\r\nYeah, play with it back up\r\n\r\nand be ready in a file editor to actually back out your changes. Everything comes to a\r\n\r\nscreeching halt. Beth I have faith in you that you can do this you can totally do this. All right. Let me see what else to\r\n\r\nshow here. Here's one that says we don't ship the PIO boxes at all. So it's going to disallow Pio boxes from the address. A lot of these are just very niche things we wanted to add a SKU to the product description so that it's searchable, right? How do you make you know, maybe you want people to be able to type in on the front end of the site, the SKU in the search box WooCommerce doesn't search skews by default. So a workaround we found was to just put the SKU in the product description. So when the product is updated, it adds tech SKU, colon, and then the SKU and now it's searchable. Pretty cool. How about this? Only search titles on the WooCommerce back end like I don't want you to search for if it's occur if this term occurs in the description or whatever. I don't want that I only want the search results to be in the actual product names themselves. That's kind of cool. Okay, here's a good one. I talked about this one already, but this is something I see a lot like so maybe you're using Gravity Forms to do like as your MailChimp subscribe form. I don't want those entries in my database that's going to be tons. So act as a WooCommerce. Developer help me write a PHP snippet using Gravity Forms form ID four, I do not want to store entries in the database. The form uses the MailChimp connector to add the form info so I want to be sure it still works with whatever code is generated. Also, the like I don't know what the code how this code is going to affect the MailChimp connection, so I just told it to take that into consideration. Also, the form is set to display a confirmation message I've customized and gravity form settings this also needs to work. So the two things that are peculiar about this form I just made sure to mention those. And then boom, there's my little bit of code. Now. I think gravity, some of the gravity add ons you have to pay for will let you do this. But it's literally four lines of code to do this and it's done. And now that form is no longer going to store submissions and just stack up 1000s and 1000s of email addresses in the database. Don't need it. Right. Describe your problem as best you can and then iterate. Okay, let's get into something more complicated. This one we actually did. I think this was in an office hours. We did this one. So there's this plugin. I think the question was, is there a way that I can easily show view like how many times a page was viewed on the back end and WordPress without having to get into any Google Analytics or whatever I just want a basic view count. And you can there's this plug in plug in I think we did an around up called Awesome viewcount now, it only works for posts. This plugin. I don't know if they have a premium version or what but it only works for posts. So alright, this is a WordPress plugin that adds a view count to the posts list. Currently, it only works with posts modify the code that works for posts pages all define custom post types, including WooCommerce products. Make sure you adjust not only the code to display the view count on all post types, but also the mechanism for tracking views of those post types. I want you to change the code so that it can be added in a code snippets plugin rather than being installed the standard plugin. So I mean, whatever you want to do here, and then it was a one file plugin. So I just copied the PHP and dropped it right in there. Okay, here's how you can modify the code. There goes now it's gonna it'll work now for all post types. The count does not appear in the WooCommerce product list, nor does it appear for custom post types. Oh, so it worked for pages, but not for posts. My apologies custom post types uses different set of hooks. Okay, now update that to fix that. Now. It should have done that as part of my original prompt, but it missed it. So we added the code tested it didn't work this describe it what was going on. Now it fixes the code. Still not appearing for custom post types. Bummer. What happened here? Oh, the timing. Of when get post this call. Alright. So we're going to change up the timing here in the code. And that work. Oh, but wouldn't it be cool if we could make that views columns sortable? So we could sort by which page or post or whatever has the most. We're sure to make that we're just going to do this. And there it goes. Boom, boom, boom, boom, boom, boom, boom,\r\n\r\nand it works. So that's it. Pretty cool, right? So take\r\n\r\na plugin that is almost what you want and ask chat GPT to improve it. Okay, this is a really helpful thing. How many of you are in a beaver builder stack and you remember this plugin that I've been I've recommended a long time ago, called BVB delete cache right on the front end of the site. It adds a little drop down inside beaver builder that says Clear Cache, super helpful. Did you know that unless you've fixed it, it is filling up your error logs with errors because it hasn't been touched in quite some time.\r\n\r\nOkay, let's fix that.\r\n\r\nSo I noticed they were getting errors. All right, I'm getting this error in the WordPress log. Boom, error read property No, blah, blah, blah. The plugin file in question is paste in the whole thing. It's a very simple PHP file. Line 98 Is this. So you know, that was the line that was mentioned in the error? And chat GPT doesn't really have a way to count these lines. So I just, you know, in the file editor, I could see what line 98 was, and so I gave it that. So I've given it a lot of context. I've explained the error. I'm going to ask chat GPT to fix it. So it explains what's the deal. There's an attempt to read Id No, but why why the issue is here to fix this you got in blah, blah, blah, blah. Okay. So I don't care about any of that. Just give me the whole plugin file again, with the fix in place. Certainly.\r\n\r\nBoom, there it is. All right. Now,\r\n\r\nhere's that the magic line, act as a WordPress developer analyze that and you actually you really don't have to say this anymore. I used to be helpful, I found that the results don't matter by using this. Analyze this plugin for security issues and phba to blah, blah, blah, security issue didn't have to do all this stuff right here, blah, blah, blah, blah. You suggest specific changes to the code, so it didn't really give me a good actionable thing. Maybe I should have asked that different. So based on this, this is what I recommend blah, blah, blah. Okay. Make changes for recommendations one and two. Okay, sure. Boom, there it is. Okay, chat. GPT does this from time to time it will give you just the piece to change because it wants to minimize the amount of output it's giving. Now if you are like me, especially if you if you are rating yourself lower on the PHP experience spectrum. I'm gonna mess this up. Is anybody else gonna mess this up? Like I'm gonna miss I'm gonna miss copy. I'm gonna miss a stupid semicolon or whatever, a squiggly bracket. And you know, the fact that I call them squiggly brackets should tell you enough. Yeah, so I don't want to cobble together the code. Okay. So give me the whole new plugin, like the whole PHP thing. Don't give me the little snippets. Certainly. Boom, there it is. Error is fixed. Everything works. Now, I did have another question. I was just curious about what the text domain was at the top here. Do I really need that? And it just explained to me what it was there. So pretty cool, right? Davia chat, GBT doesn't know what PHP 8.2 is.\r\n\r\nBen, what if you want to change\r\n\r\na bigger plugin that's in multiple files. Okay, so then you would have to train it right? You would have to say I'm about to give you a WordPress plugin that contains multiple files and folders, maybe explain the folder structure and what each of the file names are. And then say, Okay, here's the code for this file, boom, here's the code for this file, boom, it's gonna be tedious. The code wp.ai that I mentioned yesterday, is likely going to be better to handle that scenario. I haven't really used it yet. It's brand new, literally, brand new week old. And if there's a few little bugs that have popped up in there, where the developer is actively working on that tool, I think it's going to be fantastic. But that that's probably a better way to approach it. Ben, is there a chat GBT plugin to load multiple files? I don't think you could load a PHP file directly in the chat GPT. I would imagine they would consider that a security risk. Because think what you could do, right? So maybe, if you put them in a text file and had a reference, but then it's just, I mean, you might as well just paste it in. So I imagine that's gonna get better with time. But for now, that's the approach we have to take. Stacy is the Delete cache built into Beaver Builder? Yeah, it's just buried in the settings. And what that little plugin does is it grabs the function that delete that that clears the cache and just puts it in an easier place to find it's part of beaver builder that the plugin just puts it in underneath the submenu on the front end of the site is all it does. Dave is asking, How can you ask it to be compatible with Hey, that to me, you really can't. But you notice in an earlier response, it said I don't know eight not two, but based on what you've said. There's really nothing here that's deprecated and it's using common functions, so you're probably okay, so it doesn't know 8.2 yet.\r\n\r\nYou could say that one it's definitely knows 8.1. Sherry, can you feed it a dot two? I don't think so. Okay, here's another thing\r\n\r\nwe got to start getting ready to land the plane on this on this piece. Okay, this was we may actually go a little long on the segment depending on how this goes. So this, this is cool. Okay, this is an approach I want you to take notice, because it's very helpful. Again, it's all about the prompts. Right? It's all about training chat. GPT in the conversations, this is you know, basic foundational things about using AI that we talked about yesterday. Doesn't matter if you're generating content, generating code, whatever. It's all about what information how much context can I give to chat GPT to help it solve the problem better. So there's all this documentation for these plugins out there, right like, you know, if you're using a developer centric plugin, like meta box or Gravity Forms or whatever, and then got all those Doc's out there, and you've got a whole page with like, you know, different code snippets and functions that apply in there almost what you need, but not quite. You can just give it those things. And it will, you know, it'll take all that into consideration and give you an answer. Often based on the stuff that it's got. So here's, this was a problem I was trying to solve. So here's the actual, the actual issue. This is a client we've had for a long time. They're a dentist in Southern California. We were rebuilding a site, we've rebuilt this thing now. I mean, I think this is the fourth iteration of the site. And for years, their blog had no featured images. And so they didn't want to go back and add literally 1000 featured images to all the blog posts on this site. Okay, it's hundreds and hundreds and hundreds, right. So instead, we decided we're going to do a category featured image and use that because the blog used to just be a straight text list. It was terrible,\r\n\r\nbut that's what they wanted to do. So instead of\r\n\r\nhaving to do a different featured image for every product, we did category featured images. So you'll notice that some of these are the same, but that's better than no featured images at all. Right? Like this picture comes up multiple, whatever, right? So I found this plugin. That's the problem we're trying to solve is how do we get category featured category images to work for posts? So I've got this plugin that I found called categories images that allows a featured image for each post category, but I need to do is have that image output as a shortcode in a beaver theme or layout, here's the documentation for the categories image plugin. Now here is this is the tactic I was just describing. So what I've got here, this is text that I can't remember if it was on the plugin page or the developer side or whatever. But I just grabbed the whole this is probably the plugin page. I just pasted everything that had a ton of usage in like templates and all this stuff. I just dumped all this code in here that it gave me this giving chat TPT as much stuff as I could, to you know educated on how this thing works. All right, so it looks like you want to use the featured image data data data doc, create a custom shortcode boom. All right, using the shortcode in Beaver theme, and boom, okay, but I made a mistake. Oops, wait a minute, not beaver theme or I'm sorry. I want to add the shortcode into a beaver builder post grid as a custom layout. So this is a post grid module. And I'm using a custom layout in that post, you know the HTML layout.\r\n\r\nSo how do I do that?\r\n\r\nFor the image, I just want to drop the shortcode in so that it pulls the category image. All right, the shortcode should look at the category of the current loop item and display that image. So again, I've pretty precisely described now I've refined my prompt to tell it what I want it to do, okay, you want to create a shortcode blah, blah blah. Here's the code. There it goes. This code creates the shortcode current category image. Great. Okay. And that worked. Well, it worked. But we got to refine it some more because there's a particular custom image size that I want it to use. So I've defined the custom image size in my site called news grid. And it's specifically sized and I wanted to use that version of the image, not the thumbnail or the full size or whatever, okay, boom, and it's the code to add that right. Okay, now, let's change the shortcode slightly to say that if the post itself has a featured image, use that one. Otherwise, use the category image. Okay, so if we've added a featured image actually to the post itself, use that one otherwise, fall back to the category image. Also, please make the function name with my prefix instead of the default. Certainly, boom,\r\n\r\nthere it goes. Boom, boom, boom, boom, boom. All right, so that totally works.\r\n\r\nAll right. Now I need you to help me create a shortcode to display the related post to the current post. The output should be three random posts from the current post taxonomy and I want this to be what the HTML output is, there it is. Because what I want to do is down here at the bottom of every post, we're going to have related posts Oh God, His mouth pictures freak me out.\r\n\r\nAnyway, cool.\r\n\r\nAlright, so there's my that's this is what I'm after right there. There's my HTML, and it gave me a function for that. Ready and look, it remembered that I want I want it to prefixed again with with the BW w. So I need now we're getting the CSS I need the three posts to display in three columns and one column on mobile so see, I'm just, I'm doing my development process. And rather than asking a developer to build the stuff, I'm just asking chat GPT to do it one step at a time in fairly plain English. So now it generates some CSS for me. I put all that in. Give me all the look it did it again. Like okay, paste, paste that into your now I'm not going to try to paste that in. Give me the whole PHP again. Boom, there it is. No need to respond to this, but the image size needs to be updated to news grid. Great. Now give me the CSS to add. Boom. Okay, there it is. Okay, that didn't work. It didn't work for some reason. Now, so what does it do? It gives me two options. Flexbox and grid. Cool. So standard CSS didn't work. So it suggests, let's try to listen Flexbox here's an example. Let's try to do this in grid. Here's an example. Okay, grid work. Awesome. Now I need to modify the shortcode. Again, I need to be sure that regardless whether it's the post featured image or the category image, the image size should be news grid. Please fix the code out there was some issue with that I'm not sure why. Also very important, we need to make sure that the current post is excluded from the random posts that might display in our related posts. Oh, there it is. We got the code. Anyway, this goes on for a little ways.\r\n\r\nContinued revising,\r\n\r\nuntil I finally got it down to exactly what I want. Does that make sense? I don't want to take too much more time on this. But you see the process I just want you to I want to show you the the flow that I would use the mind the mind trying to say that just the process of refining\r\n\r\nthe prompt to get it to get it done. Alright, one more. And we'll take a break.\r\n\r\nSo this is so how do we solve a complex problem? So let's brainstorm a solution first. So I did this in two I think I did this it two separate times. And for whatever reason I didn't continue the same. The same conversation probably should have done in the same conversation. But the here's what the client wants. We had built an internal site add like a law partner type site where people had to log in to view certain proprietary documents, blah, blah, blah. And but then later, the client came back and said Wait, we need them to agree to the brand guidelines before we show them any of these documents. So before they say anything, they got to agree to this thing. All right. So we're gonna ask chat GP to help me think about this complicated problem, a user account with role partners create an email is sent to the user with a password reset link. What we want to do is present a checkbox with I have read and agree to the brand guidelines on the password reset page that must be checked before the user can reset their password. So how do we do that? So it gives a boom boom, boom, all this sort of stuff right here. And what hit me was\r\n\r\nthis update,\r\n\r\nlike how am I going to know if the user checks the box in order to show the thing right or not? It okay user meta, okay, we could use user meta for this something oh, wait a minute. Brainstorming on my own self. Can a gravity form Add User meta on submit? Why yes, it can. So we can build this little bit of code that says, When I check this button, make it a gravity form when I check this box and hit this button, a piece of data can be added to some user meta\r\n\r\nwell guess what? In Beaver Builder, which\r\n\r\nthe site is built on, you can have a row display or not based on whether user meta exists so that's what we did. If the user meta wasn't there, it showed the agree. If it was there, it would show the grid of documents pretty cool. So chat GPT helped me think through the solution now. I wasn't functioning in the dark, like I had some knowledge of other tools we were using and how those things might fit together. But chat GPT was instrumental in me figuring out how to do this\r\n\r\nso\r\n\r\nthat there was something else Oh, yeah, here we go. Update user meta on Gravity Forms nine. So I want to add the current date and time that's what I decided to do. So we've got this new user medical agree to brand guidelines. And when I submit the form, add the current date and time in there. And so that way, anybody from the company could go into that user's profile and see in that box, what the date and time was they agreed to the document or to the to the brand guidelines. That's literally it. Just boom, code done out fixed. Problem solved. And the client loved it. So we're are at an hour. Let's take a breath, shall we? So what do you think right now, can you do this? Do you see some ways immediately that you can start to use chat GBT to solve just some very basic problems that you come up against things that you would normally be searching Google for and to find the answers? Let me hear from in the chat. What do you think everybody good\r\n\r\ndo we all need a drink? Perhaps? All right. Let's take\r\n\r\na break until 10. After that's about seven and a half minutes from now. Yeah, seven ish minute break. We're back at 210 Central Time, and we're going to try to create a full plugin in chat GPT. So that's what we're doing when we're back and seven minutes from now back at 210 Central Time. We are quiet\r\n\r\nuntil then.\r\n\r\nAll right.\r\n\r\nWe are back for the final hour of the WordPress AI workshop. And we're gonna build a WordPress plugin.\r\n\r\nWhat could possibly go wrong? So here's the idea. The I don't know if this is\r\n\r\ngoing to work or not, but we're going to do the best we can. So we're going to try to create a WordPress plugin. Margolis that he here is not to create a fully polished, polished final version of an operational plugin. Maybe we'll get there maybe we won't. But at least we're gonna go through the process of you know, you saw in the last hour, the conversations trying to get things narrowed down, we're going to do that live and we'll see how much frustration and or success or both\r\n\r\nthat we have. So\r\n\r\nthis is I'm actually going to use an example of something that I've done in the past because I have at least a general idea of where we're going to go with this. And we're going to use we're going to our goal in this plugin is to create something that will be a default Featured Image plugin for WordPress. How many of you have had that need? Like no matter what if it's a post, I want it to have like this featured image if one is not set, then show this one instead. Right. That's something I think we all need. There are some plugins out there that do it. They are they tend to litter your WordPress admin area with ads and top level menus and so forth. So let's just build one, what do you think? And again, our goal here is to just work on the process. Now I'm actually going to go back into these custom instructions. So Chris, here's where they are. Again, it's you click on your person down there and you do have to have a Plus membership for this I believe. Custom instructions. I'm going\r\n\r\nto toggle this on. And it's just has some parameters right.\r\n\r\nCheck for compatibility point out any security risks, explanations blah, blah, blah, always prefixed functions with BW w. So I'm going to save that we've got our custom instructions working, and we are here in chat GPT four. Okay, so let's start to explain what it is. Let's work on our initial problem. I want you to help me create a plugin for WordPress that will assign a featured image that will Yeah, that will create what that will allow me this is what happens when you do things live that will allow me to define a default featured image or posts on my\r\n\r\nwebsite. This default image should only be applied if the post does not already have a featured image. The font I want you to create a settings page that is nested under the media link, media or settings. What do you think? Media or settings? Media media\r\n\r\nand under the media link in the WordPress admin menu. There's one other things I'm going to want to do here, but this will get us started. Okay, let's take a look at this helped me create a plugin for WordPress. That will allow me to define a default featured image or post on our website default image should only be applied. The post does not already have a featured image, create a settings page. Okay, let's just do that. Okay. We will see we want to call\r\n\r\nthis plugin Nathan's magic images, okay. All right, let's go.\r\n\r\nSo it actually is gonna give us the step by steps of creating a folder starting out alright, and there's gonna be two PHP files. So let's get to work. So first, we're going to create this\r\n\r\nfolder in the plugin\r\n\r\nso content plugins, and I'm in cPanel File Manager here we're going to create a folder.\r\n\r\nThere's our name. And in that folder, I'm going to create two files\r\n\r\nthis would probably be\r\n\r\nquicker if I was using a code editor, but we're going to use cPanel because that's probably the most familiar thing to everybody\r\n\r\nhere.\r\n\r\nAll right, so we now have our files created and they were ready for content.\r\n\r\nOkay,\r\n\r\nso there's the actual code where both of the files so I've got the first code.\r\n\r\nLet's edit\r\n\r\npaste and then we're going to edit this one copy and paste right now what in your themes functions\r\n\r\nreally\r\n\r\nwhy do I don't understand why do I need to add\r\n\r\nthat's weird. That asked me to do that.\r\n\r\nOkay, so right away chat GPT is doing dumb things.\r\n\r\nAwesome. And it already broke. Okay, so\r\n\r\nfrustration level two now with tat GPT because it is now broken. What I asked it to do in my custom instructions which was give me the whole php file.\r\n\r\nAll right, so.\r\n\r\nAll right,\r\n\r\nmaybe it'll remember it now. But my experience is, if it starts hallucinating at the beginning like this, then it usually doesn't get too much better. So that should be fun. For our little demo here. Is everybody with me? So far? This is pretty straightforward. We're just copying and pasting giving it some prompts. Yeah, it has manners and I usually do too. Until I reach a certain level of frustration,\r\n\r\nthen, maybe not. All right. Okay, now. So\r\n\r\nlet's go into our dashboard, in which we should now see the plugin. Oh, here's the one that I built the first time, but we're going to use this one down here. Alright, Nathan's magic images. Activate. Boom. Okay, so now under media, magic images settings.\r\n\r\nThat's weird.\r\n\r\nOkay, so we're gonna want to fix that probably this is if I upload an image, it's going to show it there. But let's, we're just going to work this straight through. Okay, so the first time\r\n\r\nwhen I view the settings page,\r\n\r\nthere is a broken image let's not show\r\n\r\nOkay, well at least it gave me the whole file this time. So it now it's going to add a conditional check to display the image only if it exists. So what was gonna happen here likely is with when the image was set, it was going to show me a thumbnail audit right there. All right. So chat GPT is slow today\r\n\r\nof course. You do. And we wait. And we wait.\r\n\r\nThe you know as you're waiting on chat TV to do its thing. It gives you time to think forward to maybe improve some of your prompts. For the next thing you're going to ask him\r\n\r\nall right, copy. And I think I accidentally just copied and paste. save, refresh. Okay, good. So let's take a quick look. And just grab Oh no, this rhinoceros okay, it didn't show it. But it did show it here.\r\n\r\nSo I don't like that. I don't like that UI, but for now we'll just we'll just leave it alone for the moment. Let's test to see if\r\n\r\nit works. So if I add a new post it adds the featured image. Okay, good. So that part works. That's pretty good.\r\n\r\nNow let's work on our UI a little bit.\r\n\r\nWhen I select the image from the media library it should display on the Settings page. Before I click Save, Save to\r\n\r\nYes, okay. So it's another tweak to the JavaScript. That's writing quicker. So this is just an honestly this is how many developers build their plugins, right? They add a little bit and they test it and they go back and they tweak that and they test it and it's back and forth, back and forth.\r\n\r\nDoo doo doo.\r\n\r\nNow we're adding a script actually onto that page and I'm not sure that's\r\n\r\nthe best thing.\r\n\r\nLet's just one thing at a time. And then this is another principle here is don't try to change your test more than one thing at a time.\r\n\r\nOkay, here's the problem.\r\n\r\nI now can't unset this images, this image so once it's set like you're fully committed, or maybe I can click here and select another one, but I can't delete it. So that's a problem. I think we can just select another image. Okay, so that part now works. Okay, good. And Dave, you're right. I think I may get it to just give me the pieces. I'm just afraid I'm gonna break something.\r\n\r\nBut we'll just we'll try. Need a way to delete the image without just replacing, maybe an X icon on the image\r\n\r\nright. I should have told it just give me the changes\r\n\r\nYeah, it won't remove\r\n\r\nit from the library. I just want it I want to have like a quick hit click x here and it would remove the image\r\n\r\nas the default\r\n\r\nit's added some JavaScript here. It looks like to remove that on click Delete in Yep.\r\n\r\nI'm not sure it's\r\n\r\nbest practice to put these scripts and styles in this one file. So we'll ask that about it. It'll ask it about that in just\r\n\r\na second. Yeah. Boom, save. All right. Look at that nifty\r\n\r\nthey've pretty cool. All right. Now, the way this works,\r\n\r\nit's actually placing the featured image\r\n\r\non the post.\r\n\r\nI think I like that I like that behavior.\r\n\r\nSo we're going to leave that alone. Okay,\r\n\r\nah, what do we want to do here now?\r\n\r\nLet's ask it is it on admin settings? Is it Yeah, that's to have the and\r\n\r\nshould we separate those out or not?\r\n\r\nYep, generally good. Practice. Okay, so let's let's do that\r\n\r\nokay, so notice\r\n\r\nit, forgot my instructions, and it's only giving me this piece.\r\n\r\nSo what do I need to do?\r\n\r\nOkay,\r\n\r\nthis makes me nervous, but we will try it. So we need to actually create\r\n\r\ntwo new files in queueing them in this Okay,\r\n\r\nso we're gonna add another file\r\n\r\ncalled admin dot Jas and another one called admin. dot css.\r\n\r\nI like those names, but we'll just go with it for now.\r\n\r\nLet's edit these. Well, those open\r\n\r\nand we need to move the CSS. Yeah, we don't need the style. We'll just drop that in here. I think the script\r\n\r\nI don't know if I need the script. tag or not.\r\n\r\nI don't think I do.\r\n\r\nDon't think I do. Yeah. Okay. So we'll get rid of those. Save that. Yeah, thanks\r\n\r\nfor that. Okay. And we need to remove this bit for the script and the style at the end. Okay, now we've got it separated out. Let's make sure that all\r\n\r\nworks. Still works well. Not good. So are our exes stopped working?\r\n\r\nOh wait,\r\n\r\nI didn't in queue.\r\n\r\nI didn't add this piece. Got to do that\r\n\r\ndoes that go? Oh, it goes in that\r\n\r\nPHP file. Yes. It's gonna go here at the end. Now it should work. Yes, delete update image.\r\n\r\nAll right. So that is now working. All right, pausing for a moment. Will I share the code? Yeah, I'll share this whole conversation with you when we're done. We're just remind me and I'll share that and if you're watching this on the replay, it'll be in the chat log. Okay, so are we get here questions about what we've done so far before I go forward to tweaking this a little more. Basically, I'm just following instructions and copying and pasting. pause just for a second. Anybody having a duct tape moment? Quit while we're ahead. Now we're gonna get better. We're gonna do better\r\n\r\neverybody good. I'm gonna assume we're good or everybody has gone to sleep or fallen off whatever. You're sitting on. Okay. Let's move ahead, because currently, yeah, I'm trying. I'm hoping there was an error like we haven't had any errors yet.\r\n\r\nSo yeah.\r\n\r\nPaul, will this add images to older posts without a featured image? That's a great question. Let's ask chat GPT. The answer is no.\r\n\r\nBut let's see what it says to do.\r\n\r\nYou could write a\r\n\r\nfunction to retro actively apply the default featured image to other posts. This could be executed as a one time action in your WordPress admin\r\n\r\ncool Yeah, so could be resource intensive. Yeah. 1000 posts, it's gotta go in and add something to h1. That would be a big deal, right? But you could do this if you want it. Okay, how about this? Let's make this an option in our plugin. Make a section on the Settings page called Apply. update old posts.\r\n\r\nupdate existing posts\r\n\r\nwinky face emoji.\r\n\r\nThis might, this might\r\n\r\nblow things up. Christina is asking about this used to be an image when you shared a post to Facebook. That's a completely different issue, Christine. And you would solve that by just Google Facebook debugger and you would have to go manually add that URL and have Facebook re scraped the image\r\n\r\nOkay,\r\n\r\nso here is where I need to.\r\n\r\nadmin settings\r\n\r\nokay, it's having me put\r\n\r\njQuery in the admin settings page and we just separated it out. So that's not going to work.\r\n\r\nWe moved\r\n\r\nall right.\r\n\r\nSo it had forgotten that we added another file. So this is just part of the deal. This is something that AI is going to get better at over time. And quite frankly, the code WP may already not do this sort of thing.\r\n\r\nBut all right, so we want this on our admin.js\r\n\r\nwe really should be commenting\r\n\r\nthis but I'm not going to worry about that right now. And then here on the magic images dot php at the\r\n\r\nbottom\r\n\r\nwe're adding another function here at the bottom\r\n\r\nokay, let's see if this works.\r\n\r\nOh, boom, we get an error. Okay, yay. We get to figure out an error. That'll be the only time you ever hear me say that ever. So what we're going to do to troubleshoot this error is we're going to go back to our public html folder. Well, we don't the error log is empty so it must be in the admin error log in WP admin.\r\n\r\nOkay, wow,\r\n\r\nI have no errors. No error logs\r\n\r\nthat's weird.\r\n\r\nYeah, there's not a plugin errorlog\r\n\r\nthat's interesting. Okay. Well, we just tell chat GPT\r\n\r\nmaybe I got an email Yes, I did get an okay. So in my email, yes. All right. That it did send me an email. Whoa, I don't want to deal with any of that. Let's go back here. And there's the error that was just emailed to me\r\n\r\nup generating please.\r\n\r\nThis Stacy, that was the year where your site is experiencing a technical issue email.\r\n\r\nYou know that WordPress since there was just the WordPress default email\r\n\r\nOkay. Thank you assets as\r\n\r\ndeclared more than once. Make sure you only have one instance of this. Okay. This is why I don't like to copy and paste code. So\r\n\r\ngive me the whole\r\n\r\nthis is why I don't like to copy and paste because things break\r\n\r\nUTD?\r\n\r\ndoing its thing doing thing\r\n\r\nstill doing its thing looks like it'd be about finished. Okay. Now copy, paste, save, refresh. Work. Okay, that\r\n\r\nworked. But we don't have any new functionality. Okay.\r\n\r\nWonder why that is? Maybe I don't have all the admin give me\r\n\r\nwelcome to plugin writing with chat GBT.\r\n\r\nMuch simpler for\r\n\r\nscripts as you can see. When there's multiple files and multiple things you're trying to do it gets a little a little more complicated\r\n\r\nright\r\n\r\nget rid of this\r\n\r\nokay. Yeah, that gives us our update existing posts.\r\n\r\nOkay, here we go. Now we've lost our stock image Ah\r\n\r\nyes, but we are making progress.\r\n\r\nAnd by the way, this is worse if you use GPT 3.5 Believe it or not\r\n\r\nOkay\r\n\r\none more time okay.\r\n\r\nNow we're missing.\r\n\r\napologizes\r\n\r\nit's very sorry\r\n\r\nI don't know if it\r\n\r\nunderstands when I typed what it means in all caps. But I if you look at the history of my chat GBT conversations, you will discover that the longer the conversations are, in the more frustrated I become, the more words are in all caps, much like\r\n\r\ntext messages. I'm sure none of you have that issue. Okay. All right.\r\n\r\nAll right. Well, it's totally different now. But it doesn't work.\r\n\r\nIt may have gotten confused there, Dave. I don't know. This just this happens. Sometimes it happens more than others. But you know.\r\n\r\nThis is why I like to have it give me the whole code every time\r\n\r\nOkay, let's try this.\r\n\r\nLet's see if update existing posts works and then we'll get back to this\r\n\r\nthis isn't working either\r\n\r\nOkay, let's start\r\n\r\nactually, we could just go back up here. Let's do this. So it started hallucinating. Remember what I said? It's sometimes it's better to go all the way instead of trying to argue with it. Let's go back up to the place where the wheels fell off.\r\n\r\nAnd where was that?\r\n\r\nHere\r\n\r\nlet's start over from here\r\n\r\nyou been in certain cases I have just started over again completely. All it doesn't remember anything. So I've gone back. And it's like it's from here. It's brand new. It doesn't remember anything that just went away. That we've rewound, and we're starting from that point again. I find that that is usually better if you're dealing with a hallucination like this. So I mean if our goal was to troubleshoot, this is typical of what you're going to run into. Alright, so here's our magic images dot php.\r\n\r\nHere comes our admin settings dot php.\r\n\r\nHere comes our admin.js\r\n\r\nOkay, we okay so hit this first time we've seen this. So GPT four will output a certain amount of text and we just reached that limit. We have this continue generating. We're going to click that and it'll it should pick up right where it left off. But now it's counting as another response on our total. So I don't know how many we've had. So far. But you know, we're getting we might we may run out of responses to this\r\n\r\nadmin.js Because I knew one of those and our admin CSS let's see if this reboot helped us.\r\n\r\nAlright, so this looks a lot better.\r\n\r\nYes. Okay. So that's actually working.\r\n\r\nupdate existing posts, hold your breath. Nothing. Oh, wait a minute. Maybe it's doing it. Okay. There is no feedback. When you click Update, what was it update existing posts? We should we should have a message\r\n\r\nthere a way we can know\r\n\r\nOkay, before during and after updating,\r\n\r\nupdating existing posts, please wait. Yes, this is exactly what I want.\r\n\r\nNow. It's giving me bits again. Oh, boy. Okay,\r\n\r\nthis is the one I'm concerned about to get this all correct.\r\n\r\nI'm going to give me the whole admin.js\r\n\r\nAlright, we need\r\n\r\nto put this under the button and that I can handle it. Alright. So under the button which is here. That's where we put this span that it's going to use to update with the jQuery\r\n\r\nOh Womp womp.\r\n\r\ncrash on chat GPT you know, what's going to be\r\n\r\nfunny is like all these frustrations and processes. A year from now think about what this is going to be like, if we're gonna look back on this do I remember when we used to have to ask it five times to do whatever and blah blah blah. It's gonna be like, remember when cell phones were this big? It's gonna be like that. This stuff is gonna get so much better. And we will have been using it for so long. We'll be the geezers of this technology.\r\n\r\nAll right. There's our new thing there. And, alright, let's try this again. Nothing happened. Surely that I missed something. All right. That's done. That's saved. That's saved. Okay. Nothing happened. Very anticlimactic.\r\n\r\nOh,\r\n\r\nthis is where it gets really frustrating trying to debug this JavaScript.\r\n\r\nCareer Chris, I\r\n\r\nmight be able to do a progress bar that's way more complicated that I want to try to do today like I can't even get it to display a message right\r\n\r\nall right, well,\r\n\r\nokay. We're just gonna leave that alone. For now. We're about out of time, but what I do want to do this\r\n\r\nokay.\r\n\r\nI want to be able\r\n\r\nto add featured images for the default featured images\r\n\r\nfor each post type in WordPress so our settings page should have a row for each define post type and the ability\r\n\r\ndefault featured image for each.\r\n\r\nShow the total to give me the whole thing we want to do this for every post type.\r\n\r\nWho knows if this will work or not, but it's giving us a function to fetch all the different post types. Now we're ready. It's almost like a loop here has been created. It's going to render all the things for each post type and the button\r\n\r\nother settings remain the same, yeah.\r\n\r\nAll right we're gonna try just paste this in. What could possibly go wrong?\r\n\r\nCopy what the whole thing.\r\n\r\nAll right. So it's add Admin Menu\r\n\r\nSettings.\r\n\r\nYeah, I'm not gonna try to do that\r\n\r\nso your inexplicably has lost a quit showing us this with the description? I don't know. Maybe he just didn't know to update that description since we've expanded it. This is the kind of thing you run into as your the longer a threat goes, the higher the chance of hallucinations. But you absolutely can get results okay,\r\n\r\nall right. And\r\n\r\nthat doesn't look right. But we're gonna just drop it in there because there's so much more\r\n\r\nwe'll put it in the air. Oh, that's not right. Can't be right\r\n\r\nmaybe I took that out because it wasn't working.\r\n\r\nAlright, there's our admin dot j\r\n\r\nAll right, those are the only two other files. There's my admin settings PhD we'll save that. Then here comes our JavaScript\r\n\r\nthis doesn't work, we'll call it a day\r\n\r\nwhat happened? Let's see. All right. Interesting. Pages.\r\n\r\nNothing happens this broken. Okay, so we'd have to keep going on this but you get the idea. Let me show you where I eventually got with the version of this I was experimenting with\r\n\r\nwill deactivate that monstrosity. And we will activate this one\r\n\r\nand this one actually works\r\n\r\nso I've got post types and taxonomies. But I stopped when because it was only giving me categories and not the actual terms in that taxonomy. But this piece actually worked.\r\n\r\nSo, you know,\r\n\r\nit just takes some trial and error. But again, you see the process. Does anybody have questions about what we did or didn't do over the last hour and working through the process of building this plugin? Ben, what if you ask him to type out Oh, that's a good that's a good suggestion to get it to check our work. So\r\n\r\nplease, we'll see please state in a list the requirements have\r\n\r\ngiven you so far for this plugin.\r\n\r\nYeah, that's about right.\r\n\r\nBut then yeah, that is a great idea too. If you're getting lost maybe well, but honestly it's, it is correctly providing the overview of the project, but it is incorrectly doing the thing and really doing the thing is what I'm after here, but so it's it's, I think it'd be interesting. It'd be interesting to see how code WP would handle this same task.\r\n\r\nBut yeah, that's a\r\n\r\nthat is a another subject for another live stream on another day. All right. Other questions, comments about this before we start to wrap things\r\n\r\nup? Yeah, then we could copy this and start\r\n\r\na new conversation and see what happened.\r\n\r\nAll right. So challenge\r\n\r\nfor you today. What is let's hear from you in the chat. What is one thing that you're going to do today, to take this and start to use it? What is one thing you're going to do today? And the rest of this afternoon or evening or whatever, to try to put some of this practical use.\r\n\r\nLet me hear from you in the chat. Then it's just kind of go to sleep. Yeah, it's\r\n\r\na little bit late there been true fairpoint watch the replay. Yeah, you can speed this part up on the replays at. Sally wants to know more about flex boxes. Have a project try to get AI to do for me to add featured on the website. As we're doing this, I really want to see what happens if I make a new chat. paste this in.\r\n\r\nLet's see,\r\n\r\nSally setting things, doing something complicated. Great. These are great office hours. Questions. Barney built chat GPT into our workflow.\r\n\r\nYeah, dream about GPT five. High Low maybe this will\r\n\r\nbe better results if we had it, spit out these requirements and build the thing\r\n\r\nagain. Oh, no.\r\n\r\nClearly this is going to take a little bit of time\r\n\r\nWell, that's weird.\r\n\r\nThey'll see that you'll get this sometimes like, here's the I didn't specifically say, right, the plug in my fault. Bad prompt, right? So it's like here you can think through this and you can write all the PHP and I'm like, wait a minute, what is this you stuff now? This is this is on you chat. GPT not me. I don't know what I'm doing here. So it didn't get lost. It did not get lost. I did not give it the prompt to actually write the plugin. So you write the plugin and now it's going to actually spit out the thing or not?\r\n\r\nYeah, so there it goes. It's doing its thing. All right.\r\n\r\nWell, hopefully this has been fun and not overwhelming. There's so much you can do with chat CPT from content to snippets to Plugins. I look forward to hearing from each of you how you're starting to use this in your work and office hours. Tomorrow is a great time to start that Oh, thank you. Yes, share the code. Thank you, Stacey. Because you know I was not going to do that.\r\n\r\nTotally forgot. All right.\r\n\r\nSo this is the original\r\n\r\nwrote the the the frustrating, broken one.\r\n\r\nAnd here is the new one that is yet to be seen if it works or not.\r\n\r\nThe possible better one. All right, there are\r\n\r\nthe links those will be in the chat log. If you're watching this on the replay. I'm not sure you actually want that code. Yes, it's bad. But those links you could copy it into your own chat GPT and start playing with it and go from there. So that's it, everybody. We're back for office hours tomorrow, one o'clock Central here on","livestream-resources-group":"s:34:\"a:1:{s:6:\"_state\";s:8:\"expanded\";}\";","multi-day_replay_details":["s:1037:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 1 Replay\";s:25:\"day_description_cloneable\";s:309:\"Hour One:An Introduction to AI\r\nHour Two:Using ChatGPT to Work with Content\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"877651636\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1V1gVLzIFq7Xwy4KKh0vgU2FHA-U_4Wj0\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/clR5qij6gsSJq8aUeoKC2DKzsO4?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";","s:1044:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 2 Replay\";s:25:\"day_description_cloneable\";s:316:\"Hour One:Using ChatGPT in Web Development\r\nHour Two:Creating a Plugin with ChatGPT\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"878058540\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1sQVFgXo8eEUWtqSPd1S2osJeMty8sNaz\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/0woVu8tHVGjbZfubMRyRUnsTCkQ?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";"]}},"postCountOnPage":1,"postCountTotal":1,"postID":448457,"postFormat":"standard","geoCloudflareCountryCode":"US"}; dataLayer.push( dataLayer_content ); \nWe'll explain how to use ChatGPT and other AI tools to work with content and create code that can take your development processes and abilities to the next level.\n\n\n\nDay One: Adding AI to your Content WorkflowDay Two: Solving Code Problems with AI\n\n\n\nAs an iThemes Training Member, you get free access to this event!\n\n\n\n\n\n\n\n\n\n\n\n\n","EventOrganizerNames":"Nathan Ingram","inline_featured_image":"","livestream_public":1,"is_multi-day_event":1,"livestream_zoom_registration_link":"https:\/\/us06web.zoom.us\/webinar\/register\/WN_6reEXDmWT3qQuUtdktFQwg","livestream_replay_set":0,"livestream_live_transcript_text":"Glad you're all here so many fun things to share with you over the next couple of days. Slide link is in the chat one more time. If someone would please just cut if you wouldn't mind copy that. Link for the course handbook to share with folks who come in later. That would be very helpful to me. Okay, let me get all of the windows dragged to their appropriate locations. Right Y'all ready to start? We ready to go AI. All right. Here we go. Well, good afternoon. Good morning. Good evening, wherever you happen to be. It is Tuesday, October 24 And it's time for the WordPress AI workshop here on solid Academy. So glad you decided to join us. I've been super excited about this course now for a few months, because we started to use chat GPT in our workflow on the agency side. You know late last year, when my mind was blown at how chat, GBT could create WordPress code just like that. And it worked. It was amazing. And we started using it ever since just for all sorts of things. And some of that has worked its way into office hours and answering questions and generating code snippets and things like that. So I thought why not? Let's just do a whole course on this and spend about four hours looking at some of the ways that you know, AI can be used in our workflow to make things easier, and there was a mention in the pre show about some of the ethical implications of AI and all that's out there. That is not what we're going to be talking about this time. It is certainly worthy of some discussion. But that's another discussion for another time. So I'm glad you've joined us if you're watching this on the replay down below the video, you'll find the link to download the course handbook which you see on your screen. Chris has kindly dropped that into the chat again just now if you're just joining us in zoom. So we took a poll as we got started about you know, what was your comfort level using AI most folks were kind of in the middle, some lower some very high. But no matter where you are with your comfort level with using chat TPT in particular, I think you're going to find some interesting things in this course. So I'm glad you decided to join us. And as always, the replay will be available after these two hour winds take a little bit longer. So roughly an hour after we wrap up somewhere around there. We'll have that replay. Up available for you certainly by this evening. So you can go back and rewatch if, if you'd like so let's dive in. Now this is the course handbook. It's 23 pages. Got a nice little table of contents here. This is where we're heading over the next couple of days. I've got some pretty important and well defined course goals here. So this is not by any means meant to be an exhaustive treatment of AI if that's its, you can't you can't even say this is an exhaustive treatment of chat GPT because it's there's just too much to learn. And in four hours, there's just no way. So here's what we're focusing in on. Number one, just to understand the foundational principles of how these things work. That's really important because if you see how things are set up, then you'll learn how to use it better. So that's what we're going to focus on, especially in the first hour today. Then we're going to focus on how can we start to use chat GPT for content creation. Now there's a number of AI tools I mentioned, especially in the first hour, most of our work in this course is going to be focused on chat GPT because that's the most ubiquitous AI tool out there. Most folks are using it, most folks understand a little bit about how it works. So that's where our focus is going to be. But just be aware, there's a lot of other ones that I'm going to mention as well. So our two today is all about content creation and some of the cool things we've learned using chat DBT in that realm, and then tomorrow it's all about code. So in the first hour, we're going to focus on really how do we get chat GPT involved in our website development process and really, you know, in our ongoing management of sites, maybe we need some code snippets or things like that. And Chad gptc does a great job. At those sorts of things and also does great troubleshooting errors. So day two, we're going to look at chat TPT in web development, and then this is ambitious, but in the second hour, we're going to try a live build of a WordPress plugin that solves a particular problem. So this is a workshop meaning a lot of what we do. The first hour is pretty scripted as far as we're just gonna be following the handbook. But as we get into the content piece in the next hour and then especially tomorrow, it's gonna be really into chat GPT using some things I've given you links in the course handbook to a lot of the chat GPT threads and we're going to use those as reference but also kind of building on those as we go so we have a long way to go over the next couple of days. So glad you decided to join us and I hope at the end of this you will find that you've got a brand new tool that can do lots of different things for a very small price. I mean, 20 bucks a month, y'all that, you know, that's not a lot to do what chat GBT can do. So let's get into it, shall we? Let's start with just let's get the lay of the land. Very, very important. Just foundations of how AI works. So let's spend a little bit of time on what is AI What is this thing and how it actually operates. So AI Artificial Intelligence refers to machines. Or software that can perform tasks like the human brain can perform tasks. Now, as I mentioned in this course, we're going to be mostly focused on chat GPT but there's lots of other AI models that are out there. Ai especially the machine learning models like we're using, have learned from vast amounts of data, rather than being explicitly programmed like you would think of old school programming of do this, this, this and this prescriptive order. These are models that are trained on large volumes of data, and they have the ability to process that and think through it. It's kind of scary, in some ways. Many advanced AI AIS like chat GPT use what are called neural networks, and these are combinations of chips and code that function a lot like the human brain. It's it's really pretty, that's kind of scary and amazing all at the same time. So AI models are first trained on data, and then we query them to get the output that we want that query is called a prompt and prompt, look, prompt are the key to getting the most out of AI. What you ask and how you ask it in the context you give. That's how to get the most out of AI. Now you may have seen this term generative AI, that's a specific kind of artificial intelligence chat. GPT is a generative AI, it can produce new content based on what it already knows now chat GPT is trained on the internet, like the whole thing up until a certain point in time. So it knows a lot of things and it knows a lot of people and facts and it can you know put answers and text together in really creative ways. So these kinds of modern generative AI is can handle a range of tasks, from image recognition to text generation, and everything in between. But while AI is powerful, it is not infallible. And if you've done any work with AI, let's just hear from you in the chat. How many of you have been doing work in AI and you realize this thing has gone a little loopy, like it's making stuff up? These solutions are not working. And the more I'm using it in this conversation, the worse and worse and worse it gets. So those are called hallucinations. They are real thing. And that's part of the deal where we are at the AI tech level right now. It is not infallible. It can make up things completely. And so we have to be aware of that as we use chat GPT and other generative AI models now, a lot of the, the well the results we get and sometimes those hallucinations are based on the prompt we give in the way we interact with it. So we'll be trying to work our way around some of those things, but we might find in our work in this workshop, that it makes some stuff up and we see those hallucinations pop up. So\r\n\r\nAI models can reflect and even amplify the biases that are present in their training data. So depending on what information was used to train the AI biases that went into the way that information was, was written and presented, can also be you know, that can come through in the AI. So, you know, AI is only as good as the information that was put into it. And so sometimes you get bias. And so that's where we get into the ethical questions and that's it's those are important questions to hit, sir. But we're not going to even touch on that. In this course, what Stacy's saying is that hallucinations and not lies. I mean, it's not really a lie. I think why is have to be intentional. I don't think chat GPT intends to mislead, it just loses its mind sometimes it hallucinates. So, why is all of a sudden AI a thing? Have you ever asked yourself that question like all of a sudden, like we were living in a world without AI and then boom around November of last year? Everything's all about AI? Did you notice that? I all of a sudden the whole world is talking about AI it was really with the release of chat GPT or not. It was right around this time last year in November of last year. So let's look at an understanding of how this works where it came from. Why all of a sudden AI is the thing because that's going to be helpful to us to understand what we're dealing with here. So AI has evolved from bad to worse a basic, you know, less advanced tools like the Amazon device that is sitting on my left that if I say the name Alexa, get might wake up now don't want her to also Siri and Google's assistant. And then advanced AI is like chat GPT it seems like it's all happened overnight. But AI goes all the way back to the 1940s that's where it was some of the initial foundation pieces of AI were laid. So there's a few things that have led to this quick, seemingly explosive development of AI since late last year. So the first of those is this refer that there's been a refinement of the concept of the neural network. So these were things that had been around since the 1940s. The you know, a lot of government entities had built start we're starting to build, you know, room size computers that were linked together and could think together and process together. But there have been some significant improvements in the way these neural networks operate. That's led to a lot of these advancements. There's also this thing called backpropagation. So this is really key to AI and actually can help us help chat GPT get around the hallucinations. So back propagation the way this works is AI works through some information to get an answer and then it sort of tracks backwards before it gives a response to make sure that it's correct. It's remember like in the in elementary school, you would do a math problem. And then you would check your work like it was an addition problem. You did subtraction to check your work. It's kinda like that. In the AI sense, and it happens quickly. But this helps AI to refine its responses and get better. So back propagation was something that was introduced in the 80s. It's gotten a lot better recently. Maybe the biggest single change that has ramped up AI's ability is this thing called transformers, not like more than meets the eye. Optimus Prime. These are this is something that was invented by Google in 2017. It allows the neural network you know this this cluster of information that's being processed by computers connected together. Transformers allow a neural network to understand a whole data set. So the data set for chat GPT being the internet, how do you process that information or in earlier AIS, maybe it was this giant folder full of PDFs that had all this information or whatever and you would train the AI on this. What a transformer does, is it helps to build relationships between the different bits of data in the data set and start to make some sense out of it. So smart people at Google figured out how to do this back in 2017. And that was a major bump. Up forward. You started to see Google's AI and Siri and Alexa really starting to do better, right around 2017. The single biggest deal has been advancements in hardware. So the graphic processing units that were originally developed to do gaming gaming computers, the GPUs made by companies like Nvidia. The processing power in those GPUs is immense. And perhaps you've heard of these GPUs being used to mine Bitcoin and create cryptocurrency because they can process the kinds of activity that build cryptocurrency a lot faster than a typical CPU, right, your, you know, your the chip that's in your computer. And these GPUs have just supercharged the amount of data that AI can process and AI works better with the GPU parallel processing that it does in an old standard CPU. So as GPU strength is increased, then all of a sudden we have these transformers that have gotten neural networks have been proven out and made better and all of a sudden, boom, there's just this possibility that has never been there before. And then somebody realized that wait a minute, if we train AI on more than just our own internal corporate library of documents, but if we train it on a larger data set like the internet, it's actually better. Like they used to think well, if we give it too much information, it won't know what to do with it and the responses will be more bland. But actually what happened was it having more information with the with transformers that can make connections has allowed AI to have a broader perspective on information, and as a result, give better answers. So all of these things have added up together until this time last year, boom, you've got all this AI hitting, and it's just unbelievable. So does that make sense to everybody? I don't want to belabor this point. But I think it's important to understand why we're here and where these things are coming from. So AI has been gaining popularity in the tech world through the years. It became most popular at the at the consumer level with these personal assistants like Siri and Google assistant Cortana and all the others right. Open AI which is a foundation was started back in 2015 by a group of people including Elon Musk, and the mission of open AI is to ensure that AI would benefit all of humanity. Now since then, they've decided not to open source their code which is interesting, but open AI in 2019 released GPT two, which was a cutting edge language model of generative AI based on well GPT by the way stands for a generative pre trained transformer. So again, this this concept of being able to make connections with data. This was really landmark is groundbreaking. 2019 open AI releases GPT two now GPT three came out in 2020 it was more powerful GPT three started appearing in the tech world. Okay, so who remembers back in like 2001 There were like 8000 ai writing tools on App Sumo. Remember that? Like all of a sudden all these writing tools started coming out? Well, this was when GPT three was released, right? And so open AI Oh, you know, there's an API, all these letters. There's an A there's an API through it. You can connect to open AI and use the GPT three model to get lost in that alphabet soup. Anyway, so they opened it up. And then there's all these software tools like all that Sumo, that are just a software layer that sit on top of the API that's talking to open AI. So that's, that's where all of that came from. And again, it's just part of this swell this this swell of movement towards AI. Now, November 30 2022, was when chat GPT came along. So now in our web browser without the need for API keys and software layers and all of this. We can now in our browser, interact with an incredibly powerful model called GPT 3.5. Which even though it's a point five it's miles better than GPT 300 million users within months, the fastest growing application in history was chat. GPT just incredible growth, never seen anything like that. So GPT four came along on March 14 of this year. It's slower, but its answers are way better. So if you up to this point, have only been using the free version of chat GPT you're using 3.5 which is okay, it means pretty good. But upgrading to chat GPT plus, it will give you access to GPT. Four, and the creative abilities the writing abilities especially the coding abilities are far far far superior and that opened up back in March the 14th. And it's gotten a lot faster since then, but it's still not as fast as GPT three, five. All right, I'm gonna pause real quick.\r\n\r\nEverybody good. Makes sense. We have getting a little bit of a lay of the land on how all this stuff connects and how it's working. All right. So one of the things I always hear about AI, it's a lot of fear, right, a lot new technology comes. There's a lot of fear that always happens no matter what I mean, when the block editor was released a lot of fear, you know what's going to happen to WordPress, blah, blah, blah. WordPress is still fine. Everything's fine. sky's not falling. But this is a quote I shared several months ago, because if you're a knowledge worker, if you're a writer, if you're a web developer, you know. I don't want to say it that way. If you are a web developer that's not highly specialized in an industry, for example. You know, there's a lot of fear about is AI going to come and take our job. And this is a great quote from CJ Pomar, who is the founder of brainstorm force. Computers did not replace accountants. When computers came along, all the accountants were worried that they're going to get replaced by computers. And the truth of the matter was, accountants weren't replaced. accountants who use computers replaced those who didn't use computers. And so I think that's a really good analogy to where we are with AI and our work. So we have to get smart, and we have to understand how this new tool set can benefit us to do our work faster, stronger, better, right. So this is a it's still the My Favorite perspective on how AI connects with you know, our work and what we're doing. Okay. Let's get into some chat GPT frustration, shall we? How many of you have used chat GPT and you've been underwhelmed by you try to make it right content. You're it's like, Sue and I were having a conversation earlier. And she's like, What, Sue what was the phrase? Like in this digital world, blah, blah, blah, blah, blah. It's like this. Content is just so just awful and squishy. And not just horrible, right? Yeah. So that can happen. It's all about the prompt. So anyway, let me let me just go through four very common mistakes that happen in today's digital era. Thank you. So that's it. It's very it's just cheesy. Yeah. Thank you, Sadie. So here's four common mistakes. All right, using chat GPT. The first one is, chat. GPT is not a search engine. Okay. You might extract some facts, but chat GPT is a generative AI. Okay, it's made to generate content. It's not really there to be like the answer to your questions, you know, a replacement for Google, for example. So it's not meant to be a search engine to get fact based. Questions, especially about recent subjects, because chat GPT the training was cut off, you know, a year and a half ago. So don't you? I mean, it can answer questions. Matter of fact, I use chat GBT one time because I was I was trying to fix my lawnmower. And I wrote, like, what is the thing that, you know, what's the cable called that when you push the throttle lever forward, what in that connects? What's that cable and it gave me the right answer. So it can do that. And a Google search gave me nothing. It can but it's really not meant to be a search engine. Okay. So you're not going to get as great results. Chad GPT 3.5 only as knowledge up to September 2021 GPT. Forest trained up to January 2022. So, you know, we're getting close to, you know, almost two years out of date with the the knowledge base of GPT four. So sometimes you can get good facts to chat GPT it's best used to brainstorm to process information and to solve problems. So a generative AI is meant like I'm gonna give it a bunch of stuff. And I want to ask a question about that. That's where it shines. So make sure you're using it for the right purpose. A second mistake and this is what we were just talking about. settling for a generic tone. Okay, so chat. GPT has a writing style. That's just what it is. And it's usually pretty awful corporate speak. Like we were just saying, like Dave's example in the chat. I hope this email finds you well, that, you know, don't send that. That's terrible, right. That's that generic, horrible chat GPT tone that just comes out. Right. So if all your chat GPT responses sound alike, it's because you're not asking it to respond differently. It's only going to do what you asked it to do. So again, if you take nothing else away from the all of this whole course it's this. It's all about the prompt getting the most out of chat GPT is all about the prompt. So chat GPT can respond and provide text responses in almost any tone and style imaginable. In your prompt, you can ask chatbot chibi chat GBT to respond as though they were a person, particular person, a profession or in the style of a person or character. You can say for example, from the point of view of its product manager describe the Amazon echo, echo Alexa device from this point of view, or from the point of view of an adult child caring for an elderly parent described the Amazon Echo device. Let's jump in. In fact, let's just let's look at the difference here. I'm gonna go with I don't want to run out of responses here. So we're gonna go with GPT 3.5. Let's just look at this. Okay, so describe the Amazon Echo device. Okay, so we have a pretty bland response here. Alright, it's got some basic information am I am I angering some of your personal home assistants with my copying any of that? This is going to be annoying. Now, yeah, so look at how different this response will be. This is really annoying. I think this PDF and it's not spacing anything out. Look at this voice activated system. Right. So it's, it's crafting its answers to fit the situation like, you know, what are some of the most important things about features about this that pertain to this situation? You can even do this. Explain it to me, like eight\r\n\r\nright, and it completely changes the response. So you can just change up the prompt just a little bit. Right? And you get wildly different results. Now explain the frustrations with our favorite device\r\n\r\nAll right, so there are five frustrations Now watch this. Do that again in the style of Jerry Seinfeld.\r\n\r\nAnd this sounds I mean, you can read this and Jerry Seinfeld voice and it sounds like he wrote it. Ever notice how you can be crystal clear with it like you see. It has changed the style completely because it knows who this is. And it rewrites based on that tone. Pretty amazing. Right? So you have a lot of flexibility. It's if you're getting generic content. It's because you haven't told it to respond any different. What about this make a rap about Alexa. In the style of vanilla because I'm that old this is horrible. But there you go. It'll do all sorts of things. It'll repeat back poems. It'll write stories it will any famous person it will be able to respond in that voice. It's pretty darn amazing. Right? Yeah, stop, collaborate and listen. Alexa is here with a brand new mission. You gotta love it. Yeah, now I just woke her up. Okay. Anyway, does that make sense? Pretty cool. So change your prompt. If you're getting terrible responses, change your prompt a little bit you can even say suggest what voice would be appropriate for a 500 word, article about that\r\n\r\nso you can even ask it to suggest Anyhow, it's all about the prompt number three. This is a big one. How many of you all just keep typing in the same conversation? If it's a brand new subject, just keep typing. Right? Big mistake. It's always best to start a new chat when the subject changes because think about it. Think about it this way. This is a single conversation about a single topic in a single voice, etc. If you start talking about something else in the same conversation, it's like that friend that we all have, that interrupts us and completely changes the subject in the conversation. Yeah, anyway. So start a new conversation. Plus, you can rename these over here or whatever you want, um, so that they're more recognizable to you. It start a new conversation if you're going to start a different topic, unless there's some reason to keep everything in the same conversation. Usually there's not. So one client's content lives in one conversation. Don't mix threads between no mix clients in the same conversation. If that makes sense. Don't be like the person who interrupts your train of thought with an unrelated subject. Number four don't settle for the first response. Again, chat GPT is all about the prompt that you give it. I will let me clarify. So Stacy, I don't mean a new window. Like if we're going to do something else here, I would say new chat. And so we get a new conversation over here. And the old ones are over here. In my history, but now started a new chat, the new conversation from right there. So don't settle for the first response. Chat GPT again, it's all about the prompt. And prompt engineering is an art and a science. It takes practice you get better at it as you practice. If you don't love the response that you get asked chat GP to change its tone, or explain it differently, or provide multiple options or give it more context. The more you give it this is called training the conversation. So you know if I want to if I want Chad GPT to output some content, I need to give it some stuff to work with. And we're going to do that in the next hour. But we need to train the conversation to give chat GPT the context that we want it to operate in and so from that context, it can pull from outside and everything else and it's learned, but it'll output within that context. So just keep sharpening it. Keep crafting your prompt. And guess what next time, you will know okay, I'm not I'm gonna start to ask it this way this time, right and you get better at it over time. But be clear and direct with what you're asking chat GPT to do. Does that makes sense? All right, so what does effective prompt engineering look like? So here's a few principles, clarity. Clarity is key. What exactly do you want me to do? Be specific and clear. About what you're trying to accomplish in this conversation? The more specific you are the better results you get. So let's just start a new conversation here. Let's say I'm writing a travel blog. What are the 10 best scenic highways in the US boom All right, look at that. And actually, let me show you some if you've never seen this, you can just see this. For the purpose of this demo. I'm going to shorten the number of them because 10 is going to take a little while each time so I'm going to edit this. Let's say for the for the scenic highways in the USA. All right, and we'll go back and edit it. Alright, so here's what chat GBT thinks are the four best senoko So we're just gonna go with that. All right. Now let's give it some context. What background information can you give the conversation so you can understand it better? So again, context is critical. Explaining the big picture makes a difference. So instead of just asking this, let's do it this way. I'm writing a blog post for retired RV travelers about the three best scenic highways in the USA. Okay, so we're telling it Okay, first, we're writing a blog post, who is the audience of the blog post? And I said for a minute ago, we'll stick with three here. The top three should consider options for stops for fuel and food and should be RV friendly with options for RV camping. So let's copy this maybe, hopefully this is going to copy well. So let's go and we'll just put it in. Okay, now. Now liquid it gives us we're sharpened in. Yeah, like Dave said that the who, what when where shirt? Yeah. But just get specific, right of what you're asking for. So here's what it's given us here. Pretty cool. All right. How about output? How do you want me to return the results? So it decided I'm gonna do this in a numbered bulleted list. Okay, that's cool. But when you this return that list is a table and look what we get. I like this. I do a lot of output in table if I'm trying to compare things. If I want to move this to a CSV, I can say output that table as a C F v. And there it is. And I can just copy that, save it as a CSV and open it up in a spreadsheet. Pretty cool. Right? So you have lots of different options. So now I'm gonna give it even more context here. So expanding on this information act as a travel reporter write an informative blog posts for an audience of adults age during use appropriate heading structures throughout lists three to five must see stops on the route three to five options for RV camping, to just five title options for the blog. Add Google Map links where appropriate.\r\n\r\nThere's our titles. Look at that. Is that not amazing? Boom. And all these are linked. Look at that. Okay, the links didn't work. Okay, so here's a hallucination from Google from chat GPT. For links didn't work. We could go back and refine that if we wanted to. I'm not going to do that for now. But watch this. Another for example. Let's say you've done some keyword research and you're looking for a key phrase I have where working with E word I don't know retired RV trips. That's terrible. But let's just say that's a key word. We're writing this for. work that into the article, naturally several times in the text and in at least two of the headings and the title\r\n\r\nso it will work that keyword right into everything that we've done. Pretty cool. Yeah, so you can do a lot with chat GPT and we just that took what, five minutes or less? Yeah, pretty, pretty amazing. All right. So what do we do? How do we deal with hallucinations? Okay, I see. Sally, I see your your question about using GPT four. We're going to do that in the next hour. When we're actually working with content. I'm just going through some basics right now. I don't want to use up all my GPT for questions because it's metered Right. Like I get 50 every four hours. So yeah, what we'll do more on that GPT for in the next hour. All right. So if you get a chat GPT hallucination where it makes something up or it's going down the wrong path or whatever. Here's the best thing I can find to tell you to do. Edit the previous problem. So go back to the place where it fell off the wagon, and go back and edit this prompt, you know, to say, make sure that you know, let's just go back up to here, where it where it started giving us bad. Bad Google links. I don't know if it'll fix that or not. Useful. Google Map links, not short links. Make sure these work and you're not making them up. It may not do this. With these mappings that may not be possible. But anyway, you go back and edit the prompt right before the hallucination occurred. And have it regenerate. Did this work? Son of a gun Look at that. Yeah, so look what it did. It just put a query. And so that'll Absolutely yeah. So that's one way to deal with hallucinations. You can also do, you can challenge the response. So I don't find this as nearly as effective again, this the solution the hallucination seems to return more often if you try to challenge it. I recommend editing the prompt but there may be a case where you want to challenge it and say, you know why do you think that what evidence supports your answer? Give me your decision process of returning this answer. Or just what the heck are you talking about? Often the AI will just apologize. Hey, you're right. I completely made that up. That happens a lot in coding. I'm sure we'll see some of that tomorrow. Of like it'll just make up this WordPress core function out of nowhere. And you're like, that doesn't exist. It's like, oh, yeah, you're right. Let's try this differently. So I just find it's easier to go back and edit the previous prompt. In a coding situation. A lot of times you have to challenge it, but especially in content writing, just to edit the previous prompt. Okay, so I got a really Cruz here to get through by break time. Is chat GPT plus worth it. Yes, period. Moving on. It's just far better, the output is better. You also get the use of plugins. Which I'll show you in a minute. And custom instructions. Custom instructions are new. They're here in the know oops. They are here. We look at this so you can actually create these are just some fake custom instructions I put in here. So I can enable these four new chats. And now as long as that's enabled, any chat that I create from here forward is going to take these things into consideration. I'm a WordPress developer based in the US we primarily create content code for WordPress websites. If you provide code in the conversation, always check for compatibility with PHP 8.1 and point out any potential security risks suggesting alternatives. How would you like chat GBT explanation should be informative and typically short unless directed, otherwise, if you provide code, I do not need you to explain it afterwards. Also, if we're debugging and revising, it's very important. You always provide the entire code snippet or code files rather than just telling me to swap out pieces. If that love this. If we're writing PHP functions, always prefix functions with P WW underscore which is our agency prefix. So with these custom instructions turned on, now, every response I get after that is going to include this I don't have to type it ever again. Now I had it toggled off because we're dealing with content. I'm going to leave it toggled off and no this is not free. This is part of GPT plus. So this is what you're going to pay what is it $20 A month for I think, oh then is that in your free version? I didn't think that was the case. Maybe they've changed it to free. But they've added a couple of things here with GPT plus here and GPT for notice. Now they're gonna let you browse the web. So pay you can give a URL if you turn on this browser thing. It also you can generate images right from Dali, right here. If you turn this on, it'll generate images. And it also gives you plugins, which is my favorite part of chat GPT. So you got a lot of extra things you can do. You've got custom instructions here that I just showed you. But let's talk a little bit about GPT plugins. So GPT Okay, Stacy. We're not talking about the the chat GPT that's like an assistant on the Bing browser. This is a plugin for chat GPT that allows it to go like you can give it a URL and it can go read a webpage it couldn't didn't use to be able to do that. Now it can but in addition to that, that's kind of baked in. Because Microsoft is an investor in open AI. It's baked in as part of the GPT four options. So you can do default or use plugins or browse with being plugins are incredibly helpful. So I've given you a list of some plugins. The one thing I will tell you this is, I don't know who these people are developing these plugins. So if you're going to use a plug in, you're basically giving it access to anything that's in that conversation, and they do live within a conversation. And you can't add a plug in to the conversation after you've started it. So you got to make sure the plugins you want you can have up to three active in a conversation got to make sure those are set up first, and then have your conversation. But I don't know what the privacy policies are. It's really murky. So just be careful with that. Don't put anything proprietary or sensitive or whatever. You know, I wouldn't put anything in a conversation that uses plugins that you wouldn't want out in the public domain someplace. So just be aware of that. But look at the so cool. Look at the things that it can do. Alright, so we've got browse with Bing, and that's really good. But also there are two plugins, one called browser up, and one called Web pilot. They both do basically the same thing. You can put a URL in and tell it to browse that URL in a conversation and those plugins will go fetch that information and pull it into the context of the conversation. So for example, if you're trying to rewatch, we'll do this in the next hour. But if you're trying to rewatch Read Write someone's web content that was hard to say. You can say here's the five content pages on their current site, learn about this claim from there and now suggest new text for the homepage and it'll do it. We're going to do that in the next hour. Another one very similar, but chat with PDF, ask your PDF or AI PDF, they all do basically the same thing. You can point to a PDF link. It will digest the content of that PDF for use in the conversation. This is a really cool one AI video summarizer you could put in a YouTube URL, and it will summarize the video for you based on the transcript. It's amazing. I've been yes, they're free. Now these are free plugins right now. So you can see some of the ones that I've installed. There is a there's a Zapier plugin. There's a plug in store here that will show you all of the you know, you can search for whatever and just install it like it like an app store into your chat GPT link reader is very similar to some of these others any link it'll read webpages YouTube PDF, PowerPoint image, where it just any link, it'll pull that content in. This is super cool. If you use GitHub at all. This ask the code will go crawl a GitHub repository and be informed on the codebase of this thing. So if you're trying to troubleshoot a plug in, you can literally put in the Git repo of the plugin and it will just learn the code. Just absolutely amazing. Ben is asking how you turn on the plug in you have to be in GPT for and you select Plugins here and then you'll get this where you can check on which plugins you want active. diagram show me so this will actually create like a mind map or charting out information which you can then immediately push over into Miro to edit\r\n\r\nthis is super cool. One word domains so if you're having if you're trying to help a client come up with a domain name, you can have it suggest have chat GPT suggest domain names and this plugin will go out there and see if the domains are available before giving you a list of suggestions. I mean, and then of course Zapier, imagine, you know from Zapier, coming in and out of chat GPT with information is just I mean it's it's super cool. I haven't played with this yet. It's on my list to start to play with. So you see how cool chat GPT can get with these plugins. Absolutely amazing. Christina is mentioning Gravity Forms and chat GBT. I'm not talking about that in this course. But it's just another way for example, you can have somebody fill out a form on your website. It'll pass it through chat GPT to provide a reply or a summary or whatever. It's just amazing. Absolutely amazing. Okay, so let's chat. GPT is our focus but I do want to show you a few other apps to level up your work. I knew I knew I knew this. I was going to be running late on this. So we're gonna go fast here. Okay. But who here? Are you a Creative Cloud member? Have you seen Adobe's generative AI in Photoshop and Illustrator? Absolutely. Unbelievable. All right, so I'm just going to pick one of these. Okay, so here's, this is a Pexels image. Oh my gosh, oh. We've got these people on the street, right. I am simply just roughly I'm going to draw a circle around these people. And I'm gonna hit generative fill and not put anything in there. And it's just gonna get rid of them and interpolate what should be in the background. So if you ever you know if your client ever look at that, I mean, that's just and you get also three different options. Over here in the sidebar, kind of like that one better. This one, that one feels better. Oh, and look somebody they didn't move the trash. Let's take out the trash for now. You could do this with Photoshop. But now you just draw a circle and click the button. It's It's just unbelievable. But not only that, okay, so we got our trashcan and whatever. Make sure I'm on the background. What's your favorite dog? Anybody? Give me a dog, Jack Russell. Okay, we're gonna put\r\n\r\nJack Russell Terrier in the foreground. And it's going to be in the right light. And it's the right angles and everything\r\n\r\nthat's not a chakra. That's pretty good. That's pretty good. I mean, look at that. Absolutely. Amazing. So you can see the you can see the options here. Let's say, Oh, here's a very complicated image. Right. Let's just draw a very rough. Let's we want to get rid of everybody in this image. Just a very rough wrap around. We'll hit generate, and it's just going to work. Can we say it doesn't work with with high res? I mean, this is a 1920 by 1200 ish. It's it'll work with as high as I found it. Look at that. I mean, that was a really complicated image. We have got several options here. That was good. I like that one better. There it is. Absolutely crazy. Let's put a coffee mug here instead because who drinks water with lemon while at their computer? Latte in a big coffee cup. Big red cup with with hearts boom art\r\n\r\nSally, this is Adobe like this is Adobe generative AI Look at that. That's incredible. Oh, that's I mean, look at that. That's perfect. absolutely unbelievable. Change it to a margarita. Okay, I gotta move on. So Photoshop absolutely cool. Did you know illustrator will do the same thing with vectors. How many of you have gone like you're looking for a stock vector image for an icon? Right. Let's do let's see. I want to make an icon of of what I don't know of a light bulb. Light bulb icon generate. Now you can also have this if you already have your canvas setup with colors and stuff. It will make your light bulb icon based on the colors that are already there. I mean, that's pretty darn good. And they're full vectored images. It's not this is not Affinity Designer. This is Adobe products. You can even do a scene. Let's do a\r\n\r\nSan Francisco Bay at night. Oops.\r\n\r\nSo now let's move on to a website homepage. Not in this I'm sure that you know that's coming and there are tools out. Wow. Okay, that's pretty cool. That's not awful. I mean, it's a good start. Right? I mean, that's kind of quirky. But you get the idea. Right? It's very, very powerful. Those things happen right now. Adobe Firefly. This is the other Adobe generative tool. It's like dolly and other AI image creators. I think it's a little better and if you're a if you're a creative cloud member, you get this for free, where you can just type in by prompting it'll generate an image for you. This is super cool. This is what Adobe's after this is where they're heading with their gender today I like here's this image and it's tools this is going to be across the board and Adobe tools. It's gonna be able to pick out the things in an image and put those in layers for you to do things with. I mean, it's just and that this is coming very soon. Something else I want to show you is code WP we may try to use this tomorrow. We'll see how it works. This just launched last Tuesday. This is an AI it's an overlay for open AI but it is trained specifically on WordPress code. This is really really, really cool. Code WP dot a. This is super cool. Well, that's because I'm logged in but anyway, you see it worked like it's trained on WooCommerce code ACF, Gravity Forms all you know major things more to come and it will actually write plugins and put them in packages of multiple files and folders. Like you could write a major plugin with this. It's still a little quirky, it's still getting worked out. But this is really, really neat. I mean, you get 10 Free generations per month. $12 a month is all this thing costs. There's an affiliate link there if you're interested. Just check that out. Play around with it. We may use it a little bit tomorrow. But it's this is an AI that use it again, it's using the open AI generator, but it's got this extra repository of all the WordPress code base, four core and all these popular plugins built right in it's just amazing. This is one we've been using for actually quite some time. It's called may guy. We really really really like this. Let's see where is it? Ah, here. Okay, so may guy is it's another overlay for chat GPT but you can talk to all of these models so you can do open AI anthropic, which is Clyde, the Google AI metas AI and others. The neat thing about this okay, we saw earlier the custom instructions for chat GPT this gives you it's the same thing. It's called Custom personas. So what this will allow you to do is have multiple personas, like if you're doing a plugin, if you're doing code, you can have a persona for code. Here, for example is our WordPress news roundup persona. So when we're doing a quick when Chris is summarizing articles for the WordPress news roundup every month, this is what we use. At his WordPress web development news reporter take the URL I give you read the article, provide eight to 10 Sync bullet points that summarize the article you read no more than 10 to 12 words long. Don't use extra words leave out articles like V or a when possible blah, blah, blah. We've just gradually improved this like Chris How long did it take you to dial in this prompt? That's been the took some work right? So you know, provide a summary that will be interesting and important to a WordPress web developer who is a small agency owner bla bla bla bla, give me two options versus st informative title for the article now. It still needs to be edited. But over time we have perfected this prompt to give us 90% like it works really darn well. So yeah. This is great. And y'all this is where is it? This is we pay nine bucks a month for this. And there's and you don't have to have a chat GPT license. This your $9 a month it's metered usage. You know and you can upgrade for still pretty cheap. It's again, it's an overlay, it uses the API, but you can train all these custom persona. So for example, let's say you dial in the brand voice for one of your clients in custom instructions, and you're writing blog posts for them every month. Well now you have a persona for them, and you just use that and it's all in there. That's all you have to do. It's just it's amazing. It's amazing. So I talked to the Creator, who has been a fan of AI themes for many years. So he has a code here. If you're interested. There's the affiliate link if you want to do that, but it's solid 20 20% off your first three months. Pretty darn cool. If you're using something like text, expander or type desk, there's all kinds of opportunity for integrating AI into this. There's some articles there I really don't have time to even get into this. But my goodness, that's cool. And you can like store your prompts, for example, as a text, expander snippet or whatever. And then last of all, Chrome extension now there's a ton of Chrome extensions for chat GPT because there's Chrome extensions for everything, but one I want to show you in particular, is this one. Okay, so here's our normal chat GPT interface. This is something called Chat GPT anywhere we like this one. I'm going to toggle this on and refresh. It's just it basically gives a whole new UI for chat GPT you can create folders for your conversations and it makes your history searchable. That's the most important thing for me, because you can search for something that's way, way, way way down your list. This is free works great. I like it a lot. I'm going to turn it off again. So yeah, that was our first hour. Okay, how was everybody? Okay, mind blown. A little duct tape going on. Okay, let's take a break. We'll come back at 10 After two and we'll spend the rest of the next hour talking about using chat TBT to generate content. All right. So we're back at 3pm Start. No, we're back at 2:10pm Central time and we're quiet until then.\r\n\r\nAlright folks, 30 seconds to go. We're back. In 30 seconds.\r\n\r\nAll right, 10 minutes after a time to go for our two of the AI workshop. Who's excited now? Are you excited about AI more excited than when you started? What do you think? Let me hear from you in the chat. Because that what we just saw was the most boring part of the course. So let's get into the fun stuff, shall we? So at its heart chat GPT is designed to work with content, it is a generative AI. So there's so many ways to work with chat GPT for the content of your website now. Immediate disclaimer, I do not in any way assumed to be an expert using chat GPT for any of these things. What I'm showing you comes from how we've used chat GPT on the agency side this year, and we've done some pretty cool things. I gotta be honest, but there's always more there's always more things to do and think of and try. So you know what I'm gonna give you is like this is not like exactly what you should follow. Just use this as an example, to spark some creativity and brainstorm. You may find a much better way than I've even described here to do some of these things. So does that make sense? start experimenting, start playing around with this because working with AI is just as much art as it is science. So as we get into creating website content, I love this is so cool, y'all. Okay, the most important thing I can tell you to do is to train the conversation we talked in the first hour about the most important thing you can take away from this entire workshop is it's all about the prompt, right? The second most important thing is train the conversation Well, because the more you train the conversation, the better the results of your prompt will be. Okay, so the key to getting great website content is training it with lots of information before you start asking it to generate the final copy. So drop in the copy you have from the company already, or the organization or whatever, at the beginning of the conversation so you can use URLs with chat GPT plus plugins, etc. This approach gives context to everything else you're going to talk about in the conversation. So you want to be able to generate all the content for the site from the single conversation one conversation with chat GPT don't have one conversation about each services page. One about the about page, keep it all in the same conversation, because we're talking about the same company. And it will get better as you respond back and tweak and whatever. It's going to get better even sharper as it continues to give you better more content for the site. So here's an example prompt to get things started now. Chris messaged me during the break saying the chat GPT hiccup on him. It did the same for me. So hopefully we're not going to hit a time where all of a sudden chat GPT quits working because that would be bad. I do have some historical content I can show you but hopefully we can do this live. So we are in GPT four. I'm going to turn on plugins. And I'm going to enable I'll just use browser up. So this is going to let us go browse URLs and pull those into the conversation. Alright, so here's my prompt. I'm creating website content for a client below. I'm gonna post the information I have about them. Open each URL listed below. I said web pilot. We'll just I'll turn on web pilot instead. It doesn't matter. They're both they're both essentially the same. Just to keep the well where is third is why it's not alphabetized. I don't know. So open each URL list with web pilot don't do anything with this information yet. I do not need a response other than to confirm you have processed it. So let's start here. I'm going to drop this prompt in and we're going to use so for those of you that were in the builder to Kadence workshop a couple of weeks ago with Kathy Zant and I we were working on this really horrible old site. For one of my clients that was built about 8 million years ago. It's still using builder and here is this client, they are a metal fabrication contractor. Okay, so what I'm gonna do is I'm just going to start pasting in some URLs and I'm really, I'm going to do the homepage. If I was doing this. Actually, I would do every URL on the site. And you can do that by going into the sitemap if you have a sitemap and just copying the URLs. So what I'm going to do, I'm going to focus on the the what we do pieces and I'm just going to do a couple of the services that they offer and I'm just dropping in a link because it takes a minute to crawl each link and I don't want to take forever. So I'm going to do the homepage and three services pages, and then maybe also the about page to get some context on who they are. All right. So let's hit that. And now web pilot is going to go out and start processing each of the webpage and it takes a minute, okay, and you just have to wait, you know, go go do something else. Whatever. Blah, blah, blah. It's gonna take a minute, but we need to do this to get the context of the website. Paul to Chris and while we're waiting the Chris and I collaborate on chat GPT or do you have two different accounts? Is there anything for teams? So I don't, we don't I mean, Chris has his own account. And I have one. We could collaborate if we wanted to. I don't know if may guy does or not you have to look at that. We still go in here see 1234123 I think this is the last one. So it should respond back with I got it here in just a minute. I oppressed Okay, good. So we now have this information processed awesome. So again, like you could go out to your sitemap and just copy everything in if you wanted to. And that would work also. So now, remember, that what we don't want this to say is in this digital era, like we don't want that generic awful text we want really great really great text. Okay, web pilot is a plugin for chat GPT for Yeah, yeah. So you can instruct chat GPT to read provide content in styles like informative, serious, funny, any other adjective you want. I find it helpful to come up with a famous person whose voice I would love to emulate on the website. So you might even ask chat GPT to help you select a voice so here's my next prompt. Based on what you know so far, give me 10 recommendations for famous people whose writing or speaking style would be best to communicate this information on the website. Briefly explain why you like each style. We're gonna paste that in. And here we go. Steve Jobs I don't think so. Okay, how about Elon Musk? Probably not. Bobcat Goldthwait. Bill Nye Okay. Now I'm seeing a pattern because these it seems to suggest these a lot. Okay. Now Malcolm Gladwell might be interesting. But really, I want like these are these are contractors. You know, they do metal work. So really, none of these people are really resonating. I don't think Brene Brown, like these are not really good suggestions. Okay. So I don't like any of these. Like, I don't Okay, Stephen Hawking. I don't think that's the right voice for a metal fabrication company. Alright, so let's go back up here. And I'm going to edit this prompt because I don't want any of this to get mixed up in the conversation. Remember, this is a metal fabrication company. style should speak to blue collar work and high quality. Give. I'm gonna just gonna change this for the sake of time to five recommendations. We'll see what it gives us with that. See if it gives me the example outcase See right here. This is what I did in my test. Mike Rowe from Dirty Jobs is the exact right voice for this website. Right? It's perfect. Although there's some other John Steinbeck. I'll take Tom Silva from this old house. Okay, Bruce. Springsteen might I've never heard him speak I don't think I want storytelling\r\n\r\noh my gosh, I don't think this would be hilarious. But we're gonna do we're gonna do micro okay. I really like micro is one of my I love his podcast. I'm really, really fan so we're gonna use micro. I think he is the right voice for this website. So let's check the voice with a summary question. So give me an elevator pitch for the client in the voice of micro.\r\n\r\nThat 100% Sounds like micro Okay, I like this voice. We're gonna stick with this. Okay, so that's an easy way to test the voice. Okay. And I would suggest you do that before you get too much further down the road. We could do I just out of absolute curiosity. I want to hear Ron Swanson. Oops, I misspelled it, but I think it'll know\r\n\r\nkind of like this. Actually, I kinda like that a lot in the discussion, I don't know. Anyway. So we're gonna go just for our purposes here. We're gonna go with micro. So take your theory on trout, other voices, et cetera. This makes sense so far. See where I'm going with this. So it's I like to do it this way instead of saying insightful or whatever adjective, I think it's helpful to put an actual person's voice. So as you think about how do I make this into a system for a client, ask the client if you had to pick a single celebrity to speak in the voice of your product or company who would it be? Right and start to work with that, you know, so All right. Now, let's start working on homepage content next prompt unless I say otherwise use the style of micro for the rest of this project. Let's work on the homepage content didn't give me 10 options for a hero headline and subtitle that will engage visitors and the style of micro See, our call to action is scheduled consultation. You don't have to put that boom. I can't spell row apparently. But it will know it's smart enough to realize that 10 options, okay. Ooh, I like that. Look at that crafting. metal building features. I like that a lot. Behind every great structure, there's ihrm metals, turning metal into milestones. That's kind of cool. If you don't like any of these, you can say give me 10 more or whatever. But I mean, some of these are bad. That's all like that metal work that tells a story. Ooh, that's cool. All right. So I mean, half of these are doable, right? Not bad. So let's just pick one Let's vote. Which one do you like best? Kinda like this one. Yeah, crafting metal building features, but I don't like this though.\r\n\r\nI kind of like that one. Okay, let's go with headline one, subtitle four, just to keep things moving. Let's go with headline one and subtitle four. Okay, so we're gonna keep that for a minute. Let's scroll on down and our primary call to action. So let's just copy this next one. Okay. So we're telling it which ones we're we're in chat. CBT does a good job of figuring things out if you misspell in the context. Okay. Now let's create the primary call to action. Okay, I'm gonna I'm going to skip this because we said our call to action is going to be built to schedule consultation. But here's where you could ask it to give you some suggestions based on what you want people to do. So I'm going to skip that though. So based on what you know about the client what other homepage content areas would you suggest? So let's go with this and this let's go and see what it suggests what else should be on the homepage?\r\n\r\nAlright, so it looked at the services pages that we already had, and it made some suggestions there. short narrative about HR metals, a project showcase testimonials. What's different latest news, okay, these are all great. So let it help you brainstorm what might be on the page right? So this is all good. This is really good and helpful.\r\n\r\nAll right. Now how about this? How many of you are familiar with story brand? You can combine your voice and the story brand approach. I'm a big fan of story brand. So I'm going to say using the voice of micro but adopting the story brand approach from Donald Miller give me five options for the one to three steps in story brand, providing a title and short description for each step.\r\n\r\nSo if you're familiar with story brand, you realize okay, this is not bad, right. Paul, yeah, so Paul, this is a this is an example for a redesign. Yeah. So if if you're doing this for a brand new site, that there's nothing else like that already. Then maybe you know, you would get some of the content or content concepts from the client and drop those in instead of browsing URLs, right but the idea is I'm gonna train up the conversation with his all this information at first, and then start asking a question as to generate content. Ben, can you ask it to suggest improvements to a current homepage? It? Maybe Hang on. Okay, so we got our one, two threes there, right. And you can pick one of those if you'd like it. Let's see. Let's I don't know if it'll do this or not. I've haven't tried this. So let's just see. Look at the current homepage at this and suggest improvements. I don't know what's gonna happen it's gonna it's gonna go grab the URL. Yeah, sure. You could put in competitor URLs here as well to suggest other things. Again, that's just more context right.\r\n\r\nYeah, so I don't know how good this will be. I haven't tried this approach before. Yeah, I say to you, right, improvements might be too subjective. But look, it's making suggestions that are really pretty good. The content jumps between different divisions and services create a more linear narrative. Yeah, it's really, really cool. Alright, let's keep going. Alright, so we're going to move into individual posts and pages at this point. Let's define SEO strategy. So this is our SEO strategy. I'm just going to drop this in as instructive. Each page will have a key word I'll give to you as you generate the content for each page. Use this keyword in a natural way at least five times and also include it in at least two headings kind of like we did earlier. Some might have two or more keywords. So make sure each keyword is included as above remember the strategy and implement it when I give you a keyword for any content you create. So we're gonna drop that in just as training. And you could hit you can hit and submit right here, but it's going to take one of your conversation pieces, and you only have 50 in a four hour period. So we're going to not submit that just yet. So now we have a prompt Okay, in the style of blank rewrite. In the style of micro it would probably remember that but I wouldn't trust that rewrite the what was the page called? Ah RM metals. At a Glance\r\n\r\nusing the key word\r\n\r\nlet's do the key word, metal, custom metal fabricator. Whatever it would be right. Okay. So now it should give us content for our about page\r\n\r\nnot bad\r\n\r\nso this is a little bit better than the in the digital era content right. I mean, that's, that's good enough that I would give that to the client just like that for them to mark up. Wouldn't you say? I mean, this is pretty good. Pretty good. Let me hear from in the chat. Anybody still out there? Are you all trying this on your own? Yeah, Chris. It's much better than they would send to us out of the gate.\r\n\r\nPretty good. Pretty good. John, the limitation. I think it's 50 responses in a four hour window. So I don't know where we are now, but that's why I didn't want to do GPT four until we got into this. Okay. 350 responses in three hours. Yeah. Okay, so we can generate pages that way. Now let's talk about some blog posts. How many of you are always struggling to get like the first few blog posts from a client? Brainstorm five blog post. Topics for this website. With a short summary.\r\n\r\nYou're about to be amazed with what's about to happen. Now remember, we have built into GPT for the ability to do dolly image creation. Or we could use Adobe when in fact, let's just use I don't want to use any more of my prompts and I have to let's let me get to a firefly this is going to be super cool. All right. Let me let me get the start and then we'll get our image creation. Alright, so let's pick one of these. The Art and Science of metal fabrication Okay. Write a 500 word, blog article on topic one. On topic one, you could say using keyword blank if you wanted to. Give me five Title Five optional title, suggestions. And give me a sample Sally prompt for a featured image British planning to stop okay\r\n\r\nall right, so now we have some five posts I've noticed that when it does titles, it likes to put a colon in there like all the titles have a colon I don't like that. You can tell you can tell it that as part of your instructions. So here's our blog post okay, this is gone. I'm sorry. This is okay. It's fallen off our micro. Have you noticed that? I'm going to stop this. I'm going to go back in here and\r\n\r\nand make sure we say micro because I forgot right? It just started it fell off. So we'll come back. Now dolly is the open AI image creator. We're going to actually use it over in Adobe Firefly, because I don't want to use another open AI prompt right now. So I think we're going to need them all. But it'll show you how Firefly works. If you're a creative cloud user this is built in okay, we don't want that\r\n\r\nbut I do like the voice because these folks are very personable. The client says who's Mike? So this is where it you know, you have to refine it a little bit and you could tell it, hey rewrite the first paragraph and don't say your micro. Paul, what happens if you use them all up? It'll say you've reached your limit check back at this time and the conversation will still be there you just go back to it. Okay, a fusion of traditional blacksmith working with an anvil with molten metal and a modern robotic arm assisting and precision metal work. Set against the backdrop of advanced metal fabrication workshop. Okay, let's see if Adobe Firefly can handle that. It should give us three images\r\n\r\nor maybe four thinking real hard about it. Oh golly. Oh, that's really cool. Not awesome, but not horrible. Anyway, you see where we could go with this? Right? So you could potentially generate a bunch of blog posts and have images and be ready to go and just refine the product, right.\r\n\r\nAll right. So that's a very quick that was 30 minutes worth or 25 minutes worth of very quick approach to generating content for a website. When you think like that, that's pretty darn cool, right? We started falling off the rails a little bit so you got to bring it back in, remind it and whatever. But how much time does the save it saves a ton of time. Nicholas? Just a ton of time. Okay, let's do some more things. Okay, so, chat GPT can not only generate text, but it can also help you work with text. So let's do so these are links to historic chat GPT conversations. So here's this thing of converting text to a table or spreadsheets. I can't remember what this was. But it was good enough for me to save it and put it in the handout. Oh, okay. All right. Oh, yeah. So here's some customer testimonials. And like the idea here was, we were we were rebuilding a site. And it had a single page of testimonials just all written out in one long line of text and there's probably, oh my gosh, I don't know how many there probably 80 of them. I'm going to just guess ADR. And what we wanted to do instead was I bring those into a custom post type where we could do things with them, right? Like randomly show one or put them in a carousel or whatever, right? And do something more interesting. So how do you do that? Well, you could sit there and you could copy paste, copy paste, but who wants to do that? Don't do that. So here's the prompt. Now again, this was months ago, I hadn't really dialed in on how to work but this is just simple, plain wording. I've got some customer testimonials below. I want you to format the text for me. Do not change the actual words in any way. The quote is surrounded by quotation marks remove the quotation marks from around the quote in the output, then output a table as follows. Because of column one customer testimonial column to the customer initials, these follow a dash after the closing quote, column three, the full state name So context is key here we're gonna give an example. Here is the example of a quote terming and identity. It's surrounded by quotes. It's got a dash, customer initials and a state name. This example should be output as column one, this part column two, DC, column three, Minnesota. giving an example is key to do anything like this tell it exactly what you want it to output. And then here's the full text of everything that was on that page. Look at all those many, many testimonials, right? So there's our output, and it did exactly what I wanted it to do it translated the two letter state abbreviation into the full state name. And then what I did at that point. Anyway, what I did at that point, I didn't realize I could do a CSV at that time. But even from here in the HTML output. Oh my gosh, there we go. You could do the inspector and just grab this table object and hit copy element. And then open up Excel, or whatever, or Google Sheets or your favorite spreadsheet app and just paste it right in. In there at all is and from here, I can save it as a CSV, right or you can tell it output this as a CSV like we did earlier, and it would it would pop it out. So taking text converting it to some other format. See how much can you think of how many times how much time in various ways that could save you. Here's another example of doing something similar to that. So I have this HTML I need to replicate for the items in the list. So here's the HTML I want. So you know, there's some style, there's a URL that's based on the link item. These are things in a silo menu, basically. So take the names in the list, do the same li structures above from this pattern. And okay, it did a Python script. I don't know what that was about, Nope, just output HTML as a code block. Got it. Boom, there it is. Copy, Paste done. So rather than me having to go back and fix all this, like it knew what to do with the URLs and all of that it just worked. Pretty amazing. Pretty amazing. So do you see the ways you could use chat GPT to format text are endless possibilities of how you could do this, you know, don't do any of this stuff manually again, and somebody was mentioning earlier, chat GPT will 100% give you spreadsheet formulas, like you can describe what you want it to do. And it will give you spreadsheet formulas to do that in a spreadsheet. Pretty neat. Okay. Be prepared to be blown. away. Are you ready to be blown away? Have you been blown away yet? You're gonna be blown away now. Okay, because this this is my single favorite AI application that I've found. To date. Okay. This is absolutely amazing. How many of you do transcripts for your meetings? Like you have a call with a client and you're recording it in something like you got otter running or something like that, right? Yeah. Are you doing that if not, start doing that. Today. It'll even work with Zoom transcripts. Okay, just get text. All right. So I love this. And Madeline zoom also has an AI companion. Now. They haven't played with that yet. I'm not sure that I think it does transcript and all that stuff to y'all. Okay, there is an AI you need to be aware of called clawed AI. It's, it's from anthropic. Clawd AI is really, really good. It's another generative AI model, like chat GPT let me get logged in here really quickly. Oh, my God, I'm in the wrong I forgot to do this earlier. I'm in the wrong browser profile. So give me just one minute so I can get to the right one and it has what I was just working on\r\n\r\nYes, okay. Okay, let me get here we go. Are you ready? Are you ready? This is y'all. This is it blows me away. Okay. They aren't ready. Okay. So absolutely love this. This document is the transcript from my call. Okay. Here's my prompt. Now. Why would I use Claude AI for this because Claude has a higher token count, meaning you can give it more information at the beginning you can put in this is a full hour transcript. Chat. GPT won't take that much information all at once you'd have to break it down. It might with plugins. It's just not as good Claude is designed to take big bits of information and work from it. Like you can drop in like a novel as a document or a PDF and it will process that whole thing then you can ask it questions about it. It's made for this Okay, so here's my here's that transcript. Please evaluate this document which is a transcript of meeting with clients to create a new website I need to write a proposal. My proposal contains the following sections so please provide results using this format. In from the info in the transcript project overview, five to six bullets that summarize the big picture of the project website design any items discussed that apply to the visual design of the website, website content, any items pertaining to content, text, images, videos, downloads, blah, blah, blah, website functionality, any details about the thing the website actually needs to do? How many of you spend an hour two hours doing this for proposals? Here's a draft proposal. Based on the meeting transcript clients want to do this main goal that ended at launch budgets around this website design, use the same headers it just it pulled out the bits of the conversation and put them in the sections that I use in my proposal. Look at this. Currently rent forwarded resources client will provide spreadsheet resources will be uploaded to cloud functionality and this is where all the stuff they want. Does this capture okay? There's some pushback. There's some functionality notes like the ability to add related documents, state documents that are not covered here. So it missed some things. I remembered some things we talked about. Look at the transcript. Again, make sure all functionality misspelled details are covered. You're right. I miss blah, blah, okay, in now it read it. All right. Look at this. Boom, boom, boom, boom, boom, boom. We talked about the survey they gave the current website users what were their top priorities revealed in the survey. Great point. We should talk about that. So project overview and added some stuff about that. Give me precisely what is discussed about the analytics that need to be tracked on the website by the client for reporting purposes. Boom, here are the details did the I'll add these analytics to the website functionality section, boom. Okay. Was there a certain date in March the site needs to be live because I couldn't remember once the date by the end of March, okay. Awesome. Good. We'll put that in the overview. The comments say they wanted to make changes to the documents on big commerce, which is the current provider or in a spreadsheet? Yes. Good catch. They specifically said they want to make updates to the resource and descriptions blah, blah, blah, blah. Isn't this amazing? Did we talk about payment processors for the principle store at all? No, we didn't talk about it's just so like, the way this worked out. It was several days after the meeting when I was putting this proposal together. And you know, I had forgotten some of the salient details of the conversation but by uploading the transcript, I could then ask questions through Claude to the transcript and have an answer. Anybody excited about that? Like how cool is that? Could you immediately start doing this in your work? Uh huh. 100% 100%. So Melanie just got off a call for a client Melanie, grab the transcript, drop it in cloth and start asking questions. It'll blow you away. It will blow you away. All right. So there's some prompts that I just used. So if you if you're having this I haven't done this yet. I haven't done but I could very quickly see how when if you were to pair this with Zapier, have a call with a client. The transcript goes through Zapier and details that the prompt would be pull out action items and put them in this project in my project management system. It could, it would take some refining, but it could just meet you know how much you spend time filling out your project management tool based on all the stuff that all the stuff that you have to do after a call. Amazing. Amazing. So I don't know if I don't know if Claude goes to Zapier. This no chat GPT does. This would take some experimentation. This was just an idea I had after this. So pretty cool. Pretty cool. All right. Yeah, that wraps us up on the content side. And we're about 10 minutes till so. Alright, folks, what do you think? Questions? Comments? Who's ready to start using this? Clyde? That's the free version. I'm using the free version of Claude for this. All right, Ben question deciding between page chat GPT or may guy or do I need both? Okay, great question. So then, I would try both. Just try and see what you like, right? It's a very small cost for the first month. Just see what you think and what you like better. I would I use both. I pay for both. I am very, I think my habits are there. I go to chat GPT and do everything I could probably optimize a lot better if I just lived in May guy. It works really well. And then of course there's code WP you know, code WP. I haven't spent much time playing in this at all. Chris has. He's building a plugin in this earlier called brilliant insights. You know, Chris can tell us what he thinks about ko WP. I think the pros and cons on this one, right? With mega you miss plugins and chat GPT Yes, but you don't need them because they're built into the platform. It'll go out and grab URLs that's why originally we started using may guy to grab external URLs because chat GPT did not have a way to do that. Now it's since has added the ability to browse Yeah, so we're gonna be doing all the coding tomorrow. That's what all of tomorrow is about.\r\n\r\nLet's see. Okay, then. I don't think code WP would replace codable You really you have to know and might replace it to some degree. I mean, look, here's like, things that we would have outsourced to developers last year for a lot of money we're able to do in chat GPT yeah, there's still some things that you need. Like if the key to AI and coding. We're going to talk about this tomorrow. But again, it's all about the Prop. You have to know enough about what you're asking it to do to get it to do the right thing. Like for example, the very first thing I ever tried to do in chat GPT and a plugin almost almost gave up about 10 times. I stuck with it. Because I had to learn some things. It was just part of the learning curve. But you know, there were some things I was doing and I didn't realize that with this thing with pods. It was creating a user meta entry. I didn't know any of that. If I had known that. I could have said when you do this, it's going to update user meta and check that user meta and do this in the prompt. But it kept not working, not working, not working for like two hours. And I didn't understand why until I got into it and figured out why. So again, it's about you have to know some things to be able to ask the right thing to get it to do the right thing. Does that make sense? Yeah, like Gravity Forms. Like it's a single line. Like you could just say, I have gravity form ID for I do not want that form to store entries in the database. code snippet done. Great.\r\n\r\nAll right, scrolling up for questions here. Paul, why do people still use sites like Jasper? I don't know. It's so here's the thing like Jasper, what have they done with Jasper? So Jasper is it's a body of knowledge that sits on top of chat GPT right. So the Jasper team and like Bertha AI is another one of these AI tools that have been around for a while and they've gotten you know, they've gotten very refined. They have their own data set and instructions and things that sit on top of open AI and you might get better results with them depending you know, so it's it's kinda like these custom instructions that they have a whole app that's custom instructions that's built on top of the model. So you might see those things start to fall by the wayside, the better the core AI gets. But, you know, if you don't know how to prompt it, you get the you know, in this digital era garbage like we were talking about earlier, so Jasper is probably not going to give you that out of the box period. It's going to be better immediate content. So it probably good for those that haven't explored prompt crafting. Let's see scrolling down scrolling down, Stacy, do I charge the clients by the word? No. No, I haven't I haven't quite dialed in how to charge for this yet. Still trying to figure that out. We're doing some content for a couple of new clients right now, using chat GPT in very similar ways that I just described. I just charged the content creation. You know, that's just a flat cost in the in the project. I really haven't figured out how to charge for this yet. So you know, I'm still experimenting with how this even works. Let's see. Scrolling down scrolling down. Ben, what's the best to use to modify photos web based, then I don't know. I don't have an answer for that.\r\n\r\nSo I don't know if you can upload a photo to an image generator and have it tweak it for you. I don't think you can. I don't think we're there yet. But I could be wrong. If anybody knows. Feel free to drop that in the chat. Christine, if you listen to some of the SEO experts, they say not to use AI for content. Yeah. So that is if an SEO expert tells you that AI content will hurt your site's stop listening to that SEO expert, because Google has changed its own policies about that. Google is providing a generative AI for heaven's sake. They've changed Google has changed its guidelines to as long as the I can't remember we talked about this at length in news roundups in the SEO section over the last few months, because this was a big thing in the early earlier this year. It's not about who generates the content, Google changed their guidelines to refocus on is this content helpful to humans, or is this content just generated to create search results? Or is this actually content for humans? Let's see scrolling scrolling. Yet. rankmath has AI general and you're gonna see more and more stuff in WordPress with AI. Okay, Jeff fun today. Who's gonna spend some time on the rest of this afternoon playing around with some content in AI? Dave, you're right, Google could change their mind at any time on what they do.\r\n\r\nYoast also has AI Yep. All right. Anybody else before we wrap up? Alrighty, tomorrow. It's all about the code. So I have many, many, many code examples in the handout in the handbook that we have done and you can we'll browse through some of those. We'll do some live stuff tomorrow. And in the final hour tomorrow, falling under what could possibly go wrong, but we're going to try to build a full plugin with multiple files live right here on the live stream. So you know, we're gonna break everything. It should be fun. Okay, go play around with AI and tell me what you come up with tomorrow when we come back. So we're back tomorrow. 1pm central to 3pm Central like today. See you back here then on solid Academy where we go further together.\r\n\r\nYeah, wasn't that amazing? That is absolutely amazing\r\n\r\ncaptions connected\r\n\r\nall right captions should now be working for all.\r\n\r\nMaster prompter? Yep\r\n\r\nAll right, so\r\n\r\ntoday we are specifically focused on code\r\n\r\nshould be a lot of fun Welcome Welcome, everybody.\r\n\r\nBeth,\r\n\r\nyou're gonna like this. I really think you will.\r\n\r\nBecause even if you don't do the code, you can kind of do the code.\r\n\r\nJohn, can\r\n\r\nClaude read PDFs Yes.\r\n\r\nYeah, clods pretty awesome. Lot is pretty awesome\r\n\r\ncustom instructions and chat GBT? Yeah, that's really helpful,\r\n\r\nright? For sure. All right. Did anybody do anything\r\n\r\npractical between yesterday and now? Did you try any content generation let me hear from you.\r\n\r\nWhat did you do? How did it go?\r\n\r\nwas having a conversation earlier\r\n\r\ntoday and the suggestion was made that as quickly as AI is advancing maybe we should do like a quarterly quarterly AI roundup and that was de bronze suggestion. I mean, because it's moving so quickly. I just literally,\r\n\r\nlike five minutes ago, learn something new. That Chris showed me. All right,\r\n\r\njust about ready to start everybody who's ready to go day two talking about code. Yay, code.\r\n\r\nNP NCSS.\r\n\r\nAll right. It's three minutes after let's dive in\r\n\r\nWelcome back, everybody\r\n\r\nto day two of the WordPress AI workshop here on the solid Academy. Really, really excited about day two because this part I mean, the content stuff yesterday was fun. Today it's an even if you don't do code, it's likely you'll be able to do some code. If you can copy and paste and troubleshoot a little bit, you'll be able to do far more than you ever thought possible. I promise you so it should be a lot of fun today. So yesterday, we talked all about some foundations of AI and where it all came from and why all of a sudden like less than a year ago AI became the thing. We talked about some best practices on you know how to use AI and how not to use AI and some mistakes that are commonly made. So if you missed yesterday, I would suggest you go back and watch the replay. It is there and ready to go for you. You can even speed it up to 1.5 or 2x if you want and I'll just talk really fast and you can get through a lot of that information. The content piece yesterday, I would just again encourage you to experiment with that. What I showed you yesterday was not like the Bible on how to do it. It really just this is what I've been doing. And I found it to be really helpful and take that and build on it. You know you may find certain prompts and certain ways to ask things that work better for you and your workflow. And you may find some little Easter eggs hidden in there as well. So the big takeaway from all this is it's all about the prompt. That's the number one thing I had to get out of this whole workshop and we are always going to be refining our prompts. So today what we've got, again, focused on code, mostly PHP, there will be I think there's some jQuery in some of these that generated and there's at least a few instances of CSS it no chat, GBT knows all those things. And it can really, really make our work simpler, even if it's things you understand, like if you could write CSS, then you just prefer not to chat. GPT can do that for you with some description. So what I'm giving you here is at the beginning of today, are it's really a list of conversations that I've had with chat GPT over the last year, it's some various points of this year. And if we look at the date on some of these, they go back to March, April, and I was really just learning how to use chat GPT so you'll, you'll see sort of the evolution of my use of chat GPT through these processes. And so I don't know how this is gonna go. We've never done this before. So my thought is I'm going to talk you through each of these conversations with chat GPT and you know how, what you know why I asked what I asked what the problem was I was trying to solve, and hopefully, this would this will give you ideas of how to proceed with solving certain problems that are code related with chat GPT so does that make sense? That's kind of my approach here. It may not work at all. Hopefully it'll be great. Hopefully, you'll learn some things but either way, you can see some of the ways that I've used AI over this time. The other thing here I got started getting a little worried Yeah, I started getting a little worried earlier today because I've gotten frustrated a chat GPT I mean, I'm gonna be honest I've gotten frustrated chat GB to there may or may not be conversations I've had with chat GPT in which profanity was involved. That might have happened, possibly once or twice, and I hope none of these conversations include those but if they do, I'm gonna scroll right past them real quick. But you know, it's a journey, right? It's a conversation. There may or may not be insults because I got frustrated, but chat GPT just you know, it replies graciously.\r\n\r\nSo, here we go.\r\n\r\nY'all ready to get into this? So let Okay, let me let me test let's take a quick temperature check in the chat. Give me this chat. GPT to insult you back. Oh, I think it I don't think it's core programming allows for that. But that could be awfully fun. So give me in the chat. Give me a one to 10 on how comfortable you feel with dealing with PHP snippets. Right. And by that I mean you're not going to write the thing, but you're okay with like finding a snippet and maybe editing a couple things, whatever. Okay, give me a one to 10 on how comfortable you are dealing with PHP snippets. Alright, so several high on the high end, several on the low end. A couple of zeros. We'll take that. Okay. So okay, here's the thing. If you're on the 0123 end, chat, GBT is all about the prompt. Right? And so it's gonna be a little harder for you to know. Like the idea here. It's kind of like finding that PHP snippet on the web, and just kind of being able to read it not knowing exactly, but there's enough syntax and like the the terms that are using WordPress, PHP are usually clear enough, where you can kind of have sort of an idea of what's going on. And so that's gonna, that skill is going to be very helpful here. So just, I mean, hopefully it's obvious like if you're zero on understanding PHP, this is going to be a challenge. And I can't teach PHP in this course. But I can show you how chat GPT will generate snippets and how we troubleshoot them. So if you're on the higher end of the scale, I think you're gonna pick this right up and go this is awesome. And if you're not using chat GPT already this I mean, you're gonna be picking this up and being up to speed almost immediately. So don't get frustrated. If you you know, if your understanding of PHP isn't quite as high as maybe you'd like it to be or whatever, don't get frustrated, it's likely still that you'll be able to generate some code snippets that will help you so hang in there is Sue here today. And we have an m&m Check I don't see see in the chat. So here\r\n\r\nwe go. All right. Ah, all righty.\r\n\r\nSo let's get started. I have separated these out into categories. So here's four things that over the course of the year I've done on various projects. To do something to manipulate the core code of WordPress, some snippets, that would affect the core functionality of WordPress and I need\r\n\r\nto find\r\n\r\nheritance All right, so let's get started with this one. So how many of you are familiar with this issue of user enumeration? This is something that WordPress will do. You can with a query you know, find out who is author number one author equals two or whatever. And this is a way it's really not used that much anymore. It's more of a security by obscurity issue, where you can query WordPress, and it will give you the username of authors if you ask it, what the IP by the ID. And so there are bots that will try to hammer away at your site and get a list of usernames on the site that are authors. And then they'll try to come in and pound away with passwords. Not nearly used as much anymore. But this is something that there's a script for it. You can block it, and it's really easy to do. This was the prompt. I mean, talk about a simple prompt. Actually, I think we even this might have come from an office hours earlier this month. When he\r\n\r\nsix don't think Well anyway, the prompt is\r\n\r\nsimple. Can you write a PHP script that will stop user enumeration in WordPress? I mean, that's about as straightforward as it gets. Now chat GPT will typically respond with some context. This is what user enumeration is. Like I didn't really need to know that but I mean whatever. And you can even tell it don't give me explanation. Just write the script. So we're going to remove revealing error messages restrict access to whatever that is. Alright, so here's a PHP script that can help in preventing user enumeration. Now it's actually given me a plug in here. I didn't ask for that. So that was a little bit of a surprise. I was really hoping for just a snippet that I could add to my custom functions plugins, but it wrote the whole it wrote the whole plugin. Now if your understanding of PHP is maybe a little less, these explanations are super helpful. It's just that as I'm Chad CBT for GPT four is a little slower. And so it's sometimes and during different usage levels during the day. It's faster sometimes and slower other times. And so like sometimes I just don't want all the explanation. I just want the code but it's gonna give you the stuff by default, but anyway, here it is. They're just boom. Like that's it. And so, a simple prompt gives me exactly the code that I would need to go out and add it to my you know, add it as a plugin or just add it to a custom functions plugin. So this is likely going to go in my base site. I mean, why not? It's, you know, 1012 lines of code and it stops user enumeration, so why not, it's not going to slow anything down. So see how easy that is it and you can just copy this right here and it's copied to the clipboard and you can paste it in your code editor and there it is.\r\n\r\nDoes that. I mean, who can everybody do? That? I think so. That's pretty easy.\r\n\r\nSally, great question. How do you assume the code is correct? Okay, so this would be a good, I'm going to hit and by the way, if you have a chat GPT account on all these links that I've shared you can click this link and it will transfer this conversation. Yes, over into your chat GPT. So you get the whole history and it knows all it has processed this and now it is as though you are having this conversation. So let Sally How do we know this works? Okay, so let's just say please, you just asked chat GPT please\r\n\r\nanalyze this code to make sure it will work, which doesn't often be helpful for compatibility with PHP 8.2\r\n\r\nOut of the spa compatibility, right. And for any\r\n\r\nsecurity issues,\r\n\r\nyou're gonna see that come up several times. That little bit was in the the last the Save instructions from yesterday, but I have those turned off right now. So even though I misspelled completely blue lI right there, it knew what I was talking about. So it's looking at the code. I don't know why it's echoing it back out that's\r\n\r\ninteresting.\r\n\r\nDoesn't seem to have any deprecated functions. The functions and structure are typical for a plug in no complex functionality that should break security and the error No WordPress errors function effectively. replaces any login error with generics. So that's good. The regular expression preg match\r\n\r\nfunctions for an author regex appears to be safe.\r\n\r\nredirection is used appropriately output there's no direct user input so there's no risk of cross site scripting. doesn't interact with the database and no SQL injection concerns. Use of exit after redirect is good. So security looks good. Isn't that nifty? So Bonnie, back to your was it Bonnie? I know Sally back to your question. The How do you know if it works? You put it in there and see if it breaks. And you're we're gonna see in future conversations that we'll look at in this process of like, it didn't work. And so we got to go debug it. And so a lot of times it's going to be we open up the error log and have that there and we're pulling errors out of the error log and dropping instead. This is what happened in chat. GPT will fix itself. Yeah. So it's like that.\r\n\r\nSo this was a very simple\r\n\r\nexample, but do you see how quickly it can solve a problem. So now honestly, for me, it used to be that if I was trying to solve a basic problem in WordPress, I needed a code snippet for something. What would I do? What would you do before AI? You'd go to Google you try to describe your problem as best as possible. You weed through 800 blog posts until you finally find some person that talks about the thing. Paul says Ask in office hours.\r\n\r\nThank you, Paul.\r\n\r\nThat's pretty funny.\r\n\r\nBut let's say you happen\r\n\r\nto be the person doing office hours and you don't have the answer. You would Google it right. And you would try to find hopefully some developer on some blog post somewhere is or the maybe there's a you know, a StackOverflow article that's not standard that's that has enough snark to get the right answer, but not too much snark that you don't want to read it. Anyway. Now you can just go to my go twos to go to chat GPT and have it generate the code. Pretty, pretty amazing. Okay, so there's our stop user enumeration. All right, how about this one, this one just, we had a client I'm sure none of you have this issue. But we had a client who started uploading video to the WordPress media library. Is there a plugin that will stop video? Yes. But why do I want to install another plugin when I could just use a very simple code snippet? A lot of plugins like this, you know, like there's, I think there's a stop video uploads or whatever. But it's going to add a settings page with different formats of videos there. And you know, it's somebody's plugin and they're probably going to put ad spam over my whatever. So one of the beautiful things about having chat GPT generate these snippets is I don't have to install all these plugins on my site that are going to add extra admin menus which y'all know just gets on my nerves. I you know, adding a top level WordPress Admin Menu and it's not necessary and even then they can put ad spam, we can get rid of all that stuff. You know, and a lot of these plugins are going to add code that I really don't need if I just need this one little section. And so I just want a snippet that says I don't want any video files, period to be uploadable to my media library. So that's what I said, Well, I can't remember what the prompt was, but it was fairly recent.\r\n\r\nYeah, earlier this month. This is all I said.\r\n\r\nAnd this is all you had to say it has enough context. I need a WordPress function to prevent video files from being uploaded to the Media Library. That's literally all the context it needs. It knows WordPress code, and I've told it what I want it to do. Alright, so to prevent that guy, you can make use of this filter or hook in WordPress. Here's your function. Now it is disallowing these media types. If there's other video formats, then you can add those just in the same format in a row here. Add this to your functions dot php, your credit custom plugin awesome. Make this a plugin I can use in the M you plugins is my next prompt. Sure, I'll help you do that. Boom, prevent video uploads, blah, blah, blah, blah. Now it's a plugin. And all I had to do at this point was copy the code. go create a file in the me plugins folder and it's done. Problem solved. I don't have to go search for a plug in. I don't have to test it and make sure it works. I don't have to, you know fight through top level MIT. It's just right there. It's simple code. This is not going to slow down the site. It's just going to work. You could make this its own standalone me plugin or you could just copy the function part out of it without the plugin header and drop this if you already had a custom functions plug in, drop it in there.\r\n\r\nDone. See how easy that is? Now let\r\n\r\nme ask Okay, for those of you who are on the 0123 rating that you gave yourself,\r\n\r\ncould you do this?\r\n\r\nLike those of you that write it yourself, write it in that area. How do you feel about this? Like you could totally do this right?\r\n\r\nAnd how much time is this gonna save you because it's awesome.\r\n\r\nDon't be afraid of experimenting with chat GPT to do these things, just make sure that you have immediate file access in case you pay something that breaks everything they just unpainted and you're back to normal. But just it's this is going to level you up. Like nothing I've seen in the recent past have your ability to do really cool things in WordPress.\r\n\r\nYeah. And like David's saying\r\n\r\nthat's the other side of this, even if you're high on the scale. Like why go through the hassle of writing this stuff yourself. Just drop it in chat. GPT there it is\r\n\r\nand add it. It's done. Pretty crazy.\r\n\r\nOh Chris. Thank you. Great point. If you're going to add or edit php code, I hope you have disallowed file editor already as a best practice. Don't do this in the file editor in WordPress. This is why I have open here for the next section, the file editor from cPanel who are actually going to go in and edit things that way please don't do it from within the WordPress.\r\n\r\nThank you for that. Okay.\r\n\r\nYou like this everybody? Good. Let's keep going. I got a lot of examples here. Okay, this is actually something from the Academy site. So we got a request from the from solid marketing to say we wanted Is there a way that we can very easily add remarketing scripts to each individual livestream event. So let's say there's something we're promoting. It's like a solid security whatever, and marketing wants to drop in a Facebook pixel just on that event. Is there an easy way we can do that? Sure. Okay. In WordPress, I went in and meta box and I created a custom field for the tracking code just a text area. And here's the slug. In WordPress, I have a custom field with the slug this that used on posting the custom post type with the with the slug this Okay, so this detail is super important and we pause right here. I've gone round and round and round with chat GPT and things took a lot longer until I realized\r\n\r\nthis key here this this is important. It's always better to use the slug\r\n\r\nbecause depending on you know if you're just using the name of a custom post type, or the name that like the the visual name of a custom field, the label is what I'm trying to say. Don't do that because that can get squirrely the slug is always going to be the same no matter what if you're using the full name. You know there might be a space or depends on how that's going to convert. It has an underscore how's it going to actually look? It's hard to know that the slug is always the slug so use the slug when you're talking about these sorts of things. While viewing a post type in the trap events post type if the custom field is not empty, I want to add the contents just above the head. So basically, don't do anything if they haven't put a tracking code in there. But if they've pasted the pixel on that event, I want it to show up in the head so that it shows up. Can you write a function? Well, of course I can because I'm chatting GPT I can do all and it's just there it is very simple. Very simple thing. Okay, I go now okay, I want to add comments around the tracking code so that we you know, we wrap it in a comment basically just so we can make sure it's there easily. And so it edited the code to give me that and I'm done. Like how easy was that? So so easy. Now we have this really cool functionality on the Academy site that lets marketing just go in and in that custom field drop in their pixel and update the event and they're done and it just works. Yeah, it literally Yeah, Chris literally just a couple of minutes to do this.\r\n\r\nPretty cool. Questions, comments about that?\r\n\r\nI mean, it's literally any question the client asks that's going to require me to go in and create something as a function. Can I do that in chat? GPT and the answer is\r\n\r\nprobably, yeah, probably. All right, moving down. Okay, this\r\n\r\nis a good one.\r\n\r\nThis may have been I think this is\r\n\r\nan academy one too. Let me just see\r\n\r\nreal quick, Robert.\r\n\r\nNo, it wasn't it. This was for some other client. I can't remember what it was. So this was how many of you have wanted to hide the admin bar on the front end, like you've got a membership site, and they log in and you want to get rid of that admin bar. Some plugins will do that for you. There are certain like membership plugins will hide the admin bar or whatever. There are some plugins that all they do is hide the admin bar but there's some of them are weird. So why not just get code to do this? And so this is my this is my prompt, I need to create a WordPress PHP snippet that does the following prevents access to the WordPress admin area for logged in users. Of any role other than editor and administrator and instead redirects those other roles to site URL my dashboard. Number two, it hides the WordPress admin bar from all users on the front end other than editors and administrators\r\n\r\nboom, there it is. Quick, done. Easy. Amazing.\r\n\r\nSo it gives me a little explanation. And I literally just that simple prompt, copy the code, paste it and functions and I'm done. Pretty crazy.\r\n\r\nAlright, let me pause right here.\r\n\r\nQuestions. Does this make sense? Do you see how to do this? You see how quickly you can build custom functionality into WordPress. And here's the thing. We're dealing with open source code. So there's, you know, there's all these articles out there, and people are going nuts about AI and you know, the legal like, you're gonna get sued for using AI and blah, blah, blah. I don't know, in this area. As we're dealing with WordPress, all of this code is open source, even if it's in a premium plugin. With in premium plugins, the code is not the code is not copyright protected. Anything the nature of open source is that anything that is built on code that is GPL compliant, which is WordPress, any plugins that plug in to WordPress, also have to be open source. When you're buying a plugin. You're not buying the code. The code is free. Because it's open source, it has to be open source. What you're buying in a premium plugin is access to updates and support meaning all this code there's no copyright now I'm not a lawyer. Okay. But based on my understanding of the GPL all code, we don't have to worry about copyright issues with any of this. So at least in this application of AI, there's no copyright concerns whatsoever. Pretty amazing. Yeah.\r\n\r\nChris, I talked about custom\r\n\r\ninstructions yesterday. I'm not gonna be able to go back to that today but it's in your settings, and you can drop that in. Alright, any other questions about this before I move forward?\r\n\r\nOkay, um, this was okay. This was a little. This is a little granular.\r\n\r\nBut here's an idea of this will just show you what you can do. So we had a site where the way it was built by the original built a developer of the site\r\n\r\nthere was they had put\r\n\r\ninto WooCommerce product descriptions, HTML tags, like the h1 tags and everything, just the way the site was built. The the product title was being rendered by the product description and not by a template, right? It works perfectly fine. Nothing wrong with that except when you build that into a new theme that has a title and all that now you've got two h ones and duplicate titles and all that. So what do you like? How do you deal with that? Clearly, I don't want to go through 800 products and remove all this HTML. So can you can you do something about this? Yes, you can. And I actually don't have that first prompt here. I'll just explain it basically what we went in there and asked chat GPT if it sees an h1 tag, remove it and anything that it contains, because it's the page title is already in the template. So remove the h1 tag and anything inside of it. Remove h2 and h3 any of that stuff, remove it completely, and chat GBT built us a little function that lived temporarily in the functions dot php, that as a product was updated.\r\n\r\nIt would strip that stuff out. It would just be gone.\r\n\r\nAnd so I mean, think about how much manual work that say it was an unbelievable. Plus, we actually discovered that you could go and this works with any post. But if you just go in, you can click this and do edit and you don't have to make any changes but hit update. And these products are now actually being updated. And it took care of all of our it stripped all that HTML out. Now, where that left us was these two situations where Okay, now we had some empty spaces. So our empty spaces were an issue\r\n\r\nare we not loading?\r\n\r\nWell,\r\n\r\nyeah, and Chris is right. It works with anything regarding the post assigning categories, custom fields, whatever. Wonder why this isn't loading\r\n\r\nOkay, that was weird. Okay. So here we\r\n\r\ngo. Here's my prompt in WooCommerce products. I have many that have several empty line spaces in the text view. So it's in the Code view right in text and some lines that just have a the, the ASCII code. HTML code for the space right and percent nbsp colon, semicolon. This causes a lot of empty spaces to be shown on the front end. I want to keep any empty lines where there's just one, like if it's a line break, we want to keep that but if there are two or more lines that are empty, I want to remove them. Treat lines that only have the space as also empty. This should run when a WooCommerce commerce product has updated. It should look at text in the product long and short description for this function. And so there's the thing that it did and it was just using the the string REPLACE function that PHP and the preg replace, to go in and update the content and so it's stripped out all those spaces. So everything was nice and tight. Like it was supposed to be really, really remarkable. We didn't know how to do this didn't have a clue that I didn't think it could be done but we just asked and chat GPT did it. Pretty amazing. A similar thing here in WordPress, I have text in a WooCommerce product that has a line break but not a paragraph. So for example, it was like this and then went right into the next paragraph. This kind of thing occurs on most products. Is there a way to detect this with PHP and add a paragraph break instead of a line break when the product is updated? Certainly you can says chat GPT boom, there it is. And so look what it's going to do. It's going to wrap things in p tags. And guess what it works except Okay, wait a minute, we found an issue. Sometimes there are multiple spaces together like this. I don't want to exacerbate that with lots of extra p tags. So this is what we are getting. So again, context, I gave it the actual example of the text to show what we're trying to accomplish. That's super important. This is part of that training the conversation, giving chat GPT more information and you know, so it knows better what to do. So in your example, blah, blah, blah, you can use reg X reg X tackle blah blah blah. Is there a way to add another space rather than adding a p tag the copy paste I sent was from the code editor and WordPress not the visual editor. Alright, so that what just happened didn't work. So we did it again. And now it fixed it. And that I think, oh, that didn't work. This is me being very terse live chat GBT. That didn't change anything. Okay, sorry about that. Let's did it. It did some new code put that in Okay. After running that gives full instructions. The extra spaces are removed, but the lines where there should be an extra space were not affected. So and again, this is just, it doesn't always happen the first time a lot of times it does, but you just have to go back and you can repeat in plain English what you're seeing happen. And chat GPT will often eventually figure it out. Looks like this took a number of different rivers still not working. Going down new code. Okay, that and that one actually worked. So it took a little bit, but we eventually narrowed it down to figure all this out. So if it doesn't work the first time, don't get frustrated. Keep at it, refine your prompt, give it more information, keep trying it, and you'll find that it will likely ultimately work. Paul, would it be better to clean the data in the database instead of scrubbing it when it gets displayed? How do you decide when to do that? It's a good question. So we could have done it that way and done it with like a SQL command. Because essentially, that's what all of this is. I mean, you could run a lot of this in a SQL command. We were working from internally in WordPress and it worked just fine. But you could do it same thing. I mean if we said like we could let me just continue this conversation. All right, take this final solution and create a SQL command that can be run on the\r\n\r\nproducts. The products table\r\n\r\nso if you're comfortable with doing SQL, you could probably do it this way.\r\n\r\nThere it is.\r\n\r\nOnce it's now understood what you're trying to accomplish the likelihood of that command working is pretty strong. I'm not gonna run it but yeah.\r\n\r\nAlways take a backup of your database.\r\n\r\nSally, would you put those function adjustments into a code snippets plugin? You could totally do that too. Yeah. So you could use code snippets I usually get into. I don't like to do any of this from within WordPress. Because if the coat like if you're using code snippets, for example, and the code you put in white screens, WordPress, you're toast, because you can't go in and edit your code snippet. You. I mean, you could do that, but it's just not the best way to do it. That's why I would suggest going in through you know, a CD like cPanel File Manager or your your text editor, code editor SFTP into your site, and doing it that way. You don't want to get into the situation where you add some code, something is wrong. There's a white screen and now you're stuck.\r\n\r\nYeah. Does that make sense?\r\n\r\nAll right.\r\n\r\nLooking at time here, I'm gonna skip through some of these things. You can on the whole chat you can go back and look at these if you want this creating a shortcode that had like a click to call with a phone icon. That was pretty cool. Even this, I am going to show this. I can't remember if I provided the S Okay, I did get okay. So I gave it the actual SVG file the TAT SVG tag for the icon I wanted and it built out a whole shortcode that included that which is pretty darn cool.\r\n\r\nAll right. How about this? Have you ever\r\n\r\nthere are plugins that will allow you to in WooCommerce assign a role to a user if they purchase a certain product and that's often used for some sort of membership product or, you know, you buy this thing in the WooCommerce store and that grants you access to another part of the site for example, and you have to have a membership plugin or a plugin like yes, one of the youth plugins why ith used to be like roll something or other for WooCommerce I think they quit supporting it. But it's so easy. Look how easy it is to do this. It is a simple function. I need you to create a WooCommerce function that does the following. When a customer buys product with ID this again another example of use the slug or the ID or something about that thing that never changes. So when a customer buys this product after checkout is successful. Add a role to the Add a role to that user with the slug in this case Ruach which is the name of the membership product. Also customers personally that product should be forced to create an account at checkout. So we had a plug in that was doing this and it was actually that yes, why it Ah yes. WooCommerce roll something or other and they've quit supporting that it was causing problems. And so it's literally that function. What is that? 10 lines 123467 Yeah, I mean it's mostly empty space.\r\n\r\nIt's literally\r\n\r\nif it's that ID then add a roll. I mean, it's just it's so it's just a very, very simple\r\n\r\nthing and it's done. I don't want\r\n\r\nOkay, so apparently. Let's see, okay, it actually misunderstood me here. Okay. And I stopped it because I was I was actually looking at the code here because there's nothing in here about assigning a role. It missed this. It was only saying if the user is not logged in, and we're in the cart, then you and this item, then we gotta force. That's not what I want. I don't want all users to be forced to create an account only those that are purchasing that specific product. It's like oh, okay, so if it's this ID then we're going to do all the things so there's actually two functions force account creation for that product if that product is being bought, and assign that role after checkout. So there's two functions here two snippets. It gives me the explanation. Now okay, add a notice at the top of the checkout page when the account creation is required that says you will need to create an account using your email address and password in order to access route journey online videos after your purchase. So we just you know, we're continuing, I put it in there figured, okay, the user really needs to know that they got to create an account. So we're just going to add that that little message if the case is like it's not going to show up there unless they're about to purchase that product. In testing, the roll was not applied. Okay, so we're going through we're testing this it didn't work. If the roll isn't being applied, let's okay make sure it exists. It did. The order status has reached Completed status. That was the problem. So if I scroll down, order is still processing let's make the roll change while the order is processing not completed.\r\n\r\nSo boom.\r\n\r\nIt's it was a digital product, but it could have been that there were other actual products in the process. Anyway, you see this? Again, it's just an example of the thinking through and refining of this code throughout the process and that works. That says if I have a plugin that does many things, but I only use it for one very simple thing. Do you recommend I use GPT to create my own code to do that in order to reduce the number of plugins? For example, I use loco translate to change one WooCommerce label. Oh, you could totally do that with a single function. Yeah, you would just so the key to that is how can you describe in enough specificity? What label that is? Like, you know, probably if you inspect it on the front end, you'll get the actual you know, you can get the actual ID of that label and you can tell chat GPT in WooCommerce for this on this label, translate it to this. Make it save this and it'll, it'll totally do that.\r\n\r\nYeah, play with it back up\r\n\r\nand be ready in a file editor to actually back out your changes. Everything comes to a\r\n\r\nscreeching halt. Beth I have faith in you that you can do this you can totally do this. All right. Let me see what else to\r\n\r\nshow here. Here's one that says we don't ship the PIO boxes at all. So it's going to disallow Pio boxes from the address. A lot of these are just very niche things we wanted to add a SKU to the product description so that it's searchable, right? How do you make you know, maybe you want people to be able to type in on the front end of the site, the SKU in the search box WooCommerce doesn't search skews by default. So a workaround we found was to just put the SKU in the product description. So when the product is updated, it adds tech SKU, colon, and then the SKU and now it's searchable. Pretty cool. How about this? Only search titles on the WooCommerce back end like I don't want you to search for if it's occur if this term occurs in the description or whatever. I don't want that I only want the search results to be in the actual product names themselves. That's kind of cool. Okay, here's a good one. I talked about this one already, but this is something I see a lot like so maybe you're using Gravity Forms to do like as your MailChimp subscribe form. I don't want those entries in my database that's going to be tons. So act as a WooCommerce. Developer help me write a PHP snippet using Gravity Forms form ID four, I do not want to store entries in the database. The form uses the MailChimp connector to add the form info so I want to be sure it still works with whatever code is generated. Also, the like I don't know what the code how this code is going to affect the MailChimp connection, so I just told it to take that into consideration. Also, the form is set to display a confirmation message I've customized and gravity form settings this also needs to work. So the two things that are peculiar about this form I just made sure to mention those. And then boom, there's my little bit of code. Now. I think gravity, some of the gravity add ons you have to pay for will let you do this. But it's literally four lines of code to do this and it's done. And now that form is no longer going to store submissions and just stack up 1000s and 1000s of email addresses in the database. Don't need it. Right. Describe your problem as best you can and then iterate. Okay, let's get into something more complicated. This one we actually did. I think this was in an office hours. We did this one. So there's this plugin. I think the question was, is there a way that I can easily show view like how many times a page was viewed on the back end and WordPress without having to get into any Google Analytics or whatever I just want a basic view count. And you can there's this plug in plug in I think we did an around up called Awesome viewcount now, it only works for posts. This plugin. I don't know if they have a premium version or what but it only works for posts. So alright, this is a WordPress plugin that adds a view count to the posts list. Currently, it only works with posts modify the code that works for posts pages all define custom post types, including WooCommerce products. Make sure you adjust not only the code to display the view count on all post types, but also the mechanism for tracking views of those post types. I want you to change the code so that it can be added in a code snippets plugin rather than being installed the standard plugin. So I mean, whatever you want to do here, and then it was a one file plugin. So I just copied the PHP and dropped it right in there. Okay, here's how you can modify the code. There goes now it's gonna it'll work now for all post types. The count does not appear in the WooCommerce product list, nor does it appear for custom post types. Oh, so it worked for pages, but not for posts. My apologies custom post types uses different set of hooks. Okay, now update that to fix that. Now. It should have done that as part of my original prompt, but it missed it. So we added the code tested it didn't work this describe it what was going on. Now it fixes the code. Still not appearing for custom post types. Bummer. What happened here? Oh, the timing. Of when get post this call. Alright. So we're going to change up the timing here in the code. And that work. Oh, but wouldn't it be cool if we could make that views columns sortable? So we could sort by which page or post or whatever has the most. We're sure to make that we're just going to do this. And there it goes. Boom, boom, boom, boom, boom, boom, boom,\r\n\r\nand it works. So that's it. Pretty cool, right? So take\r\n\r\na plugin that is almost what you want and ask chat GPT to improve it. Okay, this is a really helpful thing. How many of you are in a beaver builder stack and you remember this plugin that I've been I've recommended a long time ago, called BVB delete cache right on the front end of the site. It adds a little drop down inside beaver builder that says Clear Cache, super helpful. Did you know that unless you've fixed it, it is filling up your error logs with errors because it hasn't been touched in quite some time.\r\n\r\nOkay, let's fix that.\r\n\r\nSo I noticed they were getting errors. All right, I'm getting this error in the WordPress log. Boom, error read property No, blah, blah, blah. The plugin file in question is paste in the whole thing. It's a very simple PHP file. Line 98 Is this. So you know, that was the line that was mentioned in the error? And chat GPT doesn't really have a way to count these lines. So I just, you know, in the file editor, I could see what line 98 was, and so I gave it that. So I've given it a lot of context. I've explained the error. I'm going to ask chat GPT to fix it. So it explains what's the deal. There's an attempt to read Id No, but why why the issue is here to fix this you got in blah, blah, blah, blah. Okay. So I don't care about any of that. Just give me the whole plugin file again, with the fix in place. Certainly.\r\n\r\nBoom, there it is. All right. Now,\r\n\r\nhere's that the magic line, act as a WordPress developer analyze that and you actually you really don't have to say this anymore. I used to be helpful, I found that the results don't matter by using this. Analyze this plugin for security issues and phba to blah, blah, blah, security issue didn't have to do all this stuff right here, blah, blah, blah, blah. You suggest specific changes to the code, so it didn't really give me a good actionable thing. Maybe I should have asked that different. So based on this, this is what I recommend blah, blah, blah. Okay. Make changes for recommendations one and two. Okay, sure. Boom, there it is. Okay, chat. GPT does this from time to time it will give you just the piece to change because it wants to minimize the amount of output it's giving. Now if you are like me, especially if you if you are rating yourself lower on the PHP experience spectrum. I'm gonna mess this up. Is anybody else gonna mess this up? Like I'm gonna miss I'm gonna miss copy. I'm gonna miss a stupid semicolon or whatever, a squiggly bracket. And you know, the fact that I call them squiggly brackets should tell you enough. Yeah, so I don't want to cobble together the code. Okay. So give me the whole new plugin, like the whole PHP thing. Don't give me the little snippets. Certainly. Boom, there it is. Error is fixed. Everything works. Now, I did have another question. I was just curious about what the text domain was at the top here. Do I really need that? And it just explained to me what it was there. So pretty cool, right? Davia chat, GBT doesn't know what PHP 8.2 is.\r\n\r\nBen, what if you want to change\r\n\r\na bigger plugin that's in multiple files. Okay, so then you would have to train it right? You would have to say I'm about to give you a WordPress plugin that contains multiple files and folders, maybe explain the folder structure and what each of the file names are. And then say, Okay, here's the code for this file, boom, here's the code for this file, boom, it's gonna be tedious. The code wp.ai that I mentioned yesterday, is likely going to be better to handle that scenario. I haven't really used it yet. It's brand new, literally, brand new week old. And if there's a few little bugs that have popped up in there, where the developer is actively working on that tool, I think it's going to be fantastic. But that that's probably a better way to approach it. Ben, is there a chat GBT plugin to load multiple files? I don't think you could load a PHP file directly in the chat GPT. I would imagine they would consider that a security risk. Because think what you could do, right? So maybe, if you put them in a text file and had a reference, but then it's just, I mean, you might as well just paste it in. So I imagine that's gonna get better with time. But for now, that's the approach we have to take. Stacy is the Delete cache built into Beaver Builder? Yeah, it's just buried in the settings. And what that little plugin does is it grabs the function that delete that that clears the cache and just puts it in an easier place to find it's part of beaver builder that the plugin just puts it in underneath the submenu on the front end of the site is all it does. Dave is asking, How can you ask it to be compatible with Hey, that to me, you really can't. But you notice in an earlier response, it said I don't know eight not two, but based on what you've said. There's really nothing here that's deprecated and it's using common functions, so you're probably okay, so it doesn't know 8.2 yet.\r\n\r\nYou could say that one it's definitely knows 8.1. Sherry, can you feed it a dot two? I don't think so. Okay, here's another thing\r\n\r\nwe got to start getting ready to land the plane on this on this piece. Okay, this was we may actually go a little long on the segment depending on how this goes. So this, this is cool. Okay, this is an approach I want you to take notice, because it's very helpful. Again, it's all about the prompts. Right? It's all about training chat. GPT in the conversations, this is you know, basic foundational things about using AI that we talked about yesterday. Doesn't matter if you're generating content, generating code, whatever. It's all about what information how much context can I give to chat GPT to help it solve the problem better. So there's all this documentation for these plugins out there, right like, you know, if you're using a developer centric plugin, like meta box or Gravity Forms or whatever, and then got all those Doc's out there, and you've got a whole page with like, you know, different code snippets and functions that apply in there almost what you need, but not quite. You can just give it those things. And it will, you know, it'll take all that into consideration and give you an answer. Often based on the stuff that it's got. So here's, this was a problem I was trying to solve. So here's the actual, the actual issue. This is a client we've had for a long time. They're a dentist in Southern California. We were rebuilding a site, we've rebuilt this thing now. I mean, I think this is the fourth iteration of the site. And for years, their blog had no featured images. And so they didn't want to go back and add literally 1000 featured images to all the blog posts on this site. Okay, it's hundreds and hundreds and hundreds, right. So instead, we decided we're going to do a category featured image and use that because the blog used to just be a straight text list. It was terrible,\r\n\r\nbut that's what they wanted to do. So instead of\r\n\r\nhaving to do a different featured image for every product, we did category featured images. So you'll notice that some of these are the same, but that's better than no featured images at all. Right? Like this picture comes up multiple, whatever, right? So I found this plugin. That's the problem we're trying to solve is how do we get category featured category images to work for posts? So I've got this plugin that I found called categories images that allows a featured image for each post category, but I need to do is have that image output as a shortcode in a beaver theme or layout, here's the documentation for the categories image plugin. Now here is this is the tactic I was just describing. So what I've got here, this is text that I can't remember if it was on the plugin page or the developer side or whatever. But I just grabbed the whole this is probably the plugin page. I just pasted everything that had a ton of usage in like templates and all this stuff. I just dumped all this code in here that it gave me this giving chat TPT as much stuff as I could, to you know educated on how this thing works. All right, so it looks like you want to use the featured image data data data doc, create a custom shortcode boom. All right, using the shortcode in Beaver theme, and boom, okay, but I made a mistake. Oops, wait a minute, not beaver theme or I'm sorry. I want to add the shortcode into a beaver builder post grid as a custom layout. So this is a post grid module. And I'm using a custom layout in that post, you know the HTML layout.\r\n\r\nSo how do I do that?\r\n\r\nFor the image, I just want to drop the shortcode in so that it pulls the category image. All right, the shortcode should look at the category of the current loop item and display that image. So again, I've pretty precisely described now I've refined my prompt to tell it what I want it to do, okay, you want to create a shortcode blah, blah blah. Here's the code. There it goes. This code creates the shortcode current category image. Great. Okay. And that worked. Well, it worked. But we got to refine it some more because there's a particular custom image size that I want it to use. So I've defined the custom image size in my site called news grid. And it's specifically sized and I wanted to use that version of the image, not the thumbnail or the full size or whatever, okay, boom, and it's the code to add that right. Okay, now, let's change the shortcode slightly to say that if the post itself has a featured image, use that one. Otherwise, use the category image. Okay, so if we've added a featured image actually to the post itself, use that one otherwise, fall back to the category image. Also, please make the function name with my prefix instead of the default. Certainly, boom,\r\n\r\nthere it goes. Boom, boom, boom, boom, boom. All right, so that totally works.\r\n\r\nAll right. Now I need you to help me create a shortcode to display the related post to the current post. The output should be three random posts from the current post taxonomy and I want this to be what the HTML output is, there it is. Because what I want to do is down here at the bottom of every post, we're going to have related posts Oh God, His mouth pictures freak me out.\r\n\r\nAnyway, cool.\r\n\r\nAlright, so there's my that's this is what I'm after right there. There's my HTML, and it gave me a function for that. Ready and look, it remembered that I want I want it to prefixed again with with the BW w. So I need now we're getting the CSS I need the three posts to display in three columns and one column on mobile so see, I'm just, I'm doing my development process. And rather than asking a developer to build the stuff, I'm just asking chat GPT to do it one step at a time in fairly plain English. So now it generates some CSS for me. I put all that in. Give me all the look it did it again. Like okay, paste, paste that into your now I'm not going to try to paste that in. Give me the whole PHP again. Boom, there it is. No need to respond to this, but the image size needs to be updated to news grid. Great. Now give me the CSS to add. Boom. Okay, there it is. Okay, that didn't work. It didn't work for some reason. Now, so what does it do? It gives me two options. Flexbox and grid. Cool. So standard CSS didn't work. So it suggests, let's try to listen Flexbox here's an example. Let's try to do this in grid. Here's an example. Okay, grid work. Awesome. Now I need to modify the shortcode. Again, I need to be sure that regardless whether it's the post featured image or the category image, the image size should be news grid. Please fix the code out there was some issue with that I'm not sure why. Also very important, we need to make sure that the current post is excluded from the random posts that might display in our related posts. Oh, there it is. We got the code. Anyway, this goes on for a little ways.\r\n\r\nContinued revising,\r\n\r\nuntil I finally got it down to exactly what I want. Does that make sense? I don't want to take too much more time on this. But you see the process I just want you to I want to show you the the flow that I would use the mind the mind trying to say that just the process of refining\r\n\r\nthe prompt to get it to get it done. Alright, one more. And we'll take a break.\r\n\r\nSo this is so how do we solve a complex problem? So let's brainstorm a solution first. So I did this in two I think I did this it two separate times. And for whatever reason I didn't continue the same. The same conversation probably should have done in the same conversation. But the here's what the client wants. We had built an internal site add like a law partner type site where people had to log in to view certain proprietary documents, blah, blah, blah. And but then later, the client came back and said Wait, we need them to agree to the brand guidelines before we show them any of these documents. So before they say anything, they got to agree to this thing. All right. So we're gonna ask chat GP to help me think about this complicated problem, a user account with role partners create an email is sent to the user with a password reset link. What we want to do is present a checkbox with I have read and agree to the brand guidelines on the password reset page that must be checked before the user can reset their password. So how do we do that? So it gives a boom boom, boom, all this sort of stuff right here. And what hit me was\r\n\r\nthis update,\r\n\r\nlike how am I going to know if the user checks the box in order to show the thing right or not? It okay user meta, okay, we could use user meta for this something oh, wait a minute. Brainstorming on my own self. Can a gravity form Add User meta on submit? Why yes, it can. So we can build this little bit of code that says, When I check this button, make it a gravity form when I check this box and hit this button, a piece of data can be added to some user meta\r\n\r\nwell guess what? In Beaver Builder, which\r\n\r\nthe site is built on, you can have a row display or not based on whether user meta exists so that's what we did. If the user meta wasn't there, it showed the agree. If it was there, it would show the grid of documents pretty cool. So chat GPT helped me think through the solution now. I wasn't functioning in the dark, like I had some knowledge of other tools we were using and how those things might fit together. But chat GPT was instrumental in me figuring out how to do this\r\n\r\nso\r\n\r\nthat there was something else Oh, yeah, here we go. Update user meta on Gravity Forms nine. So I want to add the current date and time that's what I decided to do. So we've got this new user medical agree to brand guidelines. And when I submit the form, add the current date and time in there. And so that way, anybody from the company could go into that user's profile and see in that box, what the date and time was they agreed to the document or to the to the brand guidelines. That's literally it. Just boom, code done out fixed. Problem solved. And the client loved it. So we're are at an hour. Let's take a breath, shall we? So what do you think right now, can you do this? Do you see some ways immediately that you can start to use chat GBT to solve just some very basic problems that you come up against things that you would normally be searching Google for and to find the answers? Let me hear from in the chat. What do you think everybody good\r\n\r\ndo we all need a drink? Perhaps? All right. Let's take\r\n\r\na break until 10. After that's about seven and a half minutes from now. Yeah, seven ish minute break. We're back at 210 Central Time, and we're going to try to create a full plugin in chat GPT. So that's what we're doing when we're back and seven minutes from now back at 210 Central Time. We are quiet\r\n\r\nuntil then.\r\n\r\nAll right.\r\n\r\nWe are back for the final hour of the WordPress AI workshop. And we're gonna build a WordPress plugin.\r\n\r\nWhat could possibly go wrong? So here's the idea. The I don't know if this is\r\n\r\ngoing to work or not, but we're going to do the best we can. So we're going to try to create a WordPress plugin. Margolis that he here is not to create a fully polished, polished final version of an operational plugin. Maybe we'll get there maybe we won't. But at least we're gonna go through the process of you know, you saw in the last hour, the conversations trying to get things narrowed down, we're going to do that live and we'll see how much frustration and or success or both\r\n\r\nthat we have. So\r\n\r\nthis is I'm actually going to use an example of something that I've done in the past because I have at least a general idea of where we're going to go with this. And we're going to use we're going to our goal in this plugin is to create something that will be a default Featured Image plugin for WordPress. How many of you have had that need? Like no matter what if it's a post, I want it to have like this featured image if one is not set, then show this one instead. Right. That's something I think we all need. There are some plugins out there that do it. They are they tend to litter your WordPress admin area with ads and top level menus and so forth. So let's just build one, what do you think? And again, our goal here is to just work on the process. Now I'm actually going to go back into these custom instructions. So Chris, here's where they are. Again, it's you click on your person down there and you do have to have a Plus membership for this I believe. Custom instructions. I'm going\r\n\r\nto toggle this on. And it's just has some parameters right.\r\n\r\nCheck for compatibility point out any security risks, explanations blah, blah, blah, always prefixed functions with BW w. So I'm going to save that we've got our custom instructions working, and we are here in chat GPT four. Okay, so let's start to explain what it is. Let's work on our initial problem. I want you to help me create a plugin for WordPress that will assign a featured image that will Yeah, that will create what that will allow me this is what happens when you do things live that will allow me to define a default featured image or posts on my\r\n\r\nwebsite. This default image should only be applied if the post does not already have a featured image. The font I want you to create a settings page that is nested under the media link, media or settings. What do you think? Media or settings? Media media\r\n\r\nand under the media link in the WordPress admin menu. There's one other things I'm going to want to do here, but this will get us started. Okay, let's take a look at this helped me create a plugin for WordPress. That will allow me to define a default featured image or post on our website default image should only be applied. The post does not already have a featured image, create a settings page. Okay, let's just do that. Okay. We will see we want to call\r\n\r\nthis plugin Nathan's magic images, okay. All right, let's go.\r\n\r\nSo it actually is gonna give us the step by steps of creating a folder starting out alright, and there's gonna be two PHP files. So let's get to work. So first, we're going to create this\r\n\r\nfolder in the plugin\r\n\r\nso content plugins, and I'm in cPanel File Manager here we're going to create a folder.\r\n\r\nThere's our name. And in that folder, I'm going to create two files\r\n\r\nthis would probably be\r\n\r\nquicker if I was using a code editor, but we're going to use cPanel because that's probably the most familiar thing to everybody\r\n\r\nhere.\r\n\r\nAll right, so we now have our files created and they were ready for content.\r\n\r\nOkay,\r\n\r\nso there's the actual code where both of the files so I've got the first code.\r\n\r\nLet's edit\r\n\r\npaste and then we're going to edit this one copy and paste right now what in your themes functions\r\n\r\nreally\r\n\r\nwhy do I don't understand why do I need to add\r\n\r\nthat's weird. That asked me to do that.\r\n\r\nOkay, so right away chat GPT is doing dumb things.\r\n\r\nAwesome. And it already broke. Okay, so\r\n\r\nfrustration level two now with tat GPT because it is now broken. What I asked it to do in my custom instructions which was give me the whole php file.\r\n\r\nAll right, so.\r\n\r\nAll right,\r\n\r\nmaybe it'll remember it now. But my experience is, if it starts hallucinating at the beginning like this, then it usually doesn't get too much better. So that should be fun. For our little demo here. Is everybody with me? So far? This is pretty straightforward. We're just copying and pasting giving it some prompts. Yeah, it has manners and I usually do too. Until I reach a certain level of frustration,\r\n\r\nthen, maybe not. All right. Okay, now. So\r\n\r\nlet's go into our dashboard, in which we should now see the plugin. Oh, here's the one that I built the first time, but we're going to use this one down here. Alright, Nathan's magic images. Activate. Boom. Okay, so now under media, magic images settings.\r\n\r\nThat's weird.\r\n\r\nOkay, so we're gonna want to fix that probably this is if I upload an image, it's going to show it there. But let's, we're just going to work this straight through. Okay, so the first time\r\n\r\nwhen I view the settings page,\r\n\r\nthere is a broken image let's not show\r\n\r\nOkay, well at least it gave me the whole file this time. So it now it's going to add a conditional check to display the image only if it exists. So what was gonna happen here likely is with when the image was set, it was going to show me a thumbnail audit right there. All right. So chat GPT is slow today\r\n\r\nof course. You do. And we wait. And we wait.\r\n\r\nThe you know as you're waiting on chat TV to do its thing. It gives you time to think forward to maybe improve some of your prompts. For the next thing you're going to ask him\r\n\r\nall right, copy. And I think I accidentally just copied and paste. save, refresh. Okay, good. So let's take a quick look. And just grab Oh no, this rhinoceros okay, it didn't show it. But it did show it here.\r\n\r\nSo I don't like that. I don't like that UI, but for now we'll just we'll just leave it alone for the moment. Let's test to see if\r\n\r\nit works. So if I add a new post it adds the featured image. Okay, good. So that part works. That's pretty good.\r\n\r\nNow let's work on our UI a little bit.\r\n\r\nWhen I select the image from the media library it should display on the Settings page. Before I click Save, Save to\r\n\r\nYes, okay. So it's another tweak to the JavaScript. That's writing quicker. So this is just an honestly this is how many developers build their plugins, right? They add a little bit and they test it and they go back and they tweak that and they test it and it's back and forth, back and forth.\r\n\r\nDoo doo doo.\r\n\r\nNow we're adding a script actually onto that page and I'm not sure that's\r\n\r\nthe best thing.\r\n\r\nLet's just one thing at a time. And then this is another principle here is don't try to change your test more than one thing at a time.\r\n\r\nOkay, here's the problem.\r\n\r\nI now can't unset this images, this image so once it's set like you're fully committed, or maybe I can click here and select another one, but I can't delete it. So that's a problem. I think we can just select another image. Okay, so that part now works. Okay, good. And Dave, you're right. I think I may get it to just give me the pieces. I'm just afraid I'm gonna break something.\r\n\r\nBut we'll just we'll try. Need a way to delete the image without just replacing, maybe an X icon on the image\r\n\r\nright. I should have told it just give me the changes\r\n\r\nYeah, it won't remove\r\n\r\nit from the library. I just want it I want to have like a quick hit click x here and it would remove the image\r\n\r\nas the default\r\n\r\nit's added some JavaScript here. It looks like to remove that on click Delete in Yep.\r\n\r\nI'm not sure it's\r\n\r\nbest practice to put these scripts and styles in this one file. So we'll ask that about it. It'll ask it about that in just\r\n\r\na second. Yeah. Boom, save. All right. Look at that nifty\r\n\r\nthey've pretty cool. All right. Now, the way this works,\r\n\r\nit's actually placing the featured image\r\n\r\non the post.\r\n\r\nI think I like that I like that behavior.\r\n\r\nSo we're going to leave that alone. Okay,\r\n\r\nah, what do we want to do here now?\r\n\r\nLet's ask it is it on admin settings? Is it Yeah, that's to have the and\r\n\r\nshould we separate those out or not?\r\n\r\nYep, generally good. Practice. Okay, so let's let's do that\r\n\r\nokay, so notice\r\n\r\nit, forgot my instructions, and it's only giving me this piece.\r\n\r\nSo what do I need to do?\r\n\r\nOkay,\r\n\r\nthis makes me nervous, but we will try it. So we need to actually create\r\n\r\ntwo new files in queueing them in this Okay,\r\n\r\nso we're gonna add another file\r\n\r\ncalled admin dot Jas and another one called admin. dot css.\r\n\r\nI like those names, but we'll just go with it for now.\r\n\r\nLet's edit these. Well, those open\r\n\r\nand we need to move the CSS. Yeah, we don't need the style. We'll just drop that in here. I think the script\r\n\r\nI don't know if I need the script. tag or not.\r\n\r\nI don't think I do.\r\n\r\nDon't think I do. Yeah. Okay. So we'll get rid of those. Save that. Yeah, thanks\r\n\r\nfor that. Okay. And we need to remove this bit for the script and the style at the end. Okay, now we've got it separated out. Let's make sure that all\r\n\r\nworks. Still works well. Not good. So are our exes stopped working?\r\n\r\nOh wait,\r\n\r\nI didn't in queue.\r\n\r\nI didn't add this piece. Got to do that\r\n\r\ndoes that go? Oh, it goes in that\r\n\r\nPHP file. Yes. It's gonna go here at the end. Now it should work. Yes, delete update image.\r\n\r\nAll right. So that is now working. All right, pausing for a moment. Will I share the code? Yeah, I'll share this whole conversation with you when we're done. We're just remind me and I'll share that and if you're watching this on the replay, it'll be in the chat log. Okay, so are we get here questions about what we've done so far before I go forward to tweaking this a little more. Basically, I'm just following instructions and copying and pasting. pause just for a second. Anybody having a duct tape moment? Quit while we're ahead. Now we're gonna get better. We're gonna do better\r\n\r\neverybody good. I'm gonna assume we're good or everybody has gone to sleep or fallen off whatever. You're sitting on. Okay. Let's move ahead, because currently, yeah, I'm trying. I'm hoping there was an error like we haven't had any errors yet.\r\n\r\nSo yeah.\r\n\r\nPaul, will this add images to older posts without a featured image? That's a great question. Let's ask chat GPT. The answer is no.\r\n\r\nBut let's see what it says to do.\r\n\r\nYou could write a\r\n\r\nfunction to retro actively apply the default featured image to other posts. This could be executed as a one time action in your WordPress admin\r\n\r\ncool Yeah, so could be resource intensive. Yeah. 1000 posts, it's gotta go in and add something to h1. That would be a big deal, right? But you could do this if you want it. Okay, how about this? Let's make this an option in our plugin. Make a section on the Settings page called Apply. update old posts.\r\n\r\nupdate existing posts\r\n\r\nwinky face emoji.\r\n\r\nThis might, this might\r\n\r\nblow things up. Christina is asking about this used to be an image when you shared a post to Facebook. That's a completely different issue, Christine. And you would solve that by just Google Facebook debugger and you would have to go manually add that URL and have Facebook re scraped the image\r\n\r\nOkay,\r\n\r\nso here is where I need to.\r\n\r\nadmin settings\r\n\r\nokay, it's having me put\r\n\r\njQuery in the admin settings page and we just separated it out. So that's not going to work.\r\n\r\nWe moved\r\n\r\nall right.\r\n\r\nSo it had forgotten that we added another file. So this is just part of the deal. This is something that AI is going to get better at over time. And quite frankly, the code WP may already not do this sort of thing.\r\n\r\nBut all right, so we want this on our admin.js\r\n\r\nwe really should be commenting\r\n\r\nthis but I'm not going to worry about that right now. And then here on the magic images dot php at the\r\n\r\nbottom\r\n\r\nwe're adding another function here at the bottom\r\n\r\nokay, let's see if this works.\r\n\r\nOh, boom, we get an error. Okay, yay. We get to figure out an error. That'll be the only time you ever hear me say that ever. So what we're going to do to troubleshoot this error is we're going to go back to our public html folder. Well, we don't the error log is empty so it must be in the admin error log in WP admin.\r\n\r\nOkay, wow,\r\n\r\nI have no errors. No error logs\r\n\r\nthat's weird.\r\n\r\nYeah, there's not a plugin errorlog\r\n\r\nthat's interesting. Okay. Well, we just tell chat GPT\r\n\r\nmaybe I got an email Yes, I did get an okay. So in my email, yes. All right. That it did send me an email. Whoa, I don't want to deal with any of that. Let's go back here. And there's the error that was just emailed to me\r\n\r\nup generating please.\r\n\r\nThis Stacy, that was the year where your site is experiencing a technical issue email.\r\n\r\nYou know that WordPress since there was just the WordPress default email\r\n\r\nOkay. Thank you assets as\r\n\r\ndeclared more than once. Make sure you only have one instance of this. Okay. This is why I don't like to copy and paste code. So\r\n\r\ngive me the whole\r\n\r\nthis is why I don't like to copy and paste because things break\r\n\r\nUTD?\r\n\r\ndoing its thing doing thing\r\n\r\nstill doing its thing looks like it'd be about finished. Okay. Now copy, paste, save, refresh. Work. Okay, that\r\n\r\nworked. But we don't have any new functionality. Okay.\r\n\r\nWonder why that is? Maybe I don't have all the admin give me\r\n\r\nwelcome to plugin writing with chat GBT.\r\n\r\nMuch simpler for\r\n\r\nscripts as you can see. When there's multiple files and multiple things you're trying to do it gets a little a little more complicated\r\n\r\nright\r\n\r\nget rid of this\r\n\r\nokay. Yeah, that gives us our update existing posts.\r\n\r\nOkay, here we go. Now we've lost our stock image Ah\r\n\r\nyes, but we are making progress.\r\n\r\nAnd by the way, this is worse if you use GPT 3.5 Believe it or not\r\n\r\nOkay\r\n\r\none more time okay.\r\n\r\nNow we're missing.\r\n\r\napologizes\r\n\r\nit's very sorry\r\n\r\nI don't know if it\r\n\r\nunderstands when I typed what it means in all caps. But I if you look at the history of my chat GBT conversations, you will discover that the longer the conversations are, in the more frustrated I become, the more words are in all caps, much like\r\n\r\ntext messages. I'm sure none of you have that issue. Okay. All right.\r\n\r\nAll right. Well, it's totally different now. But it doesn't work.\r\n\r\nIt may have gotten confused there, Dave. I don't know. This just this happens. Sometimes it happens more than others. But you know.\r\n\r\nThis is why I like to have it give me the whole code every time\r\n\r\nOkay, let's try this.\r\n\r\nLet's see if update existing posts works and then we'll get back to this\r\n\r\nthis isn't working either\r\n\r\nOkay, let's start\r\n\r\nactually, we could just go back up here. Let's do this. So it started hallucinating. Remember what I said? It's sometimes it's better to go all the way instead of trying to argue with it. Let's go back up to the place where the wheels fell off.\r\n\r\nAnd where was that?\r\n\r\nHere\r\n\r\nlet's start over from here\r\n\r\nyou been in certain cases I have just started over again completely. All it doesn't remember anything. So I've gone back. And it's like it's from here. It's brand new. It doesn't remember anything that just went away. That we've rewound, and we're starting from that point again. I find that that is usually better if you're dealing with a hallucination like this. So I mean if our goal was to troubleshoot, this is typical of what you're going to run into. Alright, so here's our magic images dot php.\r\n\r\nHere comes our admin settings dot php.\r\n\r\nHere comes our admin.js\r\n\r\nOkay, we okay so hit this first time we've seen this. So GPT four will output a certain amount of text and we just reached that limit. We have this continue generating. We're going to click that and it'll it should pick up right where it left off. But now it's counting as another response on our total. So I don't know how many we've had. So far. But you know, we're getting we might we may run out of responses to this\r\n\r\nadmin.js Because I knew one of those and our admin CSS let's see if this reboot helped us.\r\n\r\nAlright, so this looks a lot better.\r\n\r\nYes. Okay. So that's actually working.\r\n\r\nupdate existing posts, hold your breath. Nothing. Oh, wait a minute. Maybe it's doing it. Okay. There is no feedback. When you click Update, what was it update existing posts? We should we should have a message\r\n\r\nthere a way we can know\r\n\r\nOkay, before during and after updating,\r\n\r\nupdating existing posts, please wait. Yes, this is exactly what I want.\r\n\r\nNow. It's giving me bits again. Oh, boy. Okay,\r\n\r\nthis is the one I'm concerned about to get this all correct.\r\n\r\nI'm going to give me the whole admin.js\r\n\r\nAlright, we need\r\n\r\nto put this under the button and that I can handle it. Alright. So under the button which is here. That's where we put this span that it's going to use to update with the jQuery\r\n\r\nOh Womp womp.\r\n\r\ncrash on chat GPT you know, what's going to be\r\n\r\nfunny is like all these frustrations and processes. A year from now think about what this is going to be like, if we're gonna look back on this do I remember when we used to have to ask it five times to do whatever and blah blah blah. It's gonna be like, remember when cell phones were this big? It's gonna be like that. This stuff is gonna get so much better. And we will have been using it for so long. We'll be the geezers of this technology.\r\n\r\nAll right. There's our new thing there. And, alright, let's try this again. Nothing happened. Surely that I missed something. All right. That's done. That's saved. That's saved. Okay. Nothing happened. Very anticlimactic.\r\n\r\nOh,\r\n\r\nthis is where it gets really frustrating trying to debug this JavaScript.\r\n\r\nCareer Chris, I\r\n\r\nmight be able to do a progress bar that's way more complicated that I want to try to do today like I can't even get it to display a message right\r\n\r\nall right, well,\r\n\r\nokay. We're just gonna leave that alone. For now. We're about out of time, but what I do want to do this\r\n\r\nokay.\r\n\r\nI want to be able\r\n\r\nto add featured images for the default featured images\r\n\r\nfor each post type in WordPress so our settings page should have a row for each define post type and the ability\r\n\r\ndefault featured image for each.\r\n\r\nShow the total to give me the whole thing we want to do this for every post type.\r\n\r\nWho knows if this will work or not, but it's giving us a function to fetch all the different post types. Now we're ready. It's almost like a loop here has been created. It's going to render all the things for each post type and the button\r\n\r\nother settings remain the same, yeah.\r\n\r\nAll right we're gonna try just paste this in. What could possibly go wrong?\r\n\r\nCopy what the whole thing.\r\n\r\nAll right. So it's add Admin Menu\r\n\r\nSettings.\r\n\r\nYeah, I'm not gonna try to do that\r\n\r\nso your inexplicably has lost a quit showing us this with the description? I don't know. Maybe he just didn't know to update that description since we've expanded it. This is the kind of thing you run into as your the longer a threat goes, the higher the chance of hallucinations. But you absolutely can get results okay,\r\n\r\nall right. And\r\n\r\nthat doesn't look right. But we're gonna just drop it in there because there's so much more\r\n\r\nwe'll put it in the air. Oh, that's not right. Can't be right\r\n\r\nmaybe I took that out because it wasn't working.\r\n\r\nAlright, there's our admin dot j\r\n\r\nAll right, those are the only two other files. There's my admin settings PhD we'll save that. Then here comes our JavaScript\r\n\r\nthis doesn't work, we'll call it a day\r\n\r\nwhat happened? Let's see. All right. Interesting. Pages.\r\n\r\nNothing happens this broken. Okay, so we'd have to keep going on this but you get the idea. Let me show you where I eventually got with the version of this I was experimenting with\r\n\r\nwill deactivate that monstrosity. And we will activate this one\r\n\r\nand this one actually works\r\n\r\nso I've got post types and taxonomies. But I stopped when because it was only giving me categories and not the actual terms in that taxonomy. But this piece actually worked.\r\n\r\nSo, you know,\r\n\r\nit just takes some trial and error. But again, you see the process. Does anybody have questions about what we did or didn't do over the last hour and working through the process of building this plugin? Ben, what if you ask him to type out Oh, that's a good that's a good suggestion to get it to check our work. So\r\n\r\nplease, we'll see please state in a list the requirements have\r\n\r\ngiven you so far for this plugin.\r\n\r\nYeah, that's about right.\r\n\r\nBut then yeah, that is a great idea too. If you're getting lost maybe well, but honestly it's, it is correctly providing the overview of the project, but it is incorrectly doing the thing and really doing the thing is what I'm after here, but so it's it's, I think it'd be interesting. It'd be interesting to see how code WP would handle this same task.\r\n\r\nBut yeah, that's a\r\n\r\nthat is a another subject for another live stream on another day. All right. Other questions, comments about this before we start to wrap things\r\n\r\nup? Yeah, then we could copy this and start\r\n\r\na new conversation and see what happened.\r\n\r\nAll right. So challenge\r\n\r\nfor you today. What is let's hear from you in the chat. What is one thing that you're going to do today, to take this and start to use it? What is one thing you're going to do today? And the rest of this afternoon or evening or whatever, to try to put some of this practical use.\r\n\r\nLet me hear from you in the chat. Then it's just kind of go to sleep. Yeah, it's\r\n\r\na little bit late there been true fairpoint watch the replay. Yeah, you can speed this part up on the replays at. Sally wants to know more about flex boxes. Have a project try to get AI to do for me to add featured on the website. As we're doing this, I really want to see what happens if I make a new chat. paste this in.\r\n\r\nLet's see,\r\n\r\nSally setting things, doing something complicated. Great. These are great office hours. Questions. Barney built chat GPT into our workflow.\r\n\r\nYeah, dream about GPT five. High Low maybe this will\r\n\r\nbe better results if we had it, spit out these requirements and build the thing\r\n\r\nagain. Oh, no.\r\n\r\nClearly this is going to take a little bit of time\r\n\r\nWell, that's weird.\r\n\r\nThey'll see that you'll get this sometimes like, here's the I didn't specifically say, right, the plug in my fault. Bad prompt, right? So it's like here you can think through this and you can write all the PHP and I'm like, wait a minute, what is this you stuff now? This is this is on you chat. GPT not me. I don't know what I'm doing here. So it didn't get lost. It did not get lost. I did not give it the prompt to actually write the plugin. So you write the plugin and now it's going to actually spit out the thing or not?\r\n\r\nYeah, so there it goes. It's doing its thing. All right.\r\n\r\nWell, hopefully this has been fun and not overwhelming. There's so much you can do with chat CPT from content to snippets to Plugins. I look forward to hearing from each of you how you're starting to use this in your work and office hours. Tomorrow is a great time to start that Oh, thank you. Yes, share the code. Thank you, Stacey. Because you know I was not going to do that.\r\n\r\nTotally forgot. All right.\r\n\r\nSo this is the original\r\n\r\nwrote the the the frustrating, broken one.\r\n\r\nAnd here is the new one that is yet to be seen if it works or not.\r\n\r\nThe possible better one. All right, there are\r\n\r\nthe links those will be in the chat log. If you're watching this on the replay. I'm not sure you actually want that code. Yes, it's bad. But those links you could copy it into your own chat GPT and start playing with it and go from there. So that's it, everybody. We're back for office hours tomorrow, one o'clock Central here on","livestream-resources-group":"s:34:\"a:1:{s:6:\"_state\";s:8:\"expanded\";}\";","multi-day_replay_details":["s:1037:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 1 Replay\";s:25:\"day_description_cloneable\";s:309:\"Hour One:An Introduction to AI\r\nHour Two:Using ChatGPT to Work with Content\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"877651636\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1V1gVLzIFq7Xwy4KKh0vgU2FHA-U_4Wj0\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/clR5qij6gsSJq8aUeoKC2DKzsO4?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";","s:1044:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 2 Replay\";s:25:\"day_description_cloneable\";s:316:\"Hour One:Using ChatGPT in Web Development\r\nHour Two:Creating a Plugin with ChatGPT\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"878058540\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1sQVFgXo8eEUWtqSPd1S2osJeMty8sNaz\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/0woVu8tHVGjbZfubMRyRUnsTCkQ?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";"]}},"postCountOnPage":1,"postCountTotal":1,"postID":448457,"postFormat":"standard","geoCloudflareCountryCode":"US"}; dataLayer.push( dataLayer_content ); \nThe WordPress AI Workshop is designed for WordPress website creators who want to improve efficiency, and supercharge their workflow.\n\n\n\nWe'll explain how to use ChatGPT and other AI tools to work with content and create code that can take your development processes and abilities to the next level.\n\n\n\nDay One: Adding AI to your Content WorkflowDay Two: Solving Code Problems with AI\n\n\n\nAs an iThemes Training Member, you get free access to this event!\n\n\n\n\n\n\n\n\n\n\n\n\n","EventOrganizerNames":"Nathan Ingram","inline_featured_image":"","livestream_public":1,"is_multi-day_event":1,"livestream_zoom_registration_link":"https:\/\/us06web.zoom.us\/webinar\/register\/WN_6reEXDmWT3qQuUtdktFQwg","livestream_replay_set":0,"livestream_live_transcript_text":"Glad you're all here so many fun things to share with you over the next couple of days. Slide link is in the chat one more time. If someone would please just cut if you wouldn't mind copy that. Link for the course handbook to share with folks who come in later. That would be very helpful to me. Okay, let me get all of the windows dragged to their appropriate locations. Right Y'all ready to start? We ready to go AI. All right. Here we go. Well, good afternoon. Good morning. Good evening, wherever you happen to be. It is Tuesday, October 24 And it's time for the WordPress AI workshop here on solid Academy. So glad you decided to join us. I've been super excited about this course now for a few months, because we started to use chat GPT in our workflow on the agency side. You know late last year, when my mind was blown at how chat, GBT could create WordPress code just like that. And it worked. It was amazing. And we started using it ever since just for all sorts of things. And some of that has worked its way into office hours and answering questions and generating code snippets and things like that. So I thought why not? Let's just do a whole course on this and spend about four hours looking at some of the ways that you know, AI can be used in our workflow to make things easier, and there was a mention in the pre show about some of the ethical implications of AI and all that's out there. That is not what we're going to be talking about this time. It is certainly worthy of some discussion. But that's another discussion for another time. So I'm glad you've joined us if you're watching this on the replay down below the video, you'll find the link to download the course handbook which you see on your screen. Chris has kindly dropped that into the chat again just now if you're just joining us in zoom. So we took a poll as we got started about you know, what was your comfort level using AI most folks were kind of in the middle, some lower some very high. But no matter where you are with your comfort level with using chat TPT in particular, I think you're going to find some interesting things in this course. So I'm glad you decided to join us. And as always, the replay will be available after these two hour winds take a little bit longer. So roughly an hour after we wrap up somewhere around there. We'll have that replay. Up available for you certainly by this evening. So you can go back and rewatch if, if you'd like so let's dive in. Now this is the course handbook. It's 23 pages. Got a nice little table of contents here. This is where we're heading over the next couple of days. I've got some pretty important and well defined course goals here. So this is not by any means meant to be an exhaustive treatment of AI if that's its, you can't you can't even say this is an exhaustive treatment of chat GPT because it's there's just too much to learn. And in four hours, there's just no way. So here's what we're focusing in on. Number one, just to understand the foundational principles of how these things work. That's really important because if you see how things are set up, then you'll learn how to use it better. So that's what we're going to focus on, especially in the first hour today. Then we're going to focus on how can we start to use chat GPT for content creation. Now there's a number of AI tools I mentioned, especially in the first hour, most of our work in this course is going to be focused on chat GPT because that's the most ubiquitous AI tool out there. Most folks are using it, most folks understand a little bit about how it works. So that's where our focus is going to be. But just be aware, there's a lot of other ones that I'm going to mention as well. So our two today is all about content creation and some of the cool things we've learned using chat DBT in that realm, and then tomorrow it's all about code. So in the first hour, we're going to focus on really how do we get chat GPT involved in our website development process and really, you know, in our ongoing management of sites, maybe we need some code snippets or things like that. And Chad gptc does a great job. At those sorts of things and also does great troubleshooting errors. So day two, we're going to look at chat TPT in web development, and then this is ambitious, but in the second hour, we're going to try a live build of a WordPress plugin that solves a particular problem. So this is a workshop meaning a lot of what we do. The first hour is pretty scripted as far as we're just gonna be following the handbook. But as we get into the content piece in the next hour and then especially tomorrow, it's gonna be really into chat GPT using some things I've given you links in the course handbook to a lot of the chat GPT threads and we're going to use those as reference but also kind of building on those as we go so we have a long way to go over the next couple of days. So glad you decided to join us and I hope at the end of this you will find that you've got a brand new tool that can do lots of different things for a very small price. I mean, 20 bucks a month, y'all that, you know, that's not a lot to do what chat GBT can do. So let's get into it, shall we? Let's start with just let's get the lay of the land. Very, very important. Just foundations of how AI works. So let's spend a little bit of time on what is AI What is this thing and how it actually operates. So AI Artificial Intelligence refers to machines. Or software that can perform tasks like the human brain can perform tasks. Now, as I mentioned in this course, we're going to be mostly focused on chat GPT but there's lots of other AI models that are out there. Ai especially the machine learning models like we're using, have learned from vast amounts of data, rather than being explicitly programmed like you would think of old school programming of do this, this, this and this prescriptive order. These are models that are trained on large volumes of data, and they have the ability to process that and think through it. It's kind of scary, in some ways. Many advanced AI AIS like chat GPT use what are called neural networks, and these are combinations of chips and code that function a lot like the human brain. It's it's really pretty, that's kind of scary and amazing all at the same time. So AI models are first trained on data, and then we query them to get the output that we want that query is called a prompt and prompt, look, prompt are the key to getting the most out of AI. What you ask and how you ask it in the context you give. That's how to get the most out of AI. Now you may have seen this term generative AI, that's a specific kind of artificial intelligence chat. GPT is a generative AI, it can produce new content based on what it already knows now chat GPT is trained on the internet, like the whole thing up until a certain point in time. So it knows a lot of things and it knows a lot of people and facts and it can you know put answers and text together in really creative ways. So these kinds of modern generative AI is can handle a range of tasks, from image recognition to text generation, and everything in between. But while AI is powerful, it is not infallible. And if you've done any work with AI, let's just hear from you in the chat. How many of you have been doing work in AI and you realize this thing has gone a little loopy, like it's making stuff up? These solutions are not working. And the more I'm using it in this conversation, the worse and worse and worse it gets. So those are called hallucinations. They are real thing. And that's part of the deal where we are at the AI tech level right now. It is not infallible. It can make up things completely. And so we have to be aware of that as we use chat GPT and other generative AI models now, a lot of the, the well the results we get and sometimes those hallucinations are based on the prompt we give in the way we interact with it. So we'll be trying to work our way around some of those things, but we might find in our work in this workshop, that it makes some stuff up and we see those hallucinations pop up. So\r\n\r\nAI models can reflect and even amplify the biases that are present in their training data. So depending on what information was used to train the AI biases that went into the way that information was, was written and presented, can also be you know, that can come through in the AI. So, you know, AI is only as good as the information that was put into it. And so sometimes you get bias. And so that's where we get into the ethical questions and that's it's those are important questions to hit, sir. But we're not going to even touch on that. In this course, what Stacy's saying is that hallucinations and not lies. I mean, it's not really a lie. I think why is have to be intentional. I don't think chat GPT intends to mislead, it just loses its mind sometimes it hallucinates. So, why is all of a sudden AI a thing? Have you ever asked yourself that question like all of a sudden, like we were living in a world without AI and then boom around November of last year? Everything's all about AI? Did you notice that? I all of a sudden the whole world is talking about AI it was really with the release of chat GPT or not. It was right around this time last year in November of last year. So let's look at an understanding of how this works where it came from. Why all of a sudden AI is the thing because that's going to be helpful to us to understand what we're dealing with here. So AI has evolved from bad to worse a basic, you know, less advanced tools like the Amazon device that is sitting on my left that if I say the name Alexa, get might wake up now don't want her to also Siri and Google's assistant. And then advanced AI is like chat GPT it seems like it's all happened overnight. But AI goes all the way back to the 1940s that's where it was some of the initial foundation pieces of AI were laid. So there's a few things that have led to this quick, seemingly explosive development of AI since late last year. So the first of those is this refer that there's been a refinement of the concept of the neural network. So these were things that had been around since the 1940s. The you know, a lot of government entities had built start we're starting to build, you know, room size computers that were linked together and could think together and process together. But there have been some significant improvements in the way these neural networks operate. That's led to a lot of these advancements. There's also this thing called backpropagation. So this is really key to AI and actually can help us help chat GPT get around the hallucinations. So back propagation the way this works is AI works through some information to get an answer and then it sort of tracks backwards before it gives a response to make sure that it's correct. It's remember like in the in elementary school, you would do a math problem. And then you would check your work like it was an addition problem. You did subtraction to check your work. It's kinda like that. In the AI sense, and it happens quickly. But this helps AI to refine its responses and get better. So back propagation was something that was introduced in the 80s. It's gotten a lot better recently. Maybe the biggest single change that has ramped up AI's ability is this thing called transformers, not like more than meets the eye. Optimus Prime. These are this is something that was invented by Google in 2017. It allows the neural network you know this this cluster of information that's being processed by computers connected together. Transformers allow a neural network to understand a whole data set. So the data set for chat GPT being the internet, how do you process that information or in earlier AIS, maybe it was this giant folder full of PDFs that had all this information or whatever and you would train the AI on this. What a transformer does, is it helps to build relationships between the different bits of data in the data set and start to make some sense out of it. So smart people at Google figured out how to do this back in 2017. And that was a major bump. Up forward. You started to see Google's AI and Siri and Alexa really starting to do better, right around 2017. The single biggest deal has been advancements in hardware. So the graphic processing units that were originally developed to do gaming gaming computers, the GPUs made by companies like Nvidia. The processing power in those GPUs is immense. And perhaps you've heard of these GPUs being used to mine Bitcoin and create cryptocurrency because they can process the kinds of activity that build cryptocurrency a lot faster than a typical CPU, right, your, you know, your the chip that's in your computer. And these GPUs have just supercharged the amount of data that AI can process and AI works better with the GPU parallel processing that it does in an old standard CPU. So as GPU strength is increased, then all of a sudden we have these transformers that have gotten neural networks have been proven out and made better and all of a sudden, boom, there's just this possibility that has never been there before. And then somebody realized that wait a minute, if we train AI on more than just our own internal corporate library of documents, but if we train it on a larger data set like the internet, it's actually better. Like they used to think well, if we give it too much information, it won't know what to do with it and the responses will be more bland. But actually what happened was it having more information with the with transformers that can make connections has allowed AI to have a broader perspective on information, and as a result, give better answers. So all of these things have added up together until this time last year, boom, you've got all this AI hitting, and it's just unbelievable. So does that make sense to everybody? I don't want to belabor this point. But I think it's important to understand why we're here and where these things are coming from. So AI has been gaining popularity in the tech world through the years. It became most popular at the at the consumer level with these personal assistants like Siri and Google assistant Cortana and all the others right. Open AI which is a foundation was started back in 2015 by a group of people including Elon Musk, and the mission of open AI is to ensure that AI would benefit all of humanity. Now since then, they've decided not to open source their code which is interesting, but open AI in 2019 released GPT two, which was a cutting edge language model of generative AI based on well GPT by the way stands for a generative pre trained transformer. So again, this this concept of being able to make connections with data. This was really landmark is groundbreaking. 2019 open AI releases GPT two now GPT three came out in 2020 it was more powerful GPT three started appearing in the tech world. Okay, so who remembers back in like 2001 There were like 8000 ai writing tools on App Sumo. Remember that? Like all of a sudden all these writing tools started coming out? Well, this was when GPT three was released, right? And so open AI Oh, you know, there's an API, all these letters. There's an A there's an API through it. You can connect to open AI and use the GPT three model to get lost in that alphabet soup. Anyway, so they opened it up. And then there's all these software tools like all that Sumo, that are just a software layer that sit on top of the API that's talking to open AI. So that's, that's where all of that came from. And again, it's just part of this swell this this swell of movement towards AI. Now, November 30 2022, was when chat GPT came along. So now in our web browser without the need for API keys and software layers and all of this. We can now in our browser, interact with an incredibly powerful model called GPT 3.5. Which even though it's a point five it's miles better than GPT 300 million users within months, the fastest growing application in history was chat. GPT just incredible growth, never seen anything like that. So GPT four came along on March 14 of this year. It's slower, but its answers are way better. So if you up to this point, have only been using the free version of chat GPT you're using 3.5 which is okay, it means pretty good. But upgrading to chat GPT plus, it will give you access to GPT. Four, and the creative abilities the writing abilities especially the coding abilities are far far far superior and that opened up back in March the 14th. And it's gotten a lot faster since then, but it's still not as fast as GPT three, five. All right, I'm gonna pause real quick.\r\n\r\nEverybody good. Makes sense. We have getting a little bit of a lay of the land on how all this stuff connects and how it's working. All right. So one of the things I always hear about AI, it's a lot of fear, right, a lot new technology comes. There's a lot of fear that always happens no matter what I mean, when the block editor was released a lot of fear, you know what's going to happen to WordPress, blah, blah, blah. WordPress is still fine. Everything's fine. sky's not falling. But this is a quote I shared several months ago, because if you're a knowledge worker, if you're a writer, if you're a web developer, you know. I don't want to say it that way. If you are a web developer that's not highly specialized in an industry, for example. You know, there's a lot of fear about is AI going to come and take our job. And this is a great quote from CJ Pomar, who is the founder of brainstorm force. Computers did not replace accountants. When computers came along, all the accountants were worried that they're going to get replaced by computers. And the truth of the matter was, accountants weren't replaced. accountants who use computers replaced those who didn't use computers. And so I think that's a really good analogy to where we are with AI and our work. So we have to get smart, and we have to understand how this new tool set can benefit us to do our work faster, stronger, better, right. So this is a it's still the My Favorite perspective on how AI connects with you know, our work and what we're doing. Okay. Let's get into some chat GPT frustration, shall we? How many of you have used chat GPT and you've been underwhelmed by you try to make it right content. You're it's like, Sue and I were having a conversation earlier. And she's like, What, Sue what was the phrase? Like in this digital world, blah, blah, blah, blah, blah. It's like this. Content is just so just awful and squishy. And not just horrible, right? Yeah. So that can happen. It's all about the prompt. So anyway, let me let me just go through four very common mistakes that happen in today's digital era. Thank you. So that's it. It's very it's just cheesy. Yeah. Thank you, Sadie. So here's four common mistakes. All right, using chat GPT. The first one is, chat. GPT is not a search engine. Okay. You might extract some facts, but chat GPT is a generative AI. Okay, it's made to generate content. It's not really there to be like the answer to your questions, you know, a replacement for Google, for example. So it's not meant to be a search engine to get fact based. Questions, especially about recent subjects, because chat GPT the training was cut off, you know, a year and a half ago. So don't you? I mean, it can answer questions. Matter of fact, I use chat GBT one time because I was I was trying to fix my lawnmower. And I wrote, like, what is the thing that, you know, what's the cable called that when you push the throttle lever forward, what in that connects? What's that cable and it gave me the right answer. So it can do that. And a Google search gave me nothing. It can but it's really not meant to be a search engine. Okay. So you're not going to get as great results. Chad GPT 3.5 only as knowledge up to September 2021 GPT. Forest trained up to January 2022. So, you know, we're getting close to, you know, almost two years out of date with the the knowledge base of GPT four. So sometimes you can get good facts to chat GPT it's best used to brainstorm to process information and to solve problems. So a generative AI is meant like I'm gonna give it a bunch of stuff. And I want to ask a question about that. That's where it shines. So make sure you're using it for the right purpose. A second mistake and this is what we were just talking about. settling for a generic tone. Okay, so chat. GPT has a writing style. That's just what it is. And it's usually pretty awful corporate speak. Like we were just saying, like Dave's example in the chat. I hope this email finds you well, that, you know, don't send that. That's terrible, right. That's that generic, horrible chat GPT tone that just comes out. Right. So if all your chat GPT responses sound alike, it's because you're not asking it to respond differently. It's only going to do what you asked it to do. So again, if you take nothing else away from the all of this whole course it's this. It's all about the prompt getting the most out of chat GPT is all about the prompt. So chat GPT can respond and provide text responses in almost any tone and style imaginable. In your prompt, you can ask chatbot chibi chat GBT to respond as though they were a person, particular person, a profession or in the style of a person or character. You can say for example, from the point of view of its product manager describe the Amazon echo, echo Alexa device from this point of view, or from the point of view of an adult child caring for an elderly parent described the Amazon Echo device. Let's jump in. In fact, let's just let's look at the difference here. I'm gonna go with I don't want to run out of responses here. So we're gonna go with GPT 3.5. Let's just look at this. Okay, so describe the Amazon Echo device. Okay, so we have a pretty bland response here. Alright, it's got some basic information am I am I angering some of your personal home assistants with my copying any of that? This is going to be annoying. Now, yeah, so look at how different this response will be. This is really annoying. I think this PDF and it's not spacing anything out. Look at this voice activated system. Right. So it's, it's crafting its answers to fit the situation like, you know, what are some of the most important things about features about this that pertain to this situation? You can even do this. Explain it to me, like eight\r\n\r\nright, and it completely changes the response. So you can just change up the prompt just a little bit. Right? And you get wildly different results. Now explain the frustrations with our favorite device\r\n\r\nAll right, so there are five frustrations Now watch this. Do that again in the style of Jerry Seinfeld.\r\n\r\nAnd this sounds I mean, you can read this and Jerry Seinfeld voice and it sounds like he wrote it. Ever notice how you can be crystal clear with it like you see. It has changed the style completely because it knows who this is. And it rewrites based on that tone. Pretty amazing. Right? So you have a lot of flexibility. It's if you're getting generic content. It's because you haven't told it to respond any different. What about this make a rap about Alexa. In the style of vanilla because I'm that old this is horrible. But there you go. It'll do all sorts of things. It'll repeat back poems. It'll write stories it will any famous person it will be able to respond in that voice. It's pretty darn amazing. Right? Yeah, stop, collaborate and listen. Alexa is here with a brand new mission. You gotta love it. Yeah, now I just woke her up. Okay. Anyway, does that make sense? Pretty cool. So change your prompt. If you're getting terrible responses, change your prompt a little bit you can even say suggest what voice would be appropriate for a 500 word, article about that\r\n\r\nso you can even ask it to suggest Anyhow, it's all about the prompt number three. This is a big one. How many of you all just keep typing in the same conversation? If it's a brand new subject, just keep typing. Right? Big mistake. It's always best to start a new chat when the subject changes because think about it. Think about it this way. This is a single conversation about a single topic in a single voice, etc. If you start talking about something else in the same conversation, it's like that friend that we all have, that interrupts us and completely changes the subject in the conversation. Yeah, anyway. So start a new conversation. Plus, you can rename these over here or whatever you want, um, so that they're more recognizable to you. It start a new conversation if you're going to start a different topic, unless there's some reason to keep everything in the same conversation. Usually there's not. So one client's content lives in one conversation. Don't mix threads between no mix clients in the same conversation. If that makes sense. Don't be like the person who interrupts your train of thought with an unrelated subject. Number four don't settle for the first response. Again, chat GPT is all about the prompt that you give it. I will let me clarify. So Stacy, I don't mean a new window. Like if we're going to do something else here, I would say new chat. And so we get a new conversation over here. And the old ones are over here. In my history, but now started a new chat, the new conversation from right there. So don't settle for the first response. Chat GPT again, it's all about the prompt. And prompt engineering is an art and a science. It takes practice you get better at it as you practice. If you don't love the response that you get asked chat GP to change its tone, or explain it differently, or provide multiple options or give it more context. The more you give it this is called training the conversation. So you know if I want to if I want Chad GPT to output some content, I need to give it some stuff to work with. And we're going to do that in the next hour. But we need to train the conversation to give chat GPT the context that we want it to operate in and so from that context, it can pull from outside and everything else and it's learned, but it'll output within that context. So just keep sharpening it. Keep crafting your prompt. And guess what next time, you will know okay, I'm not I'm gonna start to ask it this way this time, right and you get better at it over time. But be clear and direct with what you're asking chat GPT to do. Does that makes sense? All right, so what does effective prompt engineering look like? So here's a few principles, clarity. Clarity is key. What exactly do you want me to do? Be specific and clear. About what you're trying to accomplish in this conversation? The more specific you are the better results you get. So let's just start a new conversation here. Let's say I'm writing a travel blog. What are the 10 best scenic highways in the US boom All right, look at that. And actually, let me show you some if you've never seen this, you can just see this. For the purpose of this demo. I'm going to shorten the number of them because 10 is going to take a little while each time so I'm going to edit this. Let's say for the for the scenic highways in the USA. All right, and we'll go back and edit it. Alright, so here's what chat GBT thinks are the four best senoko So we're just gonna go with that. All right. Now let's give it some context. What background information can you give the conversation so you can understand it better? So again, context is critical. Explaining the big picture makes a difference. So instead of just asking this, let's do it this way. I'm writing a blog post for retired RV travelers about the three best scenic highways in the USA. Okay, so we're telling it Okay, first, we're writing a blog post, who is the audience of the blog post? And I said for a minute ago, we'll stick with three here. The top three should consider options for stops for fuel and food and should be RV friendly with options for RV camping. So let's copy this maybe, hopefully this is going to copy well. So let's go and we'll just put it in. Okay, now. Now liquid it gives us we're sharpened in. Yeah, like Dave said that the who, what when where shirt? Yeah. But just get specific, right of what you're asking for. So here's what it's given us here. Pretty cool. All right. How about output? How do you want me to return the results? So it decided I'm gonna do this in a numbered bulleted list. Okay, that's cool. But when you this return that list is a table and look what we get. I like this. I do a lot of output in table if I'm trying to compare things. If I want to move this to a CSV, I can say output that table as a C F v. And there it is. And I can just copy that, save it as a CSV and open it up in a spreadsheet. Pretty cool. Right? So you have lots of different options. So now I'm gonna give it even more context here. So expanding on this information act as a travel reporter write an informative blog posts for an audience of adults age during use appropriate heading structures throughout lists three to five must see stops on the route three to five options for RV camping, to just five title options for the blog. Add Google Map links where appropriate.\r\n\r\nThere's our titles. Look at that. Is that not amazing? Boom. And all these are linked. Look at that. Okay, the links didn't work. Okay, so here's a hallucination from Google from chat GPT. For links didn't work. We could go back and refine that if we wanted to. I'm not going to do that for now. But watch this. Another for example. Let's say you've done some keyword research and you're looking for a key phrase I have where working with E word I don't know retired RV trips. That's terrible. But let's just say that's a key word. We're writing this for. work that into the article, naturally several times in the text and in at least two of the headings and the title\r\n\r\nso it will work that keyword right into everything that we've done. Pretty cool. Yeah, so you can do a lot with chat GPT and we just that took what, five minutes or less? Yeah, pretty, pretty amazing. All right. So what do we do? How do we deal with hallucinations? Okay, I see. Sally, I see your your question about using GPT four. We're going to do that in the next hour. When we're actually working with content. I'm just going through some basics right now. I don't want to use up all my GPT for questions because it's metered Right. Like I get 50 every four hours. So yeah, what we'll do more on that GPT for in the next hour. All right. So if you get a chat GPT hallucination where it makes something up or it's going down the wrong path or whatever. Here's the best thing I can find to tell you to do. Edit the previous problem. So go back to the place where it fell off the wagon, and go back and edit this prompt, you know, to say, make sure that you know, let's just go back up to here, where it where it started giving us bad. Bad Google links. I don't know if it'll fix that or not. Useful. Google Map links, not short links. Make sure these work and you're not making them up. It may not do this. With these mappings that may not be possible. But anyway, you go back and edit the prompt right before the hallucination occurred. And have it regenerate. Did this work? Son of a gun Look at that. Yeah, so look what it did. It just put a query. And so that'll Absolutely yeah. So that's one way to deal with hallucinations. You can also do, you can challenge the response. So I don't find this as nearly as effective again, this the solution the hallucination seems to return more often if you try to challenge it. I recommend editing the prompt but there may be a case where you want to challenge it and say, you know why do you think that what evidence supports your answer? Give me your decision process of returning this answer. Or just what the heck are you talking about? Often the AI will just apologize. Hey, you're right. I completely made that up. That happens a lot in coding. I'm sure we'll see some of that tomorrow. Of like it'll just make up this WordPress core function out of nowhere. And you're like, that doesn't exist. It's like, oh, yeah, you're right. Let's try this differently. So I just find it's easier to go back and edit the previous prompt. In a coding situation. A lot of times you have to challenge it, but especially in content writing, just to edit the previous prompt. Okay, so I got a really Cruz here to get through by break time. Is chat GPT plus worth it. Yes, period. Moving on. It's just far better, the output is better. You also get the use of plugins. Which I'll show you in a minute. And custom instructions. Custom instructions are new. They're here in the know oops. They are here. We look at this so you can actually create these are just some fake custom instructions I put in here. So I can enable these four new chats. And now as long as that's enabled, any chat that I create from here forward is going to take these things into consideration. I'm a WordPress developer based in the US we primarily create content code for WordPress websites. If you provide code in the conversation, always check for compatibility with PHP 8.1 and point out any potential security risks suggesting alternatives. How would you like chat GBT explanation should be informative and typically short unless directed, otherwise, if you provide code, I do not need you to explain it afterwards. Also, if we're debugging and revising, it's very important. You always provide the entire code snippet or code files rather than just telling me to swap out pieces. If that love this. If we're writing PHP functions, always prefix functions with P WW underscore which is our agency prefix. So with these custom instructions turned on, now, every response I get after that is going to include this I don't have to type it ever again. Now I had it toggled off because we're dealing with content. I'm going to leave it toggled off and no this is not free. This is part of GPT plus. So this is what you're going to pay what is it $20 A month for I think, oh then is that in your free version? I didn't think that was the case. Maybe they've changed it to free. But they've added a couple of things here with GPT plus here and GPT for notice. Now they're gonna let you browse the web. So pay you can give a URL if you turn on this browser thing. It also you can generate images right from Dali, right here. If you turn this on, it'll generate images. And it also gives you plugins, which is my favorite part of chat GPT. So you got a lot of extra things you can do. You've got custom instructions here that I just showed you. But let's talk a little bit about GPT plugins. So GPT Okay, Stacy. We're not talking about the the chat GPT that's like an assistant on the Bing browser. This is a plugin for chat GPT that allows it to go like you can give it a URL and it can go read a webpage it couldn't didn't use to be able to do that. Now it can but in addition to that, that's kind of baked in. Because Microsoft is an investor in open AI. It's baked in as part of the GPT four options. So you can do default or use plugins or browse with being plugins are incredibly helpful. So I've given you a list of some plugins. The one thing I will tell you this is, I don't know who these people are developing these plugins. So if you're going to use a plug in, you're basically giving it access to anything that's in that conversation, and they do live within a conversation. And you can't add a plug in to the conversation after you've started it. So you got to make sure the plugins you want you can have up to three active in a conversation got to make sure those are set up first, and then have your conversation. But I don't know what the privacy policies are. It's really murky. So just be careful with that. Don't put anything proprietary or sensitive or whatever. You know, I wouldn't put anything in a conversation that uses plugins that you wouldn't want out in the public domain someplace. So just be aware of that. But look at the so cool. Look at the things that it can do. Alright, so we've got browse with Bing, and that's really good. But also there are two plugins, one called browser up, and one called Web pilot. They both do basically the same thing. You can put a URL in and tell it to browse that URL in a conversation and those plugins will go fetch that information and pull it into the context of the conversation. So for example, if you're trying to rewatch, we'll do this in the next hour. But if you're trying to rewatch Read Write someone's web content that was hard to say. You can say here's the five content pages on their current site, learn about this claim from there and now suggest new text for the homepage and it'll do it. We're going to do that in the next hour. Another one very similar, but chat with PDF, ask your PDF or AI PDF, they all do basically the same thing. You can point to a PDF link. It will digest the content of that PDF for use in the conversation. This is a really cool one AI video summarizer you could put in a YouTube URL, and it will summarize the video for you based on the transcript. It's amazing. I've been yes, they're free. Now these are free plugins right now. So you can see some of the ones that I've installed. There is a there's a Zapier plugin. There's a plug in store here that will show you all of the you know, you can search for whatever and just install it like it like an app store into your chat GPT link reader is very similar to some of these others any link it'll read webpages YouTube PDF, PowerPoint image, where it just any link, it'll pull that content in. This is super cool. If you use GitHub at all. This ask the code will go crawl a GitHub repository and be informed on the codebase of this thing. So if you're trying to troubleshoot a plug in, you can literally put in the Git repo of the plugin and it will just learn the code. Just absolutely amazing. Ben is asking how you turn on the plug in you have to be in GPT for and you select Plugins here and then you'll get this where you can check on which plugins you want active. diagram show me so this will actually create like a mind map or charting out information which you can then immediately push over into Miro to edit\r\n\r\nthis is super cool. One word domains so if you're having if you're trying to help a client come up with a domain name, you can have it suggest have chat GPT suggest domain names and this plugin will go out there and see if the domains are available before giving you a list of suggestions. I mean, and then of course Zapier, imagine, you know from Zapier, coming in and out of chat GPT with information is just I mean it's it's super cool. I haven't played with this yet. It's on my list to start to play with. So you see how cool chat GPT can get with these plugins. Absolutely amazing. Christina is mentioning Gravity Forms and chat GBT. I'm not talking about that in this course. But it's just another way for example, you can have somebody fill out a form on your website. It'll pass it through chat GPT to provide a reply or a summary or whatever. It's just amazing. Absolutely amazing. Okay, so let's chat. GPT is our focus but I do want to show you a few other apps to level up your work. I knew I knew I knew this. I was going to be running late on this. So we're gonna go fast here. Okay. But who here? Are you a Creative Cloud member? Have you seen Adobe's generative AI in Photoshop and Illustrator? Absolutely. Unbelievable. All right, so I'm just going to pick one of these. Okay, so here's, this is a Pexels image. Oh my gosh, oh. We've got these people on the street, right. I am simply just roughly I'm going to draw a circle around these people. And I'm gonna hit generative fill and not put anything in there. And it's just gonna get rid of them and interpolate what should be in the background. So if you ever you know if your client ever look at that, I mean, that's just and you get also three different options. Over here in the sidebar, kind of like that one better. This one, that one feels better. Oh, and look somebody they didn't move the trash. Let's take out the trash for now. You could do this with Photoshop. But now you just draw a circle and click the button. It's It's just unbelievable. But not only that, okay, so we got our trashcan and whatever. Make sure I'm on the background. What's your favorite dog? Anybody? Give me a dog, Jack Russell. Okay, we're gonna put\r\n\r\nJack Russell Terrier in the foreground. And it's going to be in the right light. And it's the right angles and everything\r\n\r\nthat's not a chakra. That's pretty good. That's pretty good. I mean, look at that. Absolutely. Amazing. So you can see the you can see the options here. Let's say, Oh, here's a very complicated image. Right. Let's just draw a very rough. Let's we want to get rid of everybody in this image. Just a very rough wrap around. We'll hit generate, and it's just going to work. Can we say it doesn't work with with high res? I mean, this is a 1920 by 1200 ish. It's it'll work with as high as I found it. Look at that. I mean, that was a really complicated image. We have got several options here. That was good. I like that one better. There it is. Absolutely crazy. Let's put a coffee mug here instead because who drinks water with lemon while at their computer? Latte in a big coffee cup. Big red cup with with hearts boom art\r\n\r\nSally, this is Adobe like this is Adobe generative AI Look at that. That's incredible. Oh, that's I mean, look at that. That's perfect. absolutely unbelievable. Change it to a margarita. Okay, I gotta move on. So Photoshop absolutely cool. Did you know illustrator will do the same thing with vectors. How many of you have gone like you're looking for a stock vector image for an icon? Right. Let's do let's see. I want to make an icon of of what I don't know of a light bulb. Light bulb icon generate. Now you can also have this if you already have your canvas setup with colors and stuff. It will make your light bulb icon based on the colors that are already there. I mean, that's pretty darn good. And they're full vectored images. It's not this is not Affinity Designer. This is Adobe products. You can even do a scene. Let's do a\r\n\r\nSan Francisco Bay at night. Oops.\r\n\r\nSo now let's move on to a website homepage. Not in this I'm sure that you know that's coming and there are tools out. Wow. Okay, that's pretty cool. That's not awful. I mean, it's a good start. Right? I mean, that's kind of quirky. But you get the idea. Right? It's very, very powerful. Those things happen right now. Adobe Firefly. This is the other Adobe generative tool. It's like dolly and other AI image creators. I think it's a little better and if you're a if you're a creative cloud member, you get this for free, where you can just type in by prompting it'll generate an image for you. This is super cool. This is what Adobe's after this is where they're heading with their gender today I like here's this image and it's tools this is going to be across the board and Adobe tools. It's gonna be able to pick out the things in an image and put those in layers for you to do things with. I mean, it's just and that this is coming very soon. Something else I want to show you is code WP we may try to use this tomorrow. We'll see how it works. This just launched last Tuesday. This is an AI it's an overlay for open AI but it is trained specifically on WordPress code. This is really really, really cool. Code WP dot a. This is super cool. Well, that's because I'm logged in but anyway, you see it worked like it's trained on WooCommerce code ACF, Gravity Forms all you know major things more to come and it will actually write plugins and put them in packages of multiple files and folders. Like you could write a major plugin with this. It's still a little quirky, it's still getting worked out. But this is really, really neat. I mean, you get 10 Free generations per month. $12 a month is all this thing costs. There's an affiliate link there if you're interested. Just check that out. Play around with it. We may use it a little bit tomorrow. But it's this is an AI that use it again, it's using the open AI generator, but it's got this extra repository of all the WordPress code base, four core and all these popular plugins built right in it's just amazing. This is one we've been using for actually quite some time. It's called may guy. We really really really like this. Let's see where is it? Ah, here. Okay, so may guy is it's another overlay for chat GPT but you can talk to all of these models so you can do open AI anthropic, which is Clyde, the Google AI metas AI and others. The neat thing about this okay, we saw earlier the custom instructions for chat GPT this gives you it's the same thing. It's called Custom personas. So what this will allow you to do is have multiple personas, like if you're doing a plugin, if you're doing code, you can have a persona for code. Here, for example is our WordPress news roundup persona. So when we're doing a quick when Chris is summarizing articles for the WordPress news roundup every month, this is what we use. At his WordPress web development news reporter take the URL I give you read the article, provide eight to 10 Sync bullet points that summarize the article you read no more than 10 to 12 words long. Don't use extra words leave out articles like V or a when possible blah, blah, blah. We've just gradually improved this like Chris How long did it take you to dial in this prompt? That's been the took some work right? So you know, provide a summary that will be interesting and important to a WordPress web developer who is a small agency owner bla bla bla bla, give me two options versus st informative title for the article now. It still needs to be edited. But over time we have perfected this prompt to give us 90% like it works really darn well. So yeah. This is great. And y'all this is where is it? This is we pay nine bucks a month for this. And there's and you don't have to have a chat GPT license. This your $9 a month it's metered usage. You know and you can upgrade for still pretty cheap. It's again, it's an overlay, it uses the API, but you can train all these custom persona. So for example, let's say you dial in the brand voice for one of your clients in custom instructions, and you're writing blog posts for them every month. Well now you have a persona for them, and you just use that and it's all in there. That's all you have to do. It's just it's amazing. It's amazing. So I talked to the Creator, who has been a fan of AI themes for many years. So he has a code here. If you're interested. There's the affiliate link if you want to do that, but it's solid 20 20% off your first three months. Pretty darn cool. If you're using something like text, expander or type desk, there's all kinds of opportunity for integrating AI into this. There's some articles there I really don't have time to even get into this. But my goodness, that's cool. And you can like store your prompts, for example, as a text, expander snippet or whatever. And then last of all, Chrome extension now there's a ton of Chrome extensions for chat GPT because there's Chrome extensions for everything, but one I want to show you in particular, is this one. Okay, so here's our normal chat GPT interface. This is something called Chat GPT anywhere we like this one. I'm going to toggle this on and refresh. It's just it basically gives a whole new UI for chat GPT you can create folders for your conversations and it makes your history searchable. That's the most important thing for me, because you can search for something that's way, way, way way down your list. This is free works great. I like it a lot. I'm going to turn it off again. So yeah, that was our first hour. Okay, how was everybody? Okay, mind blown. A little duct tape going on. Okay, let's take a break. We'll come back at 10 After two and we'll spend the rest of the next hour talking about using chat TBT to generate content. All right. So we're back at 3pm Start. No, we're back at 2:10pm Central time and we're quiet until then.\r\n\r\nAlright folks, 30 seconds to go. We're back. In 30 seconds.\r\n\r\nAll right, 10 minutes after a time to go for our two of the AI workshop. Who's excited now? Are you excited about AI more excited than when you started? What do you think? Let me hear from you in the chat. Because that what we just saw was the most boring part of the course. So let's get into the fun stuff, shall we? So at its heart chat GPT is designed to work with content, it is a generative AI. So there's so many ways to work with chat GPT for the content of your website now. Immediate disclaimer, I do not in any way assumed to be an expert using chat GPT for any of these things. What I'm showing you comes from how we've used chat GPT on the agency side this year, and we've done some pretty cool things. I gotta be honest, but there's always more there's always more things to do and think of and try. So you know what I'm gonna give you is like this is not like exactly what you should follow. Just use this as an example, to spark some creativity and brainstorm. You may find a much better way than I've even described here to do some of these things. So does that make sense? start experimenting, start playing around with this because working with AI is just as much art as it is science. So as we get into creating website content, I love this is so cool, y'all. Okay, the most important thing I can tell you to do is to train the conversation we talked in the first hour about the most important thing you can take away from this entire workshop is it's all about the prompt, right? The second most important thing is train the conversation Well, because the more you train the conversation, the better the results of your prompt will be. Okay, so the key to getting great website content is training it with lots of information before you start asking it to generate the final copy. So drop in the copy you have from the company already, or the organization or whatever, at the beginning of the conversation so you can use URLs with chat GPT plus plugins, etc. This approach gives context to everything else you're going to talk about in the conversation. So you want to be able to generate all the content for the site from the single conversation one conversation with chat GPT don't have one conversation about each services page. One about the about page, keep it all in the same conversation, because we're talking about the same company. And it will get better as you respond back and tweak and whatever. It's going to get better even sharper as it continues to give you better more content for the site. So here's an example prompt to get things started now. Chris messaged me during the break saying the chat GPT hiccup on him. It did the same for me. So hopefully we're not going to hit a time where all of a sudden chat GPT quits working because that would be bad. I do have some historical content I can show you but hopefully we can do this live. So we are in GPT four. I'm going to turn on plugins. And I'm going to enable I'll just use browser up. So this is going to let us go browse URLs and pull those into the conversation. Alright, so here's my prompt. I'm creating website content for a client below. I'm gonna post the information I have about them. Open each URL listed below. I said web pilot. We'll just I'll turn on web pilot instead. It doesn't matter. They're both they're both essentially the same. Just to keep the well where is third is why it's not alphabetized. I don't know. So open each URL list with web pilot don't do anything with this information yet. I do not need a response other than to confirm you have processed it. So let's start here. I'm going to drop this prompt in and we're going to use so for those of you that were in the builder to Kadence workshop a couple of weeks ago with Kathy Zant and I we were working on this really horrible old site. For one of my clients that was built about 8 million years ago. It's still using builder and here is this client, they are a metal fabrication contractor. Okay, so what I'm gonna do is I'm just going to start pasting in some URLs and I'm really, I'm going to do the homepage. If I was doing this. Actually, I would do every URL on the site. And you can do that by going into the sitemap if you have a sitemap and just copying the URLs. So what I'm going to do, I'm going to focus on the the what we do pieces and I'm just going to do a couple of the services that they offer and I'm just dropping in a link because it takes a minute to crawl each link and I don't want to take forever. So I'm going to do the homepage and three services pages, and then maybe also the about page to get some context on who they are. All right. So let's hit that. And now web pilot is going to go out and start processing each of the webpage and it takes a minute, okay, and you just have to wait, you know, go go do something else. Whatever. Blah, blah, blah. It's gonna take a minute, but we need to do this to get the context of the website. Paul to Chris and while we're waiting the Chris and I collaborate on chat GPT or do you have two different accounts? Is there anything for teams? So I don't, we don't I mean, Chris has his own account. And I have one. We could collaborate if we wanted to. I don't know if may guy does or not you have to look at that. We still go in here see 1234123 I think this is the last one. So it should respond back with I got it here in just a minute. I oppressed Okay, good. So we now have this information processed awesome. So again, like you could go out to your sitemap and just copy everything in if you wanted to. And that would work also. So now, remember, that what we don't want this to say is in this digital era, like we don't want that generic awful text we want really great really great text. Okay, web pilot is a plugin for chat GPT for Yeah, yeah. So you can instruct chat GPT to read provide content in styles like informative, serious, funny, any other adjective you want. I find it helpful to come up with a famous person whose voice I would love to emulate on the website. So you might even ask chat GPT to help you select a voice so here's my next prompt. Based on what you know so far, give me 10 recommendations for famous people whose writing or speaking style would be best to communicate this information on the website. Briefly explain why you like each style. We're gonna paste that in. And here we go. Steve Jobs I don't think so. Okay, how about Elon Musk? Probably not. Bobcat Goldthwait. Bill Nye Okay. Now I'm seeing a pattern because these it seems to suggest these a lot. Okay. Now Malcolm Gladwell might be interesting. But really, I want like these are these are contractors. You know, they do metal work. So really, none of these people are really resonating. I don't think Brene Brown, like these are not really good suggestions. Okay. So I don't like any of these. Like, I don't Okay, Stephen Hawking. I don't think that's the right voice for a metal fabrication company. Alright, so let's go back up here. And I'm going to edit this prompt because I don't want any of this to get mixed up in the conversation. Remember, this is a metal fabrication company. style should speak to blue collar work and high quality. Give. I'm gonna just gonna change this for the sake of time to five recommendations. We'll see what it gives us with that. See if it gives me the example outcase See right here. This is what I did in my test. Mike Rowe from Dirty Jobs is the exact right voice for this website. Right? It's perfect. Although there's some other John Steinbeck. I'll take Tom Silva from this old house. Okay, Bruce. Springsteen might I've never heard him speak I don't think I want storytelling\r\n\r\noh my gosh, I don't think this would be hilarious. But we're gonna do we're gonna do micro okay. I really like micro is one of my I love his podcast. I'm really, really fan so we're gonna use micro. I think he is the right voice for this website. So let's check the voice with a summary question. So give me an elevator pitch for the client in the voice of micro.\r\n\r\nThat 100% Sounds like micro Okay, I like this voice. We're gonna stick with this. Okay, so that's an easy way to test the voice. Okay. And I would suggest you do that before you get too much further down the road. We could do I just out of absolute curiosity. I want to hear Ron Swanson. Oops, I misspelled it, but I think it'll know\r\n\r\nkind of like this. Actually, I kinda like that a lot in the discussion, I don't know. Anyway. So we're gonna go just for our purposes here. We're gonna go with micro. So take your theory on trout, other voices, et cetera. This makes sense so far. See where I'm going with this. So it's I like to do it this way instead of saying insightful or whatever adjective, I think it's helpful to put an actual person's voice. So as you think about how do I make this into a system for a client, ask the client if you had to pick a single celebrity to speak in the voice of your product or company who would it be? Right and start to work with that, you know, so All right. Now, let's start working on homepage content next prompt unless I say otherwise use the style of micro for the rest of this project. Let's work on the homepage content didn't give me 10 options for a hero headline and subtitle that will engage visitors and the style of micro See, our call to action is scheduled consultation. You don't have to put that boom. I can't spell row apparently. But it will know it's smart enough to realize that 10 options, okay. Ooh, I like that. Look at that crafting. metal building features. I like that a lot. Behind every great structure, there's ihrm metals, turning metal into milestones. That's kind of cool. If you don't like any of these, you can say give me 10 more or whatever. But I mean, some of these are bad. That's all like that metal work that tells a story. Ooh, that's cool. All right. So I mean, half of these are doable, right? Not bad. So let's just pick one Let's vote. Which one do you like best? Kinda like this one. Yeah, crafting metal building features, but I don't like this though.\r\n\r\nI kind of like that one. Okay, let's go with headline one, subtitle four, just to keep things moving. Let's go with headline one and subtitle four. Okay, so we're gonna keep that for a minute. Let's scroll on down and our primary call to action. So let's just copy this next one. Okay. So we're telling it which ones we're we're in chat. CBT does a good job of figuring things out if you misspell in the context. Okay. Now let's create the primary call to action. Okay, I'm gonna I'm going to skip this because we said our call to action is going to be built to schedule consultation. But here's where you could ask it to give you some suggestions based on what you want people to do. So I'm going to skip that though. So based on what you know about the client what other homepage content areas would you suggest? So let's go with this and this let's go and see what it suggests what else should be on the homepage?\r\n\r\nAlright, so it looked at the services pages that we already had, and it made some suggestions there. short narrative about HR metals, a project showcase testimonials. What's different latest news, okay, these are all great. So let it help you brainstorm what might be on the page right? So this is all good. This is really good and helpful.\r\n\r\nAll right. Now how about this? How many of you are familiar with story brand? You can combine your voice and the story brand approach. I'm a big fan of story brand. So I'm going to say using the voice of micro but adopting the story brand approach from Donald Miller give me five options for the one to three steps in story brand, providing a title and short description for each step.\r\n\r\nSo if you're familiar with story brand, you realize okay, this is not bad, right. Paul, yeah, so Paul, this is a this is an example for a redesign. Yeah. So if if you're doing this for a brand new site, that there's nothing else like that already. Then maybe you know, you would get some of the content or content concepts from the client and drop those in instead of browsing URLs, right but the idea is I'm gonna train up the conversation with his all this information at first, and then start asking a question as to generate content. Ben, can you ask it to suggest improvements to a current homepage? It? Maybe Hang on. Okay, so we got our one, two threes there, right. And you can pick one of those if you'd like it. Let's see. Let's I don't know if it'll do this or not. I've haven't tried this. So let's just see. Look at the current homepage at this and suggest improvements. I don't know what's gonna happen it's gonna it's gonna go grab the URL. Yeah, sure. You could put in competitor URLs here as well to suggest other things. Again, that's just more context right.\r\n\r\nYeah, so I don't know how good this will be. I haven't tried this approach before. Yeah, I say to you, right, improvements might be too subjective. But look, it's making suggestions that are really pretty good. The content jumps between different divisions and services create a more linear narrative. Yeah, it's really, really cool. Alright, let's keep going. Alright, so we're going to move into individual posts and pages at this point. Let's define SEO strategy. So this is our SEO strategy. I'm just going to drop this in as instructive. Each page will have a key word I'll give to you as you generate the content for each page. Use this keyword in a natural way at least five times and also include it in at least two headings kind of like we did earlier. Some might have two or more keywords. So make sure each keyword is included as above remember the strategy and implement it when I give you a keyword for any content you create. So we're gonna drop that in just as training. And you could hit you can hit and submit right here, but it's going to take one of your conversation pieces, and you only have 50 in a four hour period. So we're going to not submit that just yet. So now we have a prompt Okay, in the style of blank rewrite. In the style of micro it would probably remember that but I wouldn't trust that rewrite the what was the page called? Ah RM metals. At a Glance\r\n\r\nusing the key word\r\n\r\nlet's do the key word, metal, custom metal fabricator. Whatever it would be right. Okay. So now it should give us content for our about page\r\n\r\nnot bad\r\n\r\nso this is a little bit better than the in the digital era content right. I mean, that's, that's good enough that I would give that to the client just like that for them to mark up. Wouldn't you say? I mean, this is pretty good. Pretty good. Let me hear from in the chat. Anybody still out there? Are you all trying this on your own? Yeah, Chris. It's much better than they would send to us out of the gate.\r\n\r\nPretty good. Pretty good. John, the limitation. I think it's 50 responses in a four hour window. So I don't know where we are now, but that's why I didn't want to do GPT four until we got into this. Okay. 350 responses in three hours. Yeah. Okay, so we can generate pages that way. Now let's talk about some blog posts. How many of you are always struggling to get like the first few blog posts from a client? Brainstorm five blog post. Topics for this website. With a short summary.\r\n\r\nYou're about to be amazed with what's about to happen. Now remember, we have built into GPT for the ability to do dolly image creation. Or we could use Adobe when in fact, let's just use I don't want to use any more of my prompts and I have to let's let me get to a firefly this is going to be super cool. All right. Let me let me get the start and then we'll get our image creation. Alright, so let's pick one of these. The Art and Science of metal fabrication Okay. Write a 500 word, blog article on topic one. On topic one, you could say using keyword blank if you wanted to. Give me five Title Five optional title, suggestions. And give me a sample Sally prompt for a featured image British planning to stop okay\r\n\r\nall right, so now we have some five posts I've noticed that when it does titles, it likes to put a colon in there like all the titles have a colon I don't like that. You can tell you can tell it that as part of your instructions. So here's our blog post okay, this is gone. I'm sorry. This is okay. It's fallen off our micro. Have you noticed that? I'm going to stop this. I'm going to go back in here and\r\n\r\nand make sure we say micro because I forgot right? It just started it fell off. So we'll come back. Now dolly is the open AI image creator. We're going to actually use it over in Adobe Firefly, because I don't want to use another open AI prompt right now. So I think we're going to need them all. But it'll show you how Firefly works. If you're a creative cloud user this is built in okay, we don't want that\r\n\r\nbut I do like the voice because these folks are very personable. The client says who's Mike? So this is where it you know, you have to refine it a little bit and you could tell it, hey rewrite the first paragraph and don't say your micro. Paul, what happens if you use them all up? It'll say you've reached your limit check back at this time and the conversation will still be there you just go back to it. Okay, a fusion of traditional blacksmith working with an anvil with molten metal and a modern robotic arm assisting and precision metal work. Set against the backdrop of advanced metal fabrication workshop. Okay, let's see if Adobe Firefly can handle that. It should give us three images\r\n\r\nor maybe four thinking real hard about it. Oh golly. Oh, that's really cool. Not awesome, but not horrible. Anyway, you see where we could go with this? Right? So you could potentially generate a bunch of blog posts and have images and be ready to go and just refine the product, right.\r\n\r\nAll right. So that's a very quick that was 30 minutes worth or 25 minutes worth of very quick approach to generating content for a website. When you think like that, that's pretty darn cool, right? We started falling off the rails a little bit so you got to bring it back in, remind it and whatever. But how much time does the save it saves a ton of time. Nicholas? Just a ton of time. Okay, let's do some more things. Okay, so, chat GPT can not only generate text, but it can also help you work with text. So let's do so these are links to historic chat GPT conversations. So here's this thing of converting text to a table or spreadsheets. I can't remember what this was. But it was good enough for me to save it and put it in the handout. Oh, okay. All right. Oh, yeah. So here's some customer testimonials. And like the idea here was, we were we were rebuilding a site. And it had a single page of testimonials just all written out in one long line of text and there's probably, oh my gosh, I don't know how many there probably 80 of them. I'm going to just guess ADR. And what we wanted to do instead was I bring those into a custom post type where we could do things with them, right? Like randomly show one or put them in a carousel or whatever, right? And do something more interesting. So how do you do that? Well, you could sit there and you could copy paste, copy paste, but who wants to do that? Don't do that. So here's the prompt. Now again, this was months ago, I hadn't really dialed in on how to work but this is just simple, plain wording. I've got some customer testimonials below. I want you to format the text for me. Do not change the actual words in any way. The quote is surrounded by quotation marks remove the quotation marks from around the quote in the output, then output a table as follows. Because of column one customer testimonial column to the customer initials, these follow a dash after the closing quote, column three, the full state name So context is key here we're gonna give an example. Here is the example of a quote terming and identity. It's surrounded by quotes. It's got a dash, customer initials and a state name. This example should be output as column one, this part column two, DC, column three, Minnesota. giving an example is key to do anything like this tell it exactly what you want it to output. And then here's the full text of everything that was on that page. Look at all those many, many testimonials, right? So there's our output, and it did exactly what I wanted it to do it translated the two letter state abbreviation into the full state name. And then what I did at that point. Anyway, what I did at that point, I didn't realize I could do a CSV at that time. But even from here in the HTML output. Oh my gosh, there we go. You could do the inspector and just grab this table object and hit copy element. And then open up Excel, or whatever, or Google Sheets or your favorite spreadsheet app and just paste it right in. In there at all is and from here, I can save it as a CSV, right or you can tell it output this as a CSV like we did earlier, and it would it would pop it out. So taking text converting it to some other format. See how much can you think of how many times how much time in various ways that could save you. Here's another example of doing something similar to that. So I have this HTML I need to replicate for the items in the list. So here's the HTML I want. So you know, there's some style, there's a URL that's based on the link item. These are things in a silo menu, basically. So take the names in the list, do the same li structures above from this pattern. And okay, it did a Python script. I don't know what that was about, Nope, just output HTML as a code block. Got it. Boom, there it is. Copy, Paste done. So rather than me having to go back and fix all this, like it knew what to do with the URLs and all of that it just worked. Pretty amazing. Pretty amazing. So do you see the ways you could use chat GPT to format text are endless possibilities of how you could do this, you know, don't do any of this stuff manually again, and somebody was mentioning earlier, chat GPT will 100% give you spreadsheet formulas, like you can describe what you want it to do. And it will give you spreadsheet formulas to do that in a spreadsheet. Pretty neat. Okay. Be prepared to be blown. away. Are you ready to be blown away? Have you been blown away yet? You're gonna be blown away now. Okay, because this this is my single favorite AI application that I've found. To date. Okay. This is absolutely amazing. How many of you do transcripts for your meetings? Like you have a call with a client and you're recording it in something like you got otter running or something like that, right? Yeah. Are you doing that if not, start doing that. Today. It'll even work with Zoom transcripts. Okay, just get text. All right. So I love this. And Madeline zoom also has an AI companion. Now. They haven't played with that yet. I'm not sure that I think it does transcript and all that stuff to y'all. Okay, there is an AI you need to be aware of called clawed AI. It's, it's from anthropic. Clawd AI is really, really good. It's another generative AI model, like chat GPT let me get logged in here really quickly. Oh, my God, I'm in the wrong I forgot to do this earlier. I'm in the wrong browser profile. So give me just one minute so I can get to the right one and it has what I was just working on\r\n\r\nYes, okay. Okay, let me get here we go. Are you ready? Are you ready? This is y'all. This is it blows me away. Okay. They aren't ready. Okay. So absolutely love this. This document is the transcript from my call. Okay. Here's my prompt. Now. Why would I use Claude AI for this because Claude has a higher token count, meaning you can give it more information at the beginning you can put in this is a full hour transcript. Chat. GPT won't take that much information all at once you'd have to break it down. It might with plugins. It's just not as good Claude is designed to take big bits of information and work from it. Like you can drop in like a novel as a document or a PDF and it will process that whole thing then you can ask it questions about it. It's made for this Okay, so here's my here's that transcript. Please evaluate this document which is a transcript of meeting with clients to create a new website I need to write a proposal. My proposal contains the following sections so please provide results using this format. In from the info in the transcript project overview, five to six bullets that summarize the big picture of the project website design any items discussed that apply to the visual design of the website, website content, any items pertaining to content, text, images, videos, downloads, blah, blah, blah, website functionality, any details about the thing the website actually needs to do? How many of you spend an hour two hours doing this for proposals? Here's a draft proposal. Based on the meeting transcript clients want to do this main goal that ended at launch budgets around this website design, use the same headers it just it pulled out the bits of the conversation and put them in the sections that I use in my proposal. Look at this. Currently rent forwarded resources client will provide spreadsheet resources will be uploaded to cloud functionality and this is where all the stuff they want. Does this capture okay? There's some pushback. There's some functionality notes like the ability to add related documents, state documents that are not covered here. So it missed some things. I remembered some things we talked about. Look at the transcript. Again, make sure all functionality misspelled details are covered. You're right. I miss blah, blah, okay, in now it read it. All right. Look at this. Boom, boom, boom, boom, boom, boom. We talked about the survey they gave the current website users what were their top priorities revealed in the survey. Great point. We should talk about that. So project overview and added some stuff about that. Give me precisely what is discussed about the analytics that need to be tracked on the website by the client for reporting purposes. Boom, here are the details did the I'll add these analytics to the website functionality section, boom. Okay. Was there a certain date in March the site needs to be live because I couldn't remember once the date by the end of March, okay. Awesome. Good. We'll put that in the overview. The comments say they wanted to make changes to the documents on big commerce, which is the current provider or in a spreadsheet? Yes. Good catch. They specifically said they want to make updates to the resource and descriptions blah, blah, blah, blah. Isn't this amazing? Did we talk about payment processors for the principle store at all? No, we didn't talk about it's just so like, the way this worked out. It was several days after the meeting when I was putting this proposal together. And you know, I had forgotten some of the salient details of the conversation but by uploading the transcript, I could then ask questions through Claude to the transcript and have an answer. Anybody excited about that? Like how cool is that? Could you immediately start doing this in your work? Uh huh. 100% 100%. So Melanie just got off a call for a client Melanie, grab the transcript, drop it in cloth and start asking questions. It'll blow you away. It will blow you away. All right. So there's some prompts that I just used. So if you if you're having this I haven't done this yet. I haven't done but I could very quickly see how when if you were to pair this with Zapier, have a call with a client. The transcript goes through Zapier and details that the prompt would be pull out action items and put them in this project in my project management system. It could, it would take some refining, but it could just meet you know how much you spend time filling out your project management tool based on all the stuff that all the stuff that you have to do after a call. Amazing. Amazing. So I don't know if I don't know if Claude goes to Zapier. This no chat GPT does. This would take some experimentation. This was just an idea I had after this. So pretty cool. Pretty cool. All right. Yeah, that wraps us up on the content side. And we're about 10 minutes till so. Alright, folks, what do you think? Questions? Comments? Who's ready to start using this? Clyde? That's the free version. I'm using the free version of Claude for this. All right, Ben question deciding between page chat GPT or may guy or do I need both? Okay, great question. So then, I would try both. Just try and see what you like, right? It's a very small cost for the first month. Just see what you think and what you like better. I would I use both. I pay for both. I am very, I think my habits are there. I go to chat GPT and do everything I could probably optimize a lot better if I just lived in May guy. It works really well. And then of course there's code WP you know, code WP. I haven't spent much time playing in this at all. Chris has. He's building a plugin in this earlier called brilliant insights. You know, Chris can tell us what he thinks about ko WP. I think the pros and cons on this one, right? With mega you miss plugins and chat GPT Yes, but you don't need them because they're built into the platform. It'll go out and grab URLs that's why originally we started using may guy to grab external URLs because chat GPT did not have a way to do that. Now it's since has added the ability to browse Yeah, so we're gonna be doing all the coding tomorrow. That's what all of tomorrow is about.\r\n\r\nLet's see. Okay, then. I don't think code WP would replace codable You really you have to know and might replace it to some degree. I mean, look, here's like, things that we would have outsourced to developers last year for a lot of money we're able to do in chat GPT yeah, there's still some things that you need. Like if the key to AI and coding. We're going to talk about this tomorrow. But again, it's all about the Prop. You have to know enough about what you're asking it to do to get it to do the right thing. Like for example, the very first thing I ever tried to do in chat GPT and a plugin almost almost gave up about 10 times. I stuck with it. Because I had to learn some things. It was just part of the learning curve. But you know, there were some things I was doing and I didn't realize that with this thing with pods. It was creating a user meta entry. I didn't know any of that. If I had known that. I could have said when you do this, it's going to update user meta and check that user meta and do this in the prompt. But it kept not working, not working, not working for like two hours. And I didn't understand why until I got into it and figured out why. So again, it's about you have to know some things to be able to ask the right thing to get it to do the right thing. Does that make sense? Yeah, like Gravity Forms. Like it's a single line. Like you could just say, I have gravity form ID for I do not want that form to store entries in the database. code snippet done. Great.\r\n\r\nAll right, scrolling up for questions here. Paul, why do people still use sites like Jasper? I don't know. It's so here's the thing like Jasper, what have they done with Jasper? So Jasper is it's a body of knowledge that sits on top of chat GPT right. So the Jasper team and like Bertha AI is another one of these AI tools that have been around for a while and they've gotten you know, they've gotten very refined. They have their own data set and instructions and things that sit on top of open AI and you might get better results with them depending you know, so it's it's kinda like these custom instructions that they have a whole app that's custom instructions that's built on top of the model. So you might see those things start to fall by the wayside, the better the core AI gets. But, you know, if you don't know how to prompt it, you get the you know, in this digital era garbage like we were talking about earlier, so Jasper is probably not going to give you that out of the box period. It's going to be better immediate content. So it probably good for those that haven't explored prompt crafting. Let's see scrolling down scrolling down, Stacy, do I charge the clients by the word? No. No, I haven't I haven't quite dialed in how to charge for this yet. Still trying to figure that out. We're doing some content for a couple of new clients right now, using chat GPT in very similar ways that I just described. I just charged the content creation. You know, that's just a flat cost in the in the project. I really haven't figured out how to charge for this yet. So you know, I'm still experimenting with how this even works. Let's see. Scrolling down scrolling down. Ben, what's the best to use to modify photos web based, then I don't know. I don't have an answer for that.\r\n\r\nSo I don't know if you can upload a photo to an image generator and have it tweak it for you. I don't think you can. I don't think we're there yet. But I could be wrong. If anybody knows. Feel free to drop that in the chat. Christine, if you listen to some of the SEO experts, they say not to use AI for content. Yeah. So that is if an SEO expert tells you that AI content will hurt your site's stop listening to that SEO expert, because Google has changed its own policies about that. Google is providing a generative AI for heaven's sake. They've changed Google has changed its guidelines to as long as the I can't remember we talked about this at length in news roundups in the SEO section over the last few months, because this was a big thing in the early earlier this year. It's not about who generates the content, Google changed their guidelines to refocus on is this content helpful to humans, or is this content just generated to create search results? Or is this actually content for humans? Let's see scrolling scrolling. Yet. rankmath has AI general and you're gonna see more and more stuff in WordPress with AI. Okay, Jeff fun today. Who's gonna spend some time on the rest of this afternoon playing around with some content in AI? Dave, you're right, Google could change their mind at any time on what they do.\r\n\r\nYoast also has AI Yep. All right. Anybody else before we wrap up? Alrighty, tomorrow. It's all about the code. So I have many, many, many code examples in the handout in the handbook that we have done and you can we'll browse through some of those. We'll do some live stuff tomorrow. And in the final hour tomorrow, falling under what could possibly go wrong, but we're going to try to build a full plugin with multiple files live right here on the live stream. So you know, we're gonna break everything. It should be fun. Okay, go play around with AI and tell me what you come up with tomorrow when we come back. So we're back tomorrow. 1pm central to 3pm Central like today. See you back here then on solid Academy where we go further together.\r\n\r\nYeah, wasn't that amazing? That is absolutely amazing\r\n\r\ncaptions connected\r\n\r\nall right captions should now be working for all.\r\n\r\nMaster prompter? Yep\r\n\r\nAll right, so\r\n\r\ntoday we are specifically focused on code\r\n\r\nshould be a lot of fun Welcome Welcome, everybody.\r\n\r\nBeth,\r\n\r\nyou're gonna like this. I really think you will.\r\n\r\nBecause even if you don't do the code, you can kind of do the code.\r\n\r\nJohn, can\r\n\r\nClaude read PDFs Yes.\r\n\r\nYeah, clods pretty awesome. Lot is pretty awesome\r\n\r\ncustom instructions and chat GBT? Yeah, that's really helpful,\r\n\r\nright? For sure. All right. Did anybody do anything\r\n\r\npractical between yesterday and now? Did you try any content generation let me hear from you.\r\n\r\nWhat did you do? How did it go?\r\n\r\nwas having a conversation earlier\r\n\r\ntoday and the suggestion was made that as quickly as AI is advancing maybe we should do like a quarterly quarterly AI roundup and that was de bronze suggestion. I mean, because it's moving so quickly. I just literally,\r\n\r\nlike five minutes ago, learn something new. That Chris showed me. All right,\r\n\r\njust about ready to start everybody who's ready to go day two talking about code. Yay, code.\r\n\r\nNP NCSS.\r\n\r\nAll right. It's three minutes after let's dive in\r\n\r\nWelcome back, everybody\r\n\r\nto day two of the WordPress AI workshop here on the solid Academy. Really, really excited about day two because this part I mean, the content stuff yesterday was fun. Today it's an even if you don't do code, it's likely you'll be able to do some code. If you can copy and paste and troubleshoot a little bit, you'll be able to do far more than you ever thought possible. I promise you so it should be a lot of fun today. So yesterday, we talked all about some foundations of AI and where it all came from and why all of a sudden like less than a year ago AI became the thing. We talked about some best practices on you know how to use AI and how not to use AI and some mistakes that are commonly made. So if you missed yesterday, I would suggest you go back and watch the replay. It is there and ready to go for you. You can even speed it up to 1.5 or 2x if you want and I'll just talk really fast and you can get through a lot of that information. The content piece yesterday, I would just again encourage you to experiment with that. What I showed you yesterday was not like the Bible on how to do it. It really just this is what I've been doing. And I found it to be really helpful and take that and build on it. You know you may find certain prompts and certain ways to ask things that work better for you and your workflow. And you may find some little Easter eggs hidden in there as well. So the big takeaway from all this is it's all about the prompt. That's the number one thing I had to get out of this whole workshop and we are always going to be refining our prompts. So today what we've got, again, focused on code, mostly PHP, there will be I think there's some jQuery in some of these that generated and there's at least a few instances of CSS it no chat, GBT knows all those things. And it can really, really make our work simpler, even if it's things you understand, like if you could write CSS, then you just prefer not to chat. GPT can do that for you with some description. So what I'm giving you here is at the beginning of today, are it's really a list of conversations that I've had with chat GPT over the last year, it's some various points of this year. And if we look at the date on some of these, they go back to March, April, and I was really just learning how to use chat GPT so you'll, you'll see sort of the evolution of my use of chat GPT through these processes. And so I don't know how this is gonna go. We've never done this before. So my thought is I'm going to talk you through each of these conversations with chat GPT and you know how, what you know why I asked what I asked what the problem was I was trying to solve, and hopefully, this would this will give you ideas of how to proceed with solving certain problems that are code related with chat GPT so does that make sense? That's kind of my approach here. It may not work at all. Hopefully it'll be great. Hopefully, you'll learn some things but either way, you can see some of the ways that I've used AI over this time. The other thing here I got started getting a little worried Yeah, I started getting a little worried earlier today because I've gotten frustrated a chat GPT I mean, I'm gonna be honest I've gotten frustrated chat GB to there may or may not be conversations I've had with chat GPT in which profanity was involved. That might have happened, possibly once or twice, and I hope none of these conversations include those but if they do, I'm gonna scroll right past them real quick. But you know, it's a journey, right? It's a conversation. There may or may not be insults because I got frustrated, but chat GPT just you know, it replies graciously.\r\n\r\nSo, here we go.\r\n\r\nY'all ready to get into this? So let Okay, let me let me test let's take a quick temperature check in the chat. Give me this chat. GPT to insult you back. Oh, I think it I don't think it's core programming allows for that. But that could be awfully fun. So give me in the chat. Give me a one to 10 on how comfortable you feel with dealing with PHP snippets. Right. And by that I mean you're not going to write the thing, but you're okay with like finding a snippet and maybe editing a couple things, whatever. Okay, give me a one to 10 on how comfortable you are dealing with PHP snippets. Alright, so several high on the high end, several on the low end. A couple of zeros. We'll take that. Okay. So okay, here's the thing. If you're on the 0123 end, chat, GBT is all about the prompt. Right? And so it's gonna be a little harder for you to know. Like the idea here. It's kind of like finding that PHP snippet on the web, and just kind of being able to read it not knowing exactly, but there's enough syntax and like the the terms that are using WordPress, PHP are usually clear enough, where you can kind of have sort of an idea of what's going on. And so that's gonna, that skill is going to be very helpful here. So just, I mean, hopefully it's obvious like if you're zero on understanding PHP, this is going to be a challenge. And I can't teach PHP in this course. But I can show you how chat GPT will generate snippets and how we troubleshoot them. So if you're on the higher end of the scale, I think you're gonna pick this right up and go this is awesome. And if you're not using chat GPT already this I mean, you're gonna be picking this up and being up to speed almost immediately. So don't get frustrated. If you you know, if your understanding of PHP isn't quite as high as maybe you'd like it to be or whatever, don't get frustrated, it's likely still that you'll be able to generate some code snippets that will help you so hang in there is Sue here today. And we have an m&m Check I don't see see in the chat. So here\r\n\r\nwe go. All right. Ah, all righty.\r\n\r\nSo let's get started. I have separated these out into categories. So here's four things that over the course of the year I've done on various projects. To do something to manipulate the core code of WordPress, some snippets, that would affect the core functionality of WordPress and I need\r\n\r\nto find\r\n\r\nheritance All right, so let's get started with this one. So how many of you are familiar with this issue of user enumeration? This is something that WordPress will do. You can with a query you know, find out who is author number one author equals two or whatever. And this is a way it's really not used that much anymore. It's more of a security by obscurity issue, where you can query WordPress, and it will give you the username of authors if you ask it, what the IP by the ID. And so there are bots that will try to hammer away at your site and get a list of usernames on the site that are authors. And then they'll try to come in and pound away with passwords. Not nearly used as much anymore. But this is something that there's a script for it. You can block it, and it's really easy to do. This was the prompt. I mean, talk about a simple prompt. Actually, I think we even this might have come from an office hours earlier this month. When he\r\n\r\nsix don't think Well anyway, the prompt is\r\n\r\nsimple. Can you write a PHP script that will stop user enumeration in WordPress? I mean, that's about as straightforward as it gets. Now chat GPT will typically respond with some context. This is what user enumeration is. Like I didn't really need to know that but I mean whatever. And you can even tell it don't give me explanation. Just write the script. So we're going to remove revealing error messages restrict access to whatever that is. Alright, so here's a PHP script that can help in preventing user enumeration. Now it's actually given me a plug in here. I didn't ask for that. So that was a little bit of a surprise. I was really hoping for just a snippet that I could add to my custom functions plugins, but it wrote the whole it wrote the whole plugin. Now if your understanding of PHP is maybe a little less, these explanations are super helpful. It's just that as I'm Chad CBT for GPT four is a little slower. And so it's sometimes and during different usage levels during the day. It's faster sometimes and slower other times. And so like sometimes I just don't want all the explanation. I just want the code but it's gonna give you the stuff by default, but anyway, here it is. They're just boom. Like that's it. And so, a simple prompt gives me exactly the code that I would need to go out and add it to my you know, add it as a plugin or just add it to a custom functions plugin. So this is likely going to go in my base site. I mean, why not? It's, you know, 1012 lines of code and it stops user enumeration, so why not, it's not going to slow anything down. So see how easy that is it and you can just copy this right here and it's copied to the clipboard and you can paste it in your code editor and there it is.\r\n\r\nDoes that. I mean, who can everybody do? That? I think so. That's pretty easy.\r\n\r\nSally, great question. How do you assume the code is correct? Okay, so this would be a good, I'm going to hit and by the way, if you have a chat GPT account on all these links that I've shared you can click this link and it will transfer this conversation. Yes, over into your chat GPT. So you get the whole history and it knows all it has processed this and now it is as though you are having this conversation. So let Sally How do we know this works? Okay, so let's just say please, you just asked chat GPT please\r\n\r\nanalyze this code to make sure it will work, which doesn't often be helpful for compatibility with PHP 8.2\r\n\r\nOut of the spa compatibility, right. And for any\r\n\r\nsecurity issues,\r\n\r\nyou're gonna see that come up several times. That little bit was in the the last the Save instructions from yesterday, but I have those turned off right now. So even though I misspelled completely blue lI right there, it knew what I was talking about. So it's looking at the code. I don't know why it's echoing it back out that's\r\n\r\ninteresting.\r\n\r\nDoesn't seem to have any deprecated functions. The functions and structure are typical for a plug in no complex functionality that should break security and the error No WordPress errors function effectively. replaces any login error with generics. So that's good. The regular expression preg match\r\n\r\nfunctions for an author regex appears to be safe.\r\n\r\nredirection is used appropriately output there's no direct user input so there's no risk of cross site scripting. doesn't interact with the database and no SQL injection concerns. Use of exit after redirect is good. So security looks good. Isn't that nifty? So Bonnie, back to your was it Bonnie? I know Sally back to your question. The How do you know if it works? You put it in there and see if it breaks. And you're we're gonna see in future conversations that we'll look at in this process of like, it didn't work. And so we got to go debug it. And so a lot of times it's going to be we open up the error log and have that there and we're pulling errors out of the error log and dropping instead. This is what happened in chat. GPT will fix itself. Yeah. So it's like that.\r\n\r\nSo this was a very simple\r\n\r\nexample, but do you see how quickly it can solve a problem. So now honestly, for me, it used to be that if I was trying to solve a basic problem in WordPress, I needed a code snippet for something. What would I do? What would you do before AI? You'd go to Google you try to describe your problem as best as possible. You weed through 800 blog posts until you finally find some person that talks about the thing. Paul says Ask in office hours.\r\n\r\nThank you, Paul.\r\n\r\nThat's pretty funny.\r\n\r\nBut let's say you happen\r\n\r\nto be the person doing office hours and you don't have the answer. You would Google it right. And you would try to find hopefully some developer on some blog post somewhere is or the maybe there's a you know, a StackOverflow article that's not standard that's that has enough snark to get the right answer, but not too much snark that you don't want to read it. Anyway. Now you can just go to my go twos to go to chat GPT and have it generate the code. Pretty, pretty amazing. Okay, so there's our stop user enumeration. All right, how about this one, this one just, we had a client I'm sure none of you have this issue. But we had a client who started uploading video to the WordPress media library. Is there a plugin that will stop video? Yes. But why do I want to install another plugin when I could just use a very simple code snippet? A lot of plugins like this, you know, like there's, I think there's a stop video uploads or whatever. But it's going to add a settings page with different formats of videos there. And you know, it's somebody's plugin and they're probably going to put ad spam over my whatever. So one of the beautiful things about having chat GPT generate these snippets is I don't have to install all these plugins on my site that are going to add extra admin menus which y'all know just gets on my nerves. I you know, adding a top level WordPress Admin Menu and it's not necessary and even then they can put ad spam, we can get rid of all that stuff. You know, and a lot of these plugins are going to add code that I really don't need if I just need this one little section. And so I just want a snippet that says I don't want any video files, period to be uploadable to my media library. So that's what I said, Well, I can't remember what the prompt was, but it was fairly recent.\r\n\r\nYeah, earlier this month. This is all I said.\r\n\r\nAnd this is all you had to say it has enough context. I need a WordPress function to prevent video files from being uploaded to the Media Library. That's literally all the context it needs. It knows WordPress code, and I've told it what I want it to do. Alright, so to prevent that guy, you can make use of this filter or hook in WordPress. Here's your function. Now it is disallowing these media types. If there's other video formats, then you can add those just in the same format in a row here. Add this to your functions dot php, your credit custom plugin awesome. Make this a plugin I can use in the M you plugins is my next prompt. Sure, I'll help you do that. Boom, prevent video uploads, blah, blah, blah, blah. Now it's a plugin. And all I had to do at this point was copy the code. go create a file in the me plugins folder and it's done. Problem solved. I don't have to go search for a plug in. I don't have to test it and make sure it works. I don't have to, you know fight through top level MIT. It's just right there. It's simple code. This is not going to slow down the site. It's just going to work. You could make this its own standalone me plugin or you could just copy the function part out of it without the plugin header and drop this if you already had a custom functions plug in, drop it in there.\r\n\r\nDone. See how easy that is? Now let\r\n\r\nme ask Okay, for those of you who are on the 0123 rating that you gave yourself,\r\n\r\ncould you do this?\r\n\r\nLike those of you that write it yourself, write it in that area. How do you feel about this? Like you could totally do this right?\r\n\r\nAnd how much time is this gonna save you because it's awesome.\r\n\r\nDon't be afraid of experimenting with chat GPT to do these things, just make sure that you have immediate file access in case you pay something that breaks everything they just unpainted and you're back to normal. But just it's this is going to level you up. Like nothing I've seen in the recent past have your ability to do really cool things in WordPress.\r\n\r\nYeah. And like David's saying\r\n\r\nthat's the other side of this, even if you're high on the scale. Like why go through the hassle of writing this stuff yourself. Just drop it in chat. GPT there it is\r\n\r\nand add it. It's done. Pretty crazy.\r\n\r\nOh Chris. Thank you. Great point. If you're going to add or edit php code, I hope you have disallowed file editor already as a best practice. Don't do this in the file editor in WordPress. This is why I have open here for the next section, the file editor from cPanel who are actually going to go in and edit things that way please don't do it from within the WordPress.\r\n\r\nThank you for that. Okay.\r\n\r\nYou like this everybody? Good. Let's keep going. I got a lot of examples here. Okay, this is actually something from the Academy site. So we got a request from the from solid marketing to say we wanted Is there a way that we can very easily add remarketing scripts to each individual livestream event. So let's say there's something we're promoting. It's like a solid security whatever, and marketing wants to drop in a Facebook pixel just on that event. Is there an easy way we can do that? Sure. Okay. In WordPress, I went in and meta box and I created a custom field for the tracking code just a text area. And here's the slug. In WordPress, I have a custom field with the slug this that used on posting the custom post type with the with the slug this Okay, so this detail is super important and we pause right here. I've gone round and round and round with chat GPT and things took a lot longer until I realized\r\n\r\nthis key here this this is important. It's always better to use the slug\r\n\r\nbecause depending on you know if you're just using the name of a custom post type, or the name that like the the visual name of a custom field, the label is what I'm trying to say. Don't do that because that can get squirrely the slug is always going to be the same no matter what if you're using the full name. You know there might be a space or depends on how that's going to convert. It has an underscore how's it going to actually look? It's hard to know that the slug is always the slug so use the slug when you're talking about these sorts of things. While viewing a post type in the trap events post type if the custom field is not empty, I want to add the contents just above the head. So basically, don't do anything if they haven't put a tracking code in there. But if they've pasted the pixel on that event, I want it to show up in the head so that it shows up. Can you write a function? Well, of course I can because I'm chatting GPT I can do all and it's just there it is very simple. Very simple thing. Okay, I go now okay, I want to add comments around the tracking code so that we you know, we wrap it in a comment basically just so we can make sure it's there easily. And so it edited the code to give me that and I'm done. Like how easy was that? So so easy. Now we have this really cool functionality on the Academy site that lets marketing just go in and in that custom field drop in their pixel and update the event and they're done and it just works. Yeah, it literally Yeah, Chris literally just a couple of minutes to do this.\r\n\r\nPretty cool. Questions, comments about that?\r\n\r\nI mean, it's literally any question the client asks that's going to require me to go in and create something as a function. Can I do that in chat? GPT and the answer is\r\n\r\nprobably, yeah, probably. All right, moving down. Okay, this\r\n\r\nis a good one.\r\n\r\nThis may have been I think this is\r\n\r\nan academy one too. Let me just see\r\n\r\nreal quick, Robert.\r\n\r\nNo, it wasn't it. This was for some other client. I can't remember what it was. So this was how many of you have wanted to hide the admin bar on the front end, like you've got a membership site, and they log in and you want to get rid of that admin bar. Some plugins will do that for you. There are certain like membership plugins will hide the admin bar or whatever. There are some plugins that all they do is hide the admin bar but there's some of them are weird. So why not just get code to do this? And so this is my this is my prompt, I need to create a WordPress PHP snippet that does the following prevents access to the WordPress admin area for logged in users. Of any role other than editor and administrator and instead redirects those other roles to site URL my dashboard. Number two, it hides the WordPress admin bar from all users on the front end other than editors and administrators\r\n\r\nboom, there it is. Quick, done. Easy. Amazing.\r\n\r\nSo it gives me a little explanation. And I literally just that simple prompt, copy the code, paste it and functions and I'm done. Pretty crazy.\r\n\r\nAlright, let me pause right here.\r\n\r\nQuestions. Does this make sense? Do you see how to do this? You see how quickly you can build custom functionality into WordPress. And here's the thing. We're dealing with open source code. So there's, you know, there's all these articles out there, and people are going nuts about AI and you know, the legal like, you're gonna get sued for using AI and blah, blah, blah. I don't know, in this area. As we're dealing with WordPress, all of this code is open source, even if it's in a premium plugin. With in premium plugins, the code is not the code is not copyright protected. Anything the nature of open source is that anything that is built on code that is GPL compliant, which is WordPress, any plugins that plug in to WordPress, also have to be open source. When you're buying a plugin. You're not buying the code. The code is free. Because it's open source, it has to be open source. What you're buying in a premium plugin is access to updates and support meaning all this code there's no copyright now I'm not a lawyer. Okay. But based on my understanding of the GPL all code, we don't have to worry about copyright issues with any of this. So at least in this application of AI, there's no copyright concerns whatsoever. Pretty amazing. Yeah.\r\n\r\nChris, I talked about custom\r\n\r\ninstructions yesterday. I'm not gonna be able to go back to that today but it's in your settings, and you can drop that in. Alright, any other questions about this before I move forward?\r\n\r\nOkay, um, this was okay. This was a little. This is a little granular.\r\n\r\nBut here's an idea of this will just show you what you can do. So we had a site where the way it was built by the original built a developer of the site\r\n\r\nthere was they had put\r\n\r\ninto WooCommerce product descriptions, HTML tags, like the h1 tags and everything, just the way the site was built. The the product title was being rendered by the product description and not by a template, right? It works perfectly fine. Nothing wrong with that except when you build that into a new theme that has a title and all that now you've got two h ones and duplicate titles and all that. So what do you like? How do you deal with that? Clearly, I don't want to go through 800 products and remove all this HTML. So can you can you do something about this? Yes, you can. And I actually don't have that first prompt here. I'll just explain it basically what we went in there and asked chat GPT if it sees an h1 tag, remove it and anything that it contains, because it's the page title is already in the template. So remove the h1 tag and anything inside of it. Remove h2 and h3 any of that stuff, remove it completely, and chat GBT built us a little function that lived temporarily in the functions dot php, that as a product was updated.\r\n\r\nIt would strip that stuff out. It would just be gone.\r\n\r\nAnd so I mean, think about how much manual work that say it was an unbelievable. Plus, we actually discovered that you could go and this works with any post. But if you just go in, you can click this and do edit and you don't have to make any changes but hit update. And these products are now actually being updated. And it took care of all of our it stripped all that HTML out. Now, where that left us was these two situations where Okay, now we had some empty spaces. So our empty spaces were an issue\r\n\r\nare we not loading?\r\n\r\nWell,\r\n\r\nyeah, and Chris is right. It works with anything regarding the post assigning categories, custom fields, whatever. Wonder why this isn't loading\r\n\r\nOkay, that was weird. Okay. So here we\r\n\r\ngo. Here's my prompt in WooCommerce products. I have many that have several empty line spaces in the text view. So it's in the Code view right in text and some lines that just have a the, the ASCII code. HTML code for the space right and percent nbsp colon, semicolon. This causes a lot of empty spaces to be shown on the front end. I want to keep any empty lines where there's just one, like if it's a line break, we want to keep that but if there are two or more lines that are empty, I want to remove them. Treat lines that only have the space as also empty. This should run when a WooCommerce commerce product has updated. It should look at text in the product long and short description for this function. And so there's the thing that it did and it was just using the the string REPLACE function that PHP and the preg replace, to go in and update the content and so it's stripped out all those spaces. So everything was nice and tight. Like it was supposed to be really, really remarkable. We didn't know how to do this didn't have a clue that I didn't think it could be done but we just asked and chat GPT did it. Pretty amazing. A similar thing here in WordPress, I have text in a WooCommerce product that has a line break but not a paragraph. So for example, it was like this and then went right into the next paragraph. This kind of thing occurs on most products. Is there a way to detect this with PHP and add a paragraph break instead of a line break when the product is updated? Certainly you can says chat GPT boom, there it is. And so look what it's going to do. It's going to wrap things in p tags. And guess what it works except Okay, wait a minute, we found an issue. Sometimes there are multiple spaces together like this. I don't want to exacerbate that with lots of extra p tags. So this is what we are getting. So again, context, I gave it the actual example of the text to show what we're trying to accomplish. That's super important. This is part of that training the conversation, giving chat GPT more information and you know, so it knows better what to do. So in your example, blah, blah, blah, you can use reg X reg X tackle blah blah blah. Is there a way to add another space rather than adding a p tag the copy paste I sent was from the code editor and WordPress not the visual editor. Alright, so that what just happened didn't work. So we did it again. And now it fixed it. And that I think, oh, that didn't work. This is me being very terse live chat GBT. That didn't change anything. Okay, sorry about that. Let's did it. It did some new code put that in Okay. After running that gives full instructions. The extra spaces are removed, but the lines where there should be an extra space were not affected. So and again, this is just, it doesn't always happen the first time a lot of times it does, but you just have to go back and you can repeat in plain English what you're seeing happen. And chat GPT will often eventually figure it out. Looks like this took a number of different rivers still not working. Going down new code. Okay, that and that one actually worked. So it took a little bit, but we eventually narrowed it down to figure all this out. So if it doesn't work the first time, don't get frustrated. Keep at it, refine your prompt, give it more information, keep trying it, and you'll find that it will likely ultimately work. Paul, would it be better to clean the data in the database instead of scrubbing it when it gets displayed? How do you decide when to do that? It's a good question. So we could have done it that way and done it with like a SQL command. Because essentially, that's what all of this is. I mean, you could run a lot of this in a SQL command. We were working from internally in WordPress and it worked just fine. But you could do it same thing. I mean if we said like we could let me just continue this conversation. All right, take this final solution and create a SQL command that can be run on the\r\n\r\nproducts. The products table\r\n\r\nso if you're comfortable with doing SQL, you could probably do it this way.\r\n\r\nThere it is.\r\n\r\nOnce it's now understood what you're trying to accomplish the likelihood of that command working is pretty strong. I'm not gonna run it but yeah.\r\n\r\nAlways take a backup of your database.\r\n\r\nSally, would you put those function adjustments into a code snippets plugin? You could totally do that too. Yeah. So you could use code snippets I usually get into. I don't like to do any of this from within WordPress. Because if the coat like if you're using code snippets, for example, and the code you put in white screens, WordPress, you're toast, because you can't go in and edit your code snippet. You. I mean, you could do that, but it's just not the best way to do it. That's why I would suggest going in through you know, a CD like cPanel File Manager or your your text editor, code editor SFTP into your site, and doing it that way. You don't want to get into the situation where you add some code, something is wrong. There's a white screen and now you're stuck.\r\n\r\nYeah. Does that make sense?\r\n\r\nAll right.\r\n\r\nLooking at time here, I'm gonna skip through some of these things. You can on the whole chat you can go back and look at these if you want this creating a shortcode that had like a click to call with a phone icon. That was pretty cool. Even this, I am going to show this. I can't remember if I provided the S Okay, I did get okay. So I gave it the actual SVG file the TAT SVG tag for the icon I wanted and it built out a whole shortcode that included that which is pretty darn cool.\r\n\r\nAll right. How about this? Have you ever\r\n\r\nthere are plugins that will allow you to in WooCommerce assign a role to a user if they purchase a certain product and that's often used for some sort of membership product or, you know, you buy this thing in the WooCommerce store and that grants you access to another part of the site for example, and you have to have a membership plugin or a plugin like yes, one of the youth plugins why ith used to be like roll something or other for WooCommerce I think they quit supporting it. But it's so easy. Look how easy it is to do this. It is a simple function. I need you to create a WooCommerce function that does the following. When a customer buys product with ID this again another example of use the slug or the ID or something about that thing that never changes. So when a customer buys this product after checkout is successful. Add a role to the Add a role to that user with the slug in this case Ruach which is the name of the membership product. Also customers personally that product should be forced to create an account at checkout. So we had a plug in that was doing this and it was actually that yes, why it Ah yes. WooCommerce roll something or other and they've quit supporting that it was causing problems. And so it's literally that function. What is that? 10 lines 123467 Yeah, I mean it's mostly empty space.\r\n\r\nIt's literally\r\n\r\nif it's that ID then add a roll. I mean, it's just it's so it's just a very, very simple\r\n\r\nthing and it's done. I don't want\r\n\r\nOkay, so apparently. Let's see, okay, it actually misunderstood me here. Okay. And I stopped it because I was I was actually looking at the code here because there's nothing in here about assigning a role. It missed this. It was only saying if the user is not logged in, and we're in the cart, then you and this item, then we gotta force. That's not what I want. I don't want all users to be forced to create an account only those that are purchasing that specific product. It's like oh, okay, so if it's this ID then we're going to do all the things so there's actually two functions force account creation for that product if that product is being bought, and assign that role after checkout. So there's two functions here two snippets. It gives me the explanation. Now okay, add a notice at the top of the checkout page when the account creation is required that says you will need to create an account using your email address and password in order to access route journey online videos after your purchase. So we just you know, we're continuing, I put it in there figured, okay, the user really needs to know that they got to create an account. So we're just going to add that that little message if the case is like it's not going to show up there unless they're about to purchase that product. In testing, the roll was not applied. Okay, so we're going through we're testing this it didn't work. If the roll isn't being applied, let's okay make sure it exists. It did. The order status has reached Completed status. That was the problem. So if I scroll down, order is still processing let's make the roll change while the order is processing not completed.\r\n\r\nSo boom.\r\n\r\nIt's it was a digital product, but it could have been that there were other actual products in the process. Anyway, you see this? Again, it's just an example of the thinking through and refining of this code throughout the process and that works. That says if I have a plugin that does many things, but I only use it for one very simple thing. Do you recommend I use GPT to create my own code to do that in order to reduce the number of plugins? For example, I use loco translate to change one WooCommerce label. Oh, you could totally do that with a single function. Yeah, you would just so the key to that is how can you describe in enough specificity? What label that is? Like, you know, probably if you inspect it on the front end, you'll get the actual you know, you can get the actual ID of that label and you can tell chat GPT in WooCommerce for this on this label, translate it to this. Make it save this and it'll, it'll totally do that.\r\n\r\nYeah, play with it back up\r\n\r\nand be ready in a file editor to actually back out your changes. Everything comes to a\r\n\r\nscreeching halt. Beth I have faith in you that you can do this you can totally do this. All right. Let me see what else to\r\n\r\nshow here. Here's one that says we don't ship the PIO boxes at all. So it's going to disallow Pio boxes from the address. A lot of these are just very niche things we wanted to add a SKU to the product description so that it's searchable, right? How do you make you know, maybe you want people to be able to type in on the front end of the site, the SKU in the search box WooCommerce doesn't search skews by default. So a workaround we found was to just put the SKU in the product description. So when the product is updated, it adds tech SKU, colon, and then the SKU and now it's searchable. Pretty cool. How about this? Only search titles on the WooCommerce back end like I don't want you to search for if it's occur if this term occurs in the description or whatever. I don't want that I only want the search results to be in the actual product names themselves. That's kind of cool. Okay, here's a good one. I talked about this one already, but this is something I see a lot like so maybe you're using Gravity Forms to do like as your MailChimp subscribe form. I don't want those entries in my database that's going to be tons. So act as a WooCommerce. Developer help me write a PHP snippet using Gravity Forms form ID four, I do not want to store entries in the database. The form uses the MailChimp connector to add the form info so I want to be sure it still works with whatever code is generated. Also, the like I don't know what the code how this code is going to affect the MailChimp connection, so I just told it to take that into consideration. Also, the form is set to display a confirmation message I've customized and gravity form settings this also needs to work. So the two things that are peculiar about this form I just made sure to mention those. And then boom, there's my little bit of code. Now. I think gravity, some of the gravity add ons you have to pay for will let you do this. But it's literally four lines of code to do this and it's done. And now that form is no longer going to store submissions and just stack up 1000s and 1000s of email addresses in the database. Don't need it. Right. Describe your problem as best you can and then iterate. Okay, let's get into something more complicated. This one we actually did. I think this was in an office hours. We did this one. So there's this plugin. I think the question was, is there a way that I can easily show view like how many times a page was viewed on the back end and WordPress without having to get into any Google Analytics or whatever I just want a basic view count. And you can there's this plug in plug in I think we did an around up called Awesome viewcount now, it only works for posts. This plugin. I don't know if they have a premium version or what but it only works for posts. So alright, this is a WordPress plugin that adds a view count to the posts list. Currently, it only works with posts modify the code that works for posts pages all define custom post types, including WooCommerce products. Make sure you adjust not only the code to display the view count on all post types, but also the mechanism for tracking views of those post types. I want you to change the code so that it can be added in a code snippets plugin rather than being installed the standard plugin. So I mean, whatever you want to do here, and then it was a one file plugin. So I just copied the PHP and dropped it right in there. Okay, here's how you can modify the code. There goes now it's gonna it'll work now for all post types. The count does not appear in the WooCommerce product list, nor does it appear for custom post types. Oh, so it worked for pages, but not for posts. My apologies custom post types uses different set of hooks. Okay, now update that to fix that. Now. It should have done that as part of my original prompt, but it missed it. So we added the code tested it didn't work this describe it what was going on. Now it fixes the code. Still not appearing for custom post types. Bummer. What happened here? Oh, the timing. Of when get post this call. Alright. So we're going to change up the timing here in the code. And that work. Oh, but wouldn't it be cool if we could make that views columns sortable? So we could sort by which page or post or whatever has the most. We're sure to make that we're just going to do this. And there it goes. Boom, boom, boom, boom, boom, boom, boom,\r\n\r\nand it works. So that's it. Pretty cool, right? So take\r\n\r\na plugin that is almost what you want and ask chat GPT to improve it. Okay, this is a really helpful thing. How many of you are in a beaver builder stack and you remember this plugin that I've been I've recommended a long time ago, called BVB delete cache right on the front end of the site. It adds a little drop down inside beaver builder that says Clear Cache, super helpful. Did you know that unless you've fixed it, it is filling up your error logs with errors because it hasn't been touched in quite some time.\r\n\r\nOkay, let's fix that.\r\n\r\nSo I noticed they were getting errors. All right, I'm getting this error in the WordPress log. Boom, error read property No, blah, blah, blah. The plugin file in question is paste in the whole thing. It's a very simple PHP file. Line 98 Is this. So you know, that was the line that was mentioned in the error? And chat GPT doesn't really have a way to count these lines. So I just, you know, in the file editor, I could see what line 98 was, and so I gave it that. So I've given it a lot of context. I've explained the error. I'm going to ask chat GPT to fix it. So it explains what's the deal. There's an attempt to read Id No, but why why the issue is here to fix this you got in blah, blah, blah, blah. Okay. So I don't care about any of that. Just give me the whole plugin file again, with the fix in place. Certainly.\r\n\r\nBoom, there it is. All right. Now,\r\n\r\nhere's that the magic line, act as a WordPress developer analyze that and you actually you really don't have to say this anymore. I used to be helpful, I found that the results don't matter by using this. Analyze this plugin for security issues and phba to blah, blah, blah, security issue didn't have to do all this stuff right here, blah, blah, blah, blah. You suggest specific changes to the code, so it didn't really give me a good actionable thing. Maybe I should have asked that different. So based on this, this is what I recommend blah, blah, blah. Okay. Make changes for recommendations one and two. Okay, sure. Boom, there it is. Okay, chat. GPT does this from time to time it will give you just the piece to change because it wants to minimize the amount of output it's giving. Now if you are like me, especially if you if you are rating yourself lower on the PHP experience spectrum. I'm gonna mess this up. Is anybody else gonna mess this up? Like I'm gonna miss I'm gonna miss copy. I'm gonna miss a stupid semicolon or whatever, a squiggly bracket. And you know, the fact that I call them squiggly brackets should tell you enough. Yeah, so I don't want to cobble together the code. Okay. So give me the whole new plugin, like the whole PHP thing. Don't give me the little snippets. Certainly. Boom, there it is. Error is fixed. Everything works. Now, I did have another question. I was just curious about what the text domain was at the top here. Do I really need that? And it just explained to me what it was there. So pretty cool, right? Davia chat, GBT doesn't know what PHP 8.2 is.\r\n\r\nBen, what if you want to change\r\n\r\na bigger plugin that's in multiple files. Okay, so then you would have to train it right? You would have to say I'm about to give you a WordPress plugin that contains multiple files and folders, maybe explain the folder structure and what each of the file names are. And then say, Okay, here's the code for this file, boom, here's the code for this file, boom, it's gonna be tedious. The code wp.ai that I mentioned yesterday, is likely going to be better to handle that scenario. I haven't really used it yet. It's brand new, literally, brand new week old. And if there's a few little bugs that have popped up in there, where the developer is actively working on that tool, I think it's going to be fantastic. But that that's probably a better way to approach it. Ben, is there a chat GBT plugin to load multiple files? I don't think you could load a PHP file directly in the chat GPT. I would imagine they would consider that a security risk. Because think what you could do, right? So maybe, if you put them in a text file and had a reference, but then it's just, I mean, you might as well just paste it in. So I imagine that's gonna get better with time. But for now, that's the approach we have to take. Stacy is the Delete cache built into Beaver Builder? Yeah, it's just buried in the settings. And what that little plugin does is it grabs the function that delete that that clears the cache and just puts it in an easier place to find it's part of beaver builder that the plugin just puts it in underneath the submenu on the front end of the site is all it does. Dave is asking, How can you ask it to be compatible with Hey, that to me, you really can't. But you notice in an earlier response, it said I don't know eight not two, but based on what you've said. There's really nothing here that's deprecated and it's using common functions, so you're probably okay, so it doesn't know 8.2 yet.\r\n\r\nYou could say that one it's definitely knows 8.1. Sherry, can you feed it a dot two? I don't think so. Okay, here's another thing\r\n\r\nwe got to start getting ready to land the plane on this on this piece. Okay, this was we may actually go a little long on the segment depending on how this goes. So this, this is cool. Okay, this is an approach I want you to take notice, because it's very helpful. Again, it's all about the prompts. Right? It's all about training chat. GPT in the conversations, this is you know, basic foundational things about using AI that we talked about yesterday. Doesn't matter if you're generating content, generating code, whatever. It's all about what information how much context can I give to chat GPT to help it solve the problem better. So there's all this documentation for these plugins out there, right like, you know, if you're using a developer centric plugin, like meta box or Gravity Forms or whatever, and then got all those Doc's out there, and you've got a whole page with like, you know, different code snippets and functions that apply in there almost what you need, but not quite. You can just give it those things. And it will, you know, it'll take all that into consideration and give you an answer. Often based on the stuff that it's got. So here's, this was a problem I was trying to solve. So here's the actual, the actual issue. This is a client we've had for a long time. They're a dentist in Southern California. We were rebuilding a site, we've rebuilt this thing now. I mean, I think this is the fourth iteration of the site. And for years, their blog had no featured images. And so they didn't want to go back and add literally 1000 featured images to all the blog posts on this site. Okay, it's hundreds and hundreds and hundreds, right. So instead, we decided we're going to do a category featured image and use that because the blog used to just be a straight text list. It was terrible,\r\n\r\nbut that's what they wanted to do. So instead of\r\n\r\nhaving to do a different featured image for every product, we did category featured images. So you'll notice that some of these are the same, but that's better than no featured images at all. Right? Like this picture comes up multiple, whatever, right? So I found this plugin. That's the problem we're trying to solve is how do we get category featured category images to work for posts? So I've got this plugin that I found called categories images that allows a featured image for each post category, but I need to do is have that image output as a shortcode in a beaver theme or layout, here's the documentation for the categories image plugin. Now here is this is the tactic I was just describing. So what I've got here, this is text that I can't remember if it was on the plugin page or the developer side or whatever. But I just grabbed the whole this is probably the plugin page. I just pasted everything that had a ton of usage in like templates and all this stuff. I just dumped all this code in here that it gave me this giving chat TPT as much stuff as I could, to you know educated on how this thing works. All right, so it looks like you want to use the featured image data data data doc, create a custom shortcode boom. All right, using the shortcode in Beaver theme, and boom, okay, but I made a mistake. Oops, wait a minute, not beaver theme or I'm sorry. I want to add the shortcode into a beaver builder post grid as a custom layout. So this is a post grid module. And I'm using a custom layout in that post, you know the HTML layout.\r\n\r\nSo how do I do that?\r\n\r\nFor the image, I just want to drop the shortcode in so that it pulls the category image. All right, the shortcode should look at the category of the current loop item and display that image. So again, I've pretty precisely described now I've refined my prompt to tell it what I want it to do, okay, you want to create a shortcode blah, blah blah. Here's the code. There it goes. This code creates the shortcode current category image. Great. Okay. And that worked. Well, it worked. But we got to refine it some more because there's a particular custom image size that I want it to use. So I've defined the custom image size in my site called news grid. And it's specifically sized and I wanted to use that version of the image, not the thumbnail or the full size or whatever, okay, boom, and it's the code to add that right. Okay, now, let's change the shortcode slightly to say that if the post itself has a featured image, use that one. Otherwise, use the category image. Okay, so if we've added a featured image actually to the post itself, use that one otherwise, fall back to the category image. Also, please make the function name with my prefix instead of the default. Certainly, boom,\r\n\r\nthere it goes. Boom, boom, boom, boom, boom. All right, so that totally works.\r\n\r\nAll right. Now I need you to help me create a shortcode to display the related post to the current post. The output should be three random posts from the current post taxonomy and I want this to be what the HTML output is, there it is. Because what I want to do is down here at the bottom of every post, we're going to have related posts Oh God, His mouth pictures freak me out.\r\n\r\nAnyway, cool.\r\n\r\nAlright, so there's my that's this is what I'm after right there. There's my HTML, and it gave me a function for that. Ready and look, it remembered that I want I want it to prefixed again with with the BW w. So I need now we're getting the CSS I need the three posts to display in three columns and one column on mobile so see, I'm just, I'm doing my development process. And rather than asking a developer to build the stuff, I'm just asking chat GPT to do it one step at a time in fairly plain English. So now it generates some CSS for me. I put all that in. Give me all the look it did it again. Like okay, paste, paste that into your now I'm not going to try to paste that in. Give me the whole PHP again. Boom, there it is. No need to respond to this, but the image size needs to be updated to news grid. Great. Now give me the CSS to add. Boom. Okay, there it is. Okay, that didn't work. It didn't work for some reason. Now, so what does it do? It gives me two options. Flexbox and grid. Cool. So standard CSS didn't work. So it suggests, let's try to listen Flexbox here's an example. Let's try to do this in grid. Here's an example. Okay, grid work. Awesome. Now I need to modify the shortcode. Again, I need to be sure that regardless whether it's the post featured image or the category image, the image size should be news grid. Please fix the code out there was some issue with that I'm not sure why. Also very important, we need to make sure that the current post is excluded from the random posts that might display in our related posts. Oh, there it is. We got the code. Anyway, this goes on for a little ways.\r\n\r\nContinued revising,\r\n\r\nuntil I finally got it down to exactly what I want. Does that make sense? I don't want to take too much more time on this. But you see the process I just want you to I want to show you the the flow that I would use the mind the mind trying to say that just the process of refining\r\n\r\nthe prompt to get it to get it done. Alright, one more. And we'll take a break.\r\n\r\nSo this is so how do we solve a complex problem? So let's brainstorm a solution first. So I did this in two I think I did this it two separate times. And for whatever reason I didn't continue the same. The same conversation probably should have done in the same conversation. But the here's what the client wants. We had built an internal site add like a law partner type site where people had to log in to view certain proprietary documents, blah, blah, blah. And but then later, the client came back and said Wait, we need them to agree to the brand guidelines before we show them any of these documents. So before they say anything, they got to agree to this thing. All right. So we're gonna ask chat GP to help me think about this complicated problem, a user account with role partners create an email is sent to the user with a password reset link. What we want to do is present a checkbox with I have read and agree to the brand guidelines on the password reset page that must be checked before the user can reset their password. So how do we do that? So it gives a boom boom, boom, all this sort of stuff right here. And what hit me was\r\n\r\nthis update,\r\n\r\nlike how am I going to know if the user checks the box in order to show the thing right or not? It okay user meta, okay, we could use user meta for this something oh, wait a minute. Brainstorming on my own self. Can a gravity form Add User meta on submit? Why yes, it can. So we can build this little bit of code that says, When I check this button, make it a gravity form when I check this box and hit this button, a piece of data can be added to some user meta\r\n\r\nwell guess what? In Beaver Builder, which\r\n\r\nthe site is built on, you can have a row display or not based on whether user meta exists so that's what we did. If the user meta wasn't there, it showed the agree. If it was there, it would show the grid of documents pretty cool. So chat GPT helped me think through the solution now. I wasn't functioning in the dark, like I had some knowledge of other tools we were using and how those things might fit together. But chat GPT was instrumental in me figuring out how to do this\r\n\r\nso\r\n\r\nthat there was something else Oh, yeah, here we go. Update user meta on Gravity Forms nine. So I want to add the current date and time that's what I decided to do. So we've got this new user medical agree to brand guidelines. And when I submit the form, add the current date and time in there. And so that way, anybody from the company could go into that user's profile and see in that box, what the date and time was they agreed to the document or to the to the brand guidelines. That's literally it. Just boom, code done out fixed. Problem solved. And the client loved it. So we're are at an hour. Let's take a breath, shall we? So what do you think right now, can you do this? Do you see some ways immediately that you can start to use chat GBT to solve just some very basic problems that you come up against things that you would normally be searching Google for and to find the answers? Let me hear from in the chat. What do you think everybody good\r\n\r\ndo we all need a drink? Perhaps? All right. Let's take\r\n\r\na break until 10. After that's about seven and a half minutes from now. Yeah, seven ish minute break. We're back at 210 Central Time, and we're going to try to create a full plugin in chat GPT. So that's what we're doing when we're back and seven minutes from now back at 210 Central Time. We are quiet\r\n\r\nuntil then.\r\n\r\nAll right.\r\n\r\nWe are back for the final hour of the WordPress AI workshop. And we're gonna build a WordPress plugin.\r\n\r\nWhat could possibly go wrong? So here's the idea. The I don't know if this is\r\n\r\ngoing to work or not, but we're going to do the best we can. So we're going to try to create a WordPress plugin. Margolis that he here is not to create a fully polished, polished final version of an operational plugin. Maybe we'll get there maybe we won't. But at least we're gonna go through the process of you know, you saw in the last hour, the conversations trying to get things narrowed down, we're going to do that live and we'll see how much frustration and or success or both\r\n\r\nthat we have. So\r\n\r\nthis is I'm actually going to use an example of something that I've done in the past because I have at least a general idea of where we're going to go with this. And we're going to use we're going to our goal in this plugin is to create something that will be a default Featured Image plugin for WordPress. How many of you have had that need? Like no matter what if it's a post, I want it to have like this featured image if one is not set, then show this one instead. Right. That's something I think we all need. There are some plugins out there that do it. They are they tend to litter your WordPress admin area with ads and top level menus and so forth. So let's just build one, what do you think? And again, our goal here is to just work on the process. Now I'm actually going to go back into these custom instructions. So Chris, here's where they are. Again, it's you click on your person down there and you do have to have a Plus membership for this I believe. Custom instructions. I'm going\r\n\r\nto toggle this on. And it's just has some parameters right.\r\n\r\nCheck for compatibility point out any security risks, explanations blah, blah, blah, always prefixed functions with BW w. So I'm going to save that we've got our custom instructions working, and we are here in chat GPT four. Okay, so let's start to explain what it is. Let's work on our initial problem. I want you to help me create a plugin for WordPress that will assign a featured image that will Yeah, that will create what that will allow me this is what happens when you do things live that will allow me to define a default featured image or posts on my\r\n\r\nwebsite. This default image should only be applied if the post does not already have a featured image. The font I want you to create a settings page that is nested under the media link, media or settings. What do you think? Media or settings? Media media\r\n\r\nand under the media link in the WordPress admin menu. There's one other things I'm going to want to do here, but this will get us started. Okay, let's take a look at this helped me create a plugin for WordPress. That will allow me to define a default featured image or post on our website default image should only be applied. The post does not already have a featured image, create a settings page. Okay, let's just do that. Okay. We will see we want to call\r\n\r\nthis plugin Nathan's magic images, okay. All right, let's go.\r\n\r\nSo it actually is gonna give us the step by steps of creating a folder starting out alright, and there's gonna be two PHP files. So let's get to work. So first, we're going to create this\r\n\r\nfolder in the plugin\r\n\r\nso content plugins, and I'm in cPanel File Manager here we're going to create a folder.\r\n\r\nThere's our name. And in that folder, I'm going to create two files\r\n\r\nthis would probably be\r\n\r\nquicker if I was using a code editor, but we're going to use cPanel because that's probably the most familiar thing to everybody\r\n\r\nhere.\r\n\r\nAll right, so we now have our files created and they were ready for content.\r\n\r\nOkay,\r\n\r\nso there's the actual code where both of the files so I've got the first code.\r\n\r\nLet's edit\r\n\r\npaste and then we're going to edit this one copy and paste right now what in your themes functions\r\n\r\nreally\r\n\r\nwhy do I don't understand why do I need to add\r\n\r\nthat's weird. That asked me to do that.\r\n\r\nOkay, so right away chat GPT is doing dumb things.\r\n\r\nAwesome. And it already broke. Okay, so\r\n\r\nfrustration level two now with tat GPT because it is now broken. What I asked it to do in my custom instructions which was give me the whole php file.\r\n\r\nAll right, so.\r\n\r\nAll right,\r\n\r\nmaybe it'll remember it now. But my experience is, if it starts hallucinating at the beginning like this, then it usually doesn't get too much better. So that should be fun. For our little demo here. Is everybody with me? So far? This is pretty straightforward. We're just copying and pasting giving it some prompts. Yeah, it has manners and I usually do too. Until I reach a certain level of frustration,\r\n\r\nthen, maybe not. All right. Okay, now. So\r\n\r\nlet's go into our dashboard, in which we should now see the plugin. Oh, here's the one that I built the first time, but we're going to use this one down here. Alright, Nathan's magic images. Activate. Boom. Okay, so now under media, magic images settings.\r\n\r\nThat's weird.\r\n\r\nOkay, so we're gonna want to fix that probably this is if I upload an image, it's going to show it there. But let's, we're just going to work this straight through. Okay, so the first time\r\n\r\nwhen I view the settings page,\r\n\r\nthere is a broken image let's not show\r\n\r\nOkay, well at least it gave me the whole file this time. So it now it's going to add a conditional check to display the image only if it exists. So what was gonna happen here likely is with when the image was set, it was going to show me a thumbnail audit right there. All right. So chat GPT is slow today\r\n\r\nof course. You do. And we wait. And we wait.\r\n\r\nThe you know as you're waiting on chat TV to do its thing. It gives you time to think forward to maybe improve some of your prompts. For the next thing you're going to ask him\r\n\r\nall right, copy. And I think I accidentally just copied and paste. save, refresh. Okay, good. So let's take a quick look. And just grab Oh no, this rhinoceros okay, it didn't show it. But it did show it here.\r\n\r\nSo I don't like that. I don't like that UI, but for now we'll just we'll just leave it alone for the moment. Let's test to see if\r\n\r\nit works. So if I add a new post it adds the featured image. Okay, good. So that part works. That's pretty good.\r\n\r\nNow let's work on our UI a little bit.\r\n\r\nWhen I select the image from the media library it should display on the Settings page. Before I click Save, Save to\r\n\r\nYes, okay. So it's another tweak to the JavaScript. That's writing quicker. So this is just an honestly this is how many developers build their plugins, right? They add a little bit and they test it and they go back and they tweak that and they test it and it's back and forth, back and forth.\r\n\r\nDoo doo doo.\r\n\r\nNow we're adding a script actually onto that page and I'm not sure that's\r\n\r\nthe best thing.\r\n\r\nLet's just one thing at a time. And then this is another principle here is don't try to change your test more than one thing at a time.\r\n\r\nOkay, here's the problem.\r\n\r\nI now can't unset this images, this image so once it's set like you're fully committed, or maybe I can click here and select another one, but I can't delete it. So that's a problem. I think we can just select another image. Okay, so that part now works. Okay, good. And Dave, you're right. I think I may get it to just give me the pieces. I'm just afraid I'm gonna break something.\r\n\r\nBut we'll just we'll try. Need a way to delete the image without just replacing, maybe an X icon on the image\r\n\r\nright. I should have told it just give me the changes\r\n\r\nYeah, it won't remove\r\n\r\nit from the library. I just want it I want to have like a quick hit click x here and it would remove the image\r\n\r\nas the default\r\n\r\nit's added some JavaScript here. It looks like to remove that on click Delete in Yep.\r\n\r\nI'm not sure it's\r\n\r\nbest practice to put these scripts and styles in this one file. So we'll ask that about it. It'll ask it about that in just\r\n\r\na second. Yeah. Boom, save. All right. Look at that nifty\r\n\r\nthey've pretty cool. All right. Now, the way this works,\r\n\r\nit's actually placing the featured image\r\n\r\non the post.\r\n\r\nI think I like that I like that behavior.\r\n\r\nSo we're going to leave that alone. Okay,\r\n\r\nah, what do we want to do here now?\r\n\r\nLet's ask it is it on admin settings? Is it Yeah, that's to have the and\r\n\r\nshould we separate those out or not?\r\n\r\nYep, generally good. Practice. Okay, so let's let's do that\r\n\r\nokay, so notice\r\n\r\nit, forgot my instructions, and it's only giving me this piece.\r\n\r\nSo what do I need to do?\r\n\r\nOkay,\r\n\r\nthis makes me nervous, but we will try it. So we need to actually create\r\n\r\ntwo new files in queueing them in this Okay,\r\n\r\nso we're gonna add another file\r\n\r\ncalled admin dot Jas and another one called admin. dot css.\r\n\r\nI like those names, but we'll just go with it for now.\r\n\r\nLet's edit these. Well, those open\r\n\r\nand we need to move the CSS. Yeah, we don't need the style. We'll just drop that in here. I think the script\r\n\r\nI don't know if I need the script. tag or not.\r\n\r\nI don't think I do.\r\n\r\nDon't think I do. Yeah. Okay. So we'll get rid of those. Save that. Yeah, thanks\r\n\r\nfor that. Okay. And we need to remove this bit for the script and the style at the end. Okay, now we've got it separated out. Let's make sure that all\r\n\r\nworks. Still works well. Not good. So are our exes stopped working?\r\n\r\nOh wait,\r\n\r\nI didn't in queue.\r\n\r\nI didn't add this piece. Got to do that\r\n\r\ndoes that go? Oh, it goes in that\r\n\r\nPHP file. Yes. It's gonna go here at the end. Now it should work. Yes, delete update image.\r\n\r\nAll right. So that is now working. All right, pausing for a moment. Will I share the code? Yeah, I'll share this whole conversation with you when we're done. We're just remind me and I'll share that and if you're watching this on the replay, it'll be in the chat log. Okay, so are we get here questions about what we've done so far before I go forward to tweaking this a little more. Basically, I'm just following instructions and copying and pasting. pause just for a second. Anybody having a duct tape moment? Quit while we're ahead. Now we're gonna get better. We're gonna do better\r\n\r\neverybody good. I'm gonna assume we're good or everybody has gone to sleep or fallen off whatever. You're sitting on. Okay. Let's move ahead, because currently, yeah, I'm trying. I'm hoping there was an error like we haven't had any errors yet.\r\n\r\nSo yeah.\r\n\r\nPaul, will this add images to older posts without a featured image? That's a great question. Let's ask chat GPT. The answer is no.\r\n\r\nBut let's see what it says to do.\r\n\r\nYou could write a\r\n\r\nfunction to retro actively apply the default featured image to other posts. This could be executed as a one time action in your WordPress admin\r\n\r\ncool Yeah, so could be resource intensive. Yeah. 1000 posts, it's gotta go in and add something to h1. That would be a big deal, right? But you could do this if you want it. Okay, how about this? Let's make this an option in our plugin. Make a section on the Settings page called Apply. update old posts.\r\n\r\nupdate existing posts\r\n\r\nwinky face emoji.\r\n\r\nThis might, this might\r\n\r\nblow things up. Christina is asking about this used to be an image when you shared a post to Facebook. That's a completely different issue, Christine. And you would solve that by just Google Facebook debugger and you would have to go manually add that URL and have Facebook re scraped the image\r\n\r\nOkay,\r\n\r\nso here is where I need to.\r\n\r\nadmin settings\r\n\r\nokay, it's having me put\r\n\r\njQuery in the admin settings page and we just separated it out. So that's not going to work.\r\n\r\nWe moved\r\n\r\nall right.\r\n\r\nSo it had forgotten that we added another file. So this is just part of the deal. This is something that AI is going to get better at over time. And quite frankly, the code WP may already not do this sort of thing.\r\n\r\nBut all right, so we want this on our admin.js\r\n\r\nwe really should be commenting\r\n\r\nthis but I'm not going to worry about that right now. And then here on the magic images dot php at the\r\n\r\nbottom\r\n\r\nwe're adding another function here at the bottom\r\n\r\nokay, let's see if this works.\r\n\r\nOh, boom, we get an error. Okay, yay. We get to figure out an error. That'll be the only time you ever hear me say that ever. So what we're going to do to troubleshoot this error is we're going to go back to our public html folder. Well, we don't the error log is empty so it must be in the admin error log in WP admin.\r\n\r\nOkay, wow,\r\n\r\nI have no errors. No error logs\r\n\r\nthat's weird.\r\n\r\nYeah, there's not a plugin errorlog\r\n\r\nthat's interesting. Okay. Well, we just tell chat GPT\r\n\r\nmaybe I got an email Yes, I did get an okay. So in my email, yes. All right. That it did send me an email. Whoa, I don't want to deal with any of that. Let's go back here. And there's the error that was just emailed to me\r\n\r\nup generating please.\r\n\r\nThis Stacy, that was the year where your site is experiencing a technical issue email.\r\n\r\nYou know that WordPress since there was just the WordPress default email\r\n\r\nOkay. Thank you assets as\r\n\r\ndeclared more than once. Make sure you only have one instance of this. Okay. This is why I don't like to copy and paste code. So\r\n\r\ngive me the whole\r\n\r\nthis is why I don't like to copy and paste because things break\r\n\r\nUTD?\r\n\r\ndoing its thing doing thing\r\n\r\nstill doing its thing looks like it'd be about finished. Okay. Now copy, paste, save, refresh. Work. Okay, that\r\n\r\nworked. But we don't have any new functionality. Okay.\r\n\r\nWonder why that is? Maybe I don't have all the admin give me\r\n\r\nwelcome to plugin writing with chat GBT.\r\n\r\nMuch simpler for\r\n\r\nscripts as you can see. When there's multiple files and multiple things you're trying to do it gets a little a little more complicated\r\n\r\nright\r\n\r\nget rid of this\r\n\r\nokay. Yeah, that gives us our update existing posts.\r\n\r\nOkay, here we go. Now we've lost our stock image Ah\r\n\r\nyes, but we are making progress.\r\n\r\nAnd by the way, this is worse if you use GPT 3.5 Believe it or not\r\n\r\nOkay\r\n\r\none more time okay.\r\n\r\nNow we're missing.\r\n\r\napologizes\r\n\r\nit's very sorry\r\n\r\nI don't know if it\r\n\r\nunderstands when I typed what it means in all caps. But I if you look at the history of my chat GBT conversations, you will discover that the longer the conversations are, in the more frustrated I become, the more words are in all caps, much like\r\n\r\ntext messages. I'm sure none of you have that issue. Okay. All right.\r\n\r\nAll right. Well, it's totally different now. But it doesn't work.\r\n\r\nIt may have gotten confused there, Dave. I don't know. This just this happens. Sometimes it happens more than others. But you know.\r\n\r\nThis is why I like to have it give me the whole code every time\r\n\r\nOkay, let's try this.\r\n\r\nLet's see if update existing posts works and then we'll get back to this\r\n\r\nthis isn't working either\r\n\r\nOkay, let's start\r\n\r\nactually, we could just go back up here. Let's do this. So it started hallucinating. Remember what I said? It's sometimes it's better to go all the way instead of trying to argue with it. Let's go back up to the place where the wheels fell off.\r\n\r\nAnd where was that?\r\n\r\nHere\r\n\r\nlet's start over from here\r\n\r\nyou been in certain cases I have just started over again completely. All it doesn't remember anything. So I've gone back. And it's like it's from here. It's brand new. It doesn't remember anything that just went away. That we've rewound, and we're starting from that point again. I find that that is usually better if you're dealing with a hallucination like this. So I mean if our goal was to troubleshoot, this is typical of what you're going to run into. Alright, so here's our magic images dot php.\r\n\r\nHere comes our admin settings dot php.\r\n\r\nHere comes our admin.js\r\n\r\nOkay, we okay so hit this first time we've seen this. So GPT four will output a certain amount of text and we just reached that limit. We have this continue generating. We're going to click that and it'll it should pick up right where it left off. But now it's counting as another response on our total. So I don't know how many we've had. So far. But you know, we're getting we might we may run out of responses to this\r\n\r\nadmin.js Because I knew one of those and our admin CSS let's see if this reboot helped us.\r\n\r\nAlright, so this looks a lot better.\r\n\r\nYes. Okay. So that's actually working.\r\n\r\nupdate existing posts, hold your breath. Nothing. Oh, wait a minute. Maybe it's doing it. Okay. There is no feedback. When you click Update, what was it update existing posts? We should we should have a message\r\n\r\nthere a way we can know\r\n\r\nOkay, before during and after updating,\r\n\r\nupdating existing posts, please wait. Yes, this is exactly what I want.\r\n\r\nNow. It's giving me bits again. Oh, boy. Okay,\r\n\r\nthis is the one I'm concerned about to get this all correct.\r\n\r\nI'm going to give me the whole admin.js\r\n\r\nAlright, we need\r\n\r\nto put this under the button and that I can handle it. Alright. So under the button which is here. That's where we put this span that it's going to use to update with the jQuery\r\n\r\nOh Womp womp.\r\n\r\ncrash on chat GPT you know, what's going to be\r\n\r\nfunny is like all these frustrations and processes. A year from now think about what this is going to be like, if we're gonna look back on this do I remember when we used to have to ask it five times to do whatever and blah blah blah. It's gonna be like, remember when cell phones were this big? It's gonna be like that. This stuff is gonna get so much better. And we will have been using it for so long. We'll be the geezers of this technology.\r\n\r\nAll right. There's our new thing there. And, alright, let's try this again. Nothing happened. Surely that I missed something. All right. That's done. That's saved. That's saved. Okay. Nothing happened. Very anticlimactic.\r\n\r\nOh,\r\n\r\nthis is where it gets really frustrating trying to debug this JavaScript.\r\n\r\nCareer Chris, I\r\n\r\nmight be able to do a progress bar that's way more complicated that I want to try to do today like I can't even get it to display a message right\r\n\r\nall right, well,\r\n\r\nokay. We're just gonna leave that alone. For now. We're about out of time, but what I do want to do this\r\n\r\nokay.\r\n\r\nI want to be able\r\n\r\nto add featured images for the default featured images\r\n\r\nfor each post type in WordPress so our settings page should have a row for each define post type and the ability\r\n\r\ndefault featured image for each.\r\n\r\nShow the total to give me the whole thing we want to do this for every post type.\r\n\r\nWho knows if this will work or not, but it's giving us a function to fetch all the different post types. Now we're ready. It's almost like a loop here has been created. It's going to render all the things for each post type and the button\r\n\r\nother settings remain the same, yeah.\r\n\r\nAll right we're gonna try just paste this in. What could possibly go wrong?\r\n\r\nCopy what the whole thing.\r\n\r\nAll right. So it's add Admin Menu\r\n\r\nSettings.\r\n\r\nYeah, I'm not gonna try to do that\r\n\r\nso your inexplicably has lost a quit showing us this with the description? I don't know. Maybe he just didn't know to update that description since we've expanded it. This is the kind of thing you run into as your the longer a threat goes, the higher the chance of hallucinations. But you absolutely can get results okay,\r\n\r\nall right. And\r\n\r\nthat doesn't look right. But we're gonna just drop it in there because there's so much more\r\n\r\nwe'll put it in the air. Oh, that's not right. Can't be right\r\n\r\nmaybe I took that out because it wasn't working.\r\n\r\nAlright, there's our admin dot j\r\n\r\nAll right, those are the only two other files. There's my admin settings PhD we'll save that. Then here comes our JavaScript\r\n\r\nthis doesn't work, we'll call it a day\r\n\r\nwhat happened? Let's see. All right. Interesting. Pages.\r\n\r\nNothing happens this broken. Okay, so we'd have to keep going on this but you get the idea. Let me show you where I eventually got with the version of this I was experimenting with\r\n\r\nwill deactivate that monstrosity. And we will activate this one\r\n\r\nand this one actually works\r\n\r\nso I've got post types and taxonomies. But I stopped when because it was only giving me categories and not the actual terms in that taxonomy. But this piece actually worked.\r\n\r\nSo, you know,\r\n\r\nit just takes some trial and error. But again, you see the process. Does anybody have questions about what we did or didn't do over the last hour and working through the process of building this plugin? Ben, what if you ask him to type out Oh, that's a good that's a good suggestion to get it to check our work. So\r\n\r\nplease, we'll see please state in a list the requirements have\r\n\r\ngiven you so far for this plugin.\r\n\r\nYeah, that's about right.\r\n\r\nBut then yeah, that is a great idea too. If you're getting lost maybe well, but honestly it's, it is correctly providing the overview of the project, but it is incorrectly doing the thing and really doing the thing is what I'm after here, but so it's it's, I think it'd be interesting. It'd be interesting to see how code WP would handle this same task.\r\n\r\nBut yeah, that's a\r\n\r\nthat is a another subject for another live stream on another day. All right. Other questions, comments about this before we start to wrap things\r\n\r\nup? Yeah, then we could copy this and start\r\n\r\na new conversation and see what happened.\r\n\r\nAll right. So challenge\r\n\r\nfor you today. What is let's hear from you in the chat. What is one thing that you're going to do today, to take this and start to use it? What is one thing you're going to do today? And the rest of this afternoon or evening or whatever, to try to put some of this practical use.\r\n\r\nLet me hear from you in the chat. Then it's just kind of go to sleep. Yeah, it's\r\n\r\na little bit late there been true fairpoint watch the replay. Yeah, you can speed this part up on the replays at. Sally wants to know more about flex boxes. Have a project try to get AI to do for me to add featured on the website. As we're doing this, I really want to see what happens if I make a new chat. paste this in.\r\n\r\nLet's see,\r\n\r\nSally setting things, doing something complicated. Great. These are great office hours. Questions. Barney built chat GPT into our workflow.\r\n\r\nYeah, dream about GPT five. High Low maybe this will\r\n\r\nbe better results if we had it, spit out these requirements and build the thing\r\n\r\nagain. Oh, no.\r\n\r\nClearly this is going to take a little bit of time\r\n\r\nWell, that's weird.\r\n\r\nThey'll see that you'll get this sometimes like, here's the I didn't specifically say, right, the plug in my fault. Bad prompt, right? So it's like here you can think through this and you can write all the PHP and I'm like, wait a minute, what is this you stuff now? This is this is on you chat. GPT not me. I don't know what I'm doing here. So it didn't get lost. It did not get lost. I did not give it the prompt to actually write the plugin. So you write the plugin and now it's going to actually spit out the thing or not?\r\n\r\nYeah, so there it goes. It's doing its thing. All right.\r\n\r\nWell, hopefully this has been fun and not overwhelming. There's so much you can do with chat CPT from content to snippets to Plugins. I look forward to hearing from each of you how you're starting to use this in your work and office hours. Tomorrow is a great time to start that Oh, thank you. Yes, share the code. Thank you, Stacey. Because you know I was not going to do that.\r\n\r\nTotally forgot. All right.\r\n\r\nSo this is the original\r\n\r\nwrote the the the frustrating, broken one.\r\n\r\nAnd here is the new one that is yet to be seen if it works or not.\r\n\r\nThe possible better one. All right, there are\r\n\r\nthe links those will be in the chat log. If you're watching this on the replay. I'm not sure you actually want that code. Yes, it's bad. But those links you could copy it into your own chat GPT and start playing with it and go from there. So that's it, everybody. We're back for office hours tomorrow, one o'clock Central here on","livestream-resources-group":"s:34:\"a:1:{s:6:\"_state\";s:8:\"expanded\";}\";","multi-day_replay_details":["s:1037:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 1 Replay\";s:25:\"day_description_cloneable\";s:309:\"Hour One:An Introduction to AI\r\nHour Two:Using ChatGPT to Work with Content\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"877651636\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1V1gVLzIFq7Xwy4KKh0vgU2FHA-U_4Wj0\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/clR5qij6gsSJq8aUeoKC2DKzsO4?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";","s:1044:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 2 Replay\";s:25:\"day_description_cloneable\";s:316:\"Hour One:Using ChatGPT in Web Development\r\nHour Two:Creating a Plugin with ChatGPT\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"878058540\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1sQVFgXo8eEUWtqSPd1S2osJeMty8sNaz\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/0woVu8tHVGjbZfubMRyRUnsTCkQ?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";"]}},"postCountOnPage":1,"postCountTotal":1,"postID":448457,"postFormat":"standard","geoCloudflareCountryCode":"US"}; dataLayer.push( dataLayer_content ); \nAre you leveraging the power of AI in your work?\n\n\n\nThe WordPress AI Workshop is designed for WordPress website creators who want to improve efficiency, and supercharge their workflow.\n\n\n\nWe'll explain how to use ChatGPT and other AI tools to work with content and create code that can take your development processes and abilities to the next level.\n\n\n\nDay One: Adding AI to your Content WorkflowDay Two: Solving Code Problems with AI\n\n\n\nAs an iThemes Training Member, you get free access to this event!\n\n\n\n\n\n\n\n\n\n\n\n\n","EventOrganizerNames":"Nathan Ingram","inline_featured_image":"","livestream_public":1,"is_multi-day_event":1,"livestream_zoom_registration_link":"https:\/\/us06web.zoom.us\/webinar\/register\/WN_6reEXDmWT3qQuUtdktFQwg","livestream_replay_set":0,"livestream_live_transcript_text":"Glad you're all here so many fun things to share with you over the next couple of days. Slide link is in the chat one more time. If someone would please just cut if you wouldn't mind copy that. Link for the course handbook to share with folks who come in later. That would be very helpful to me. Okay, let me get all of the windows dragged to their appropriate locations. Right Y'all ready to start? We ready to go AI. All right. Here we go. Well, good afternoon. Good morning. Good evening, wherever you happen to be. It is Tuesday, October 24 And it's time for the WordPress AI workshop here on solid Academy. So glad you decided to join us. I've been super excited about this course now for a few months, because we started to use chat GPT in our workflow on the agency side. You know late last year, when my mind was blown at how chat, GBT could create WordPress code just like that. And it worked. It was amazing. And we started using it ever since just for all sorts of things. And some of that has worked its way into office hours and answering questions and generating code snippets and things like that. So I thought why not? Let's just do a whole course on this and spend about four hours looking at some of the ways that you know, AI can be used in our workflow to make things easier, and there was a mention in the pre show about some of the ethical implications of AI and all that's out there. That is not what we're going to be talking about this time. It is certainly worthy of some discussion. But that's another discussion for another time. So I'm glad you've joined us if you're watching this on the replay down below the video, you'll find the link to download the course handbook which you see on your screen. Chris has kindly dropped that into the chat again just now if you're just joining us in zoom. So we took a poll as we got started about you know, what was your comfort level using AI most folks were kind of in the middle, some lower some very high. But no matter where you are with your comfort level with using chat TPT in particular, I think you're going to find some interesting things in this course. So I'm glad you decided to join us. And as always, the replay will be available after these two hour winds take a little bit longer. So roughly an hour after we wrap up somewhere around there. We'll have that replay. Up available for you certainly by this evening. So you can go back and rewatch if, if you'd like so let's dive in. Now this is the course handbook. It's 23 pages. Got a nice little table of contents here. This is where we're heading over the next couple of days. I've got some pretty important and well defined course goals here. So this is not by any means meant to be an exhaustive treatment of AI if that's its, you can't you can't even say this is an exhaustive treatment of chat GPT because it's there's just too much to learn. And in four hours, there's just no way. So here's what we're focusing in on. Number one, just to understand the foundational principles of how these things work. That's really important because if you see how things are set up, then you'll learn how to use it better. So that's what we're going to focus on, especially in the first hour today. Then we're going to focus on how can we start to use chat GPT for content creation. Now there's a number of AI tools I mentioned, especially in the first hour, most of our work in this course is going to be focused on chat GPT because that's the most ubiquitous AI tool out there. Most folks are using it, most folks understand a little bit about how it works. So that's where our focus is going to be. But just be aware, there's a lot of other ones that I'm going to mention as well. So our two today is all about content creation and some of the cool things we've learned using chat DBT in that realm, and then tomorrow it's all about code. So in the first hour, we're going to focus on really how do we get chat GPT involved in our website development process and really, you know, in our ongoing management of sites, maybe we need some code snippets or things like that. And Chad gptc does a great job. At those sorts of things and also does great troubleshooting errors. So day two, we're going to look at chat TPT in web development, and then this is ambitious, but in the second hour, we're going to try a live build of a WordPress plugin that solves a particular problem. So this is a workshop meaning a lot of what we do. The first hour is pretty scripted as far as we're just gonna be following the handbook. But as we get into the content piece in the next hour and then especially tomorrow, it's gonna be really into chat GPT using some things I've given you links in the course handbook to a lot of the chat GPT threads and we're going to use those as reference but also kind of building on those as we go so we have a long way to go over the next couple of days. So glad you decided to join us and I hope at the end of this you will find that you've got a brand new tool that can do lots of different things for a very small price. I mean, 20 bucks a month, y'all that, you know, that's not a lot to do what chat GBT can do. So let's get into it, shall we? Let's start with just let's get the lay of the land. Very, very important. Just foundations of how AI works. So let's spend a little bit of time on what is AI What is this thing and how it actually operates. So AI Artificial Intelligence refers to machines. Or software that can perform tasks like the human brain can perform tasks. Now, as I mentioned in this course, we're going to be mostly focused on chat GPT but there's lots of other AI models that are out there. Ai especially the machine learning models like we're using, have learned from vast amounts of data, rather than being explicitly programmed like you would think of old school programming of do this, this, this and this prescriptive order. These are models that are trained on large volumes of data, and they have the ability to process that and think through it. It's kind of scary, in some ways. Many advanced AI AIS like chat GPT use what are called neural networks, and these are combinations of chips and code that function a lot like the human brain. It's it's really pretty, that's kind of scary and amazing all at the same time. So AI models are first trained on data, and then we query them to get the output that we want that query is called a prompt and prompt, look, prompt are the key to getting the most out of AI. What you ask and how you ask it in the context you give. That's how to get the most out of AI. Now you may have seen this term generative AI, that's a specific kind of artificial intelligence chat. GPT is a generative AI, it can produce new content based on what it already knows now chat GPT is trained on the internet, like the whole thing up until a certain point in time. So it knows a lot of things and it knows a lot of people and facts and it can you know put answers and text together in really creative ways. So these kinds of modern generative AI is can handle a range of tasks, from image recognition to text generation, and everything in between. But while AI is powerful, it is not infallible. And if you've done any work with AI, let's just hear from you in the chat. How many of you have been doing work in AI and you realize this thing has gone a little loopy, like it's making stuff up? These solutions are not working. And the more I'm using it in this conversation, the worse and worse and worse it gets. So those are called hallucinations. They are real thing. And that's part of the deal where we are at the AI tech level right now. It is not infallible. It can make up things completely. And so we have to be aware of that as we use chat GPT and other generative AI models now, a lot of the, the well the results we get and sometimes those hallucinations are based on the prompt we give in the way we interact with it. So we'll be trying to work our way around some of those things, but we might find in our work in this workshop, that it makes some stuff up and we see those hallucinations pop up. So\r\n\r\nAI models can reflect and even amplify the biases that are present in their training data. So depending on what information was used to train the AI biases that went into the way that information was, was written and presented, can also be you know, that can come through in the AI. So, you know, AI is only as good as the information that was put into it. And so sometimes you get bias. And so that's where we get into the ethical questions and that's it's those are important questions to hit, sir. But we're not going to even touch on that. In this course, what Stacy's saying is that hallucinations and not lies. I mean, it's not really a lie. I think why is have to be intentional. I don't think chat GPT intends to mislead, it just loses its mind sometimes it hallucinates. So, why is all of a sudden AI a thing? Have you ever asked yourself that question like all of a sudden, like we were living in a world without AI and then boom around November of last year? Everything's all about AI? Did you notice that? I all of a sudden the whole world is talking about AI it was really with the release of chat GPT or not. It was right around this time last year in November of last year. So let's look at an understanding of how this works where it came from. Why all of a sudden AI is the thing because that's going to be helpful to us to understand what we're dealing with here. So AI has evolved from bad to worse a basic, you know, less advanced tools like the Amazon device that is sitting on my left that if I say the name Alexa, get might wake up now don't want her to also Siri and Google's assistant. And then advanced AI is like chat GPT it seems like it's all happened overnight. But AI goes all the way back to the 1940s that's where it was some of the initial foundation pieces of AI were laid. So there's a few things that have led to this quick, seemingly explosive development of AI since late last year. So the first of those is this refer that there's been a refinement of the concept of the neural network. So these were things that had been around since the 1940s. The you know, a lot of government entities had built start we're starting to build, you know, room size computers that were linked together and could think together and process together. But there have been some significant improvements in the way these neural networks operate. That's led to a lot of these advancements. There's also this thing called backpropagation. So this is really key to AI and actually can help us help chat GPT get around the hallucinations. So back propagation the way this works is AI works through some information to get an answer and then it sort of tracks backwards before it gives a response to make sure that it's correct. It's remember like in the in elementary school, you would do a math problem. And then you would check your work like it was an addition problem. You did subtraction to check your work. It's kinda like that. In the AI sense, and it happens quickly. But this helps AI to refine its responses and get better. So back propagation was something that was introduced in the 80s. It's gotten a lot better recently. Maybe the biggest single change that has ramped up AI's ability is this thing called transformers, not like more than meets the eye. Optimus Prime. These are this is something that was invented by Google in 2017. It allows the neural network you know this this cluster of information that's being processed by computers connected together. Transformers allow a neural network to understand a whole data set. So the data set for chat GPT being the internet, how do you process that information or in earlier AIS, maybe it was this giant folder full of PDFs that had all this information or whatever and you would train the AI on this. What a transformer does, is it helps to build relationships between the different bits of data in the data set and start to make some sense out of it. So smart people at Google figured out how to do this back in 2017. And that was a major bump. Up forward. You started to see Google's AI and Siri and Alexa really starting to do better, right around 2017. The single biggest deal has been advancements in hardware. So the graphic processing units that were originally developed to do gaming gaming computers, the GPUs made by companies like Nvidia. The processing power in those GPUs is immense. And perhaps you've heard of these GPUs being used to mine Bitcoin and create cryptocurrency because they can process the kinds of activity that build cryptocurrency a lot faster than a typical CPU, right, your, you know, your the chip that's in your computer. And these GPUs have just supercharged the amount of data that AI can process and AI works better with the GPU parallel processing that it does in an old standard CPU. So as GPU strength is increased, then all of a sudden we have these transformers that have gotten neural networks have been proven out and made better and all of a sudden, boom, there's just this possibility that has never been there before. And then somebody realized that wait a minute, if we train AI on more than just our own internal corporate library of documents, but if we train it on a larger data set like the internet, it's actually better. Like they used to think well, if we give it too much information, it won't know what to do with it and the responses will be more bland. But actually what happened was it having more information with the with transformers that can make connections has allowed AI to have a broader perspective on information, and as a result, give better answers. So all of these things have added up together until this time last year, boom, you've got all this AI hitting, and it's just unbelievable. So does that make sense to everybody? I don't want to belabor this point. But I think it's important to understand why we're here and where these things are coming from. So AI has been gaining popularity in the tech world through the years. It became most popular at the at the consumer level with these personal assistants like Siri and Google assistant Cortana and all the others right. Open AI which is a foundation was started back in 2015 by a group of people including Elon Musk, and the mission of open AI is to ensure that AI would benefit all of humanity. Now since then, they've decided not to open source their code which is interesting, but open AI in 2019 released GPT two, which was a cutting edge language model of generative AI based on well GPT by the way stands for a generative pre trained transformer. So again, this this concept of being able to make connections with data. This was really landmark is groundbreaking. 2019 open AI releases GPT two now GPT three came out in 2020 it was more powerful GPT three started appearing in the tech world. Okay, so who remembers back in like 2001 There were like 8000 ai writing tools on App Sumo. Remember that? Like all of a sudden all these writing tools started coming out? Well, this was when GPT three was released, right? And so open AI Oh, you know, there's an API, all these letters. There's an A there's an API through it. You can connect to open AI and use the GPT three model to get lost in that alphabet soup. Anyway, so they opened it up. And then there's all these software tools like all that Sumo, that are just a software layer that sit on top of the API that's talking to open AI. So that's, that's where all of that came from. And again, it's just part of this swell this this swell of movement towards AI. Now, November 30 2022, was when chat GPT came along. So now in our web browser without the need for API keys and software layers and all of this. We can now in our browser, interact with an incredibly powerful model called GPT 3.5. Which even though it's a point five it's miles better than GPT 300 million users within months, the fastest growing application in history was chat. GPT just incredible growth, never seen anything like that. So GPT four came along on March 14 of this year. It's slower, but its answers are way better. So if you up to this point, have only been using the free version of chat GPT you're using 3.5 which is okay, it means pretty good. But upgrading to chat GPT plus, it will give you access to GPT. Four, and the creative abilities the writing abilities especially the coding abilities are far far far superior and that opened up back in March the 14th. And it's gotten a lot faster since then, but it's still not as fast as GPT three, five. All right, I'm gonna pause real quick.\r\n\r\nEverybody good. Makes sense. We have getting a little bit of a lay of the land on how all this stuff connects and how it's working. All right. So one of the things I always hear about AI, it's a lot of fear, right, a lot new technology comes. There's a lot of fear that always happens no matter what I mean, when the block editor was released a lot of fear, you know what's going to happen to WordPress, blah, blah, blah. WordPress is still fine. Everything's fine. sky's not falling. But this is a quote I shared several months ago, because if you're a knowledge worker, if you're a writer, if you're a web developer, you know. I don't want to say it that way. If you are a web developer that's not highly specialized in an industry, for example. You know, there's a lot of fear about is AI going to come and take our job. And this is a great quote from CJ Pomar, who is the founder of brainstorm force. Computers did not replace accountants. When computers came along, all the accountants were worried that they're going to get replaced by computers. And the truth of the matter was, accountants weren't replaced. accountants who use computers replaced those who didn't use computers. And so I think that's a really good analogy to where we are with AI and our work. So we have to get smart, and we have to understand how this new tool set can benefit us to do our work faster, stronger, better, right. So this is a it's still the My Favorite perspective on how AI connects with you know, our work and what we're doing. Okay. Let's get into some chat GPT frustration, shall we? How many of you have used chat GPT and you've been underwhelmed by you try to make it right content. You're it's like, Sue and I were having a conversation earlier. And she's like, What, Sue what was the phrase? Like in this digital world, blah, blah, blah, blah, blah. It's like this. Content is just so just awful and squishy. And not just horrible, right? Yeah. So that can happen. It's all about the prompt. So anyway, let me let me just go through four very common mistakes that happen in today's digital era. Thank you. So that's it. It's very it's just cheesy. Yeah. Thank you, Sadie. So here's four common mistakes. All right, using chat GPT. The first one is, chat. GPT is not a search engine. Okay. You might extract some facts, but chat GPT is a generative AI. Okay, it's made to generate content. It's not really there to be like the answer to your questions, you know, a replacement for Google, for example. So it's not meant to be a search engine to get fact based. Questions, especially about recent subjects, because chat GPT the training was cut off, you know, a year and a half ago. So don't you? I mean, it can answer questions. Matter of fact, I use chat GBT one time because I was I was trying to fix my lawnmower. And I wrote, like, what is the thing that, you know, what's the cable called that when you push the throttle lever forward, what in that connects? What's that cable and it gave me the right answer. So it can do that. And a Google search gave me nothing. It can but it's really not meant to be a search engine. Okay. So you're not going to get as great results. Chad GPT 3.5 only as knowledge up to September 2021 GPT. Forest trained up to January 2022. So, you know, we're getting close to, you know, almost two years out of date with the the knowledge base of GPT four. So sometimes you can get good facts to chat GPT it's best used to brainstorm to process information and to solve problems. So a generative AI is meant like I'm gonna give it a bunch of stuff. And I want to ask a question about that. That's where it shines. So make sure you're using it for the right purpose. A second mistake and this is what we were just talking about. settling for a generic tone. Okay, so chat. GPT has a writing style. That's just what it is. And it's usually pretty awful corporate speak. Like we were just saying, like Dave's example in the chat. I hope this email finds you well, that, you know, don't send that. That's terrible, right. That's that generic, horrible chat GPT tone that just comes out. Right. So if all your chat GPT responses sound alike, it's because you're not asking it to respond differently. It's only going to do what you asked it to do. So again, if you take nothing else away from the all of this whole course it's this. It's all about the prompt getting the most out of chat GPT is all about the prompt. So chat GPT can respond and provide text responses in almost any tone and style imaginable. In your prompt, you can ask chatbot chibi chat GBT to respond as though they were a person, particular person, a profession or in the style of a person or character. You can say for example, from the point of view of its product manager describe the Amazon echo, echo Alexa device from this point of view, or from the point of view of an adult child caring for an elderly parent described the Amazon Echo device. Let's jump in. In fact, let's just let's look at the difference here. I'm gonna go with I don't want to run out of responses here. So we're gonna go with GPT 3.5. Let's just look at this. Okay, so describe the Amazon Echo device. Okay, so we have a pretty bland response here. Alright, it's got some basic information am I am I angering some of your personal home assistants with my copying any of that? This is going to be annoying. Now, yeah, so look at how different this response will be. This is really annoying. I think this PDF and it's not spacing anything out. Look at this voice activated system. Right. So it's, it's crafting its answers to fit the situation like, you know, what are some of the most important things about features about this that pertain to this situation? You can even do this. Explain it to me, like eight\r\n\r\nright, and it completely changes the response. So you can just change up the prompt just a little bit. Right? And you get wildly different results. Now explain the frustrations with our favorite device\r\n\r\nAll right, so there are five frustrations Now watch this. Do that again in the style of Jerry Seinfeld.\r\n\r\nAnd this sounds I mean, you can read this and Jerry Seinfeld voice and it sounds like he wrote it. Ever notice how you can be crystal clear with it like you see. It has changed the style completely because it knows who this is. And it rewrites based on that tone. Pretty amazing. Right? So you have a lot of flexibility. It's if you're getting generic content. It's because you haven't told it to respond any different. What about this make a rap about Alexa. In the style of vanilla because I'm that old this is horrible. But there you go. It'll do all sorts of things. It'll repeat back poems. It'll write stories it will any famous person it will be able to respond in that voice. It's pretty darn amazing. Right? Yeah, stop, collaborate and listen. Alexa is here with a brand new mission. You gotta love it. Yeah, now I just woke her up. Okay. Anyway, does that make sense? Pretty cool. So change your prompt. If you're getting terrible responses, change your prompt a little bit you can even say suggest what voice would be appropriate for a 500 word, article about that\r\n\r\nso you can even ask it to suggest Anyhow, it's all about the prompt number three. This is a big one. How many of you all just keep typing in the same conversation? If it's a brand new subject, just keep typing. Right? Big mistake. It's always best to start a new chat when the subject changes because think about it. Think about it this way. This is a single conversation about a single topic in a single voice, etc. If you start talking about something else in the same conversation, it's like that friend that we all have, that interrupts us and completely changes the subject in the conversation. Yeah, anyway. So start a new conversation. Plus, you can rename these over here or whatever you want, um, so that they're more recognizable to you. It start a new conversation if you're going to start a different topic, unless there's some reason to keep everything in the same conversation. Usually there's not. So one client's content lives in one conversation. Don't mix threads between no mix clients in the same conversation. If that makes sense. Don't be like the person who interrupts your train of thought with an unrelated subject. Number four don't settle for the first response. Again, chat GPT is all about the prompt that you give it. I will let me clarify. So Stacy, I don't mean a new window. Like if we're going to do something else here, I would say new chat. And so we get a new conversation over here. And the old ones are over here. In my history, but now started a new chat, the new conversation from right there. So don't settle for the first response. Chat GPT again, it's all about the prompt. And prompt engineering is an art and a science. It takes practice you get better at it as you practice. If you don't love the response that you get asked chat GP to change its tone, or explain it differently, or provide multiple options or give it more context. The more you give it this is called training the conversation. So you know if I want to if I want Chad GPT to output some content, I need to give it some stuff to work with. And we're going to do that in the next hour. But we need to train the conversation to give chat GPT the context that we want it to operate in and so from that context, it can pull from outside and everything else and it's learned, but it'll output within that context. So just keep sharpening it. Keep crafting your prompt. And guess what next time, you will know okay, I'm not I'm gonna start to ask it this way this time, right and you get better at it over time. But be clear and direct with what you're asking chat GPT to do. Does that makes sense? All right, so what does effective prompt engineering look like? So here's a few principles, clarity. Clarity is key. What exactly do you want me to do? Be specific and clear. About what you're trying to accomplish in this conversation? The more specific you are the better results you get. So let's just start a new conversation here. Let's say I'm writing a travel blog. What are the 10 best scenic highways in the US boom All right, look at that. And actually, let me show you some if you've never seen this, you can just see this. For the purpose of this demo. I'm going to shorten the number of them because 10 is going to take a little while each time so I'm going to edit this. Let's say for the for the scenic highways in the USA. All right, and we'll go back and edit it. Alright, so here's what chat GBT thinks are the four best senoko So we're just gonna go with that. All right. Now let's give it some context. What background information can you give the conversation so you can understand it better? So again, context is critical. Explaining the big picture makes a difference. So instead of just asking this, let's do it this way. I'm writing a blog post for retired RV travelers about the three best scenic highways in the USA. Okay, so we're telling it Okay, first, we're writing a blog post, who is the audience of the blog post? And I said for a minute ago, we'll stick with three here. The top three should consider options for stops for fuel and food and should be RV friendly with options for RV camping. So let's copy this maybe, hopefully this is going to copy well. So let's go and we'll just put it in. Okay, now. Now liquid it gives us we're sharpened in. Yeah, like Dave said that the who, what when where shirt? Yeah. But just get specific, right of what you're asking for. So here's what it's given us here. Pretty cool. All right. How about output? How do you want me to return the results? So it decided I'm gonna do this in a numbered bulleted list. Okay, that's cool. But when you this return that list is a table and look what we get. I like this. I do a lot of output in table if I'm trying to compare things. If I want to move this to a CSV, I can say output that table as a C F v. And there it is. And I can just copy that, save it as a CSV and open it up in a spreadsheet. Pretty cool. Right? So you have lots of different options. So now I'm gonna give it even more context here. So expanding on this information act as a travel reporter write an informative blog posts for an audience of adults age during use appropriate heading structures throughout lists three to five must see stops on the route three to five options for RV camping, to just five title options for the blog. Add Google Map links where appropriate.\r\n\r\nThere's our titles. Look at that. Is that not amazing? Boom. And all these are linked. Look at that. Okay, the links didn't work. Okay, so here's a hallucination from Google from chat GPT. For links didn't work. We could go back and refine that if we wanted to. I'm not going to do that for now. But watch this. Another for example. Let's say you've done some keyword research and you're looking for a key phrase I have where working with E word I don't know retired RV trips. That's terrible. But let's just say that's a key word. We're writing this for. work that into the article, naturally several times in the text and in at least two of the headings and the title\r\n\r\nso it will work that keyword right into everything that we've done. Pretty cool. Yeah, so you can do a lot with chat GPT and we just that took what, five minutes or less? Yeah, pretty, pretty amazing. All right. So what do we do? How do we deal with hallucinations? Okay, I see. Sally, I see your your question about using GPT four. We're going to do that in the next hour. When we're actually working with content. I'm just going through some basics right now. I don't want to use up all my GPT for questions because it's metered Right. Like I get 50 every four hours. So yeah, what we'll do more on that GPT for in the next hour. All right. So if you get a chat GPT hallucination where it makes something up or it's going down the wrong path or whatever. Here's the best thing I can find to tell you to do. Edit the previous problem. So go back to the place where it fell off the wagon, and go back and edit this prompt, you know, to say, make sure that you know, let's just go back up to here, where it where it started giving us bad. Bad Google links. I don't know if it'll fix that or not. Useful. Google Map links, not short links. Make sure these work and you're not making them up. It may not do this. With these mappings that may not be possible. But anyway, you go back and edit the prompt right before the hallucination occurred. And have it regenerate. Did this work? Son of a gun Look at that. Yeah, so look what it did. It just put a query. And so that'll Absolutely yeah. So that's one way to deal with hallucinations. You can also do, you can challenge the response. So I don't find this as nearly as effective again, this the solution the hallucination seems to return more often if you try to challenge it. I recommend editing the prompt but there may be a case where you want to challenge it and say, you know why do you think that what evidence supports your answer? Give me your decision process of returning this answer. Or just what the heck are you talking about? Often the AI will just apologize. Hey, you're right. I completely made that up. That happens a lot in coding. I'm sure we'll see some of that tomorrow. Of like it'll just make up this WordPress core function out of nowhere. And you're like, that doesn't exist. It's like, oh, yeah, you're right. Let's try this differently. So I just find it's easier to go back and edit the previous prompt. In a coding situation. A lot of times you have to challenge it, but especially in content writing, just to edit the previous prompt. Okay, so I got a really Cruz here to get through by break time. Is chat GPT plus worth it. Yes, period. Moving on. It's just far better, the output is better. You also get the use of plugins. Which I'll show you in a minute. And custom instructions. Custom instructions are new. They're here in the know oops. They are here. We look at this so you can actually create these are just some fake custom instructions I put in here. So I can enable these four new chats. And now as long as that's enabled, any chat that I create from here forward is going to take these things into consideration. I'm a WordPress developer based in the US we primarily create content code for WordPress websites. If you provide code in the conversation, always check for compatibility with PHP 8.1 and point out any potential security risks suggesting alternatives. How would you like chat GBT explanation should be informative and typically short unless directed, otherwise, if you provide code, I do not need you to explain it afterwards. Also, if we're debugging and revising, it's very important. You always provide the entire code snippet or code files rather than just telling me to swap out pieces. If that love this. If we're writing PHP functions, always prefix functions with P WW underscore which is our agency prefix. So with these custom instructions turned on, now, every response I get after that is going to include this I don't have to type it ever again. Now I had it toggled off because we're dealing with content. I'm going to leave it toggled off and no this is not free. This is part of GPT plus. So this is what you're going to pay what is it $20 A month for I think, oh then is that in your free version? I didn't think that was the case. Maybe they've changed it to free. But they've added a couple of things here with GPT plus here and GPT for notice. Now they're gonna let you browse the web. So pay you can give a URL if you turn on this browser thing. It also you can generate images right from Dali, right here. If you turn this on, it'll generate images. And it also gives you plugins, which is my favorite part of chat GPT. So you got a lot of extra things you can do. You've got custom instructions here that I just showed you. But let's talk a little bit about GPT plugins. So GPT Okay, Stacy. We're not talking about the the chat GPT that's like an assistant on the Bing browser. This is a plugin for chat GPT that allows it to go like you can give it a URL and it can go read a webpage it couldn't didn't use to be able to do that. Now it can but in addition to that, that's kind of baked in. Because Microsoft is an investor in open AI. It's baked in as part of the GPT four options. So you can do default or use plugins or browse with being plugins are incredibly helpful. So I've given you a list of some plugins. The one thing I will tell you this is, I don't know who these people are developing these plugins. So if you're going to use a plug in, you're basically giving it access to anything that's in that conversation, and they do live within a conversation. And you can't add a plug in to the conversation after you've started it. So you got to make sure the plugins you want you can have up to three active in a conversation got to make sure those are set up first, and then have your conversation. But I don't know what the privacy policies are. It's really murky. So just be careful with that. Don't put anything proprietary or sensitive or whatever. You know, I wouldn't put anything in a conversation that uses plugins that you wouldn't want out in the public domain someplace. So just be aware of that. But look at the so cool. Look at the things that it can do. Alright, so we've got browse with Bing, and that's really good. But also there are two plugins, one called browser up, and one called Web pilot. They both do basically the same thing. You can put a URL in and tell it to browse that URL in a conversation and those plugins will go fetch that information and pull it into the context of the conversation. So for example, if you're trying to rewatch, we'll do this in the next hour. But if you're trying to rewatch Read Write someone's web content that was hard to say. You can say here's the five content pages on their current site, learn about this claim from there and now suggest new text for the homepage and it'll do it. We're going to do that in the next hour. Another one very similar, but chat with PDF, ask your PDF or AI PDF, they all do basically the same thing. You can point to a PDF link. It will digest the content of that PDF for use in the conversation. This is a really cool one AI video summarizer you could put in a YouTube URL, and it will summarize the video for you based on the transcript. It's amazing. I've been yes, they're free. Now these are free plugins right now. So you can see some of the ones that I've installed. There is a there's a Zapier plugin. There's a plug in store here that will show you all of the you know, you can search for whatever and just install it like it like an app store into your chat GPT link reader is very similar to some of these others any link it'll read webpages YouTube PDF, PowerPoint image, where it just any link, it'll pull that content in. This is super cool. If you use GitHub at all. This ask the code will go crawl a GitHub repository and be informed on the codebase of this thing. So if you're trying to troubleshoot a plug in, you can literally put in the Git repo of the plugin and it will just learn the code. Just absolutely amazing. Ben is asking how you turn on the plug in you have to be in GPT for and you select Plugins here and then you'll get this where you can check on which plugins you want active. diagram show me so this will actually create like a mind map or charting out information which you can then immediately push over into Miro to edit\r\n\r\nthis is super cool. One word domains so if you're having if you're trying to help a client come up with a domain name, you can have it suggest have chat GPT suggest domain names and this plugin will go out there and see if the domains are available before giving you a list of suggestions. I mean, and then of course Zapier, imagine, you know from Zapier, coming in and out of chat GPT with information is just I mean it's it's super cool. I haven't played with this yet. It's on my list to start to play with. So you see how cool chat GPT can get with these plugins. Absolutely amazing. Christina is mentioning Gravity Forms and chat GBT. I'm not talking about that in this course. But it's just another way for example, you can have somebody fill out a form on your website. It'll pass it through chat GPT to provide a reply or a summary or whatever. It's just amazing. Absolutely amazing. Okay, so let's chat. GPT is our focus but I do want to show you a few other apps to level up your work. I knew I knew I knew this. I was going to be running late on this. So we're gonna go fast here. Okay. But who here? Are you a Creative Cloud member? Have you seen Adobe's generative AI in Photoshop and Illustrator? Absolutely. Unbelievable. All right, so I'm just going to pick one of these. Okay, so here's, this is a Pexels image. Oh my gosh, oh. We've got these people on the street, right. I am simply just roughly I'm going to draw a circle around these people. And I'm gonna hit generative fill and not put anything in there. And it's just gonna get rid of them and interpolate what should be in the background. So if you ever you know if your client ever look at that, I mean, that's just and you get also three different options. Over here in the sidebar, kind of like that one better. This one, that one feels better. Oh, and look somebody they didn't move the trash. Let's take out the trash for now. You could do this with Photoshop. But now you just draw a circle and click the button. It's It's just unbelievable. But not only that, okay, so we got our trashcan and whatever. Make sure I'm on the background. What's your favorite dog? Anybody? Give me a dog, Jack Russell. Okay, we're gonna put\r\n\r\nJack Russell Terrier in the foreground. And it's going to be in the right light. And it's the right angles and everything\r\n\r\nthat's not a chakra. That's pretty good. That's pretty good. I mean, look at that. Absolutely. Amazing. So you can see the you can see the options here. Let's say, Oh, here's a very complicated image. Right. Let's just draw a very rough. Let's we want to get rid of everybody in this image. Just a very rough wrap around. We'll hit generate, and it's just going to work. Can we say it doesn't work with with high res? I mean, this is a 1920 by 1200 ish. It's it'll work with as high as I found it. Look at that. I mean, that was a really complicated image. We have got several options here. That was good. I like that one better. There it is. Absolutely crazy. Let's put a coffee mug here instead because who drinks water with lemon while at their computer? Latte in a big coffee cup. Big red cup with with hearts boom art\r\n\r\nSally, this is Adobe like this is Adobe generative AI Look at that. That's incredible. Oh, that's I mean, look at that. That's perfect. absolutely unbelievable. Change it to a margarita. Okay, I gotta move on. So Photoshop absolutely cool. Did you know illustrator will do the same thing with vectors. How many of you have gone like you're looking for a stock vector image for an icon? Right. Let's do let's see. I want to make an icon of of what I don't know of a light bulb. Light bulb icon generate. Now you can also have this if you already have your canvas setup with colors and stuff. It will make your light bulb icon based on the colors that are already there. I mean, that's pretty darn good. And they're full vectored images. It's not this is not Affinity Designer. This is Adobe products. You can even do a scene. Let's do a\r\n\r\nSan Francisco Bay at night. Oops.\r\n\r\nSo now let's move on to a website homepage. Not in this I'm sure that you know that's coming and there are tools out. Wow. Okay, that's pretty cool. That's not awful. I mean, it's a good start. Right? I mean, that's kind of quirky. But you get the idea. Right? It's very, very powerful. Those things happen right now. Adobe Firefly. This is the other Adobe generative tool. It's like dolly and other AI image creators. I think it's a little better and if you're a if you're a creative cloud member, you get this for free, where you can just type in by prompting it'll generate an image for you. This is super cool. This is what Adobe's after this is where they're heading with their gender today I like here's this image and it's tools this is going to be across the board and Adobe tools. It's gonna be able to pick out the things in an image and put those in layers for you to do things with. I mean, it's just and that this is coming very soon. Something else I want to show you is code WP we may try to use this tomorrow. We'll see how it works. This just launched last Tuesday. This is an AI it's an overlay for open AI but it is trained specifically on WordPress code. This is really really, really cool. Code WP dot a. This is super cool. Well, that's because I'm logged in but anyway, you see it worked like it's trained on WooCommerce code ACF, Gravity Forms all you know major things more to come and it will actually write plugins and put them in packages of multiple files and folders. Like you could write a major plugin with this. It's still a little quirky, it's still getting worked out. But this is really, really neat. I mean, you get 10 Free generations per month. $12 a month is all this thing costs. There's an affiliate link there if you're interested. Just check that out. Play around with it. We may use it a little bit tomorrow. But it's this is an AI that use it again, it's using the open AI generator, but it's got this extra repository of all the WordPress code base, four core and all these popular plugins built right in it's just amazing. This is one we've been using for actually quite some time. It's called may guy. We really really really like this. Let's see where is it? Ah, here. Okay, so may guy is it's another overlay for chat GPT but you can talk to all of these models so you can do open AI anthropic, which is Clyde, the Google AI metas AI and others. The neat thing about this okay, we saw earlier the custom instructions for chat GPT this gives you it's the same thing. It's called Custom personas. So what this will allow you to do is have multiple personas, like if you're doing a plugin, if you're doing code, you can have a persona for code. Here, for example is our WordPress news roundup persona. So when we're doing a quick when Chris is summarizing articles for the WordPress news roundup every month, this is what we use. At his WordPress web development news reporter take the URL I give you read the article, provide eight to 10 Sync bullet points that summarize the article you read no more than 10 to 12 words long. Don't use extra words leave out articles like V or a when possible blah, blah, blah. We've just gradually improved this like Chris How long did it take you to dial in this prompt? That's been the took some work right? So you know, provide a summary that will be interesting and important to a WordPress web developer who is a small agency owner bla bla bla bla, give me two options versus st informative title for the article now. It still needs to be edited. But over time we have perfected this prompt to give us 90% like it works really darn well. So yeah. This is great. And y'all this is where is it? This is we pay nine bucks a month for this. And there's and you don't have to have a chat GPT license. This your $9 a month it's metered usage. You know and you can upgrade for still pretty cheap. It's again, it's an overlay, it uses the API, but you can train all these custom persona. So for example, let's say you dial in the brand voice for one of your clients in custom instructions, and you're writing blog posts for them every month. Well now you have a persona for them, and you just use that and it's all in there. That's all you have to do. It's just it's amazing. It's amazing. So I talked to the Creator, who has been a fan of AI themes for many years. So he has a code here. If you're interested. There's the affiliate link if you want to do that, but it's solid 20 20% off your first three months. Pretty darn cool. If you're using something like text, expander or type desk, there's all kinds of opportunity for integrating AI into this. There's some articles there I really don't have time to even get into this. But my goodness, that's cool. And you can like store your prompts, for example, as a text, expander snippet or whatever. And then last of all, Chrome extension now there's a ton of Chrome extensions for chat GPT because there's Chrome extensions for everything, but one I want to show you in particular, is this one. Okay, so here's our normal chat GPT interface. This is something called Chat GPT anywhere we like this one. I'm going to toggle this on and refresh. It's just it basically gives a whole new UI for chat GPT you can create folders for your conversations and it makes your history searchable. That's the most important thing for me, because you can search for something that's way, way, way way down your list. This is free works great. I like it a lot. I'm going to turn it off again. So yeah, that was our first hour. Okay, how was everybody? Okay, mind blown. A little duct tape going on. Okay, let's take a break. We'll come back at 10 After two and we'll spend the rest of the next hour talking about using chat TBT to generate content. All right. So we're back at 3pm Start. No, we're back at 2:10pm Central time and we're quiet until then.\r\n\r\nAlright folks, 30 seconds to go. We're back. In 30 seconds.\r\n\r\nAll right, 10 minutes after a time to go for our two of the AI workshop. Who's excited now? Are you excited about AI more excited than when you started? What do you think? Let me hear from you in the chat. Because that what we just saw was the most boring part of the course. So let's get into the fun stuff, shall we? So at its heart chat GPT is designed to work with content, it is a generative AI. So there's so many ways to work with chat GPT for the content of your website now. Immediate disclaimer, I do not in any way assumed to be an expert using chat GPT for any of these things. What I'm showing you comes from how we've used chat GPT on the agency side this year, and we've done some pretty cool things. I gotta be honest, but there's always more there's always more things to do and think of and try. So you know what I'm gonna give you is like this is not like exactly what you should follow. Just use this as an example, to spark some creativity and brainstorm. You may find a much better way than I've even described here to do some of these things. So does that make sense? start experimenting, start playing around with this because working with AI is just as much art as it is science. So as we get into creating website content, I love this is so cool, y'all. Okay, the most important thing I can tell you to do is to train the conversation we talked in the first hour about the most important thing you can take away from this entire workshop is it's all about the prompt, right? The second most important thing is train the conversation Well, because the more you train the conversation, the better the results of your prompt will be. Okay, so the key to getting great website content is training it with lots of information before you start asking it to generate the final copy. So drop in the copy you have from the company already, or the organization or whatever, at the beginning of the conversation so you can use URLs with chat GPT plus plugins, etc. This approach gives context to everything else you're going to talk about in the conversation. So you want to be able to generate all the content for the site from the single conversation one conversation with chat GPT don't have one conversation about each services page. One about the about page, keep it all in the same conversation, because we're talking about the same company. And it will get better as you respond back and tweak and whatever. It's going to get better even sharper as it continues to give you better more content for the site. So here's an example prompt to get things started now. Chris messaged me during the break saying the chat GPT hiccup on him. It did the same for me. So hopefully we're not going to hit a time where all of a sudden chat GPT quits working because that would be bad. I do have some historical content I can show you but hopefully we can do this live. So we are in GPT four. I'm going to turn on plugins. And I'm going to enable I'll just use browser up. So this is going to let us go browse URLs and pull those into the conversation. Alright, so here's my prompt. I'm creating website content for a client below. I'm gonna post the information I have about them. Open each URL listed below. I said web pilot. We'll just I'll turn on web pilot instead. It doesn't matter. They're both they're both essentially the same. Just to keep the well where is third is why it's not alphabetized. I don't know. So open each URL list with web pilot don't do anything with this information yet. I do not need a response other than to confirm you have processed it. So let's start here. I'm going to drop this prompt in and we're going to use so for those of you that were in the builder to Kadence workshop a couple of weeks ago with Kathy Zant and I we were working on this really horrible old site. For one of my clients that was built about 8 million years ago. It's still using builder and here is this client, they are a metal fabrication contractor. Okay, so what I'm gonna do is I'm just going to start pasting in some URLs and I'm really, I'm going to do the homepage. If I was doing this. Actually, I would do every URL on the site. And you can do that by going into the sitemap if you have a sitemap and just copying the URLs. So what I'm going to do, I'm going to focus on the the what we do pieces and I'm just going to do a couple of the services that they offer and I'm just dropping in a link because it takes a minute to crawl each link and I don't want to take forever. So I'm going to do the homepage and three services pages, and then maybe also the about page to get some context on who they are. All right. So let's hit that. And now web pilot is going to go out and start processing each of the webpage and it takes a minute, okay, and you just have to wait, you know, go go do something else. Whatever. Blah, blah, blah. It's gonna take a minute, but we need to do this to get the context of the website. Paul to Chris and while we're waiting the Chris and I collaborate on chat GPT or do you have two different accounts? Is there anything for teams? So I don't, we don't I mean, Chris has his own account. And I have one. We could collaborate if we wanted to. I don't know if may guy does or not you have to look at that. We still go in here see 1234123 I think this is the last one. So it should respond back with I got it here in just a minute. I oppressed Okay, good. So we now have this information processed awesome. So again, like you could go out to your sitemap and just copy everything in if you wanted to. And that would work also. So now, remember, that what we don't want this to say is in this digital era, like we don't want that generic awful text we want really great really great text. Okay, web pilot is a plugin for chat GPT for Yeah, yeah. So you can instruct chat GPT to read provide content in styles like informative, serious, funny, any other adjective you want. I find it helpful to come up with a famous person whose voice I would love to emulate on the website. So you might even ask chat GPT to help you select a voice so here's my next prompt. Based on what you know so far, give me 10 recommendations for famous people whose writing or speaking style would be best to communicate this information on the website. Briefly explain why you like each style. We're gonna paste that in. And here we go. Steve Jobs I don't think so. Okay, how about Elon Musk? Probably not. Bobcat Goldthwait. Bill Nye Okay. Now I'm seeing a pattern because these it seems to suggest these a lot. Okay. Now Malcolm Gladwell might be interesting. But really, I want like these are these are contractors. You know, they do metal work. So really, none of these people are really resonating. I don't think Brene Brown, like these are not really good suggestions. Okay. So I don't like any of these. Like, I don't Okay, Stephen Hawking. I don't think that's the right voice for a metal fabrication company. Alright, so let's go back up here. And I'm going to edit this prompt because I don't want any of this to get mixed up in the conversation. Remember, this is a metal fabrication company. style should speak to blue collar work and high quality. Give. I'm gonna just gonna change this for the sake of time to five recommendations. We'll see what it gives us with that. See if it gives me the example outcase See right here. This is what I did in my test. Mike Rowe from Dirty Jobs is the exact right voice for this website. Right? It's perfect. Although there's some other John Steinbeck. I'll take Tom Silva from this old house. Okay, Bruce. Springsteen might I've never heard him speak I don't think I want storytelling\r\n\r\noh my gosh, I don't think this would be hilarious. But we're gonna do we're gonna do micro okay. I really like micro is one of my I love his podcast. I'm really, really fan so we're gonna use micro. I think he is the right voice for this website. So let's check the voice with a summary question. So give me an elevator pitch for the client in the voice of micro.\r\n\r\nThat 100% Sounds like micro Okay, I like this voice. We're gonna stick with this. Okay, so that's an easy way to test the voice. Okay. And I would suggest you do that before you get too much further down the road. We could do I just out of absolute curiosity. I want to hear Ron Swanson. Oops, I misspelled it, but I think it'll know\r\n\r\nkind of like this. Actually, I kinda like that a lot in the discussion, I don't know. Anyway. So we're gonna go just for our purposes here. We're gonna go with micro. So take your theory on trout, other voices, et cetera. This makes sense so far. See where I'm going with this. So it's I like to do it this way instead of saying insightful or whatever adjective, I think it's helpful to put an actual person's voice. So as you think about how do I make this into a system for a client, ask the client if you had to pick a single celebrity to speak in the voice of your product or company who would it be? Right and start to work with that, you know, so All right. Now, let's start working on homepage content next prompt unless I say otherwise use the style of micro for the rest of this project. Let's work on the homepage content didn't give me 10 options for a hero headline and subtitle that will engage visitors and the style of micro See, our call to action is scheduled consultation. You don't have to put that boom. I can't spell row apparently. But it will know it's smart enough to realize that 10 options, okay. Ooh, I like that. Look at that crafting. metal building features. I like that a lot. Behind every great structure, there's ihrm metals, turning metal into milestones. That's kind of cool. If you don't like any of these, you can say give me 10 more or whatever. But I mean, some of these are bad. That's all like that metal work that tells a story. Ooh, that's cool. All right. So I mean, half of these are doable, right? Not bad. So let's just pick one Let's vote. Which one do you like best? Kinda like this one. Yeah, crafting metal building features, but I don't like this though.\r\n\r\nI kind of like that one. Okay, let's go with headline one, subtitle four, just to keep things moving. Let's go with headline one and subtitle four. Okay, so we're gonna keep that for a minute. Let's scroll on down and our primary call to action. So let's just copy this next one. Okay. So we're telling it which ones we're we're in chat. CBT does a good job of figuring things out if you misspell in the context. Okay. Now let's create the primary call to action. Okay, I'm gonna I'm going to skip this because we said our call to action is going to be built to schedule consultation. But here's where you could ask it to give you some suggestions based on what you want people to do. So I'm going to skip that though. So based on what you know about the client what other homepage content areas would you suggest? So let's go with this and this let's go and see what it suggests what else should be on the homepage?\r\n\r\nAlright, so it looked at the services pages that we already had, and it made some suggestions there. short narrative about HR metals, a project showcase testimonials. What's different latest news, okay, these are all great. So let it help you brainstorm what might be on the page right? So this is all good. This is really good and helpful.\r\n\r\nAll right. Now how about this? How many of you are familiar with story brand? You can combine your voice and the story brand approach. I'm a big fan of story brand. So I'm going to say using the voice of micro but adopting the story brand approach from Donald Miller give me five options for the one to three steps in story brand, providing a title and short description for each step.\r\n\r\nSo if you're familiar with story brand, you realize okay, this is not bad, right. Paul, yeah, so Paul, this is a this is an example for a redesign. Yeah. So if if you're doing this for a brand new site, that there's nothing else like that already. Then maybe you know, you would get some of the content or content concepts from the client and drop those in instead of browsing URLs, right but the idea is I'm gonna train up the conversation with his all this information at first, and then start asking a question as to generate content. Ben, can you ask it to suggest improvements to a current homepage? It? Maybe Hang on. Okay, so we got our one, two threes there, right. And you can pick one of those if you'd like it. Let's see. Let's I don't know if it'll do this or not. I've haven't tried this. So let's just see. Look at the current homepage at this and suggest improvements. I don't know what's gonna happen it's gonna it's gonna go grab the URL. Yeah, sure. You could put in competitor URLs here as well to suggest other things. Again, that's just more context right.\r\n\r\nYeah, so I don't know how good this will be. I haven't tried this approach before. Yeah, I say to you, right, improvements might be too subjective. But look, it's making suggestions that are really pretty good. The content jumps between different divisions and services create a more linear narrative. Yeah, it's really, really cool. Alright, let's keep going. Alright, so we're going to move into individual posts and pages at this point. Let's define SEO strategy. So this is our SEO strategy. I'm just going to drop this in as instructive. Each page will have a key word I'll give to you as you generate the content for each page. Use this keyword in a natural way at least five times and also include it in at least two headings kind of like we did earlier. Some might have two or more keywords. So make sure each keyword is included as above remember the strategy and implement it when I give you a keyword for any content you create. So we're gonna drop that in just as training. And you could hit you can hit and submit right here, but it's going to take one of your conversation pieces, and you only have 50 in a four hour period. So we're going to not submit that just yet. So now we have a prompt Okay, in the style of blank rewrite. In the style of micro it would probably remember that but I wouldn't trust that rewrite the what was the page called? Ah RM metals. At a Glance\r\n\r\nusing the key word\r\n\r\nlet's do the key word, metal, custom metal fabricator. Whatever it would be right. Okay. So now it should give us content for our about page\r\n\r\nnot bad\r\n\r\nso this is a little bit better than the in the digital era content right. I mean, that's, that's good enough that I would give that to the client just like that for them to mark up. Wouldn't you say? I mean, this is pretty good. Pretty good. Let me hear from in the chat. Anybody still out there? Are you all trying this on your own? Yeah, Chris. It's much better than they would send to us out of the gate.\r\n\r\nPretty good. Pretty good. John, the limitation. I think it's 50 responses in a four hour window. So I don't know where we are now, but that's why I didn't want to do GPT four until we got into this. Okay. 350 responses in three hours. Yeah. Okay, so we can generate pages that way. Now let's talk about some blog posts. How many of you are always struggling to get like the first few blog posts from a client? Brainstorm five blog post. Topics for this website. With a short summary.\r\n\r\nYou're about to be amazed with what's about to happen. Now remember, we have built into GPT for the ability to do dolly image creation. Or we could use Adobe when in fact, let's just use I don't want to use any more of my prompts and I have to let's let me get to a firefly this is going to be super cool. All right. Let me let me get the start and then we'll get our image creation. Alright, so let's pick one of these. The Art and Science of metal fabrication Okay. Write a 500 word, blog article on topic one. On topic one, you could say using keyword blank if you wanted to. Give me five Title Five optional title, suggestions. And give me a sample Sally prompt for a featured image British planning to stop okay\r\n\r\nall right, so now we have some five posts I've noticed that when it does titles, it likes to put a colon in there like all the titles have a colon I don't like that. You can tell you can tell it that as part of your instructions. So here's our blog post okay, this is gone. I'm sorry. This is okay. It's fallen off our micro. Have you noticed that? I'm going to stop this. I'm going to go back in here and\r\n\r\nand make sure we say micro because I forgot right? It just started it fell off. So we'll come back. Now dolly is the open AI image creator. We're going to actually use it over in Adobe Firefly, because I don't want to use another open AI prompt right now. So I think we're going to need them all. But it'll show you how Firefly works. If you're a creative cloud user this is built in okay, we don't want that\r\n\r\nbut I do like the voice because these folks are very personable. The client says who's Mike? So this is where it you know, you have to refine it a little bit and you could tell it, hey rewrite the first paragraph and don't say your micro. Paul, what happens if you use them all up? It'll say you've reached your limit check back at this time and the conversation will still be there you just go back to it. Okay, a fusion of traditional blacksmith working with an anvil with molten metal and a modern robotic arm assisting and precision metal work. Set against the backdrop of advanced metal fabrication workshop. Okay, let's see if Adobe Firefly can handle that. It should give us three images\r\n\r\nor maybe four thinking real hard about it. Oh golly. Oh, that's really cool. Not awesome, but not horrible. Anyway, you see where we could go with this? Right? So you could potentially generate a bunch of blog posts and have images and be ready to go and just refine the product, right.\r\n\r\nAll right. So that's a very quick that was 30 minutes worth or 25 minutes worth of very quick approach to generating content for a website. When you think like that, that's pretty darn cool, right? We started falling off the rails a little bit so you got to bring it back in, remind it and whatever. But how much time does the save it saves a ton of time. Nicholas? Just a ton of time. Okay, let's do some more things. Okay, so, chat GPT can not only generate text, but it can also help you work with text. So let's do so these are links to historic chat GPT conversations. So here's this thing of converting text to a table or spreadsheets. I can't remember what this was. But it was good enough for me to save it and put it in the handout. Oh, okay. All right. Oh, yeah. So here's some customer testimonials. And like the idea here was, we were we were rebuilding a site. And it had a single page of testimonials just all written out in one long line of text and there's probably, oh my gosh, I don't know how many there probably 80 of them. I'm going to just guess ADR. And what we wanted to do instead was I bring those into a custom post type where we could do things with them, right? Like randomly show one or put them in a carousel or whatever, right? And do something more interesting. So how do you do that? Well, you could sit there and you could copy paste, copy paste, but who wants to do that? Don't do that. So here's the prompt. Now again, this was months ago, I hadn't really dialed in on how to work but this is just simple, plain wording. I've got some customer testimonials below. I want you to format the text for me. Do not change the actual words in any way. The quote is surrounded by quotation marks remove the quotation marks from around the quote in the output, then output a table as follows. Because of column one customer testimonial column to the customer initials, these follow a dash after the closing quote, column three, the full state name So context is key here we're gonna give an example. Here is the example of a quote terming and identity. It's surrounded by quotes. It's got a dash, customer initials and a state name. This example should be output as column one, this part column two, DC, column three, Minnesota. giving an example is key to do anything like this tell it exactly what you want it to output. And then here's the full text of everything that was on that page. Look at all those many, many testimonials, right? So there's our output, and it did exactly what I wanted it to do it translated the two letter state abbreviation into the full state name. And then what I did at that point. Anyway, what I did at that point, I didn't realize I could do a CSV at that time. But even from here in the HTML output. Oh my gosh, there we go. You could do the inspector and just grab this table object and hit copy element. And then open up Excel, or whatever, or Google Sheets or your favorite spreadsheet app and just paste it right in. In there at all is and from here, I can save it as a CSV, right or you can tell it output this as a CSV like we did earlier, and it would it would pop it out. So taking text converting it to some other format. See how much can you think of how many times how much time in various ways that could save you. Here's another example of doing something similar to that. So I have this HTML I need to replicate for the items in the list. So here's the HTML I want. So you know, there's some style, there's a URL that's based on the link item. These are things in a silo menu, basically. So take the names in the list, do the same li structures above from this pattern. And okay, it did a Python script. I don't know what that was about, Nope, just output HTML as a code block. Got it. Boom, there it is. Copy, Paste done. So rather than me having to go back and fix all this, like it knew what to do with the URLs and all of that it just worked. Pretty amazing. Pretty amazing. So do you see the ways you could use chat GPT to format text are endless possibilities of how you could do this, you know, don't do any of this stuff manually again, and somebody was mentioning earlier, chat GPT will 100% give you spreadsheet formulas, like you can describe what you want it to do. And it will give you spreadsheet formulas to do that in a spreadsheet. Pretty neat. Okay. Be prepared to be blown. away. Are you ready to be blown away? Have you been blown away yet? You're gonna be blown away now. Okay, because this this is my single favorite AI application that I've found. To date. Okay. This is absolutely amazing. How many of you do transcripts for your meetings? Like you have a call with a client and you're recording it in something like you got otter running or something like that, right? Yeah. Are you doing that if not, start doing that. Today. It'll even work with Zoom transcripts. Okay, just get text. All right. So I love this. And Madeline zoom also has an AI companion. Now. They haven't played with that yet. I'm not sure that I think it does transcript and all that stuff to y'all. Okay, there is an AI you need to be aware of called clawed AI. It's, it's from anthropic. Clawd AI is really, really good. It's another generative AI model, like chat GPT let me get logged in here really quickly. Oh, my God, I'm in the wrong I forgot to do this earlier. I'm in the wrong browser profile. So give me just one minute so I can get to the right one and it has what I was just working on\r\n\r\nYes, okay. Okay, let me get here we go. Are you ready? Are you ready? This is y'all. This is it blows me away. Okay. They aren't ready. Okay. So absolutely love this. This document is the transcript from my call. Okay. Here's my prompt. Now. Why would I use Claude AI for this because Claude has a higher token count, meaning you can give it more information at the beginning you can put in this is a full hour transcript. Chat. GPT won't take that much information all at once you'd have to break it down. It might with plugins. It's just not as good Claude is designed to take big bits of information and work from it. Like you can drop in like a novel as a document or a PDF and it will process that whole thing then you can ask it questions about it. It's made for this Okay, so here's my here's that transcript. Please evaluate this document which is a transcript of meeting with clients to create a new website I need to write a proposal. My proposal contains the following sections so please provide results using this format. In from the info in the transcript project overview, five to six bullets that summarize the big picture of the project website design any items discussed that apply to the visual design of the website, website content, any items pertaining to content, text, images, videos, downloads, blah, blah, blah, website functionality, any details about the thing the website actually needs to do? How many of you spend an hour two hours doing this for proposals? Here's a draft proposal. Based on the meeting transcript clients want to do this main goal that ended at launch budgets around this website design, use the same headers it just it pulled out the bits of the conversation and put them in the sections that I use in my proposal. Look at this. Currently rent forwarded resources client will provide spreadsheet resources will be uploaded to cloud functionality and this is where all the stuff they want. Does this capture okay? There's some pushback. There's some functionality notes like the ability to add related documents, state documents that are not covered here. So it missed some things. I remembered some things we talked about. Look at the transcript. Again, make sure all functionality misspelled details are covered. You're right. I miss blah, blah, okay, in now it read it. All right. Look at this. Boom, boom, boom, boom, boom, boom. We talked about the survey they gave the current website users what were their top priorities revealed in the survey. Great point. We should talk about that. So project overview and added some stuff about that. Give me precisely what is discussed about the analytics that need to be tracked on the website by the client for reporting purposes. Boom, here are the details did the I'll add these analytics to the website functionality section, boom. Okay. Was there a certain date in March the site needs to be live because I couldn't remember once the date by the end of March, okay. Awesome. Good. We'll put that in the overview. The comments say they wanted to make changes to the documents on big commerce, which is the current provider or in a spreadsheet? Yes. Good catch. They specifically said they want to make updates to the resource and descriptions blah, blah, blah, blah. Isn't this amazing? Did we talk about payment processors for the principle store at all? No, we didn't talk about it's just so like, the way this worked out. It was several days after the meeting when I was putting this proposal together. And you know, I had forgotten some of the salient details of the conversation but by uploading the transcript, I could then ask questions through Claude to the transcript and have an answer. Anybody excited about that? Like how cool is that? Could you immediately start doing this in your work? Uh huh. 100% 100%. So Melanie just got off a call for a client Melanie, grab the transcript, drop it in cloth and start asking questions. It'll blow you away. It will blow you away. All right. So there's some prompts that I just used. So if you if you're having this I haven't done this yet. I haven't done but I could very quickly see how when if you were to pair this with Zapier, have a call with a client. The transcript goes through Zapier and details that the prompt would be pull out action items and put them in this project in my project management system. It could, it would take some refining, but it could just meet you know how much you spend time filling out your project management tool based on all the stuff that all the stuff that you have to do after a call. Amazing. Amazing. So I don't know if I don't know if Claude goes to Zapier. This no chat GPT does. This would take some experimentation. This was just an idea I had after this. So pretty cool. Pretty cool. All right. Yeah, that wraps us up on the content side. And we're about 10 minutes till so. Alright, folks, what do you think? Questions? Comments? Who's ready to start using this? Clyde? That's the free version. I'm using the free version of Claude for this. All right, Ben question deciding between page chat GPT or may guy or do I need both? Okay, great question. So then, I would try both. Just try and see what you like, right? It's a very small cost for the first month. Just see what you think and what you like better. I would I use both. I pay for both. I am very, I think my habits are there. I go to chat GPT and do everything I could probably optimize a lot better if I just lived in May guy. It works really well. And then of course there's code WP you know, code WP. I haven't spent much time playing in this at all. Chris has. He's building a plugin in this earlier called brilliant insights. You know, Chris can tell us what he thinks about ko WP. I think the pros and cons on this one, right? With mega you miss plugins and chat GPT Yes, but you don't need them because they're built into the platform. It'll go out and grab URLs that's why originally we started using may guy to grab external URLs because chat GPT did not have a way to do that. Now it's since has added the ability to browse Yeah, so we're gonna be doing all the coding tomorrow. That's what all of tomorrow is about.\r\n\r\nLet's see. Okay, then. I don't think code WP would replace codable You really you have to know and might replace it to some degree. I mean, look, here's like, things that we would have outsourced to developers last year for a lot of money we're able to do in chat GPT yeah, there's still some things that you need. Like if the key to AI and coding. We're going to talk about this tomorrow. But again, it's all about the Prop. You have to know enough about what you're asking it to do to get it to do the right thing. Like for example, the very first thing I ever tried to do in chat GPT and a plugin almost almost gave up about 10 times. I stuck with it. Because I had to learn some things. It was just part of the learning curve. But you know, there were some things I was doing and I didn't realize that with this thing with pods. It was creating a user meta entry. I didn't know any of that. If I had known that. I could have said when you do this, it's going to update user meta and check that user meta and do this in the prompt. But it kept not working, not working, not working for like two hours. And I didn't understand why until I got into it and figured out why. So again, it's about you have to know some things to be able to ask the right thing to get it to do the right thing. Does that make sense? Yeah, like Gravity Forms. Like it's a single line. Like you could just say, I have gravity form ID for I do not want that form to store entries in the database. code snippet done. Great.\r\n\r\nAll right, scrolling up for questions here. Paul, why do people still use sites like Jasper? I don't know. It's so here's the thing like Jasper, what have they done with Jasper? So Jasper is it's a body of knowledge that sits on top of chat GPT right. So the Jasper team and like Bertha AI is another one of these AI tools that have been around for a while and they've gotten you know, they've gotten very refined. They have their own data set and instructions and things that sit on top of open AI and you might get better results with them depending you know, so it's it's kinda like these custom instructions that they have a whole app that's custom instructions that's built on top of the model. So you might see those things start to fall by the wayside, the better the core AI gets. But, you know, if you don't know how to prompt it, you get the you know, in this digital era garbage like we were talking about earlier, so Jasper is probably not going to give you that out of the box period. It's going to be better immediate content. So it probably good for those that haven't explored prompt crafting. Let's see scrolling down scrolling down, Stacy, do I charge the clients by the word? No. No, I haven't I haven't quite dialed in how to charge for this yet. Still trying to figure that out. We're doing some content for a couple of new clients right now, using chat GPT in very similar ways that I just described. I just charged the content creation. You know, that's just a flat cost in the in the project. I really haven't figured out how to charge for this yet. So you know, I'm still experimenting with how this even works. Let's see. Scrolling down scrolling down. Ben, what's the best to use to modify photos web based, then I don't know. I don't have an answer for that.\r\n\r\nSo I don't know if you can upload a photo to an image generator and have it tweak it for you. I don't think you can. I don't think we're there yet. But I could be wrong. If anybody knows. Feel free to drop that in the chat. Christine, if you listen to some of the SEO experts, they say not to use AI for content. Yeah. So that is if an SEO expert tells you that AI content will hurt your site's stop listening to that SEO expert, because Google has changed its own policies about that. Google is providing a generative AI for heaven's sake. They've changed Google has changed its guidelines to as long as the I can't remember we talked about this at length in news roundups in the SEO section over the last few months, because this was a big thing in the early earlier this year. It's not about who generates the content, Google changed their guidelines to refocus on is this content helpful to humans, or is this content just generated to create search results? Or is this actually content for humans? Let's see scrolling scrolling. Yet. rankmath has AI general and you're gonna see more and more stuff in WordPress with AI. Okay, Jeff fun today. Who's gonna spend some time on the rest of this afternoon playing around with some content in AI? Dave, you're right, Google could change their mind at any time on what they do.\r\n\r\nYoast also has AI Yep. All right. Anybody else before we wrap up? Alrighty, tomorrow. It's all about the code. So I have many, many, many code examples in the handout in the handbook that we have done and you can we'll browse through some of those. We'll do some live stuff tomorrow. And in the final hour tomorrow, falling under what could possibly go wrong, but we're going to try to build a full plugin with multiple files live right here on the live stream. So you know, we're gonna break everything. It should be fun. Okay, go play around with AI and tell me what you come up with tomorrow when we come back. So we're back tomorrow. 1pm central to 3pm Central like today. See you back here then on solid Academy where we go further together.\r\n\r\nYeah, wasn't that amazing? That is absolutely amazing\r\n\r\ncaptions connected\r\n\r\nall right captions should now be working for all.\r\n\r\nMaster prompter? Yep\r\n\r\nAll right, so\r\n\r\ntoday we are specifically focused on code\r\n\r\nshould be a lot of fun Welcome Welcome, everybody.\r\n\r\nBeth,\r\n\r\nyou're gonna like this. I really think you will.\r\n\r\nBecause even if you don't do the code, you can kind of do the code.\r\n\r\nJohn, can\r\n\r\nClaude read PDFs Yes.\r\n\r\nYeah, clods pretty awesome. Lot is pretty awesome\r\n\r\ncustom instructions and chat GBT? Yeah, that's really helpful,\r\n\r\nright? For sure. All right. Did anybody do anything\r\n\r\npractical between yesterday and now? Did you try any content generation let me hear from you.\r\n\r\nWhat did you do? How did it go?\r\n\r\nwas having a conversation earlier\r\n\r\ntoday and the suggestion was made that as quickly as AI is advancing maybe we should do like a quarterly quarterly AI roundup and that was de bronze suggestion. I mean, because it's moving so quickly. I just literally,\r\n\r\nlike five minutes ago, learn something new. That Chris showed me. All right,\r\n\r\njust about ready to start everybody who's ready to go day two talking about code. Yay, code.\r\n\r\nNP NCSS.\r\n\r\nAll right. It's three minutes after let's dive in\r\n\r\nWelcome back, everybody\r\n\r\nto day two of the WordPress AI workshop here on the solid Academy. Really, really excited about day two because this part I mean, the content stuff yesterday was fun. Today it's an even if you don't do code, it's likely you'll be able to do some code. If you can copy and paste and troubleshoot a little bit, you'll be able to do far more than you ever thought possible. I promise you so it should be a lot of fun today. So yesterday, we talked all about some foundations of AI and where it all came from and why all of a sudden like less than a year ago AI became the thing. We talked about some best practices on you know how to use AI and how not to use AI and some mistakes that are commonly made. So if you missed yesterday, I would suggest you go back and watch the replay. It is there and ready to go for you. You can even speed it up to 1.5 or 2x if you want and I'll just talk really fast and you can get through a lot of that information. The content piece yesterday, I would just again encourage you to experiment with that. What I showed you yesterday was not like the Bible on how to do it. It really just this is what I've been doing. And I found it to be really helpful and take that and build on it. You know you may find certain prompts and certain ways to ask things that work better for you and your workflow. And you may find some little Easter eggs hidden in there as well. So the big takeaway from all this is it's all about the prompt. That's the number one thing I had to get out of this whole workshop and we are always going to be refining our prompts. So today what we've got, again, focused on code, mostly PHP, there will be I think there's some jQuery in some of these that generated and there's at least a few instances of CSS it no chat, GBT knows all those things. And it can really, really make our work simpler, even if it's things you understand, like if you could write CSS, then you just prefer not to chat. GPT can do that for you with some description. So what I'm giving you here is at the beginning of today, are it's really a list of conversations that I've had with chat GPT over the last year, it's some various points of this year. And if we look at the date on some of these, they go back to March, April, and I was really just learning how to use chat GPT so you'll, you'll see sort of the evolution of my use of chat GPT through these processes. And so I don't know how this is gonna go. We've never done this before. So my thought is I'm going to talk you through each of these conversations with chat GPT and you know how, what you know why I asked what I asked what the problem was I was trying to solve, and hopefully, this would this will give you ideas of how to proceed with solving certain problems that are code related with chat GPT so does that make sense? That's kind of my approach here. It may not work at all. Hopefully it'll be great. Hopefully, you'll learn some things but either way, you can see some of the ways that I've used AI over this time. The other thing here I got started getting a little worried Yeah, I started getting a little worried earlier today because I've gotten frustrated a chat GPT I mean, I'm gonna be honest I've gotten frustrated chat GB to there may or may not be conversations I've had with chat GPT in which profanity was involved. That might have happened, possibly once or twice, and I hope none of these conversations include those but if they do, I'm gonna scroll right past them real quick. But you know, it's a journey, right? It's a conversation. There may or may not be insults because I got frustrated, but chat GPT just you know, it replies graciously.\r\n\r\nSo, here we go.\r\n\r\nY'all ready to get into this? So let Okay, let me let me test let's take a quick temperature check in the chat. Give me this chat. GPT to insult you back. Oh, I think it I don't think it's core programming allows for that. But that could be awfully fun. So give me in the chat. Give me a one to 10 on how comfortable you feel with dealing with PHP snippets. Right. And by that I mean you're not going to write the thing, but you're okay with like finding a snippet and maybe editing a couple things, whatever. Okay, give me a one to 10 on how comfortable you are dealing with PHP snippets. Alright, so several high on the high end, several on the low end. A couple of zeros. We'll take that. Okay. So okay, here's the thing. If you're on the 0123 end, chat, GBT is all about the prompt. Right? And so it's gonna be a little harder for you to know. Like the idea here. It's kind of like finding that PHP snippet on the web, and just kind of being able to read it not knowing exactly, but there's enough syntax and like the the terms that are using WordPress, PHP are usually clear enough, where you can kind of have sort of an idea of what's going on. And so that's gonna, that skill is going to be very helpful here. So just, I mean, hopefully it's obvious like if you're zero on understanding PHP, this is going to be a challenge. And I can't teach PHP in this course. But I can show you how chat GPT will generate snippets and how we troubleshoot them. So if you're on the higher end of the scale, I think you're gonna pick this right up and go this is awesome. And if you're not using chat GPT already this I mean, you're gonna be picking this up and being up to speed almost immediately. So don't get frustrated. If you you know, if your understanding of PHP isn't quite as high as maybe you'd like it to be or whatever, don't get frustrated, it's likely still that you'll be able to generate some code snippets that will help you so hang in there is Sue here today. And we have an m&m Check I don't see see in the chat. So here\r\n\r\nwe go. All right. Ah, all righty.\r\n\r\nSo let's get started. I have separated these out into categories. So here's four things that over the course of the year I've done on various projects. To do something to manipulate the core code of WordPress, some snippets, that would affect the core functionality of WordPress and I need\r\n\r\nto find\r\n\r\nheritance All right, so let's get started with this one. So how many of you are familiar with this issue of user enumeration? This is something that WordPress will do. You can with a query you know, find out who is author number one author equals two or whatever. And this is a way it's really not used that much anymore. It's more of a security by obscurity issue, where you can query WordPress, and it will give you the username of authors if you ask it, what the IP by the ID. And so there are bots that will try to hammer away at your site and get a list of usernames on the site that are authors. And then they'll try to come in and pound away with passwords. Not nearly used as much anymore. But this is something that there's a script for it. You can block it, and it's really easy to do. This was the prompt. I mean, talk about a simple prompt. Actually, I think we even this might have come from an office hours earlier this month. When he\r\n\r\nsix don't think Well anyway, the prompt is\r\n\r\nsimple. Can you write a PHP script that will stop user enumeration in WordPress? I mean, that's about as straightforward as it gets. Now chat GPT will typically respond with some context. This is what user enumeration is. Like I didn't really need to know that but I mean whatever. And you can even tell it don't give me explanation. Just write the script. So we're going to remove revealing error messages restrict access to whatever that is. Alright, so here's a PHP script that can help in preventing user enumeration. Now it's actually given me a plug in here. I didn't ask for that. So that was a little bit of a surprise. I was really hoping for just a snippet that I could add to my custom functions plugins, but it wrote the whole it wrote the whole plugin. Now if your understanding of PHP is maybe a little less, these explanations are super helpful. It's just that as I'm Chad CBT for GPT four is a little slower. And so it's sometimes and during different usage levels during the day. It's faster sometimes and slower other times. And so like sometimes I just don't want all the explanation. I just want the code but it's gonna give you the stuff by default, but anyway, here it is. They're just boom. Like that's it. And so, a simple prompt gives me exactly the code that I would need to go out and add it to my you know, add it as a plugin or just add it to a custom functions plugin. So this is likely going to go in my base site. I mean, why not? It's, you know, 1012 lines of code and it stops user enumeration, so why not, it's not going to slow anything down. So see how easy that is it and you can just copy this right here and it's copied to the clipboard and you can paste it in your code editor and there it is.\r\n\r\nDoes that. I mean, who can everybody do? That? I think so. That's pretty easy.\r\n\r\nSally, great question. How do you assume the code is correct? Okay, so this would be a good, I'm going to hit and by the way, if you have a chat GPT account on all these links that I've shared you can click this link and it will transfer this conversation. Yes, over into your chat GPT. So you get the whole history and it knows all it has processed this and now it is as though you are having this conversation. So let Sally How do we know this works? Okay, so let's just say please, you just asked chat GPT please\r\n\r\nanalyze this code to make sure it will work, which doesn't often be helpful for compatibility with PHP 8.2\r\n\r\nOut of the spa compatibility, right. And for any\r\n\r\nsecurity issues,\r\n\r\nyou're gonna see that come up several times. That little bit was in the the last the Save instructions from yesterday, but I have those turned off right now. So even though I misspelled completely blue lI right there, it knew what I was talking about. So it's looking at the code. I don't know why it's echoing it back out that's\r\n\r\ninteresting.\r\n\r\nDoesn't seem to have any deprecated functions. The functions and structure are typical for a plug in no complex functionality that should break security and the error No WordPress errors function effectively. replaces any login error with generics. So that's good. The regular expression preg match\r\n\r\nfunctions for an author regex appears to be safe.\r\n\r\nredirection is used appropriately output there's no direct user input so there's no risk of cross site scripting. doesn't interact with the database and no SQL injection concerns. Use of exit after redirect is good. So security looks good. Isn't that nifty? So Bonnie, back to your was it Bonnie? I know Sally back to your question. The How do you know if it works? You put it in there and see if it breaks. And you're we're gonna see in future conversations that we'll look at in this process of like, it didn't work. And so we got to go debug it. And so a lot of times it's going to be we open up the error log and have that there and we're pulling errors out of the error log and dropping instead. This is what happened in chat. GPT will fix itself. Yeah. So it's like that.\r\n\r\nSo this was a very simple\r\n\r\nexample, but do you see how quickly it can solve a problem. So now honestly, for me, it used to be that if I was trying to solve a basic problem in WordPress, I needed a code snippet for something. What would I do? What would you do before AI? You'd go to Google you try to describe your problem as best as possible. You weed through 800 blog posts until you finally find some person that talks about the thing. Paul says Ask in office hours.\r\n\r\nThank you, Paul.\r\n\r\nThat's pretty funny.\r\n\r\nBut let's say you happen\r\n\r\nto be the person doing office hours and you don't have the answer. You would Google it right. And you would try to find hopefully some developer on some blog post somewhere is or the maybe there's a you know, a StackOverflow article that's not standard that's that has enough snark to get the right answer, but not too much snark that you don't want to read it. Anyway. Now you can just go to my go twos to go to chat GPT and have it generate the code. Pretty, pretty amazing. Okay, so there's our stop user enumeration. All right, how about this one, this one just, we had a client I'm sure none of you have this issue. But we had a client who started uploading video to the WordPress media library. Is there a plugin that will stop video? Yes. But why do I want to install another plugin when I could just use a very simple code snippet? A lot of plugins like this, you know, like there's, I think there's a stop video uploads or whatever. But it's going to add a settings page with different formats of videos there. And you know, it's somebody's plugin and they're probably going to put ad spam over my whatever. So one of the beautiful things about having chat GPT generate these snippets is I don't have to install all these plugins on my site that are going to add extra admin menus which y'all know just gets on my nerves. I you know, adding a top level WordPress Admin Menu and it's not necessary and even then they can put ad spam, we can get rid of all that stuff. You know, and a lot of these plugins are going to add code that I really don't need if I just need this one little section. And so I just want a snippet that says I don't want any video files, period to be uploadable to my media library. So that's what I said, Well, I can't remember what the prompt was, but it was fairly recent.\r\n\r\nYeah, earlier this month. This is all I said.\r\n\r\nAnd this is all you had to say it has enough context. I need a WordPress function to prevent video files from being uploaded to the Media Library. That's literally all the context it needs. It knows WordPress code, and I've told it what I want it to do. Alright, so to prevent that guy, you can make use of this filter or hook in WordPress. Here's your function. Now it is disallowing these media types. If there's other video formats, then you can add those just in the same format in a row here. Add this to your functions dot php, your credit custom plugin awesome. Make this a plugin I can use in the M you plugins is my next prompt. Sure, I'll help you do that. Boom, prevent video uploads, blah, blah, blah, blah. Now it's a plugin. And all I had to do at this point was copy the code. go create a file in the me plugins folder and it's done. Problem solved. I don't have to go search for a plug in. I don't have to test it and make sure it works. I don't have to, you know fight through top level MIT. It's just right there. It's simple code. This is not going to slow down the site. It's just going to work. You could make this its own standalone me plugin or you could just copy the function part out of it without the plugin header and drop this if you already had a custom functions plug in, drop it in there.\r\n\r\nDone. See how easy that is? Now let\r\n\r\nme ask Okay, for those of you who are on the 0123 rating that you gave yourself,\r\n\r\ncould you do this?\r\n\r\nLike those of you that write it yourself, write it in that area. How do you feel about this? Like you could totally do this right?\r\n\r\nAnd how much time is this gonna save you because it's awesome.\r\n\r\nDon't be afraid of experimenting with chat GPT to do these things, just make sure that you have immediate file access in case you pay something that breaks everything they just unpainted and you're back to normal. But just it's this is going to level you up. Like nothing I've seen in the recent past have your ability to do really cool things in WordPress.\r\n\r\nYeah. And like David's saying\r\n\r\nthat's the other side of this, even if you're high on the scale. Like why go through the hassle of writing this stuff yourself. Just drop it in chat. GPT there it is\r\n\r\nand add it. It's done. Pretty crazy.\r\n\r\nOh Chris. Thank you. Great point. If you're going to add or edit php code, I hope you have disallowed file editor already as a best practice. Don't do this in the file editor in WordPress. This is why I have open here for the next section, the file editor from cPanel who are actually going to go in and edit things that way please don't do it from within the WordPress.\r\n\r\nThank you for that. Okay.\r\n\r\nYou like this everybody? Good. Let's keep going. I got a lot of examples here. Okay, this is actually something from the Academy site. So we got a request from the from solid marketing to say we wanted Is there a way that we can very easily add remarketing scripts to each individual livestream event. So let's say there's something we're promoting. It's like a solid security whatever, and marketing wants to drop in a Facebook pixel just on that event. Is there an easy way we can do that? Sure. Okay. In WordPress, I went in and meta box and I created a custom field for the tracking code just a text area. And here's the slug. In WordPress, I have a custom field with the slug this that used on posting the custom post type with the with the slug this Okay, so this detail is super important and we pause right here. I've gone round and round and round with chat GPT and things took a lot longer until I realized\r\n\r\nthis key here this this is important. It's always better to use the slug\r\n\r\nbecause depending on you know if you're just using the name of a custom post type, or the name that like the the visual name of a custom field, the label is what I'm trying to say. Don't do that because that can get squirrely the slug is always going to be the same no matter what if you're using the full name. You know there might be a space or depends on how that's going to convert. It has an underscore how's it going to actually look? It's hard to know that the slug is always the slug so use the slug when you're talking about these sorts of things. While viewing a post type in the trap events post type if the custom field is not empty, I want to add the contents just above the head. So basically, don't do anything if they haven't put a tracking code in there. But if they've pasted the pixel on that event, I want it to show up in the head so that it shows up. Can you write a function? Well, of course I can because I'm chatting GPT I can do all and it's just there it is very simple. Very simple thing. Okay, I go now okay, I want to add comments around the tracking code so that we you know, we wrap it in a comment basically just so we can make sure it's there easily. And so it edited the code to give me that and I'm done. Like how easy was that? So so easy. Now we have this really cool functionality on the Academy site that lets marketing just go in and in that custom field drop in their pixel and update the event and they're done and it just works. Yeah, it literally Yeah, Chris literally just a couple of minutes to do this.\r\n\r\nPretty cool. Questions, comments about that?\r\n\r\nI mean, it's literally any question the client asks that's going to require me to go in and create something as a function. Can I do that in chat? GPT and the answer is\r\n\r\nprobably, yeah, probably. All right, moving down. Okay, this\r\n\r\nis a good one.\r\n\r\nThis may have been I think this is\r\n\r\nan academy one too. Let me just see\r\n\r\nreal quick, Robert.\r\n\r\nNo, it wasn't it. This was for some other client. I can't remember what it was. So this was how many of you have wanted to hide the admin bar on the front end, like you've got a membership site, and they log in and you want to get rid of that admin bar. Some plugins will do that for you. There are certain like membership plugins will hide the admin bar or whatever. There are some plugins that all they do is hide the admin bar but there's some of them are weird. So why not just get code to do this? And so this is my this is my prompt, I need to create a WordPress PHP snippet that does the following prevents access to the WordPress admin area for logged in users. Of any role other than editor and administrator and instead redirects those other roles to site URL my dashboard. Number two, it hides the WordPress admin bar from all users on the front end other than editors and administrators\r\n\r\nboom, there it is. Quick, done. Easy. Amazing.\r\n\r\nSo it gives me a little explanation. And I literally just that simple prompt, copy the code, paste it and functions and I'm done. Pretty crazy.\r\n\r\nAlright, let me pause right here.\r\n\r\nQuestions. Does this make sense? Do you see how to do this? You see how quickly you can build custom functionality into WordPress. And here's the thing. We're dealing with open source code. So there's, you know, there's all these articles out there, and people are going nuts about AI and you know, the legal like, you're gonna get sued for using AI and blah, blah, blah. I don't know, in this area. As we're dealing with WordPress, all of this code is open source, even if it's in a premium plugin. With in premium plugins, the code is not the code is not copyright protected. Anything the nature of open source is that anything that is built on code that is GPL compliant, which is WordPress, any plugins that plug in to WordPress, also have to be open source. When you're buying a plugin. You're not buying the code. The code is free. Because it's open source, it has to be open source. What you're buying in a premium plugin is access to updates and support meaning all this code there's no copyright now I'm not a lawyer. Okay. But based on my understanding of the GPL all code, we don't have to worry about copyright issues with any of this. So at least in this application of AI, there's no copyright concerns whatsoever. Pretty amazing. Yeah.\r\n\r\nChris, I talked about custom\r\n\r\ninstructions yesterday. I'm not gonna be able to go back to that today but it's in your settings, and you can drop that in. Alright, any other questions about this before I move forward?\r\n\r\nOkay, um, this was okay. This was a little. This is a little granular.\r\n\r\nBut here's an idea of this will just show you what you can do. So we had a site where the way it was built by the original built a developer of the site\r\n\r\nthere was they had put\r\n\r\ninto WooCommerce product descriptions, HTML tags, like the h1 tags and everything, just the way the site was built. The the product title was being rendered by the product description and not by a template, right? It works perfectly fine. Nothing wrong with that except when you build that into a new theme that has a title and all that now you've got two h ones and duplicate titles and all that. So what do you like? How do you deal with that? Clearly, I don't want to go through 800 products and remove all this HTML. So can you can you do something about this? Yes, you can. And I actually don't have that first prompt here. I'll just explain it basically what we went in there and asked chat GPT if it sees an h1 tag, remove it and anything that it contains, because it's the page title is already in the template. So remove the h1 tag and anything inside of it. Remove h2 and h3 any of that stuff, remove it completely, and chat GBT built us a little function that lived temporarily in the functions dot php, that as a product was updated.\r\n\r\nIt would strip that stuff out. It would just be gone.\r\n\r\nAnd so I mean, think about how much manual work that say it was an unbelievable. Plus, we actually discovered that you could go and this works with any post. But if you just go in, you can click this and do edit and you don't have to make any changes but hit update. And these products are now actually being updated. And it took care of all of our it stripped all that HTML out. Now, where that left us was these two situations where Okay, now we had some empty spaces. So our empty spaces were an issue\r\n\r\nare we not loading?\r\n\r\nWell,\r\n\r\nyeah, and Chris is right. It works with anything regarding the post assigning categories, custom fields, whatever. Wonder why this isn't loading\r\n\r\nOkay, that was weird. Okay. So here we\r\n\r\ngo. Here's my prompt in WooCommerce products. I have many that have several empty line spaces in the text view. So it's in the Code view right in text and some lines that just have a the, the ASCII code. HTML code for the space right and percent nbsp colon, semicolon. This causes a lot of empty spaces to be shown on the front end. I want to keep any empty lines where there's just one, like if it's a line break, we want to keep that but if there are two or more lines that are empty, I want to remove them. Treat lines that only have the space as also empty. This should run when a WooCommerce commerce product has updated. It should look at text in the product long and short description for this function. And so there's the thing that it did and it was just using the the string REPLACE function that PHP and the preg replace, to go in and update the content and so it's stripped out all those spaces. So everything was nice and tight. Like it was supposed to be really, really remarkable. We didn't know how to do this didn't have a clue that I didn't think it could be done but we just asked and chat GPT did it. Pretty amazing. A similar thing here in WordPress, I have text in a WooCommerce product that has a line break but not a paragraph. So for example, it was like this and then went right into the next paragraph. This kind of thing occurs on most products. Is there a way to detect this with PHP and add a paragraph break instead of a line break when the product is updated? Certainly you can says chat GPT boom, there it is. And so look what it's going to do. It's going to wrap things in p tags. And guess what it works except Okay, wait a minute, we found an issue. Sometimes there are multiple spaces together like this. I don't want to exacerbate that with lots of extra p tags. So this is what we are getting. So again, context, I gave it the actual example of the text to show what we're trying to accomplish. That's super important. This is part of that training the conversation, giving chat GPT more information and you know, so it knows better what to do. So in your example, blah, blah, blah, you can use reg X reg X tackle blah blah blah. Is there a way to add another space rather than adding a p tag the copy paste I sent was from the code editor and WordPress not the visual editor. Alright, so that what just happened didn't work. So we did it again. And now it fixed it. And that I think, oh, that didn't work. This is me being very terse live chat GBT. That didn't change anything. Okay, sorry about that. Let's did it. It did some new code put that in Okay. After running that gives full instructions. The extra spaces are removed, but the lines where there should be an extra space were not affected. So and again, this is just, it doesn't always happen the first time a lot of times it does, but you just have to go back and you can repeat in plain English what you're seeing happen. And chat GPT will often eventually figure it out. Looks like this took a number of different rivers still not working. Going down new code. Okay, that and that one actually worked. So it took a little bit, but we eventually narrowed it down to figure all this out. So if it doesn't work the first time, don't get frustrated. Keep at it, refine your prompt, give it more information, keep trying it, and you'll find that it will likely ultimately work. Paul, would it be better to clean the data in the database instead of scrubbing it when it gets displayed? How do you decide when to do that? It's a good question. So we could have done it that way and done it with like a SQL command. Because essentially, that's what all of this is. I mean, you could run a lot of this in a SQL command. We were working from internally in WordPress and it worked just fine. But you could do it same thing. I mean if we said like we could let me just continue this conversation. All right, take this final solution and create a SQL command that can be run on the\r\n\r\nproducts. The products table\r\n\r\nso if you're comfortable with doing SQL, you could probably do it this way.\r\n\r\nThere it is.\r\n\r\nOnce it's now understood what you're trying to accomplish the likelihood of that command working is pretty strong. I'm not gonna run it but yeah.\r\n\r\nAlways take a backup of your database.\r\n\r\nSally, would you put those function adjustments into a code snippets plugin? You could totally do that too. Yeah. So you could use code snippets I usually get into. I don't like to do any of this from within WordPress. Because if the coat like if you're using code snippets, for example, and the code you put in white screens, WordPress, you're toast, because you can't go in and edit your code snippet. You. I mean, you could do that, but it's just not the best way to do it. That's why I would suggest going in through you know, a CD like cPanel File Manager or your your text editor, code editor SFTP into your site, and doing it that way. You don't want to get into the situation where you add some code, something is wrong. There's a white screen and now you're stuck.\r\n\r\nYeah. Does that make sense?\r\n\r\nAll right.\r\n\r\nLooking at time here, I'm gonna skip through some of these things. You can on the whole chat you can go back and look at these if you want this creating a shortcode that had like a click to call with a phone icon. That was pretty cool. Even this, I am going to show this. I can't remember if I provided the S Okay, I did get okay. So I gave it the actual SVG file the TAT SVG tag for the icon I wanted and it built out a whole shortcode that included that which is pretty darn cool.\r\n\r\nAll right. How about this? Have you ever\r\n\r\nthere are plugins that will allow you to in WooCommerce assign a role to a user if they purchase a certain product and that's often used for some sort of membership product or, you know, you buy this thing in the WooCommerce store and that grants you access to another part of the site for example, and you have to have a membership plugin or a plugin like yes, one of the youth plugins why ith used to be like roll something or other for WooCommerce I think they quit supporting it. But it's so easy. Look how easy it is to do this. It is a simple function. I need you to create a WooCommerce function that does the following. When a customer buys product with ID this again another example of use the slug or the ID or something about that thing that never changes. So when a customer buys this product after checkout is successful. Add a role to the Add a role to that user with the slug in this case Ruach which is the name of the membership product. Also customers personally that product should be forced to create an account at checkout. So we had a plug in that was doing this and it was actually that yes, why it Ah yes. WooCommerce roll something or other and they've quit supporting that it was causing problems. And so it's literally that function. What is that? 10 lines 123467 Yeah, I mean it's mostly empty space.\r\n\r\nIt's literally\r\n\r\nif it's that ID then add a roll. I mean, it's just it's so it's just a very, very simple\r\n\r\nthing and it's done. I don't want\r\n\r\nOkay, so apparently. Let's see, okay, it actually misunderstood me here. Okay. And I stopped it because I was I was actually looking at the code here because there's nothing in here about assigning a role. It missed this. It was only saying if the user is not logged in, and we're in the cart, then you and this item, then we gotta force. That's not what I want. I don't want all users to be forced to create an account only those that are purchasing that specific product. It's like oh, okay, so if it's this ID then we're going to do all the things so there's actually two functions force account creation for that product if that product is being bought, and assign that role after checkout. So there's two functions here two snippets. It gives me the explanation. Now okay, add a notice at the top of the checkout page when the account creation is required that says you will need to create an account using your email address and password in order to access route journey online videos after your purchase. So we just you know, we're continuing, I put it in there figured, okay, the user really needs to know that they got to create an account. So we're just going to add that that little message if the case is like it's not going to show up there unless they're about to purchase that product. In testing, the roll was not applied. Okay, so we're going through we're testing this it didn't work. If the roll isn't being applied, let's okay make sure it exists. It did. The order status has reached Completed status. That was the problem. So if I scroll down, order is still processing let's make the roll change while the order is processing not completed.\r\n\r\nSo boom.\r\n\r\nIt's it was a digital product, but it could have been that there were other actual products in the process. Anyway, you see this? Again, it's just an example of the thinking through and refining of this code throughout the process and that works. That says if I have a plugin that does many things, but I only use it for one very simple thing. Do you recommend I use GPT to create my own code to do that in order to reduce the number of plugins? For example, I use loco translate to change one WooCommerce label. Oh, you could totally do that with a single function. Yeah, you would just so the key to that is how can you describe in enough specificity? What label that is? Like, you know, probably if you inspect it on the front end, you'll get the actual you know, you can get the actual ID of that label and you can tell chat GPT in WooCommerce for this on this label, translate it to this. Make it save this and it'll, it'll totally do that.\r\n\r\nYeah, play with it back up\r\n\r\nand be ready in a file editor to actually back out your changes. Everything comes to a\r\n\r\nscreeching halt. Beth I have faith in you that you can do this you can totally do this. All right. Let me see what else to\r\n\r\nshow here. Here's one that says we don't ship the PIO boxes at all. So it's going to disallow Pio boxes from the address. A lot of these are just very niche things we wanted to add a SKU to the product description so that it's searchable, right? How do you make you know, maybe you want people to be able to type in on the front end of the site, the SKU in the search box WooCommerce doesn't search skews by default. So a workaround we found was to just put the SKU in the product description. So when the product is updated, it adds tech SKU, colon, and then the SKU and now it's searchable. Pretty cool. How about this? Only search titles on the WooCommerce back end like I don't want you to search for if it's occur if this term occurs in the description or whatever. I don't want that I only want the search results to be in the actual product names themselves. That's kind of cool. Okay, here's a good one. I talked about this one already, but this is something I see a lot like so maybe you're using Gravity Forms to do like as your MailChimp subscribe form. I don't want those entries in my database that's going to be tons. So act as a WooCommerce. Developer help me write a PHP snippet using Gravity Forms form ID four, I do not want to store entries in the database. The form uses the MailChimp connector to add the form info so I want to be sure it still works with whatever code is generated. Also, the like I don't know what the code how this code is going to affect the MailChimp connection, so I just told it to take that into consideration. Also, the form is set to display a confirmation message I've customized and gravity form settings this also needs to work. So the two things that are peculiar about this form I just made sure to mention those. And then boom, there's my little bit of code. Now. I think gravity, some of the gravity add ons you have to pay for will let you do this. But it's literally four lines of code to do this and it's done. And now that form is no longer going to store submissions and just stack up 1000s and 1000s of email addresses in the database. Don't need it. Right. Describe your problem as best you can and then iterate. Okay, let's get into something more complicated. This one we actually did. I think this was in an office hours. We did this one. So there's this plugin. I think the question was, is there a way that I can easily show view like how many times a page was viewed on the back end and WordPress without having to get into any Google Analytics or whatever I just want a basic view count. And you can there's this plug in plug in I think we did an around up called Awesome viewcount now, it only works for posts. This plugin. I don't know if they have a premium version or what but it only works for posts. So alright, this is a WordPress plugin that adds a view count to the posts list. Currently, it only works with posts modify the code that works for posts pages all define custom post types, including WooCommerce products. Make sure you adjust not only the code to display the view count on all post types, but also the mechanism for tracking views of those post types. I want you to change the code so that it can be added in a code snippets plugin rather than being installed the standard plugin. So I mean, whatever you want to do here, and then it was a one file plugin. So I just copied the PHP and dropped it right in there. Okay, here's how you can modify the code. There goes now it's gonna it'll work now for all post types. The count does not appear in the WooCommerce product list, nor does it appear for custom post types. Oh, so it worked for pages, but not for posts. My apologies custom post types uses different set of hooks. Okay, now update that to fix that. Now. It should have done that as part of my original prompt, but it missed it. So we added the code tested it didn't work this describe it what was going on. Now it fixes the code. Still not appearing for custom post types. Bummer. What happened here? Oh, the timing. Of when get post this call. Alright. So we're going to change up the timing here in the code. And that work. Oh, but wouldn't it be cool if we could make that views columns sortable? So we could sort by which page or post or whatever has the most. We're sure to make that we're just going to do this. And there it goes. Boom, boom, boom, boom, boom, boom, boom,\r\n\r\nand it works. So that's it. Pretty cool, right? So take\r\n\r\na plugin that is almost what you want and ask chat GPT to improve it. Okay, this is a really helpful thing. How many of you are in a beaver builder stack and you remember this plugin that I've been I've recommended a long time ago, called BVB delete cache right on the front end of the site. It adds a little drop down inside beaver builder that says Clear Cache, super helpful. Did you know that unless you've fixed it, it is filling up your error logs with errors because it hasn't been touched in quite some time.\r\n\r\nOkay, let's fix that.\r\n\r\nSo I noticed they were getting errors. All right, I'm getting this error in the WordPress log. Boom, error read property No, blah, blah, blah. The plugin file in question is paste in the whole thing. It's a very simple PHP file. Line 98 Is this. So you know, that was the line that was mentioned in the error? And chat GPT doesn't really have a way to count these lines. So I just, you know, in the file editor, I could see what line 98 was, and so I gave it that. So I've given it a lot of context. I've explained the error. I'm going to ask chat GPT to fix it. So it explains what's the deal. There's an attempt to read Id No, but why why the issue is here to fix this you got in blah, blah, blah, blah. Okay. So I don't care about any of that. Just give me the whole plugin file again, with the fix in place. Certainly.\r\n\r\nBoom, there it is. All right. Now,\r\n\r\nhere's that the magic line, act as a WordPress developer analyze that and you actually you really don't have to say this anymore. I used to be helpful, I found that the results don't matter by using this. Analyze this plugin for security issues and phba to blah, blah, blah, security issue didn't have to do all this stuff right here, blah, blah, blah, blah. You suggest specific changes to the code, so it didn't really give me a good actionable thing. Maybe I should have asked that different. So based on this, this is what I recommend blah, blah, blah. Okay. Make changes for recommendations one and two. Okay, sure. Boom, there it is. Okay, chat. GPT does this from time to time it will give you just the piece to change because it wants to minimize the amount of output it's giving. Now if you are like me, especially if you if you are rating yourself lower on the PHP experience spectrum. I'm gonna mess this up. Is anybody else gonna mess this up? Like I'm gonna miss I'm gonna miss copy. I'm gonna miss a stupid semicolon or whatever, a squiggly bracket. And you know, the fact that I call them squiggly brackets should tell you enough. Yeah, so I don't want to cobble together the code. Okay. So give me the whole new plugin, like the whole PHP thing. Don't give me the little snippets. Certainly. Boom, there it is. Error is fixed. Everything works. Now, I did have another question. I was just curious about what the text domain was at the top here. Do I really need that? And it just explained to me what it was there. So pretty cool, right? Davia chat, GBT doesn't know what PHP 8.2 is.\r\n\r\nBen, what if you want to change\r\n\r\na bigger plugin that's in multiple files. Okay, so then you would have to train it right? You would have to say I'm about to give you a WordPress plugin that contains multiple files and folders, maybe explain the folder structure and what each of the file names are. And then say, Okay, here's the code for this file, boom, here's the code for this file, boom, it's gonna be tedious. The code wp.ai that I mentioned yesterday, is likely going to be better to handle that scenario. I haven't really used it yet. It's brand new, literally, brand new week old. And if there's a few little bugs that have popped up in there, where the developer is actively working on that tool, I think it's going to be fantastic. But that that's probably a better way to approach it. Ben, is there a chat GBT plugin to load multiple files? I don't think you could load a PHP file directly in the chat GPT. I would imagine they would consider that a security risk. Because think what you could do, right? So maybe, if you put them in a text file and had a reference, but then it's just, I mean, you might as well just paste it in. So I imagine that's gonna get better with time. But for now, that's the approach we have to take. Stacy is the Delete cache built into Beaver Builder? Yeah, it's just buried in the settings. And what that little plugin does is it grabs the function that delete that that clears the cache and just puts it in an easier place to find it's part of beaver builder that the plugin just puts it in underneath the submenu on the front end of the site is all it does. Dave is asking, How can you ask it to be compatible with Hey, that to me, you really can't. But you notice in an earlier response, it said I don't know eight not two, but based on what you've said. There's really nothing here that's deprecated and it's using common functions, so you're probably okay, so it doesn't know 8.2 yet.\r\n\r\nYou could say that one it's definitely knows 8.1. Sherry, can you feed it a dot two? I don't think so. Okay, here's another thing\r\n\r\nwe got to start getting ready to land the plane on this on this piece. Okay, this was we may actually go a little long on the segment depending on how this goes. So this, this is cool. Okay, this is an approach I want you to take notice, because it's very helpful. Again, it's all about the prompts. Right? It's all about training chat. GPT in the conversations, this is you know, basic foundational things about using AI that we talked about yesterday. Doesn't matter if you're generating content, generating code, whatever. It's all about what information how much context can I give to chat GPT to help it solve the problem better. So there's all this documentation for these plugins out there, right like, you know, if you're using a developer centric plugin, like meta box or Gravity Forms or whatever, and then got all those Doc's out there, and you've got a whole page with like, you know, different code snippets and functions that apply in there almost what you need, but not quite. You can just give it those things. And it will, you know, it'll take all that into consideration and give you an answer. Often based on the stuff that it's got. So here's, this was a problem I was trying to solve. So here's the actual, the actual issue. This is a client we've had for a long time. They're a dentist in Southern California. We were rebuilding a site, we've rebuilt this thing now. I mean, I think this is the fourth iteration of the site. And for years, their blog had no featured images. And so they didn't want to go back and add literally 1000 featured images to all the blog posts on this site. Okay, it's hundreds and hundreds and hundreds, right. So instead, we decided we're going to do a category featured image and use that because the blog used to just be a straight text list. It was terrible,\r\n\r\nbut that's what they wanted to do. So instead of\r\n\r\nhaving to do a different featured image for every product, we did category featured images. So you'll notice that some of these are the same, but that's better than no featured images at all. Right? Like this picture comes up multiple, whatever, right? So I found this plugin. That's the problem we're trying to solve is how do we get category featured category images to work for posts? So I've got this plugin that I found called categories images that allows a featured image for each post category, but I need to do is have that image output as a shortcode in a beaver theme or layout, here's the documentation for the categories image plugin. Now here is this is the tactic I was just describing. So what I've got here, this is text that I can't remember if it was on the plugin page or the developer side or whatever. But I just grabbed the whole this is probably the plugin page. I just pasted everything that had a ton of usage in like templates and all this stuff. I just dumped all this code in here that it gave me this giving chat TPT as much stuff as I could, to you know educated on how this thing works. All right, so it looks like you want to use the featured image data data data doc, create a custom shortcode boom. All right, using the shortcode in Beaver theme, and boom, okay, but I made a mistake. Oops, wait a minute, not beaver theme or I'm sorry. I want to add the shortcode into a beaver builder post grid as a custom layout. So this is a post grid module. And I'm using a custom layout in that post, you know the HTML layout.\r\n\r\nSo how do I do that?\r\n\r\nFor the image, I just want to drop the shortcode in so that it pulls the category image. All right, the shortcode should look at the category of the current loop item and display that image. So again, I've pretty precisely described now I've refined my prompt to tell it what I want it to do, okay, you want to create a shortcode blah, blah blah. Here's the code. There it goes. This code creates the shortcode current category image. Great. Okay. And that worked. Well, it worked. But we got to refine it some more because there's a particular custom image size that I want it to use. So I've defined the custom image size in my site called news grid. And it's specifically sized and I wanted to use that version of the image, not the thumbnail or the full size or whatever, okay, boom, and it's the code to add that right. Okay, now, let's change the shortcode slightly to say that if the post itself has a featured image, use that one. Otherwise, use the category image. Okay, so if we've added a featured image actually to the post itself, use that one otherwise, fall back to the category image. Also, please make the function name with my prefix instead of the default. Certainly, boom,\r\n\r\nthere it goes. Boom, boom, boom, boom, boom. All right, so that totally works.\r\n\r\nAll right. Now I need you to help me create a shortcode to display the related post to the current post. The output should be three random posts from the current post taxonomy and I want this to be what the HTML output is, there it is. Because what I want to do is down here at the bottom of every post, we're going to have related posts Oh God, His mouth pictures freak me out.\r\n\r\nAnyway, cool.\r\n\r\nAlright, so there's my that's this is what I'm after right there. There's my HTML, and it gave me a function for that. Ready and look, it remembered that I want I want it to prefixed again with with the BW w. So I need now we're getting the CSS I need the three posts to display in three columns and one column on mobile so see, I'm just, I'm doing my development process. And rather than asking a developer to build the stuff, I'm just asking chat GPT to do it one step at a time in fairly plain English. So now it generates some CSS for me. I put all that in. Give me all the look it did it again. Like okay, paste, paste that into your now I'm not going to try to paste that in. Give me the whole PHP again. Boom, there it is. No need to respond to this, but the image size needs to be updated to news grid. Great. Now give me the CSS to add. Boom. Okay, there it is. Okay, that didn't work. It didn't work for some reason. Now, so what does it do? It gives me two options. Flexbox and grid. Cool. So standard CSS didn't work. So it suggests, let's try to listen Flexbox here's an example. Let's try to do this in grid. Here's an example. Okay, grid work. Awesome. Now I need to modify the shortcode. Again, I need to be sure that regardless whether it's the post featured image or the category image, the image size should be news grid. Please fix the code out there was some issue with that I'm not sure why. Also very important, we need to make sure that the current post is excluded from the random posts that might display in our related posts. Oh, there it is. We got the code. Anyway, this goes on for a little ways.\r\n\r\nContinued revising,\r\n\r\nuntil I finally got it down to exactly what I want. Does that make sense? I don't want to take too much more time on this. But you see the process I just want you to I want to show you the the flow that I would use the mind the mind trying to say that just the process of refining\r\n\r\nthe prompt to get it to get it done. Alright, one more. And we'll take a break.\r\n\r\nSo this is so how do we solve a complex problem? So let's brainstorm a solution first. So I did this in two I think I did this it two separate times. And for whatever reason I didn't continue the same. The same conversation probably should have done in the same conversation. But the here's what the client wants. We had built an internal site add like a law partner type site where people had to log in to view certain proprietary documents, blah, blah, blah. And but then later, the client came back and said Wait, we need them to agree to the brand guidelines before we show them any of these documents. So before they say anything, they got to agree to this thing. All right. So we're gonna ask chat GP to help me think about this complicated problem, a user account with role partners create an email is sent to the user with a password reset link. What we want to do is present a checkbox with I have read and agree to the brand guidelines on the password reset page that must be checked before the user can reset their password. So how do we do that? So it gives a boom boom, boom, all this sort of stuff right here. And what hit me was\r\n\r\nthis update,\r\n\r\nlike how am I going to know if the user checks the box in order to show the thing right or not? It okay user meta, okay, we could use user meta for this something oh, wait a minute. Brainstorming on my own self. Can a gravity form Add User meta on submit? Why yes, it can. So we can build this little bit of code that says, When I check this button, make it a gravity form when I check this box and hit this button, a piece of data can be added to some user meta\r\n\r\nwell guess what? In Beaver Builder, which\r\n\r\nthe site is built on, you can have a row display or not based on whether user meta exists so that's what we did. If the user meta wasn't there, it showed the agree. If it was there, it would show the grid of documents pretty cool. So chat GPT helped me think through the solution now. I wasn't functioning in the dark, like I had some knowledge of other tools we were using and how those things might fit together. But chat GPT was instrumental in me figuring out how to do this\r\n\r\nso\r\n\r\nthat there was something else Oh, yeah, here we go. Update user meta on Gravity Forms nine. So I want to add the current date and time that's what I decided to do. So we've got this new user medical agree to brand guidelines. And when I submit the form, add the current date and time in there. And so that way, anybody from the company could go into that user's profile and see in that box, what the date and time was they agreed to the document or to the to the brand guidelines. That's literally it. Just boom, code done out fixed. Problem solved. And the client loved it. So we're are at an hour. Let's take a breath, shall we? So what do you think right now, can you do this? Do you see some ways immediately that you can start to use chat GBT to solve just some very basic problems that you come up against things that you would normally be searching Google for and to find the answers? Let me hear from in the chat. What do you think everybody good\r\n\r\ndo we all need a drink? Perhaps? All right. Let's take\r\n\r\na break until 10. After that's about seven and a half minutes from now. Yeah, seven ish minute break. We're back at 210 Central Time, and we're going to try to create a full plugin in chat GPT. So that's what we're doing when we're back and seven minutes from now back at 210 Central Time. We are quiet\r\n\r\nuntil then.\r\n\r\nAll right.\r\n\r\nWe are back for the final hour of the WordPress AI workshop. And we're gonna build a WordPress plugin.\r\n\r\nWhat could possibly go wrong? So here's the idea. The I don't know if this is\r\n\r\ngoing to work or not, but we're going to do the best we can. So we're going to try to create a WordPress plugin. Margolis that he here is not to create a fully polished, polished final version of an operational plugin. Maybe we'll get there maybe we won't. But at least we're gonna go through the process of you know, you saw in the last hour, the conversations trying to get things narrowed down, we're going to do that live and we'll see how much frustration and or success or both\r\n\r\nthat we have. So\r\n\r\nthis is I'm actually going to use an example of something that I've done in the past because I have at least a general idea of where we're going to go with this. And we're going to use we're going to our goal in this plugin is to create something that will be a default Featured Image plugin for WordPress. How many of you have had that need? Like no matter what if it's a post, I want it to have like this featured image if one is not set, then show this one instead. Right. That's something I think we all need. There are some plugins out there that do it. They are they tend to litter your WordPress admin area with ads and top level menus and so forth. So let's just build one, what do you think? And again, our goal here is to just work on the process. Now I'm actually going to go back into these custom instructions. So Chris, here's where they are. Again, it's you click on your person down there and you do have to have a Plus membership for this I believe. Custom instructions. I'm going\r\n\r\nto toggle this on. And it's just has some parameters right.\r\n\r\nCheck for compatibility point out any security risks, explanations blah, blah, blah, always prefixed functions with BW w. So I'm going to save that we've got our custom instructions working, and we are here in chat GPT four. Okay, so let's start to explain what it is. Let's work on our initial problem. I want you to help me create a plugin for WordPress that will assign a featured image that will Yeah, that will create what that will allow me this is what happens when you do things live that will allow me to define a default featured image or posts on my\r\n\r\nwebsite. This default image should only be applied if the post does not already have a featured image. The font I want you to create a settings page that is nested under the media link, media or settings. What do you think? Media or settings? Media media\r\n\r\nand under the media link in the WordPress admin menu. There's one other things I'm going to want to do here, but this will get us started. Okay, let's take a look at this helped me create a plugin for WordPress. That will allow me to define a default featured image or post on our website default image should only be applied. The post does not already have a featured image, create a settings page. Okay, let's just do that. Okay. We will see we want to call\r\n\r\nthis plugin Nathan's magic images, okay. All right, let's go.\r\n\r\nSo it actually is gonna give us the step by steps of creating a folder starting out alright, and there's gonna be two PHP files. So let's get to work. So first, we're going to create this\r\n\r\nfolder in the plugin\r\n\r\nso content plugins, and I'm in cPanel File Manager here we're going to create a folder.\r\n\r\nThere's our name. And in that folder, I'm going to create two files\r\n\r\nthis would probably be\r\n\r\nquicker if I was using a code editor, but we're going to use cPanel because that's probably the most familiar thing to everybody\r\n\r\nhere.\r\n\r\nAll right, so we now have our files created and they were ready for content.\r\n\r\nOkay,\r\n\r\nso there's the actual code where both of the files so I've got the first code.\r\n\r\nLet's edit\r\n\r\npaste and then we're going to edit this one copy and paste right now what in your themes functions\r\n\r\nreally\r\n\r\nwhy do I don't understand why do I need to add\r\n\r\nthat's weird. That asked me to do that.\r\n\r\nOkay, so right away chat GPT is doing dumb things.\r\n\r\nAwesome. And it already broke. Okay, so\r\n\r\nfrustration level two now with tat GPT because it is now broken. What I asked it to do in my custom instructions which was give me the whole php file.\r\n\r\nAll right, so.\r\n\r\nAll right,\r\n\r\nmaybe it'll remember it now. But my experience is, if it starts hallucinating at the beginning like this, then it usually doesn't get too much better. So that should be fun. For our little demo here. Is everybody with me? So far? This is pretty straightforward. We're just copying and pasting giving it some prompts. Yeah, it has manners and I usually do too. Until I reach a certain level of frustration,\r\n\r\nthen, maybe not. All right. Okay, now. So\r\n\r\nlet's go into our dashboard, in which we should now see the plugin. Oh, here's the one that I built the first time, but we're going to use this one down here. Alright, Nathan's magic images. Activate. Boom. Okay, so now under media, magic images settings.\r\n\r\nThat's weird.\r\n\r\nOkay, so we're gonna want to fix that probably this is if I upload an image, it's going to show it there. But let's, we're just going to work this straight through. Okay, so the first time\r\n\r\nwhen I view the settings page,\r\n\r\nthere is a broken image let's not show\r\n\r\nOkay, well at least it gave me the whole file this time. So it now it's going to add a conditional check to display the image only if it exists. So what was gonna happen here likely is with when the image was set, it was going to show me a thumbnail audit right there. All right. So chat GPT is slow today\r\n\r\nof course. You do. And we wait. And we wait.\r\n\r\nThe you know as you're waiting on chat TV to do its thing. It gives you time to think forward to maybe improve some of your prompts. For the next thing you're going to ask him\r\n\r\nall right, copy. And I think I accidentally just copied and paste. save, refresh. Okay, good. So let's take a quick look. And just grab Oh no, this rhinoceros okay, it didn't show it. But it did show it here.\r\n\r\nSo I don't like that. I don't like that UI, but for now we'll just we'll just leave it alone for the moment. Let's test to see if\r\n\r\nit works. So if I add a new post it adds the featured image. Okay, good. So that part works. That's pretty good.\r\n\r\nNow let's work on our UI a little bit.\r\n\r\nWhen I select the image from the media library it should display on the Settings page. Before I click Save, Save to\r\n\r\nYes, okay. So it's another tweak to the JavaScript. That's writing quicker. So this is just an honestly this is how many developers build their plugins, right? They add a little bit and they test it and they go back and they tweak that and they test it and it's back and forth, back and forth.\r\n\r\nDoo doo doo.\r\n\r\nNow we're adding a script actually onto that page and I'm not sure that's\r\n\r\nthe best thing.\r\n\r\nLet's just one thing at a time. And then this is another principle here is don't try to change your test more than one thing at a time.\r\n\r\nOkay, here's the problem.\r\n\r\nI now can't unset this images, this image so once it's set like you're fully committed, or maybe I can click here and select another one, but I can't delete it. So that's a problem. I think we can just select another image. Okay, so that part now works. Okay, good. And Dave, you're right. I think I may get it to just give me the pieces. I'm just afraid I'm gonna break something.\r\n\r\nBut we'll just we'll try. Need a way to delete the image without just replacing, maybe an X icon on the image\r\n\r\nright. I should have told it just give me the changes\r\n\r\nYeah, it won't remove\r\n\r\nit from the library. I just want it I want to have like a quick hit click x here and it would remove the image\r\n\r\nas the default\r\n\r\nit's added some JavaScript here. It looks like to remove that on click Delete in Yep.\r\n\r\nI'm not sure it's\r\n\r\nbest practice to put these scripts and styles in this one file. So we'll ask that about it. It'll ask it about that in just\r\n\r\na second. Yeah. Boom, save. All right. Look at that nifty\r\n\r\nthey've pretty cool. All right. Now, the way this works,\r\n\r\nit's actually placing the featured image\r\n\r\non the post.\r\n\r\nI think I like that I like that behavior.\r\n\r\nSo we're going to leave that alone. Okay,\r\n\r\nah, what do we want to do here now?\r\n\r\nLet's ask it is it on admin settings? Is it Yeah, that's to have the and\r\n\r\nshould we separate those out or not?\r\n\r\nYep, generally good. Practice. Okay, so let's let's do that\r\n\r\nokay, so notice\r\n\r\nit, forgot my instructions, and it's only giving me this piece.\r\n\r\nSo what do I need to do?\r\n\r\nOkay,\r\n\r\nthis makes me nervous, but we will try it. So we need to actually create\r\n\r\ntwo new files in queueing them in this Okay,\r\n\r\nso we're gonna add another file\r\n\r\ncalled admin dot Jas and another one called admin. dot css.\r\n\r\nI like those names, but we'll just go with it for now.\r\n\r\nLet's edit these. Well, those open\r\n\r\nand we need to move the CSS. Yeah, we don't need the style. We'll just drop that in here. I think the script\r\n\r\nI don't know if I need the script. tag or not.\r\n\r\nI don't think I do.\r\n\r\nDon't think I do. Yeah. Okay. So we'll get rid of those. Save that. Yeah, thanks\r\n\r\nfor that. Okay. And we need to remove this bit for the script and the style at the end. Okay, now we've got it separated out. Let's make sure that all\r\n\r\nworks. Still works well. Not good. So are our exes stopped working?\r\n\r\nOh wait,\r\n\r\nI didn't in queue.\r\n\r\nI didn't add this piece. Got to do that\r\n\r\ndoes that go? Oh, it goes in that\r\n\r\nPHP file. Yes. It's gonna go here at the end. Now it should work. Yes, delete update image.\r\n\r\nAll right. So that is now working. All right, pausing for a moment. Will I share the code? Yeah, I'll share this whole conversation with you when we're done. We're just remind me and I'll share that and if you're watching this on the replay, it'll be in the chat log. Okay, so are we get here questions about what we've done so far before I go forward to tweaking this a little more. Basically, I'm just following instructions and copying and pasting. pause just for a second. Anybody having a duct tape moment? Quit while we're ahead. Now we're gonna get better. We're gonna do better\r\n\r\neverybody good. I'm gonna assume we're good or everybody has gone to sleep or fallen off whatever. You're sitting on. Okay. Let's move ahead, because currently, yeah, I'm trying. I'm hoping there was an error like we haven't had any errors yet.\r\n\r\nSo yeah.\r\n\r\nPaul, will this add images to older posts without a featured image? That's a great question. Let's ask chat GPT. The answer is no.\r\n\r\nBut let's see what it says to do.\r\n\r\nYou could write a\r\n\r\nfunction to retro actively apply the default featured image to other posts. This could be executed as a one time action in your WordPress admin\r\n\r\ncool Yeah, so could be resource intensive. Yeah. 1000 posts, it's gotta go in and add something to h1. That would be a big deal, right? But you could do this if you want it. Okay, how about this? Let's make this an option in our plugin. Make a section on the Settings page called Apply. update old posts.\r\n\r\nupdate existing posts\r\n\r\nwinky face emoji.\r\n\r\nThis might, this might\r\n\r\nblow things up. Christina is asking about this used to be an image when you shared a post to Facebook. That's a completely different issue, Christine. And you would solve that by just Google Facebook debugger and you would have to go manually add that URL and have Facebook re scraped the image\r\n\r\nOkay,\r\n\r\nso here is where I need to.\r\n\r\nadmin settings\r\n\r\nokay, it's having me put\r\n\r\njQuery in the admin settings page and we just separated it out. So that's not going to work.\r\n\r\nWe moved\r\n\r\nall right.\r\n\r\nSo it had forgotten that we added another file. So this is just part of the deal. This is something that AI is going to get better at over time. And quite frankly, the code WP may already not do this sort of thing.\r\n\r\nBut all right, so we want this on our admin.js\r\n\r\nwe really should be commenting\r\n\r\nthis but I'm not going to worry about that right now. And then here on the magic images dot php at the\r\n\r\nbottom\r\n\r\nwe're adding another function here at the bottom\r\n\r\nokay, let's see if this works.\r\n\r\nOh, boom, we get an error. Okay, yay. We get to figure out an error. That'll be the only time you ever hear me say that ever. So what we're going to do to troubleshoot this error is we're going to go back to our public html folder. Well, we don't the error log is empty so it must be in the admin error log in WP admin.\r\n\r\nOkay, wow,\r\n\r\nI have no errors. No error logs\r\n\r\nthat's weird.\r\n\r\nYeah, there's not a plugin errorlog\r\n\r\nthat's interesting. Okay. Well, we just tell chat GPT\r\n\r\nmaybe I got an email Yes, I did get an okay. So in my email, yes. All right. That it did send me an email. Whoa, I don't want to deal with any of that. Let's go back here. And there's the error that was just emailed to me\r\n\r\nup generating please.\r\n\r\nThis Stacy, that was the year where your site is experiencing a technical issue email.\r\n\r\nYou know that WordPress since there was just the WordPress default email\r\n\r\nOkay. Thank you assets as\r\n\r\ndeclared more than once. Make sure you only have one instance of this. Okay. This is why I don't like to copy and paste code. So\r\n\r\ngive me the whole\r\n\r\nthis is why I don't like to copy and paste because things break\r\n\r\nUTD?\r\n\r\ndoing its thing doing thing\r\n\r\nstill doing its thing looks like it'd be about finished. Okay. Now copy, paste, save, refresh. Work. Okay, that\r\n\r\nworked. But we don't have any new functionality. Okay.\r\n\r\nWonder why that is? Maybe I don't have all the admin give me\r\n\r\nwelcome to plugin writing with chat GBT.\r\n\r\nMuch simpler for\r\n\r\nscripts as you can see. When there's multiple files and multiple things you're trying to do it gets a little a little more complicated\r\n\r\nright\r\n\r\nget rid of this\r\n\r\nokay. Yeah, that gives us our update existing posts.\r\n\r\nOkay, here we go. Now we've lost our stock image Ah\r\n\r\nyes, but we are making progress.\r\n\r\nAnd by the way, this is worse if you use GPT 3.5 Believe it or not\r\n\r\nOkay\r\n\r\none more time okay.\r\n\r\nNow we're missing.\r\n\r\napologizes\r\n\r\nit's very sorry\r\n\r\nI don't know if it\r\n\r\nunderstands when I typed what it means in all caps. But I if you look at the history of my chat GBT conversations, you will discover that the longer the conversations are, in the more frustrated I become, the more words are in all caps, much like\r\n\r\ntext messages. I'm sure none of you have that issue. Okay. All right.\r\n\r\nAll right. Well, it's totally different now. But it doesn't work.\r\n\r\nIt may have gotten confused there, Dave. I don't know. This just this happens. Sometimes it happens more than others. But you know.\r\n\r\nThis is why I like to have it give me the whole code every time\r\n\r\nOkay, let's try this.\r\n\r\nLet's see if update existing posts works and then we'll get back to this\r\n\r\nthis isn't working either\r\n\r\nOkay, let's start\r\n\r\nactually, we could just go back up here. Let's do this. So it started hallucinating. Remember what I said? It's sometimes it's better to go all the way instead of trying to argue with it. Let's go back up to the place where the wheels fell off.\r\n\r\nAnd where was that?\r\n\r\nHere\r\n\r\nlet's start over from here\r\n\r\nyou been in certain cases I have just started over again completely. All it doesn't remember anything. So I've gone back. And it's like it's from here. It's brand new. It doesn't remember anything that just went away. That we've rewound, and we're starting from that point again. I find that that is usually better if you're dealing with a hallucination like this. So I mean if our goal was to troubleshoot, this is typical of what you're going to run into. Alright, so here's our magic images dot php.\r\n\r\nHere comes our admin settings dot php.\r\n\r\nHere comes our admin.js\r\n\r\nOkay, we okay so hit this first time we've seen this. So GPT four will output a certain amount of text and we just reached that limit. We have this continue generating. We're going to click that and it'll it should pick up right where it left off. But now it's counting as another response on our total. So I don't know how many we've had. So far. But you know, we're getting we might we may run out of responses to this\r\n\r\nadmin.js Because I knew one of those and our admin CSS let's see if this reboot helped us.\r\n\r\nAlright, so this looks a lot better.\r\n\r\nYes. Okay. So that's actually working.\r\n\r\nupdate existing posts, hold your breath. Nothing. Oh, wait a minute. Maybe it's doing it. Okay. There is no feedback. When you click Update, what was it update existing posts? We should we should have a message\r\n\r\nthere a way we can know\r\n\r\nOkay, before during and after updating,\r\n\r\nupdating existing posts, please wait. Yes, this is exactly what I want.\r\n\r\nNow. It's giving me bits again. Oh, boy. Okay,\r\n\r\nthis is the one I'm concerned about to get this all correct.\r\n\r\nI'm going to give me the whole admin.js\r\n\r\nAlright, we need\r\n\r\nto put this under the button and that I can handle it. Alright. So under the button which is here. That's where we put this span that it's going to use to update with the jQuery\r\n\r\nOh Womp womp.\r\n\r\ncrash on chat GPT you know, what's going to be\r\n\r\nfunny is like all these frustrations and processes. A year from now think about what this is going to be like, if we're gonna look back on this do I remember when we used to have to ask it five times to do whatever and blah blah blah. It's gonna be like, remember when cell phones were this big? It's gonna be like that. This stuff is gonna get so much better. And we will have been using it for so long. We'll be the geezers of this technology.\r\n\r\nAll right. There's our new thing there. And, alright, let's try this again. Nothing happened. Surely that I missed something. All right. That's done. That's saved. That's saved. Okay. Nothing happened. Very anticlimactic.\r\n\r\nOh,\r\n\r\nthis is where it gets really frustrating trying to debug this JavaScript.\r\n\r\nCareer Chris, I\r\n\r\nmight be able to do a progress bar that's way more complicated that I want to try to do today like I can't even get it to display a message right\r\n\r\nall right, well,\r\n\r\nokay. We're just gonna leave that alone. For now. We're about out of time, but what I do want to do this\r\n\r\nokay.\r\n\r\nI want to be able\r\n\r\nto add featured images for the default featured images\r\n\r\nfor each post type in WordPress so our settings page should have a row for each define post type and the ability\r\n\r\ndefault featured image for each.\r\n\r\nShow the total to give me the whole thing we want to do this for every post type.\r\n\r\nWho knows if this will work or not, but it's giving us a function to fetch all the different post types. Now we're ready. It's almost like a loop here has been created. It's going to render all the things for each post type and the button\r\n\r\nother settings remain the same, yeah.\r\n\r\nAll right we're gonna try just paste this in. What could possibly go wrong?\r\n\r\nCopy what the whole thing.\r\n\r\nAll right. So it's add Admin Menu\r\n\r\nSettings.\r\n\r\nYeah, I'm not gonna try to do that\r\n\r\nso your inexplicably has lost a quit showing us this with the description? I don't know. Maybe he just didn't know to update that description since we've expanded it. This is the kind of thing you run into as your the longer a threat goes, the higher the chance of hallucinations. But you absolutely can get results okay,\r\n\r\nall right. And\r\n\r\nthat doesn't look right. But we're gonna just drop it in there because there's so much more\r\n\r\nwe'll put it in the air. Oh, that's not right. Can't be right\r\n\r\nmaybe I took that out because it wasn't working.\r\n\r\nAlright, there's our admin dot j\r\n\r\nAll right, those are the only two other files. There's my admin settings PhD we'll save that. Then here comes our JavaScript\r\n\r\nthis doesn't work, we'll call it a day\r\n\r\nwhat happened? Let's see. All right. Interesting. Pages.\r\n\r\nNothing happens this broken. Okay, so we'd have to keep going on this but you get the idea. Let me show you where I eventually got with the version of this I was experimenting with\r\n\r\nwill deactivate that monstrosity. And we will activate this one\r\n\r\nand this one actually works\r\n\r\nso I've got post types and taxonomies. But I stopped when because it was only giving me categories and not the actual terms in that taxonomy. But this piece actually worked.\r\n\r\nSo, you know,\r\n\r\nit just takes some trial and error. But again, you see the process. Does anybody have questions about what we did or didn't do over the last hour and working through the process of building this plugin? Ben, what if you ask him to type out Oh, that's a good that's a good suggestion to get it to check our work. So\r\n\r\nplease, we'll see please state in a list the requirements have\r\n\r\ngiven you so far for this plugin.\r\n\r\nYeah, that's about right.\r\n\r\nBut then yeah, that is a great idea too. If you're getting lost maybe well, but honestly it's, it is correctly providing the overview of the project, but it is incorrectly doing the thing and really doing the thing is what I'm after here, but so it's it's, I think it'd be interesting. It'd be interesting to see how code WP would handle this same task.\r\n\r\nBut yeah, that's a\r\n\r\nthat is a another subject for another live stream on another day. All right. Other questions, comments about this before we start to wrap things\r\n\r\nup? Yeah, then we could copy this and start\r\n\r\na new conversation and see what happened.\r\n\r\nAll right. So challenge\r\n\r\nfor you today. What is let's hear from you in the chat. What is one thing that you're going to do today, to take this and start to use it? What is one thing you're going to do today? And the rest of this afternoon or evening or whatever, to try to put some of this practical use.\r\n\r\nLet me hear from you in the chat. Then it's just kind of go to sleep. Yeah, it's\r\n\r\na little bit late there been true fairpoint watch the replay. Yeah, you can speed this part up on the replays at. Sally wants to know more about flex boxes. Have a project try to get AI to do for me to add featured on the website. As we're doing this, I really want to see what happens if I make a new chat. paste this in.\r\n\r\nLet's see,\r\n\r\nSally setting things, doing something complicated. Great. These are great office hours. Questions. Barney built chat GPT into our workflow.\r\n\r\nYeah, dream about GPT five. High Low maybe this will\r\n\r\nbe better results if we had it, spit out these requirements and build the thing\r\n\r\nagain. Oh, no.\r\n\r\nClearly this is going to take a little bit of time\r\n\r\nWell, that's weird.\r\n\r\nThey'll see that you'll get this sometimes like, here's the I didn't specifically say, right, the plug in my fault. Bad prompt, right? So it's like here you can think through this and you can write all the PHP and I'm like, wait a minute, what is this you stuff now? This is this is on you chat. GPT not me. I don't know what I'm doing here. So it didn't get lost. It did not get lost. I did not give it the prompt to actually write the plugin. So you write the plugin and now it's going to actually spit out the thing or not?\r\n\r\nYeah, so there it goes. It's doing its thing. All right.\r\n\r\nWell, hopefully this has been fun and not overwhelming. There's so much you can do with chat CPT from content to snippets to Plugins. I look forward to hearing from each of you how you're starting to use this in your work and office hours. Tomorrow is a great time to start that Oh, thank you. Yes, share the code. Thank you, Stacey. Because you know I was not going to do that.\r\n\r\nTotally forgot. All right.\r\n\r\nSo this is the original\r\n\r\nwrote the the the frustrating, broken one.\r\n\r\nAnd here is the new one that is yet to be seen if it works or not.\r\n\r\nThe possible better one. All right, there are\r\n\r\nthe links those will be in the chat log. If you're watching this on the replay. I'm not sure you actually want that code. Yes, it's bad. But those links you could copy it into your own chat GPT and start playing with it and go from there. So that's it, everybody. We're back for office hours tomorrow, one o'clock Central here on","livestream-resources-group":"s:34:\"a:1:{s:6:\"_state\";s:8:\"expanded\";}\";","multi-day_replay_details":["s:1037:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 1 Replay\";s:25:\"day_description_cloneable\";s:309:\"Hour One:An Introduction to AI\r\nHour Two:Using ChatGPT to Work with Content\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"877651636\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1V1gVLzIFq7Xwy4KKh0vgU2FHA-U_4Wj0\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/clR5qij6gsSJq8aUeoKC2DKzsO4?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";","s:1044:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 2 Replay\";s:25:\"day_description_cloneable\";s:316:\"Hour One:Using ChatGPT in Web Development\r\nHour Two:Creating a Plugin with ChatGPT\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"878058540\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1sQVFgXo8eEUWtqSPd1S2osJeMty8sNaz\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/0woVu8tHVGjbZfubMRyRUnsTCkQ?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";"]}},"postCountOnPage":1,"postCountTotal":1,"postID":448457,"postFormat":"standard","geoCloudflareCountryCode":"US"}; dataLayer.push( dataLayer_content ); \n2023 has been the year of AI. Virtually every industry has been touched by this amazing new technology.\n\n\n\nAre you leveraging the power of AI in your work?\n\n\n\nThe WordPress AI Workshop is designed for WordPress website creators who want to improve efficiency, and supercharge their workflow.\n\n\n\nWe'll explain how to use ChatGPT and other AI tools to work with content and create code that can take your development processes and abilities to the next level.\n\n\n\nDay One: Adding AI to your Content WorkflowDay Two: Solving Code Problems with AI\n\n\n\nAs an iThemes Training Member, you get free access to this event!\n\n\n\n\n\n\n\n\n\n\n\n\n","EventOrganizerNames":"Nathan Ingram","inline_featured_image":"","livestream_public":1,"is_multi-day_event":1,"livestream_zoom_registration_link":"https:\/\/us06web.zoom.us\/webinar\/register\/WN_6reEXDmWT3qQuUtdktFQwg","livestream_replay_set":0,"livestream_live_transcript_text":"Glad you're all here so many fun things to share with you over the next couple of days. Slide link is in the chat one more time. If someone would please just cut if you wouldn't mind copy that. Link for the course handbook to share with folks who come in later. That would be very helpful to me. Okay, let me get all of the windows dragged to their appropriate locations. Right Y'all ready to start? We ready to go AI. All right. Here we go. Well, good afternoon. Good morning. Good evening, wherever you happen to be. It is Tuesday, October 24 And it's time for the WordPress AI workshop here on solid Academy. So glad you decided to join us. I've been super excited about this course now for a few months, because we started to use chat GPT in our workflow on the agency side. You know late last year, when my mind was blown at how chat, GBT could create WordPress code just like that. And it worked. It was amazing. And we started using it ever since just for all sorts of things. And some of that has worked its way into office hours and answering questions and generating code snippets and things like that. So I thought why not? Let's just do a whole course on this and spend about four hours looking at some of the ways that you know, AI can be used in our workflow to make things easier, and there was a mention in the pre show about some of the ethical implications of AI and all that's out there. That is not what we're going to be talking about this time. It is certainly worthy of some discussion. But that's another discussion for another time. So I'm glad you've joined us if you're watching this on the replay down below the video, you'll find the link to download the course handbook which you see on your screen. Chris has kindly dropped that into the chat again just now if you're just joining us in zoom. So we took a poll as we got started about you know, what was your comfort level using AI most folks were kind of in the middle, some lower some very high. But no matter where you are with your comfort level with using chat TPT in particular, I think you're going to find some interesting things in this course. So I'm glad you decided to join us. And as always, the replay will be available after these two hour winds take a little bit longer. So roughly an hour after we wrap up somewhere around there. We'll have that replay. Up available for you certainly by this evening. So you can go back and rewatch if, if you'd like so let's dive in. Now this is the course handbook. It's 23 pages. Got a nice little table of contents here. This is where we're heading over the next couple of days. I've got some pretty important and well defined course goals here. So this is not by any means meant to be an exhaustive treatment of AI if that's its, you can't you can't even say this is an exhaustive treatment of chat GPT because it's there's just too much to learn. And in four hours, there's just no way. So here's what we're focusing in on. Number one, just to understand the foundational principles of how these things work. That's really important because if you see how things are set up, then you'll learn how to use it better. So that's what we're going to focus on, especially in the first hour today. Then we're going to focus on how can we start to use chat GPT for content creation. Now there's a number of AI tools I mentioned, especially in the first hour, most of our work in this course is going to be focused on chat GPT because that's the most ubiquitous AI tool out there. Most folks are using it, most folks understand a little bit about how it works. So that's where our focus is going to be. But just be aware, there's a lot of other ones that I'm going to mention as well. So our two today is all about content creation and some of the cool things we've learned using chat DBT in that realm, and then tomorrow it's all about code. So in the first hour, we're going to focus on really how do we get chat GPT involved in our website development process and really, you know, in our ongoing management of sites, maybe we need some code snippets or things like that. And Chad gptc does a great job. At those sorts of things and also does great troubleshooting errors. So day two, we're going to look at chat TPT in web development, and then this is ambitious, but in the second hour, we're going to try a live build of a WordPress plugin that solves a particular problem. So this is a workshop meaning a lot of what we do. The first hour is pretty scripted as far as we're just gonna be following the handbook. But as we get into the content piece in the next hour and then especially tomorrow, it's gonna be really into chat GPT using some things I've given you links in the course handbook to a lot of the chat GPT threads and we're going to use those as reference but also kind of building on those as we go so we have a long way to go over the next couple of days. So glad you decided to join us and I hope at the end of this you will find that you've got a brand new tool that can do lots of different things for a very small price. I mean, 20 bucks a month, y'all that, you know, that's not a lot to do what chat GBT can do. So let's get into it, shall we? Let's start with just let's get the lay of the land. Very, very important. Just foundations of how AI works. So let's spend a little bit of time on what is AI What is this thing and how it actually operates. So AI Artificial Intelligence refers to machines. Or software that can perform tasks like the human brain can perform tasks. Now, as I mentioned in this course, we're going to be mostly focused on chat GPT but there's lots of other AI models that are out there. Ai especially the machine learning models like we're using, have learned from vast amounts of data, rather than being explicitly programmed like you would think of old school programming of do this, this, this and this prescriptive order. These are models that are trained on large volumes of data, and they have the ability to process that and think through it. It's kind of scary, in some ways. Many advanced AI AIS like chat GPT use what are called neural networks, and these are combinations of chips and code that function a lot like the human brain. It's it's really pretty, that's kind of scary and amazing all at the same time. So AI models are first trained on data, and then we query them to get the output that we want that query is called a prompt and prompt, look, prompt are the key to getting the most out of AI. What you ask and how you ask it in the context you give. That's how to get the most out of AI. Now you may have seen this term generative AI, that's a specific kind of artificial intelligence chat. GPT is a generative AI, it can produce new content based on what it already knows now chat GPT is trained on the internet, like the whole thing up until a certain point in time. So it knows a lot of things and it knows a lot of people and facts and it can you know put answers and text together in really creative ways. So these kinds of modern generative AI is can handle a range of tasks, from image recognition to text generation, and everything in between. But while AI is powerful, it is not infallible. And if you've done any work with AI, let's just hear from you in the chat. How many of you have been doing work in AI and you realize this thing has gone a little loopy, like it's making stuff up? These solutions are not working. And the more I'm using it in this conversation, the worse and worse and worse it gets. So those are called hallucinations. They are real thing. And that's part of the deal where we are at the AI tech level right now. It is not infallible. It can make up things completely. And so we have to be aware of that as we use chat GPT and other generative AI models now, a lot of the, the well the results we get and sometimes those hallucinations are based on the prompt we give in the way we interact with it. So we'll be trying to work our way around some of those things, but we might find in our work in this workshop, that it makes some stuff up and we see those hallucinations pop up. So\r\n\r\nAI models can reflect and even amplify the biases that are present in their training data. So depending on what information was used to train the AI biases that went into the way that information was, was written and presented, can also be you know, that can come through in the AI. So, you know, AI is only as good as the information that was put into it. And so sometimes you get bias. And so that's where we get into the ethical questions and that's it's those are important questions to hit, sir. But we're not going to even touch on that. In this course, what Stacy's saying is that hallucinations and not lies. I mean, it's not really a lie. I think why is have to be intentional. I don't think chat GPT intends to mislead, it just loses its mind sometimes it hallucinates. So, why is all of a sudden AI a thing? Have you ever asked yourself that question like all of a sudden, like we were living in a world without AI and then boom around November of last year? Everything's all about AI? Did you notice that? I all of a sudden the whole world is talking about AI it was really with the release of chat GPT or not. It was right around this time last year in November of last year. So let's look at an understanding of how this works where it came from. Why all of a sudden AI is the thing because that's going to be helpful to us to understand what we're dealing with here. So AI has evolved from bad to worse a basic, you know, less advanced tools like the Amazon device that is sitting on my left that if I say the name Alexa, get might wake up now don't want her to also Siri and Google's assistant. And then advanced AI is like chat GPT it seems like it's all happened overnight. But AI goes all the way back to the 1940s that's where it was some of the initial foundation pieces of AI were laid. So there's a few things that have led to this quick, seemingly explosive development of AI since late last year. So the first of those is this refer that there's been a refinement of the concept of the neural network. So these were things that had been around since the 1940s. The you know, a lot of government entities had built start we're starting to build, you know, room size computers that were linked together and could think together and process together. But there have been some significant improvements in the way these neural networks operate. That's led to a lot of these advancements. There's also this thing called backpropagation. So this is really key to AI and actually can help us help chat GPT get around the hallucinations. So back propagation the way this works is AI works through some information to get an answer and then it sort of tracks backwards before it gives a response to make sure that it's correct. It's remember like in the in elementary school, you would do a math problem. And then you would check your work like it was an addition problem. You did subtraction to check your work. It's kinda like that. In the AI sense, and it happens quickly. But this helps AI to refine its responses and get better. So back propagation was something that was introduced in the 80s. It's gotten a lot better recently. Maybe the biggest single change that has ramped up AI's ability is this thing called transformers, not like more than meets the eye. Optimus Prime. These are this is something that was invented by Google in 2017. It allows the neural network you know this this cluster of information that's being processed by computers connected together. Transformers allow a neural network to understand a whole data set. So the data set for chat GPT being the internet, how do you process that information or in earlier AIS, maybe it was this giant folder full of PDFs that had all this information or whatever and you would train the AI on this. What a transformer does, is it helps to build relationships between the different bits of data in the data set and start to make some sense out of it. So smart people at Google figured out how to do this back in 2017. And that was a major bump. Up forward. You started to see Google's AI and Siri and Alexa really starting to do better, right around 2017. The single biggest deal has been advancements in hardware. So the graphic processing units that were originally developed to do gaming gaming computers, the GPUs made by companies like Nvidia. The processing power in those GPUs is immense. And perhaps you've heard of these GPUs being used to mine Bitcoin and create cryptocurrency because they can process the kinds of activity that build cryptocurrency a lot faster than a typical CPU, right, your, you know, your the chip that's in your computer. And these GPUs have just supercharged the amount of data that AI can process and AI works better with the GPU parallel processing that it does in an old standard CPU. So as GPU strength is increased, then all of a sudden we have these transformers that have gotten neural networks have been proven out and made better and all of a sudden, boom, there's just this possibility that has never been there before. And then somebody realized that wait a minute, if we train AI on more than just our own internal corporate library of documents, but if we train it on a larger data set like the internet, it's actually better. Like they used to think well, if we give it too much information, it won't know what to do with it and the responses will be more bland. But actually what happened was it having more information with the with transformers that can make connections has allowed AI to have a broader perspective on information, and as a result, give better answers. So all of these things have added up together until this time last year, boom, you've got all this AI hitting, and it's just unbelievable. So does that make sense to everybody? I don't want to belabor this point. But I think it's important to understand why we're here and where these things are coming from. So AI has been gaining popularity in the tech world through the years. It became most popular at the at the consumer level with these personal assistants like Siri and Google assistant Cortana and all the others right. Open AI which is a foundation was started back in 2015 by a group of people including Elon Musk, and the mission of open AI is to ensure that AI would benefit all of humanity. Now since then, they've decided not to open source their code which is interesting, but open AI in 2019 released GPT two, which was a cutting edge language model of generative AI based on well GPT by the way stands for a generative pre trained transformer. So again, this this concept of being able to make connections with data. This was really landmark is groundbreaking. 2019 open AI releases GPT two now GPT three came out in 2020 it was more powerful GPT three started appearing in the tech world. Okay, so who remembers back in like 2001 There were like 8000 ai writing tools on App Sumo. Remember that? Like all of a sudden all these writing tools started coming out? Well, this was when GPT three was released, right? And so open AI Oh, you know, there's an API, all these letters. There's an A there's an API through it. You can connect to open AI and use the GPT three model to get lost in that alphabet soup. Anyway, so they opened it up. And then there's all these software tools like all that Sumo, that are just a software layer that sit on top of the API that's talking to open AI. So that's, that's where all of that came from. And again, it's just part of this swell this this swell of movement towards AI. Now, November 30 2022, was when chat GPT came along. So now in our web browser without the need for API keys and software layers and all of this. We can now in our browser, interact with an incredibly powerful model called GPT 3.5. Which even though it's a point five it's miles better than GPT 300 million users within months, the fastest growing application in history was chat. GPT just incredible growth, never seen anything like that. So GPT four came along on March 14 of this year. It's slower, but its answers are way better. So if you up to this point, have only been using the free version of chat GPT you're using 3.5 which is okay, it means pretty good. But upgrading to chat GPT plus, it will give you access to GPT. Four, and the creative abilities the writing abilities especially the coding abilities are far far far superior and that opened up back in March the 14th. And it's gotten a lot faster since then, but it's still not as fast as GPT three, five. All right, I'm gonna pause real quick.\r\n\r\nEverybody good. Makes sense. We have getting a little bit of a lay of the land on how all this stuff connects and how it's working. All right. So one of the things I always hear about AI, it's a lot of fear, right, a lot new technology comes. There's a lot of fear that always happens no matter what I mean, when the block editor was released a lot of fear, you know what's going to happen to WordPress, blah, blah, blah. WordPress is still fine. Everything's fine. sky's not falling. But this is a quote I shared several months ago, because if you're a knowledge worker, if you're a writer, if you're a web developer, you know. I don't want to say it that way. If you are a web developer that's not highly specialized in an industry, for example. You know, there's a lot of fear about is AI going to come and take our job. And this is a great quote from CJ Pomar, who is the founder of brainstorm force. Computers did not replace accountants. When computers came along, all the accountants were worried that they're going to get replaced by computers. And the truth of the matter was, accountants weren't replaced. accountants who use computers replaced those who didn't use computers. And so I think that's a really good analogy to where we are with AI and our work. So we have to get smart, and we have to understand how this new tool set can benefit us to do our work faster, stronger, better, right. So this is a it's still the My Favorite perspective on how AI connects with you know, our work and what we're doing. Okay. Let's get into some chat GPT frustration, shall we? How many of you have used chat GPT and you've been underwhelmed by you try to make it right content. You're it's like, Sue and I were having a conversation earlier. And she's like, What, Sue what was the phrase? Like in this digital world, blah, blah, blah, blah, blah. It's like this. Content is just so just awful and squishy. And not just horrible, right? Yeah. So that can happen. It's all about the prompt. So anyway, let me let me just go through four very common mistakes that happen in today's digital era. Thank you. So that's it. It's very it's just cheesy. Yeah. Thank you, Sadie. So here's four common mistakes. All right, using chat GPT. The first one is, chat. GPT is not a search engine. Okay. You might extract some facts, but chat GPT is a generative AI. Okay, it's made to generate content. It's not really there to be like the answer to your questions, you know, a replacement for Google, for example. So it's not meant to be a search engine to get fact based. Questions, especially about recent subjects, because chat GPT the training was cut off, you know, a year and a half ago. So don't you? I mean, it can answer questions. Matter of fact, I use chat GBT one time because I was I was trying to fix my lawnmower. And I wrote, like, what is the thing that, you know, what's the cable called that when you push the throttle lever forward, what in that connects? What's that cable and it gave me the right answer. So it can do that. And a Google search gave me nothing. It can but it's really not meant to be a search engine. Okay. So you're not going to get as great results. Chad GPT 3.5 only as knowledge up to September 2021 GPT. Forest trained up to January 2022. So, you know, we're getting close to, you know, almost two years out of date with the the knowledge base of GPT four. So sometimes you can get good facts to chat GPT it's best used to brainstorm to process information and to solve problems. So a generative AI is meant like I'm gonna give it a bunch of stuff. And I want to ask a question about that. That's where it shines. So make sure you're using it for the right purpose. A second mistake and this is what we were just talking about. settling for a generic tone. Okay, so chat. GPT has a writing style. That's just what it is. And it's usually pretty awful corporate speak. Like we were just saying, like Dave's example in the chat. I hope this email finds you well, that, you know, don't send that. That's terrible, right. That's that generic, horrible chat GPT tone that just comes out. Right. So if all your chat GPT responses sound alike, it's because you're not asking it to respond differently. It's only going to do what you asked it to do. So again, if you take nothing else away from the all of this whole course it's this. It's all about the prompt getting the most out of chat GPT is all about the prompt. So chat GPT can respond and provide text responses in almost any tone and style imaginable. In your prompt, you can ask chatbot chibi chat GBT to respond as though they were a person, particular person, a profession or in the style of a person or character. You can say for example, from the point of view of its product manager describe the Amazon echo, echo Alexa device from this point of view, or from the point of view of an adult child caring for an elderly parent described the Amazon Echo device. Let's jump in. In fact, let's just let's look at the difference here. I'm gonna go with I don't want to run out of responses here. So we're gonna go with GPT 3.5. Let's just look at this. Okay, so describe the Amazon Echo device. Okay, so we have a pretty bland response here. Alright, it's got some basic information am I am I angering some of your personal home assistants with my copying any of that? This is going to be annoying. Now, yeah, so look at how different this response will be. This is really annoying. I think this PDF and it's not spacing anything out. Look at this voice activated system. Right. So it's, it's crafting its answers to fit the situation like, you know, what are some of the most important things about features about this that pertain to this situation? You can even do this. Explain it to me, like eight\r\n\r\nright, and it completely changes the response. So you can just change up the prompt just a little bit. Right? And you get wildly different results. Now explain the frustrations with our favorite device\r\n\r\nAll right, so there are five frustrations Now watch this. Do that again in the style of Jerry Seinfeld.\r\n\r\nAnd this sounds I mean, you can read this and Jerry Seinfeld voice and it sounds like he wrote it. Ever notice how you can be crystal clear with it like you see. It has changed the style completely because it knows who this is. And it rewrites based on that tone. Pretty amazing. Right? So you have a lot of flexibility. It's if you're getting generic content. It's because you haven't told it to respond any different. What about this make a rap about Alexa. In the style of vanilla because I'm that old this is horrible. But there you go. It'll do all sorts of things. It'll repeat back poems. It'll write stories it will any famous person it will be able to respond in that voice. It's pretty darn amazing. Right? Yeah, stop, collaborate and listen. Alexa is here with a brand new mission. You gotta love it. Yeah, now I just woke her up. Okay. Anyway, does that make sense? Pretty cool. So change your prompt. If you're getting terrible responses, change your prompt a little bit you can even say suggest what voice would be appropriate for a 500 word, article about that\r\n\r\nso you can even ask it to suggest Anyhow, it's all about the prompt number three. This is a big one. How many of you all just keep typing in the same conversation? If it's a brand new subject, just keep typing. Right? Big mistake. It's always best to start a new chat when the subject changes because think about it. Think about it this way. This is a single conversation about a single topic in a single voice, etc. If you start talking about something else in the same conversation, it's like that friend that we all have, that interrupts us and completely changes the subject in the conversation. Yeah, anyway. So start a new conversation. Plus, you can rename these over here or whatever you want, um, so that they're more recognizable to you. It start a new conversation if you're going to start a different topic, unless there's some reason to keep everything in the same conversation. Usually there's not. So one client's content lives in one conversation. Don't mix threads between no mix clients in the same conversation. If that makes sense. Don't be like the person who interrupts your train of thought with an unrelated subject. Number four don't settle for the first response. Again, chat GPT is all about the prompt that you give it. I will let me clarify. So Stacy, I don't mean a new window. Like if we're going to do something else here, I would say new chat. And so we get a new conversation over here. And the old ones are over here. In my history, but now started a new chat, the new conversation from right there. So don't settle for the first response. Chat GPT again, it's all about the prompt. And prompt engineering is an art and a science. It takes practice you get better at it as you practice. If you don't love the response that you get asked chat GP to change its tone, or explain it differently, or provide multiple options or give it more context. The more you give it this is called training the conversation. So you know if I want to if I want Chad GPT to output some content, I need to give it some stuff to work with. And we're going to do that in the next hour. But we need to train the conversation to give chat GPT the context that we want it to operate in and so from that context, it can pull from outside and everything else and it's learned, but it'll output within that context. So just keep sharpening it. Keep crafting your prompt. And guess what next time, you will know okay, I'm not I'm gonna start to ask it this way this time, right and you get better at it over time. But be clear and direct with what you're asking chat GPT to do. Does that makes sense? All right, so what does effective prompt engineering look like? So here's a few principles, clarity. Clarity is key. What exactly do you want me to do? Be specific and clear. About what you're trying to accomplish in this conversation? The more specific you are the better results you get. So let's just start a new conversation here. Let's say I'm writing a travel blog. What are the 10 best scenic highways in the US boom All right, look at that. And actually, let me show you some if you've never seen this, you can just see this. For the purpose of this demo. I'm going to shorten the number of them because 10 is going to take a little while each time so I'm going to edit this. Let's say for the for the scenic highways in the USA. All right, and we'll go back and edit it. Alright, so here's what chat GBT thinks are the four best senoko So we're just gonna go with that. All right. Now let's give it some context. What background information can you give the conversation so you can understand it better? So again, context is critical. Explaining the big picture makes a difference. So instead of just asking this, let's do it this way. I'm writing a blog post for retired RV travelers about the three best scenic highways in the USA. Okay, so we're telling it Okay, first, we're writing a blog post, who is the audience of the blog post? And I said for a minute ago, we'll stick with three here. The top three should consider options for stops for fuel and food and should be RV friendly with options for RV camping. So let's copy this maybe, hopefully this is going to copy well. So let's go and we'll just put it in. Okay, now. Now liquid it gives us we're sharpened in. Yeah, like Dave said that the who, what when where shirt? Yeah. But just get specific, right of what you're asking for. So here's what it's given us here. Pretty cool. All right. How about output? How do you want me to return the results? So it decided I'm gonna do this in a numbered bulleted list. Okay, that's cool. But when you this return that list is a table and look what we get. I like this. I do a lot of output in table if I'm trying to compare things. If I want to move this to a CSV, I can say output that table as a C F v. And there it is. And I can just copy that, save it as a CSV and open it up in a spreadsheet. Pretty cool. Right? So you have lots of different options. So now I'm gonna give it even more context here. So expanding on this information act as a travel reporter write an informative blog posts for an audience of adults age during use appropriate heading structures throughout lists three to five must see stops on the route three to five options for RV camping, to just five title options for the blog. Add Google Map links where appropriate.\r\n\r\nThere's our titles. Look at that. Is that not amazing? Boom. And all these are linked. Look at that. Okay, the links didn't work. Okay, so here's a hallucination from Google from chat GPT. For links didn't work. We could go back and refine that if we wanted to. I'm not going to do that for now. But watch this. Another for example. Let's say you've done some keyword research and you're looking for a key phrase I have where working with E word I don't know retired RV trips. That's terrible. But let's just say that's a key word. We're writing this for. work that into the article, naturally several times in the text and in at least two of the headings and the title\r\n\r\nso it will work that keyword right into everything that we've done. Pretty cool. Yeah, so you can do a lot with chat GPT and we just that took what, five minutes or less? Yeah, pretty, pretty amazing. All right. So what do we do? How do we deal with hallucinations? Okay, I see. Sally, I see your your question about using GPT four. We're going to do that in the next hour. When we're actually working with content. I'm just going through some basics right now. I don't want to use up all my GPT for questions because it's metered Right. Like I get 50 every four hours. So yeah, what we'll do more on that GPT for in the next hour. All right. So if you get a chat GPT hallucination where it makes something up or it's going down the wrong path or whatever. Here's the best thing I can find to tell you to do. Edit the previous problem. So go back to the place where it fell off the wagon, and go back and edit this prompt, you know, to say, make sure that you know, let's just go back up to here, where it where it started giving us bad. Bad Google links. I don't know if it'll fix that or not. Useful. Google Map links, not short links. Make sure these work and you're not making them up. It may not do this. With these mappings that may not be possible. But anyway, you go back and edit the prompt right before the hallucination occurred. And have it regenerate. Did this work? Son of a gun Look at that. Yeah, so look what it did. It just put a query. And so that'll Absolutely yeah. So that's one way to deal with hallucinations. You can also do, you can challenge the response. So I don't find this as nearly as effective again, this the solution the hallucination seems to return more often if you try to challenge it. I recommend editing the prompt but there may be a case where you want to challenge it and say, you know why do you think that what evidence supports your answer? Give me your decision process of returning this answer. Or just what the heck are you talking about? Often the AI will just apologize. Hey, you're right. I completely made that up. That happens a lot in coding. I'm sure we'll see some of that tomorrow. Of like it'll just make up this WordPress core function out of nowhere. And you're like, that doesn't exist. It's like, oh, yeah, you're right. Let's try this differently. So I just find it's easier to go back and edit the previous prompt. In a coding situation. A lot of times you have to challenge it, but especially in content writing, just to edit the previous prompt. Okay, so I got a really Cruz here to get through by break time. Is chat GPT plus worth it. Yes, period. Moving on. It's just far better, the output is better. You also get the use of plugins. Which I'll show you in a minute. And custom instructions. Custom instructions are new. They're here in the know oops. They are here. We look at this so you can actually create these are just some fake custom instructions I put in here. So I can enable these four new chats. And now as long as that's enabled, any chat that I create from here forward is going to take these things into consideration. I'm a WordPress developer based in the US we primarily create content code for WordPress websites. If you provide code in the conversation, always check for compatibility with PHP 8.1 and point out any potential security risks suggesting alternatives. How would you like chat GBT explanation should be informative and typically short unless directed, otherwise, if you provide code, I do not need you to explain it afterwards. Also, if we're debugging and revising, it's very important. You always provide the entire code snippet or code files rather than just telling me to swap out pieces. If that love this. If we're writing PHP functions, always prefix functions with P WW underscore which is our agency prefix. So with these custom instructions turned on, now, every response I get after that is going to include this I don't have to type it ever again. Now I had it toggled off because we're dealing with content. I'm going to leave it toggled off and no this is not free. This is part of GPT plus. So this is what you're going to pay what is it $20 A month for I think, oh then is that in your free version? I didn't think that was the case. Maybe they've changed it to free. But they've added a couple of things here with GPT plus here and GPT for notice. Now they're gonna let you browse the web. So pay you can give a URL if you turn on this browser thing. It also you can generate images right from Dali, right here. If you turn this on, it'll generate images. And it also gives you plugins, which is my favorite part of chat GPT. So you got a lot of extra things you can do. You've got custom instructions here that I just showed you. But let's talk a little bit about GPT plugins. So GPT Okay, Stacy. We're not talking about the the chat GPT that's like an assistant on the Bing browser. This is a plugin for chat GPT that allows it to go like you can give it a URL and it can go read a webpage it couldn't didn't use to be able to do that. Now it can but in addition to that, that's kind of baked in. Because Microsoft is an investor in open AI. It's baked in as part of the GPT four options. So you can do default or use plugins or browse with being plugins are incredibly helpful. So I've given you a list of some plugins. The one thing I will tell you this is, I don't know who these people are developing these plugins. So if you're going to use a plug in, you're basically giving it access to anything that's in that conversation, and they do live within a conversation. And you can't add a plug in to the conversation after you've started it. So you got to make sure the plugins you want you can have up to three active in a conversation got to make sure those are set up first, and then have your conversation. But I don't know what the privacy policies are. It's really murky. So just be careful with that. Don't put anything proprietary or sensitive or whatever. You know, I wouldn't put anything in a conversation that uses plugins that you wouldn't want out in the public domain someplace. So just be aware of that. But look at the so cool. Look at the things that it can do. Alright, so we've got browse with Bing, and that's really good. But also there are two plugins, one called browser up, and one called Web pilot. They both do basically the same thing. You can put a URL in and tell it to browse that URL in a conversation and those plugins will go fetch that information and pull it into the context of the conversation. So for example, if you're trying to rewatch, we'll do this in the next hour. But if you're trying to rewatch Read Write someone's web content that was hard to say. You can say here's the five content pages on their current site, learn about this claim from there and now suggest new text for the homepage and it'll do it. We're going to do that in the next hour. Another one very similar, but chat with PDF, ask your PDF or AI PDF, they all do basically the same thing. You can point to a PDF link. It will digest the content of that PDF for use in the conversation. This is a really cool one AI video summarizer you could put in a YouTube URL, and it will summarize the video for you based on the transcript. It's amazing. I've been yes, they're free. Now these are free plugins right now. So you can see some of the ones that I've installed. There is a there's a Zapier plugin. There's a plug in store here that will show you all of the you know, you can search for whatever and just install it like it like an app store into your chat GPT link reader is very similar to some of these others any link it'll read webpages YouTube PDF, PowerPoint image, where it just any link, it'll pull that content in. This is super cool. If you use GitHub at all. This ask the code will go crawl a GitHub repository and be informed on the codebase of this thing. So if you're trying to troubleshoot a plug in, you can literally put in the Git repo of the plugin and it will just learn the code. Just absolutely amazing. Ben is asking how you turn on the plug in you have to be in GPT for and you select Plugins here and then you'll get this where you can check on which plugins you want active. diagram show me so this will actually create like a mind map or charting out information which you can then immediately push over into Miro to edit\r\n\r\nthis is super cool. One word domains so if you're having if you're trying to help a client come up with a domain name, you can have it suggest have chat GPT suggest domain names and this plugin will go out there and see if the domains are available before giving you a list of suggestions. I mean, and then of course Zapier, imagine, you know from Zapier, coming in and out of chat GPT with information is just I mean it's it's super cool. I haven't played with this yet. It's on my list to start to play with. So you see how cool chat GPT can get with these plugins. Absolutely amazing. Christina is mentioning Gravity Forms and chat GBT. I'm not talking about that in this course. But it's just another way for example, you can have somebody fill out a form on your website. It'll pass it through chat GPT to provide a reply or a summary or whatever. It's just amazing. Absolutely amazing. Okay, so let's chat. GPT is our focus but I do want to show you a few other apps to level up your work. I knew I knew I knew this. I was going to be running late on this. So we're gonna go fast here. Okay. But who here? Are you a Creative Cloud member? Have you seen Adobe's generative AI in Photoshop and Illustrator? Absolutely. Unbelievable. All right, so I'm just going to pick one of these. Okay, so here's, this is a Pexels image. Oh my gosh, oh. We've got these people on the street, right. I am simply just roughly I'm going to draw a circle around these people. And I'm gonna hit generative fill and not put anything in there. And it's just gonna get rid of them and interpolate what should be in the background. So if you ever you know if your client ever look at that, I mean, that's just and you get also three different options. Over here in the sidebar, kind of like that one better. This one, that one feels better. Oh, and look somebody they didn't move the trash. Let's take out the trash for now. You could do this with Photoshop. But now you just draw a circle and click the button. It's It's just unbelievable. But not only that, okay, so we got our trashcan and whatever. Make sure I'm on the background. What's your favorite dog? Anybody? Give me a dog, Jack Russell. Okay, we're gonna put\r\n\r\nJack Russell Terrier in the foreground. And it's going to be in the right light. And it's the right angles and everything\r\n\r\nthat's not a chakra. That's pretty good. That's pretty good. I mean, look at that. Absolutely. Amazing. So you can see the you can see the options here. Let's say, Oh, here's a very complicated image. Right. Let's just draw a very rough. Let's we want to get rid of everybody in this image. Just a very rough wrap around. We'll hit generate, and it's just going to work. Can we say it doesn't work with with high res? I mean, this is a 1920 by 1200 ish. It's it'll work with as high as I found it. Look at that. I mean, that was a really complicated image. We have got several options here. That was good. I like that one better. There it is. Absolutely crazy. Let's put a coffee mug here instead because who drinks water with lemon while at their computer? Latte in a big coffee cup. Big red cup with with hearts boom art\r\n\r\nSally, this is Adobe like this is Adobe generative AI Look at that. That's incredible. Oh, that's I mean, look at that. That's perfect. absolutely unbelievable. Change it to a margarita. Okay, I gotta move on. So Photoshop absolutely cool. Did you know illustrator will do the same thing with vectors. How many of you have gone like you're looking for a stock vector image for an icon? Right. Let's do let's see. I want to make an icon of of what I don't know of a light bulb. Light bulb icon generate. Now you can also have this if you already have your canvas setup with colors and stuff. It will make your light bulb icon based on the colors that are already there. I mean, that's pretty darn good. And they're full vectored images. It's not this is not Affinity Designer. This is Adobe products. You can even do a scene. Let's do a\r\n\r\nSan Francisco Bay at night. Oops.\r\n\r\nSo now let's move on to a website homepage. Not in this I'm sure that you know that's coming and there are tools out. Wow. Okay, that's pretty cool. That's not awful. I mean, it's a good start. Right? I mean, that's kind of quirky. But you get the idea. Right? It's very, very powerful. Those things happen right now. Adobe Firefly. This is the other Adobe generative tool. It's like dolly and other AI image creators. I think it's a little better and if you're a if you're a creative cloud member, you get this for free, where you can just type in by prompting it'll generate an image for you. This is super cool. This is what Adobe's after this is where they're heading with their gender today I like here's this image and it's tools this is going to be across the board and Adobe tools. It's gonna be able to pick out the things in an image and put those in layers for you to do things with. I mean, it's just and that this is coming very soon. Something else I want to show you is code WP we may try to use this tomorrow. We'll see how it works. This just launched last Tuesday. This is an AI it's an overlay for open AI but it is trained specifically on WordPress code. This is really really, really cool. Code WP dot a. This is super cool. Well, that's because I'm logged in but anyway, you see it worked like it's trained on WooCommerce code ACF, Gravity Forms all you know major things more to come and it will actually write plugins and put them in packages of multiple files and folders. Like you could write a major plugin with this. It's still a little quirky, it's still getting worked out. But this is really, really neat. I mean, you get 10 Free generations per month. $12 a month is all this thing costs. There's an affiliate link there if you're interested. Just check that out. Play around with it. We may use it a little bit tomorrow. But it's this is an AI that use it again, it's using the open AI generator, but it's got this extra repository of all the WordPress code base, four core and all these popular plugins built right in it's just amazing. This is one we've been using for actually quite some time. It's called may guy. We really really really like this. Let's see where is it? Ah, here. Okay, so may guy is it's another overlay for chat GPT but you can talk to all of these models so you can do open AI anthropic, which is Clyde, the Google AI metas AI and others. The neat thing about this okay, we saw earlier the custom instructions for chat GPT this gives you it's the same thing. It's called Custom personas. So what this will allow you to do is have multiple personas, like if you're doing a plugin, if you're doing code, you can have a persona for code. Here, for example is our WordPress news roundup persona. So when we're doing a quick when Chris is summarizing articles for the WordPress news roundup every month, this is what we use. At his WordPress web development news reporter take the URL I give you read the article, provide eight to 10 Sync bullet points that summarize the article you read no more than 10 to 12 words long. Don't use extra words leave out articles like V or a when possible blah, blah, blah. We've just gradually improved this like Chris How long did it take you to dial in this prompt? That's been the took some work right? So you know, provide a summary that will be interesting and important to a WordPress web developer who is a small agency owner bla bla bla bla, give me two options versus st informative title for the article now. It still needs to be edited. But over time we have perfected this prompt to give us 90% like it works really darn well. So yeah. This is great. And y'all this is where is it? This is we pay nine bucks a month for this. And there's and you don't have to have a chat GPT license. This your $9 a month it's metered usage. You know and you can upgrade for still pretty cheap. It's again, it's an overlay, it uses the API, but you can train all these custom persona. So for example, let's say you dial in the brand voice for one of your clients in custom instructions, and you're writing blog posts for them every month. Well now you have a persona for them, and you just use that and it's all in there. That's all you have to do. It's just it's amazing. It's amazing. So I talked to the Creator, who has been a fan of AI themes for many years. So he has a code here. If you're interested. There's the affiliate link if you want to do that, but it's solid 20 20% off your first three months. Pretty darn cool. If you're using something like text, expander or type desk, there's all kinds of opportunity for integrating AI into this. There's some articles there I really don't have time to even get into this. But my goodness, that's cool. And you can like store your prompts, for example, as a text, expander snippet or whatever. And then last of all, Chrome extension now there's a ton of Chrome extensions for chat GPT because there's Chrome extensions for everything, but one I want to show you in particular, is this one. Okay, so here's our normal chat GPT interface. This is something called Chat GPT anywhere we like this one. I'm going to toggle this on and refresh. It's just it basically gives a whole new UI for chat GPT you can create folders for your conversations and it makes your history searchable. That's the most important thing for me, because you can search for something that's way, way, way way down your list. This is free works great. I like it a lot. I'm going to turn it off again. So yeah, that was our first hour. Okay, how was everybody? Okay, mind blown. A little duct tape going on. Okay, let's take a break. We'll come back at 10 After two and we'll spend the rest of the next hour talking about using chat TBT to generate content. All right. So we're back at 3pm Start. No, we're back at 2:10pm Central time and we're quiet until then.\r\n\r\nAlright folks, 30 seconds to go. We're back. In 30 seconds.\r\n\r\nAll right, 10 minutes after a time to go for our two of the AI workshop. Who's excited now? Are you excited about AI more excited than when you started? What do you think? Let me hear from you in the chat. Because that what we just saw was the most boring part of the course. So let's get into the fun stuff, shall we? So at its heart chat GPT is designed to work with content, it is a generative AI. So there's so many ways to work with chat GPT for the content of your website now. Immediate disclaimer, I do not in any way assumed to be an expert using chat GPT for any of these things. What I'm showing you comes from how we've used chat GPT on the agency side this year, and we've done some pretty cool things. I gotta be honest, but there's always more there's always more things to do and think of and try. So you know what I'm gonna give you is like this is not like exactly what you should follow. Just use this as an example, to spark some creativity and brainstorm. You may find a much better way than I've even described here to do some of these things. So does that make sense? start experimenting, start playing around with this because working with AI is just as much art as it is science. So as we get into creating website content, I love this is so cool, y'all. Okay, the most important thing I can tell you to do is to train the conversation we talked in the first hour about the most important thing you can take away from this entire workshop is it's all about the prompt, right? The second most important thing is train the conversation Well, because the more you train the conversation, the better the results of your prompt will be. Okay, so the key to getting great website content is training it with lots of information before you start asking it to generate the final copy. So drop in the copy you have from the company already, or the organization or whatever, at the beginning of the conversation so you can use URLs with chat GPT plus plugins, etc. This approach gives context to everything else you're going to talk about in the conversation. So you want to be able to generate all the content for the site from the single conversation one conversation with chat GPT don't have one conversation about each services page. One about the about page, keep it all in the same conversation, because we're talking about the same company. And it will get better as you respond back and tweak and whatever. It's going to get better even sharper as it continues to give you better more content for the site. So here's an example prompt to get things started now. Chris messaged me during the break saying the chat GPT hiccup on him. It did the same for me. So hopefully we're not going to hit a time where all of a sudden chat GPT quits working because that would be bad. I do have some historical content I can show you but hopefully we can do this live. So we are in GPT four. I'm going to turn on plugins. And I'm going to enable I'll just use browser up. So this is going to let us go browse URLs and pull those into the conversation. Alright, so here's my prompt. I'm creating website content for a client below. I'm gonna post the information I have about them. Open each URL listed below. I said web pilot. We'll just I'll turn on web pilot instead. It doesn't matter. They're both they're both essentially the same. Just to keep the well where is third is why it's not alphabetized. I don't know. So open each URL list with web pilot don't do anything with this information yet. I do not need a response other than to confirm you have processed it. So let's start here. I'm going to drop this prompt in and we're going to use so for those of you that were in the builder to Kadence workshop a couple of weeks ago with Kathy Zant and I we were working on this really horrible old site. For one of my clients that was built about 8 million years ago. It's still using builder and here is this client, they are a metal fabrication contractor. Okay, so what I'm gonna do is I'm just going to start pasting in some URLs and I'm really, I'm going to do the homepage. If I was doing this. Actually, I would do every URL on the site. And you can do that by going into the sitemap if you have a sitemap and just copying the URLs. So what I'm going to do, I'm going to focus on the the what we do pieces and I'm just going to do a couple of the services that they offer and I'm just dropping in a link because it takes a minute to crawl each link and I don't want to take forever. So I'm going to do the homepage and three services pages, and then maybe also the about page to get some context on who they are. All right. So let's hit that. And now web pilot is going to go out and start processing each of the webpage and it takes a minute, okay, and you just have to wait, you know, go go do something else. Whatever. Blah, blah, blah. It's gonna take a minute, but we need to do this to get the context of the website. Paul to Chris and while we're waiting the Chris and I collaborate on chat GPT or do you have two different accounts? Is there anything for teams? So I don't, we don't I mean, Chris has his own account. And I have one. We could collaborate if we wanted to. I don't know if may guy does or not you have to look at that. We still go in here see 1234123 I think this is the last one. So it should respond back with I got it here in just a minute. I oppressed Okay, good. So we now have this information processed awesome. So again, like you could go out to your sitemap and just copy everything in if you wanted to. And that would work also. So now, remember, that what we don't want this to say is in this digital era, like we don't want that generic awful text we want really great really great text. Okay, web pilot is a plugin for chat GPT for Yeah, yeah. So you can instruct chat GPT to read provide content in styles like informative, serious, funny, any other adjective you want. I find it helpful to come up with a famous person whose voice I would love to emulate on the website. So you might even ask chat GPT to help you select a voice so here's my next prompt. Based on what you know so far, give me 10 recommendations for famous people whose writing or speaking style would be best to communicate this information on the website. Briefly explain why you like each style. We're gonna paste that in. And here we go. Steve Jobs I don't think so. Okay, how about Elon Musk? Probably not. Bobcat Goldthwait. Bill Nye Okay. Now I'm seeing a pattern because these it seems to suggest these a lot. Okay. Now Malcolm Gladwell might be interesting. But really, I want like these are these are contractors. You know, they do metal work. So really, none of these people are really resonating. I don't think Brene Brown, like these are not really good suggestions. Okay. So I don't like any of these. Like, I don't Okay, Stephen Hawking. I don't think that's the right voice for a metal fabrication company. Alright, so let's go back up here. And I'm going to edit this prompt because I don't want any of this to get mixed up in the conversation. Remember, this is a metal fabrication company. style should speak to blue collar work and high quality. Give. I'm gonna just gonna change this for the sake of time to five recommendations. We'll see what it gives us with that. See if it gives me the example outcase See right here. This is what I did in my test. Mike Rowe from Dirty Jobs is the exact right voice for this website. Right? It's perfect. Although there's some other John Steinbeck. I'll take Tom Silva from this old house. Okay, Bruce. Springsteen might I've never heard him speak I don't think I want storytelling\r\n\r\noh my gosh, I don't think this would be hilarious. But we're gonna do we're gonna do micro okay. I really like micro is one of my I love his podcast. I'm really, really fan so we're gonna use micro. I think he is the right voice for this website. So let's check the voice with a summary question. So give me an elevator pitch for the client in the voice of micro.\r\n\r\nThat 100% Sounds like micro Okay, I like this voice. We're gonna stick with this. Okay, so that's an easy way to test the voice. Okay. And I would suggest you do that before you get too much further down the road. We could do I just out of absolute curiosity. I want to hear Ron Swanson. Oops, I misspelled it, but I think it'll know\r\n\r\nkind of like this. Actually, I kinda like that a lot in the discussion, I don't know. Anyway. So we're gonna go just for our purposes here. We're gonna go with micro. So take your theory on trout, other voices, et cetera. This makes sense so far. See where I'm going with this. So it's I like to do it this way instead of saying insightful or whatever adjective, I think it's helpful to put an actual person's voice. So as you think about how do I make this into a system for a client, ask the client if you had to pick a single celebrity to speak in the voice of your product or company who would it be? Right and start to work with that, you know, so All right. Now, let's start working on homepage content next prompt unless I say otherwise use the style of micro for the rest of this project. Let's work on the homepage content didn't give me 10 options for a hero headline and subtitle that will engage visitors and the style of micro See, our call to action is scheduled consultation. You don't have to put that boom. I can't spell row apparently. But it will know it's smart enough to realize that 10 options, okay. Ooh, I like that. Look at that crafting. metal building features. I like that a lot. Behind every great structure, there's ihrm metals, turning metal into milestones. That's kind of cool. If you don't like any of these, you can say give me 10 more or whatever. But I mean, some of these are bad. That's all like that metal work that tells a story. Ooh, that's cool. All right. So I mean, half of these are doable, right? Not bad. So let's just pick one Let's vote. Which one do you like best? Kinda like this one. Yeah, crafting metal building features, but I don't like this though.\r\n\r\nI kind of like that one. Okay, let's go with headline one, subtitle four, just to keep things moving. Let's go with headline one and subtitle four. Okay, so we're gonna keep that for a minute. Let's scroll on down and our primary call to action. So let's just copy this next one. Okay. So we're telling it which ones we're we're in chat. CBT does a good job of figuring things out if you misspell in the context. Okay. Now let's create the primary call to action. Okay, I'm gonna I'm going to skip this because we said our call to action is going to be built to schedule consultation. But here's where you could ask it to give you some suggestions based on what you want people to do. So I'm going to skip that though. So based on what you know about the client what other homepage content areas would you suggest? So let's go with this and this let's go and see what it suggests what else should be on the homepage?\r\n\r\nAlright, so it looked at the services pages that we already had, and it made some suggestions there. short narrative about HR metals, a project showcase testimonials. What's different latest news, okay, these are all great. So let it help you brainstorm what might be on the page right? So this is all good. This is really good and helpful.\r\n\r\nAll right. Now how about this? How many of you are familiar with story brand? You can combine your voice and the story brand approach. I'm a big fan of story brand. So I'm going to say using the voice of micro but adopting the story brand approach from Donald Miller give me five options for the one to three steps in story brand, providing a title and short description for each step.\r\n\r\nSo if you're familiar with story brand, you realize okay, this is not bad, right. Paul, yeah, so Paul, this is a this is an example for a redesign. Yeah. So if if you're doing this for a brand new site, that there's nothing else like that already. Then maybe you know, you would get some of the content or content concepts from the client and drop those in instead of browsing URLs, right but the idea is I'm gonna train up the conversation with his all this information at first, and then start asking a question as to generate content. Ben, can you ask it to suggest improvements to a current homepage? It? Maybe Hang on. Okay, so we got our one, two threes there, right. And you can pick one of those if you'd like it. Let's see. Let's I don't know if it'll do this or not. I've haven't tried this. So let's just see. Look at the current homepage at this and suggest improvements. I don't know what's gonna happen it's gonna it's gonna go grab the URL. Yeah, sure. You could put in competitor URLs here as well to suggest other things. Again, that's just more context right.\r\n\r\nYeah, so I don't know how good this will be. I haven't tried this approach before. Yeah, I say to you, right, improvements might be too subjective. But look, it's making suggestions that are really pretty good. The content jumps between different divisions and services create a more linear narrative. Yeah, it's really, really cool. Alright, let's keep going. Alright, so we're going to move into individual posts and pages at this point. Let's define SEO strategy. So this is our SEO strategy. I'm just going to drop this in as instructive. Each page will have a key word I'll give to you as you generate the content for each page. Use this keyword in a natural way at least five times and also include it in at least two headings kind of like we did earlier. Some might have two or more keywords. So make sure each keyword is included as above remember the strategy and implement it when I give you a keyword for any content you create. So we're gonna drop that in just as training. And you could hit you can hit and submit right here, but it's going to take one of your conversation pieces, and you only have 50 in a four hour period. So we're going to not submit that just yet. So now we have a prompt Okay, in the style of blank rewrite. In the style of micro it would probably remember that but I wouldn't trust that rewrite the what was the page called? Ah RM metals. At a Glance\r\n\r\nusing the key word\r\n\r\nlet's do the key word, metal, custom metal fabricator. Whatever it would be right. Okay. So now it should give us content for our about page\r\n\r\nnot bad\r\n\r\nso this is a little bit better than the in the digital era content right. I mean, that's, that's good enough that I would give that to the client just like that for them to mark up. Wouldn't you say? I mean, this is pretty good. Pretty good. Let me hear from in the chat. Anybody still out there? Are you all trying this on your own? Yeah, Chris. It's much better than they would send to us out of the gate.\r\n\r\nPretty good. Pretty good. John, the limitation. I think it's 50 responses in a four hour window. So I don't know where we are now, but that's why I didn't want to do GPT four until we got into this. Okay. 350 responses in three hours. Yeah. Okay, so we can generate pages that way. Now let's talk about some blog posts. How many of you are always struggling to get like the first few blog posts from a client? Brainstorm five blog post. Topics for this website. With a short summary.\r\n\r\nYou're about to be amazed with what's about to happen. Now remember, we have built into GPT for the ability to do dolly image creation. Or we could use Adobe when in fact, let's just use I don't want to use any more of my prompts and I have to let's let me get to a firefly this is going to be super cool. All right. Let me let me get the start and then we'll get our image creation. Alright, so let's pick one of these. The Art and Science of metal fabrication Okay. Write a 500 word, blog article on topic one. On topic one, you could say using keyword blank if you wanted to. Give me five Title Five optional title, suggestions. And give me a sample Sally prompt for a featured image British planning to stop okay\r\n\r\nall right, so now we have some five posts I've noticed that when it does titles, it likes to put a colon in there like all the titles have a colon I don't like that. You can tell you can tell it that as part of your instructions. So here's our blog post okay, this is gone. I'm sorry. This is okay. It's fallen off our micro. Have you noticed that? I'm going to stop this. I'm going to go back in here and\r\n\r\nand make sure we say micro because I forgot right? It just started it fell off. So we'll come back. Now dolly is the open AI image creator. We're going to actually use it over in Adobe Firefly, because I don't want to use another open AI prompt right now. So I think we're going to need them all. But it'll show you how Firefly works. If you're a creative cloud user this is built in okay, we don't want that\r\n\r\nbut I do like the voice because these folks are very personable. The client says who's Mike? So this is where it you know, you have to refine it a little bit and you could tell it, hey rewrite the first paragraph and don't say your micro. Paul, what happens if you use them all up? It'll say you've reached your limit check back at this time and the conversation will still be there you just go back to it. Okay, a fusion of traditional blacksmith working with an anvil with molten metal and a modern robotic arm assisting and precision metal work. Set against the backdrop of advanced metal fabrication workshop. Okay, let's see if Adobe Firefly can handle that. It should give us three images\r\n\r\nor maybe four thinking real hard about it. Oh golly. Oh, that's really cool. Not awesome, but not horrible. Anyway, you see where we could go with this? Right? So you could potentially generate a bunch of blog posts and have images and be ready to go and just refine the product, right.\r\n\r\nAll right. So that's a very quick that was 30 minutes worth or 25 minutes worth of very quick approach to generating content for a website. When you think like that, that's pretty darn cool, right? We started falling off the rails a little bit so you got to bring it back in, remind it and whatever. But how much time does the save it saves a ton of time. Nicholas? Just a ton of time. Okay, let's do some more things. Okay, so, chat GPT can not only generate text, but it can also help you work with text. So let's do so these are links to historic chat GPT conversations. So here's this thing of converting text to a table or spreadsheets. I can't remember what this was. But it was good enough for me to save it and put it in the handout. Oh, okay. All right. Oh, yeah. So here's some customer testimonials. And like the idea here was, we were we were rebuilding a site. And it had a single page of testimonials just all written out in one long line of text and there's probably, oh my gosh, I don't know how many there probably 80 of them. I'm going to just guess ADR. And what we wanted to do instead was I bring those into a custom post type where we could do things with them, right? Like randomly show one or put them in a carousel or whatever, right? And do something more interesting. So how do you do that? Well, you could sit there and you could copy paste, copy paste, but who wants to do that? Don't do that. So here's the prompt. Now again, this was months ago, I hadn't really dialed in on how to work but this is just simple, plain wording. I've got some customer testimonials below. I want you to format the text for me. Do not change the actual words in any way. The quote is surrounded by quotation marks remove the quotation marks from around the quote in the output, then output a table as follows. Because of column one customer testimonial column to the customer initials, these follow a dash after the closing quote, column three, the full state name So context is key here we're gonna give an example. Here is the example of a quote terming and identity. It's surrounded by quotes. It's got a dash, customer initials and a state name. This example should be output as column one, this part column two, DC, column three, Minnesota. giving an example is key to do anything like this tell it exactly what you want it to output. And then here's the full text of everything that was on that page. Look at all those many, many testimonials, right? So there's our output, and it did exactly what I wanted it to do it translated the two letter state abbreviation into the full state name. And then what I did at that point. Anyway, what I did at that point, I didn't realize I could do a CSV at that time. But even from here in the HTML output. Oh my gosh, there we go. You could do the inspector and just grab this table object and hit copy element. And then open up Excel, or whatever, or Google Sheets or your favorite spreadsheet app and just paste it right in. In there at all is and from here, I can save it as a CSV, right or you can tell it output this as a CSV like we did earlier, and it would it would pop it out. So taking text converting it to some other format. See how much can you think of how many times how much time in various ways that could save you. Here's another example of doing something similar to that. So I have this HTML I need to replicate for the items in the list. So here's the HTML I want. So you know, there's some style, there's a URL that's based on the link item. These are things in a silo menu, basically. So take the names in the list, do the same li structures above from this pattern. And okay, it did a Python script. I don't know what that was about, Nope, just output HTML as a code block. Got it. Boom, there it is. Copy, Paste done. So rather than me having to go back and fix all this, like it knew what to do with the URLs and all of that it just worked. Pretty amazing. Pretty amazing. So do you see the ways you could use chat GPT to format text are endless possibilities of how you could do this, you know, don't do any of this stuff manually again, and somebody was mentioning earlier, chat GPT will 100% give you spreadsheet formulas, like you can describe what you want it to do. And it will give you spreadsheet formulas to do that in a spreadsheet. Pretty neat. Okay. Be prepared to be blown. away. Are you ready to be blown away? Have you been blown away yet? You're gonna be blown away now. Okay, because this this is my single favorite AI application that I've found. To date. Okay. This is absolutely amazing. How many of you do transcripts for your meetings? Like you have a call with a client and you're recording it in something like you got otter running or something like that, right? Yeah. Are you doing that if not, start doing that. Today. It'll even work with Zoom transcripts. Okay, just get text. All right. So I love this. And Madeline zoom also has an AI companion. Now. They haven't played with that yet. I'm not sure that I think it does transcript and all that stuff to y'all. Okay, there is an AI you need to be aware of called clawed AI. It's, it's from anthropic. Clawd AI is really, really good. It's another generative AI model, like chat GPT let me get logged in here really quickly. Oh, my God, I'm in the wrong I forgot to do this earlier. I'm in the wrong browser profile. So give me just one minute so I can get to the right one and it has what I was just working on\r\n\r\nYes, okay. Okay, let me get here we go. Are you ready? Are you ready? This is y'all. This is it blows me away. Okay. They aren't ready. Okay. So absolutely love this. This document is the transcript from my call. Okay. Here's my prompt. Now. Why would I use Claude AI for this because Claude has a higher token count, meaning you can give it more information at the beginning you can put in this is a full hour transcript. Chat. GPT won't take that much information all at once you'd have to break it down. It might with plugins. It's just not as good Claude is designed to take big bits of information and work from it. Like you can drop in like a novel as a document or a PDF and it will process that whole thing then you can ask it questions about it. It's made for this Okay, so here's my here's that transcript. Please evaluate this document which is a transcript of meeting with clients to create a new website I need to write a proposal. My proposal contains the following sections so please provide results using this format. In from the info in the transcript project overview, five to six bullets that summarize the big picture of the project website design any items discussed that apply to the visual design of the website, website content, any items pertaining to content, text, images, videos, downloads, blah, blah, blah, website functionality, any details about the thing the website actually needs to do? How many of you spend an hour two hours doing this for proposals? Here's a draft proposal. Based on the meeting transcript clients want to do this main goal that ended at launch budgets around this website design, use the same headers it just it pulled out the bits of the conversation and put them in the sections that I use in my proposal. Look at this. Currently rent forwarded resources client will provide spreadsheet resources will be uploaded to cloud functionality and this is where all the stuff they want. Does this capture okay? There's some pushback. There's some functionality notes like the ability to add related documents, state documents that are not covered here. So it missed some things. I remembered some things we talked about. Look at the transcript. Again, make sure all functionality misspelled details are covered. You're right. I miss blah, blah, okay, in now it read it. All right. Look at this. Boom, boom, boom, boom, boom, boom. We talked about the survey they gave the current website users what were their top priorities revealed in the survey. Great point. We should talk about that. So project overview and added some stuff about that. Give me precisely what is discussed about the analytics that need to be tracked on the website by the client for reporting purposes. Boom, here are the details did the I'll add these analytics to the website functionality section, boom. Okay. Was there a certain date in March the site needs to be live because I couldn't remember once the date by the end of March, okay. Awesome. Good. We'll put that in the overview. The comments say they wanted to make changes to the documents on big commerce, which is the current provider or in a spreadsheet? Yes. Good catch. They specifically said they want to make updates to the resource and descriptions blah, blah, blah, blah. Isn't this amazing? Did we talk about payment processors for the principle store at all? No, we didn't talk about it's just so like, the way this worked out. It was several days after the meeting when I was putting this proposal together. And you know, I had forgotten some of the salient details of the conversation but by uploading the transcript, I could then ask questions through Claude to the transcript and have an answer. Anybody excited about that? Like how cool is that? Could you immediately start doing this in your work? Uh huh. 100% 100%. So Melanie just got off a call for a client Melanie, grab the transcript, drop it in cloth and start asking questions. It'll blow you away. It will blow you away. All right. So there's some prompts that I just used. So if you if you're having this I haven't done this yet. I haven't done but I could very quickly see how when if you were to pair this with Zapier, have a call with a client. The transcript goes through Zapier and details that the prompt would be pull out action items and put them in this project in my project management system. It could, it would take some refining, but it could just meet you know how much you spend time filling out your project management tool based on all the stuff that all the stuff that you have to do after a call. Amazing. Amazing. So I don't know if I don't know if Claude goes to Zapier. This no chat GPT does. This would take some experimentation. This was just an idea I had after this. So pretty cool. Pretty cool. All right. Yeah, that wraps us up on the content side. And we're about 10 minutes till so. Alright, folks, what do you think? Questions? Comments? Who's ready to start using this? Clyde? That's the free version. I'm using the free version of Claude for this. All right, Ben question deciding between page chat GPT or may guy or do I need both? Okay, great question. So then, I would try both. Just try and see what you like, right? It's a very small cost for the first month. Just see what you think and what you like better. I would I use both. I pay for both. I am very, I think my habits are there. I go to chat GPT and do everything I could probably optimize a lot better if I just lived in May guy. It works really well. And then of course there's code WP you know, code WP. I haven't spent much time playing in this at all. Chris has. He's building a plugin in this earlier called brilliant insights. You know, Chris can tell us what he thinks about ko WP. I think the pros and cons on this one, right? With mega you miss plugins and chat GPT Yes, but you don't need them because they're built into the platform. It'll go out and grab URLs that's why originally we started using may guy to grab external URLs because chat GPT did not have a way to do that. Now it's since has added the ability to browse Yeah, so we're gonna be doing all the coding tomorrow. That's what all of tomorrow is about.\r\n\r\nLet's see. Okay, then. I don't think code WP would replace codable You really you have to know and might replace it to some degree. I mean, look, here's like, things that we would have outsourced to developers last year for a lot of money we're able to do in chat GPT yeah, there's still some things that you need. Like if the key to AI and coding. We're going to talk about this tomorrow. But again, it's all about the Prop. You have to know enough about what you're asking it to do to get it to do the right thing. Like for example, the very first thing I ever tried to do in chat GPT and a plugin almost almost gave up about 10 times. I stuck with it. Because I had to learn some things. It was just part of the learning curve. But you know, there were some things I was doing and I didn't realize that with this thing with pods. It was creating a user meta entry. I didn't know any of that. If I had known that. I could have said when you do this, it's going to update user meta and check that user meta and do this in the prompt. But it kept not working, not working, not working for like two hours. And I didn't understand why until I got into it and figured out why. So again, it's about you have to know some things to be able to ask the right thing to get it to do the right thing. Does that make sense? Yeah, like Gravity Forms. Like it's a single line. Like you could just say, I have gravity form ID for I do not want that form to store entries in the database. code snippet done. Great.\r\n\r\nAll right, scrolling up for questions here. Paul, why do people still use sites like Jasper? I don't know. It's so here's the thing like Jasper, what have they done with Jasper? So Jasper is it's a body of knowledge that sits on top of chat GPT right. So the Jasper team and like Bertha AI is another one of these AI tools that have been around for a while and they've gotten you know, they've gotten very refined. They have their own data set and instructions and things that sit on top of open AI and you might get better results with them depending you know, so it's it's kinda like these custom instructions that they have a whole app that's custom instructions that's built on top of the model. So you might see those things start to fall by the wayside, the better the core AI gets. But, you know, if you don't know how to prompt it, you get the you know, in this digital era garbage like we were talking about earlier, so Jasper is probably not going to give you that out of the box period. It's going to be better immediate content. So it probably good for those that haven't explored prompt crafting. Let's see scrolling down scrolling down, Stacy, do I charge the clients by the word? No. No, I haven't I haven't quite dialed in how to charge for this yet. Still trying to figure that out. We're doing some content for a couple of new clients right now, using chat GPT in very similar ways that I just described. I just charged the content creation. You know, that's just a flat cost in the in the project. I really haven't figured out how to charge for this yet. So you know, I'm still experimenting with how this even works. Let's see. Scrolling down scrolling down. Ben, what's the best to use to modify photos web based, then I don't know. I don't have an answer for that.\r\n\r\nSo I don't know if you can upload a photo to an image generator and have it tweak it for you. I don't think you can. I don't think we're there yet. But I could be wrong. If anybody knows. Feel free to drop that in the chat. Christine, if you listen to some of the SEO experts, they say not to use AI for content. Yeah. So that is if an SEO expert tells you that AI content will hurt your site's stop listening to that SEO expert, because Google has changed its own policies about that. Google is providing a generative AI for heaven's sake. They've changed Google has changed its guidelines to as long as the I can't remember we talked about this at length in news roundups in the SEO section over the last few months, because this was a big thing in the early earlier this year. It's not about who generates the content, Google changed their guidelines to refocus on is this content helpful to humans, or is this content just generated to create search results? Or is this actually content for humans? Let's see scrolling scrolling. Yet. rankmath has AI general and you're gonna see more and more stuff in WordPress with AI. Okay, Jeff fun today. Who's gonna spend some time on the rest of this afternoon playing around with some content in AI? Dave, you're right, Google could change their mind at any time on what they do.\r\n\r\nYoast also has AI Yep. All right. Anybody else before we wrap up? Alrighty, tomorrow. It's all about the code. So I have many, many, many code examples in the handout in the handbook that we have done and you can we'll browse through some of those. We'll do some live stuff tomorrow. And in the final hour tomorrow, falling under what could possibly go wrong, but we're going to try to build a full plugin with multiple files live right here on the live stream. So you know, we're gonna break everything. It should be fun. Okay, go play around with AI and tell me what you come up with tomorrow when we come back. So we're back tomorrow. 1pm central to 3pm Central like today. See you back here then on solid Academy where we go further together.\r\n\r\nYeah, wasn't that amazing? That is absolutely amazing\r\n\r\ncaptions connected\r\n\r\nall right captions should now be working for all.\r\n\r\nMaster prompter? Yep\r\n\r\nAll right, so\r\n\r\ntoday we are specifically focused on code\r\n\r\nshould be a lot of fun Welcome Welcome, everybody.\r\n\r\nBeth,\r\n\r\nyou're gonna like this. I really think you will.\r\n\r\nBecause even if you don't do the code, you can kind of do the code.\r\n\r\nJohn, can\r\n\r\nClaude read PDFs Yes.\r\n\r\nYeah, clods pretty awesome. Lot is pretty awesome\r\n\r\ncustom instructions and chat GBT? Yeah, that's really helpful,\r\n\r\nright? For sure. All right. Did anybody do anything\r\n\r\npractical between yesterday and now? Did you try any content generation let me hear from you.\r\n\r\nWhat did you do? How did it go?\r\n\r\nwas having a conversation earlier\r\n\r\ntoday and the suggestion was made that as quickly as AI is advancing maybe we should do like a quarterly quarterly AI roundup and that was de bronze suggestion. I mean, because it's moving so quickly. I just literally,\r\n\r\nlike five minutes ago, learn something new. That Chris showed me. All right,\r\n\r\njust about ready to start everybody who's ready to go day two talking about code. Yay, code.\r\n\r\nNP NCSS.\r\n\r\nAll right. It's three minutes after let's dive in\r\n\r\nWelcome back, everybody\r\n\r\nto day two of the WordPress AI workshop here on the solid Academy. Really, really excited about day two because this part I mean, the content stuff yesterday was fun. Today it's an even if you don't do code, it's likely you'll be able to do some code. If you can copy and paste and troubleshoot a little bit, you'll be able to do far more than you ever thought possible. I promise you so it should be a lot of fun today. So yesterday, we talked all about some foundations of AI and where it all came from and why all of a sudden like less than a year ago AI became the thing. We talked about some best practices on you know how to use AI and how not to use AI and some mistakes that are commonly made. So if you missed yesterday, I would suggest you go back and watch the replay. It is there and ready to go for you. You can even speed it up to 1.5 or 2x if you want and I'll just talk really fast and you can get through a lot of that information. The content piece yesterday, I would just again encourage you to experiment with that. What I showed you yesterday was not like the Bible on how to do it. It really just this is what I've been doing. And I found it to be really helpful and take that and build on it. You know you may find certain prompts and certain ways to ask things that work better for you and your workflow. And you may find some little Easter eggs hidden in there as well. So the big takeaway from all this is it's all about the prompt. That's the number one thing I had to get out of this whole workshop and we are always going to be refining our prompts. So today what we've got, again, focused on code, mostly PHP, there will be I think there's some jQuery in some of these that generated and there's at least a few instances of CSS it no chat, GBT knows all those things. And it can really, really make our work simpler, even if it's things you understand, like if you could write CSS, then you just prefer not to chat. GPT can do that for you with some description. So what I'm giving you here is at the beginning of today, are it's really a list of conversations that I've had with chat GPT over the last year, it's some various points of this year. And if we look at the date on some of these, they go back to March, April, and I was really just learning how to use chat GPT so you'll, you'll see sort of the evolution of my use of chat GPT through these processes. And so I don't know how this is gonna go. We've never done this before. So my thought is I'm going to talk you through each of these conversations with chat GPT and you know how, what you know why I asked what I asked what the problem was I was trying to solve, and hopefully, this would this will give you ideas of how to proceed with solving certain problems that are code related with chat GPT so does that make sense? That's kind of my approach here. It may not work at all. Hopefully it'll be great. Hopefully, you'll learn some things but either way, you can see some of the ways that I've used AI over this time. The other thing here I got started getting a little worried Yeah, I started getting a little worried earlier today because I've gotten frustrated a chat GPT I mean, I'm gonna be honest I've gotten frustrated chat GB to there may or may not be conversations I've had with chat GPT in which profanity was involved. That might have happened, possibly once or twice, and I hope none of these conversations include those but if they do, I'm gonna scroll right past them real quick. But you know, it's a journey, right? It's a conversation. There may or may not be insults because I got frustrated, but chat GPT just you know, it replies graciously.\r\n\r\nSo, here we go.\r\n\r\nY'all ready to get into this? So let Okay, let me let me test let's take a quick temperature check in the chat. Give me this chat. GPT to insult you back. Oh, I think it I don't think it's core programming allows for that. But that could be awfully fun. So give me in the chat. Give me a one to 10 on how comfortable you feel with dealing with PHP snippets. Right. And by that I mean you're not going to write the thing, but you're okay with like finding a snippet and maybe editing a couple things, whatever. Okay, give me a one to 10 on how comfortable you are dealing with PHP snippets. Alright, so several high on the high end, several on the low end. A couple of zeros. We'll take that. Okay. So okay, here's the thing. If you're on the 0123 end, chat, GBT is all about the prompt. Right? And so it's gonna be a little harder for you to know. Like the idea here. It's kind of like finding that PHP snippet on the web, and just kind of being able to read it not knowing exactly, but there's enough syntax and like the the terms that are using WordPress, PHP are usually clear enough, where you can kind of have sort of an idea of what's going on. And so that's gonna, that skill is going to be very helpful here. So just, I mean, hopefully it's obvious like if you're zero on understanding PHP, this is going to be a challenge. And I can't teach PHP in this course. But I can show you how chat GPT will generate snippets and how we troubleshoot them. So if you're on the higher end of the scale, I think you're gonna pick this right up and go this is awesome. And if you're not using chat GPT already this I mean, you're gonna be picking this up and being up to speed almost immediately. So don't get frustrated. If you you know, if your understanding of PHP isn't quite as high as maybe you'd like it to be or whatever, don't get frustrated, it's likely still that you'll be able to generate some code snippets that will help you so hang in there is Sue here today. And we have an m&m Check I don't see see in the chat. So here\r\n\r\nwe go. All right. Ah, all righty.\r\n\r\nSo let's get started. I have separated these out into categories. So here's four things that over the course of the year I've done on various projects. To do something to manipulate the core code of WordPress, some snippets, that would affect the core functionality of WordPress and I need\r\n\r\nto find\r\n\r\nheritance All right, so let's get started with this one. So how many of you are familiar with this issue of user enumeration? This is something that WordPress will do. You can with a query you know, find out who is author number one author equals two or whatever. And this is a way it's really not used that much anymore. It's more of a security by obscurity issue, where you can query WordPress, and it will give you the username of authors if you ask it, what the IP by the ID. And so there are bots that will try to hammer away at your site and get a list of usernames on the site that are authors. And then they'll try to come in and pound away with passwords. Not nearly used as much anymore. But this is something that there's a script for it. You can block it, and it's really easy to do. This was the prompt. I mean, talk about a simple prompt. Actually, I think we even this might have come from an office hours earlier this month. When he\r\n\r\nsix don't think Well anyway, the prompt is\r\n\r\nsimple. Can you write a PHP script that will stop user enumeration in WordPress? I mean, that's about as straightforward as it gets. Now chat GPT will typically respond with some context. This is what user enumeration is. Like I didn't really need to know that but I mean whatever. And you can even tell it don't give me explanation. Just write the script. So we're going to remove revealing error messages restrict access to whatever that is. Alright, so here's a PHP script that can help in preventing user enumeration. Now it's actually given me a plug in here. I didn't ask for that. So that was a little bit of a surprise. I was really hoping for just a snippet that I could add to my custom functions plugins, but it wrote the whole it wrote the whole plugin. Now if your understanding of PHP is maybe a little less, these explanations are super helpful. It's just that as I'm Chad CBT for GPT four is a little slower. And so it's sometimes and during different usage levels during the day. It's faster sometimes and slower other times. And so like sometimes I just don't want all the explanation. I just want the code but it's gonna give you the stuff by default, but anyway, here it is. They're just boom. Like that's it. And so, a simple prompt gives me exactly the code that I would need to go out and add it to my you know, add it as a plugin or just add it to a custom functions plugin. So this is likely going to go in my base site. I mean, why not? It's, you know, 1012 lines of code and it stops user enumeration, so why not, it's not going to slow anything down. So see how easy that is it and you can just copy this right here and it's copied to the clipboard and you can paste it in your code editor and there it is.\r\n\r\nDoes that. I mean, who can everybody do? That? I think so. That's pretty easy.\r\n\r\nSally, great question. How do you assume the code is correct? Okay, so this would be a good, I'm going to hit and by the way, if you have a chat GPT account on all these links that I've shared you can click this link and it will transfer this conversation. Yes, over into your chat GPT. So you get the whole history and it knows all it has processed this and now it is as though you are having this conversation. So let Sally How do we know this works? Okay, so let's just say please, you just asked chat GPT please\r\n\r\nanalyze this code to make sure it will work, which doesn't often be helpful for compatibility with PHP 8.2\r\n\r\nOut of the spa compatibility, right. And for any\r\n\r\nsecurity issues,\r\n\r\nyou're gonna see that come up several times. That little bit was in the the last the Save instructions from yesterday, but I have those turned off right now. So even though I misspelled completely blue lI right there, it knew what I was talking about. So it's looking at the code. I don't know why it's echoing it back out that's\r\n\r\ninteresting.\r\n\r\nDoesn't seem to have any deprecated functions. The functions and structure are typical for a plug in no complex functionality that should break security and the error No WordPress errors function effectively. replaces any login error with generics. So that's good. The regular expression preg match\r\n\r\nfunctions for an author regex appears to be safe.\r\n\r\nredirection is used appropriately output there's no direct user input so there's no risk of cross site scripting. doesn't interact with the database and no SQL injection concerns. Use of exit after redirect is good. So security looks good. Isn't that nifty? So Bonnie, back to your was it Bonnie? I know Sally back to your question. The How do you know if it works? You put it in there and see if it breaks. And you're we're gonna see in future conversations that we'll look at in this process of like, it didn't work. And so we got to go debug it. And so a lot of times it's going to be we open up the error log and have that there and we're pulling errors out of the error log and dropping instead. This is what happened in chat. GPT will fix itself. Yeah. So it's like that.\r\n\r\nSo this was a very simple\r\n\r\nexample, but do you see how quickly it can solve a problem. So now honestly, for me, it used to be that if I was trying to solve a basic problem in WordPress, I needed a code snippet for something. What would I do? What would you do before AI? You'd go to Google you try to describe your problem as best as possible. You weed through 800 blog posts until you finally find some person that talks about the thing. Paul says Ask in office hours.\r\n\r\nThank you, Paul.\r\n\r\nThat's pretty funny.\r\n\r\nBut let's say you happen\r\n\r\nto be the person doing office hours and you don't have the answer. You would Google it right. And you would try to find hopefully some developer on some blog post somewhere is or the maybe there's a you know, a StackOverflow article that's not standard that's that has enough snark to get the right answer, but not too much snark that you don't want to read it. Anyway. Now you can just go to my go twos to go to chat GPT and have it generate the code. Pretty, pretty amazing. Okay, so there's our stop user enumeration. All right, how about this one, this one just, we had a client I'm sure none of you have this issue. But we had a client who started uploading video to the WordPress media library. Is there a plugin that will stop video? Yes. But why do I want to install another plugin when I could just use a very simple code snippet? A lot of plugins like this, you know, like there's, I think there's a stop video uploads or whatever. But it's going to add a settings page with different formats of videos there. And you know, it's somebody's plugin and they're probably going to put ad spam over my whatever. So one of the beautiful things about having chat GPT generate these snippets is I don't have to install all these plugins on my site that are going to add extra admin menus which y'all know just gets on my nerves. I you know, adding a top level WordPress Admin Menu and it's not necessary and even then they can put ad spam, we can get rid of all that stuff. You know, and a lot of these plugins are going to add code that I really don't need if I just need this one little section. And so I just want a snippet that says I don't want any video files, period to be uploadable to my media library. So that's what I said, Well, I can't remember what the prompt was, but it was fairly recent.\r\n\r\nYeah, earlier this month. This is all I said.\r\n\r\nAnd this is all you had to say it has enough context. I need a WordPress function to prevent video files from being uploaded to the Media Library. That's literally all the context it needs. It knows WordPress code, and I've told it what I want it to do. Alright, so to prevent that guy, you can make use of this filter or hook in WordPress. Here's your function. Now it is disallowing these media types. If there's other video formats, then you can add those just in the same format in a row here. Add this to your functions dot php, your credit custom plugin awesome. Make this a plugin I can use in the M you plugins is my next prompt. Sure, I'll help you do that. Boom, prevent video uploads, blah, blah, blah, blah. Now it's a plugin. And all I had to do at this point was copy the code. go create a file in the me plugins folder and it's done. Problem solved. I don't have to go search for a plug in. I don't have to test it and make sure it works. I don't have to, you know fight through top level MIT. It's just right there. It's simple code. This is not going to slow down the site. It's just going to work. You could make this its own standalone me plugin or you could just copy the function part out of it without the plugin header and drop this if you already had a custom functions plug in, drop it in there.\r\n\r\nDone. See how easy that is? Now let\r\n\r\nme ask Okay, for those of you who are on the 0123 rating that you gave yourself,\r\n\r\ncould you do this?\r\n\r\nLike those of you that write it yourself, write it in that area. How do you feel about this? Like you could totally do this right?\r\n\r\nAnd how much time is this gonna save you because it's awesome.\r\n\r\nDon't be afraid of experimenting with chat GPT to do these things, just make sure that you have immediate file access in case you pay something that breaks everything they just unpainted and you're back to normal. But just it's this is going to level you up. Like nothing I've seen in the recent past have your ability to do really cool things in WordPress.\r\n\r\nYeah. And like David's saying\r\n\r\nthat's the other side of this, even if you're high on the scale. Like why go through the hassle of writing this stuff yourself. Just drop it in chat. GPT there it is\r\n\r\nand add it. It's done. Pretty crazy.\r\n\r\nOh Chris. Thank you. Great point. If you're going to add or edit php code, I hope you have disallowed file editor already as a best practice. Don't do this in the file editor in WordPress. This is why I have open here for the next section, the file editor from cPanel who are actually going to go in and edit things that way please don't do it from within the WordPress.\r\n\r\nThank you for that. Okay.\r\n\r\nYou like this everybody? Good. Let's keep going. I got a lot of examples here. Okay, this is actually something from the Academy site. So we got a request from the from solid marketing to say we wanted Is there a way that we can very easily add remarketing scripts to each individual livestream event. So let's say there's something we're promoting. It's like a solid security whatever, and marketing wants to drop in a Facebook pixel just on that event. Is there an easy way we can do that? Sure. Okay. In WordPress, I went in and meta box and I created a custom field for the tracking code just a text area. And here's the slug. In WordPress, I have a custom field with the slug this that used on posting the custom post type with the with the slug this Okay, so this detail is super important and we pause right here. I've gone round and round and round with chat GPT and things took a lot longer until I realized\r\n\r\nthis key here this this is important. It's always better to use the slug\r\n\r\nbecause depending on you know if you're just using the name of a custom post type, or the name that like the the visual name of a custom field, the label is what I'm trying to say. Don't do that because that can get squirrely the slug is always going to be the same no matter what if you're using the full name. You know there might be a space or depends on how that's going to convert. It has an underscore how's it going to actually look? It's hard to know that the slug is always the slug so use the slug when you're talking about these sorts of things. While viewing a post type in the trap events post type if the custom field is not empty, I want to add the contents just above the head. So basically, don't do anything if they haven't put a tracking code in there. But if they've pasted the pixel on that event, I want it to show up in the head so that it shows up. Can you write a function? Well, of course I can because I'm chatting GPT I can do all and it's just there it is very simple. Very simple thing. Okay, I go now okay, I want to add comments around the tracking code so that we you know, we wrap it in a comment basically just so we can make sure it's there easily. And so it edited the code to give me that and I'm done. Like how easy was that? So so easy. Now we have this really cool functionality on the Academy site that lets marketing just go in and in that custom field drop in their pixel and update the event and they're done and it just works. Yeah, it literally Yeah, Chris literally just a couple of minutes to do this.\r\n\r\nPretty cool. Questions, comments about that?\r\n\r\nI mean, it's literally any question the client asks that's going to require me to go in and create something as a function. Can I do that in chat? GPT and the answer is\r\n\r\nprobably, yeah, probably. All right, moving down. Okay, this\r\n\r\nis a good one.\r\n\r\nThis may have been I think this is\r\n\r\nan academy one too. Let me just see\r\n\r\nreal quick, Robert.\r\n\r\nNo, it wasn't it. This was for some other client. I can't remember what it was. So this was how many of you have wanted to hide the admin bar on the front end, like you've got a membership site, and they log in and you want to get rid of that admin bar. Some plugins will do that for you. There are certain like membership plugins will hide the admin bar or whatever. There are some plugins that all they do is hide the admin bar but there's some of them are weird. So why not just get code to do this? And so this is my this is my prompt, I need to create a WordPress PHP snippet that does the following prevents access to the WordPress admin area for logged in users. Of any role other than editor and administrator and instead redirects those other roles to site URL my dashboard. Number two, it hides the WordPress admin bar from all users on the front end other than editors and administrators\r\n\r\nboom, there it is. Quick, done. Easy. Amazing.\r\n\r\nSo it gives me a little explanation. And I literally just that simple prompt, copy the code, paste it and functions and I'm done. Pretty crazy.\r\n\r\nAlright, let me pause right here.\r\n\r\nQuestions. Does this make sense? Do you see how to do this? You see how quickly you can build custom functionality into WordPress. And here's the thing. We're dealing with open source code. So there's, you know, there's all these articles out there, and people are going nuts about AI and you know, the legal like, you're gonna get sued for using AI and blah, blah, blah. I don't know, in this area. As we're dealing with WordPress, all of this code is open source, even if it's in a premium plugin. With in premium plugins, the code is not the code is not copyright protected. Anything the nature of open source is that anything that is built on code that is GPL compliant, which is WordPress, any plugins that plug in to WordPress, also have to be open source. When you're buying a plugin. You're not buying the code. The code is free. Because it's open source, it has to be open source. What you're buying in a premium plugin is access to updates and support meaning all this code there's no copyright now I'm not a lawyer. Okay. But based on my understanding of the GPL all code, we don't have to worry about copyright issues with any of this. So at least in this application of AI, there's no copyright concerns whatsoever. Pretty amazing. Yeah.\r\n\r\nChris, I talked about custom\r\n\r\ninstructions yesterday. I'm not gonna be able to go back to that today but it's in your settings, and you can drop that in. Alright, any other questions about this before I move forward?\r\n\r\nOkay, um, this was okay. This was a little. This is a little granular.\r\n\r\nBut here's an idea of this will just show you what you can do. So we had a site where the way it was built by the original built a developer of the site\r\n\r\nthere was they had put\r\n\r\ninto WooCommerce product descriptions, HTML tags, like the h1 tags and everything, just the way the site was built. The the product title was being rendered by the product description and not by a template, right? It works perfectly fine. Nothing wrong with that except when you build that into a new theme that has a title and all that now you've got two h ones and duplicate titles and all that. So what do you like? How do you deal with that? Clearly, I don't want to go through 800 products and remove all this HTML. So can you can you do something about this? Yes, you can. And I actually don't have that first prompt here. I'll just explain it basically what we went in there and asked chat GPT if it sees an h1 tag, remove it and anything that it contains, because it's the page title is already in the template. So remove the h1 tag and anything inside of it. Remove h2 and h3 any of that stuff, remove it completely, and chat GBT built us a little function that lived temporarily in the functions dot php, that as a product was updated.\r\n\r\nIt would strip that stuff out. It would just be gone.\r\n\r\nAnd so I mean, think about how much manual work that say it was an unbelievable. Plus, we actually discovered that you could go and this works with any post. But if you just go in, you can click this and do edit and you don't have to make any changes but hit update. And these products are now actually being updated. And it took care of all of our it stripped all that HTML out. Now, where that left us was these two situations where Okay, now we had some empty spaces. So our empty spaces were an issue\r\n\r\nare we not loading?\r\n\r\nWell,\r\n\r\nyeah, and Chris is right. It works with anything regarding the post assigning categories, custom fields, whatever. Wonder why this isn't loading\r\n\r\nOkay, that was weird. Okay. So here we\r\n\r\ngo. Here's my prompt in WooCommerce products. I have many that have several empty line spaces in the text view. So it's in the Code view right in text and some lines that just have a the, the ASCII code. HTML code for the space right and percent nbsp colon, semicolon. This causes a lot of empty spaces to be shown on the front end. I want to keep any empty lines where there's just one, like if it's a line break, we want to keep that but if there are two or more lines that are empty, I want to remove them. Treat lines that only have the space as also empty. This should run when a WooCommerce commerce product has updated. It should look at text in the product long and short description for this function. And so there's the thing that it did and it was just using the the string REPLACE function that PHP and the preg replace, to go in and update the content and so it's stripped out all those spaces. So everything was nice and tight. Like it was supposed to be really, really remarkable. We didn't know how to do this didn't have a clue that I didn't think it could be done but we just asked and chat GPT did it. Pretty amazing. A similar thing here in WordPress, I have text in a WooCommerce product that has a line break but not a paragraph. So for example, it was like this and then went right into the next paragraph. This kind of thing occurs on most products. Is there a way to detect this with PHP and add a paragraph break instead of a line break when the product is updated? Certainly you can says chat GPT boom, there it is. And so look what it's going to do. It's going to wrap things in p tags. And guess what it works except Okay, wait a minute, we found an issue. Sometimes there are multiple spaces together like this. I don't want to exacerbate that with lots of extra p tags. So this is what we are getting. So again, context, I gave it the actual example of the text to show what we're trying to accomplish. That's super important. This is part of that training the conversation, giving chat GPT more information and you know, so it knows better what to do. So in your example, blah, blah, blah, you can use reg X reg X tackle blah blah blah. Is there a way to add another space rather than adding a p tag the copy paste I sent was from the code editor and WordPress not the visual editor. Alright, so that what just happened didn't work. So we did it again. And now it fixed it. And that I think, oh, that didn't work. This is me being very terse live chat GBT. That didn't change anything. Okay, sorry about that. Let's did it. It did some new code put that in Okay. After running that gives full instructions. The extra spaces are removed, but the lines where there should be an extra space were not affected. So and again, this is just, it doesn't always happen the first time a lot of times it does, but you just have to go back and you can repeat in plain English what you're seeing happen. And chat GPT will often eventually figure it out. Looks like this took a number of different rivers still not working. Going down new code. Okay, that and that one actually worked. So it took a little bit, but we eventually narrowed it down to figure all this out. So if it doesn't work the first time, don't get frustrated. Keep at it, refine your prompt, give it more information, keep trying it, and you'll find that it will likely ultimately work. Paul, would it be better to clean the data in the database instead of scrubbing it when it gets displayed? How do you decide when to do that? It's a good question. So we could have done it that way and done it with like a SQL command. Because essentially, that's what all of this is. I mean, you could run a lot of this in a SQL command. We were working from internally in WordPress and it worked just fine. But you could do it same thing. I mean if we said like we could let me just continue this conversation. All right, take this final solution and create a SQL command that can be run on the\r\n\r\nproducts. The products table\r\n\r\nso if you're comfortable with doing SQL, you could probably do it this way.\r\n\r\nThere it is.\r\n\r\nOnce it's now understood what you're trying to accomplish the likelihood of that command working is pretty strong. I'm not gonna run it but yeah.\r\n\r\nAlways take a backup of your database.\r\n\r\nSally, would you put those function adjustments into a code snippets plugin? You could totally do that too. Yeah. So you could use code snippets I usually get into. I don't like to do any of this from within WordPress. Because if the coat like if you're using code snippets, for example, and the code you put in white screens, WordPress, you're toast, because you can't go in and edit your code snippet. You. I mean, you could do that, but it's just not the best way to do it. That's why I would suggest going in through you know, a CD like cPanel File Manager or your your text editor, code editor SFTP into your site, and doing it that way. You don't want to get into the situation where you add some code, something is wrong. There's a white screen and now you're stuck.\r\n\r\nYeah. Does that make sense?\r\n\r\nAll right.\r\n\r\nLooking at time here, I'm gonna skip through some of these things. You can on the whole chat you can go back and look at these if you want this creating a shortcode that had like a click to call with a phone icon. That was pretty cool. Even this, I am going to show this. I can't remember if I provided the S Okay, I did get okay. So I gave it the actual SVG file the TAT SVG tag for the icon I wanted and it built out a whole shortcode that included that which is pretty darn cool.\r\n\r\nAll right. How about this? Have you ever\r\n\r\nthere are plugins that will allow you to in WooCommerce assign a role to a user if they purchase a certain product and that's often used for some sort of membership product or, you know, you buy this thing in the WooCommerce store and that grants you access to another part of the site for example, and you have to have a membership plugin or a plugin like yes, one of the youth plugins why ith used to be like roll something or other for WooCommerce I think they quit supporting it. But it's so easy. Look how easy it is to do this. It is a simple function. I need you to create a WooCommerce function that does the following. When a customer buys product with ID this again another example of use the slug or the ID or something about that thing that never changes. So when a customer buys this product after checkout is successful. Add a role to the Add a role to that user with the slug in this case Ruach which is the name of the membership product. Also customers personally that product should be forced to create an account at checkout. So we had a plug in that was doing this and it was actually that yes, why it Ah yes. WooCommerce roll something or other and they've quit supporting that it was causing problems. And so it's literally that function. What is that? 10 lines 123467 Yeah, I mean it's mostly empty space.\r\n\r\nIt's literally\r\n\r\nif it's that ID then add a roll. I mean, it's just it's so it's just a very, very simple\r\n\r\nthing and it's done. I don't want\r\n\r\nOkay, so apparently. Let's see, okay, it actually misunderstood me here. Okay. And I stopped it because I was I was actually looking at the code here because there's nothing in here about assigning a role. It missed this. It was only saying if the user is not logged in, and we're in the cart, then you and this item, then we gotta force. That's not what I want. I don't want all users to be forced to create an account only those that are purchasing that specific product. It's like oh, okay, so if it's this ID then we're going to do all the things so there's actually two functions force account creation for that product if that product is being bought, and assign that role after checkout. So there's two functions here two snippets. It gives me the explanation. Now okay, add a notice at the top of the checkout page when the account creation is required that says you will need to create an account using your email address and password in order to access route journey online videos after your purchase. So we just you know, we're continuing, I put it in there figured, okay, the user really needs to know that they got to create an account. So we're just going to add that that little message if the case is like it's not going to show up there unless they're about to purchase that product. In testing, the roll was not applied. Okay, so we're going through we're testing this it didn't work. If the roll isn't being applied, let's okay make sure it exists. It did. The order status has reached Completed status. That was the problem. So if I scroll down, order is still processing let's make the roll change while the order is processing not completed.\r\n\r\nSo boom.\r\n\r\nIt's it was a digital product, but it could have been that there were other actual products in the process. Anyway, you see this? Again, it's just an example of the thinking through and refining of this code throughout the process and that works. That says if I have a plugin that does many things, but I only use it for one very simple thing. Do you recommend I use GPT to create my own code to do that in order to reduce the number of plugins? For example, I use loco translate to change one WooCommerce label. Oh, you could totally do that with a single function. Yeah, you would just so the key to that is how can you describe in enough specificity? What label that is? Like, you know, probably if you inspect it on the front end, you'll get the actual you know, you can get the actual ID of that label and you can tell chat GPT in WooCommerce for this on this label, translate it to this. Make it save this and it'll, it'll totally do that.\r\n\r\nYeah, play with it back up\r\n\r\nand be ready in a file editor to actually back out your changes. Everything comes to a\r\n\r\nscreeching halt. Beth I have faith in you that you can do this you can totally do this. All right. Let me see what else to\r\n\r\nshow here. Here's one that says we don't ship the PIO boxes at all. So it's going to disallow Pio boxes from the address. A lot of these are just very niche things we wanted to add a SKU to the product description so that it's searchable, right? How do you make you know, maybe you want people to be able to type in on the front end of the site, the SKU in the search box WooCommerce doesn't search skews by default. So a workaround we found was to just put the SKU in the product description. So when the product is updated, it adds tech SKU, colon, and then the SKU and now it's searchable. Pretty cool. How about this? Only search titles on the WooCommerce back end like I don't want you to search for if it's occur if this term occurs in the description or whatever. I don't want that I only want the search results to be in the actual product names themselves. That's kind of cool. Okay, here's a good one. I talked about this one already, but this is something I see a lot like so maybe you're using Gravity Forms to do like as your MailChimp subscribe form. I don't want those entries in my database that's going to be tons. So act as a WooCommerce. Developer help me write a PHP snippet using Gravity Forms form ID four, I do not want to store entries in the database. The form uses the MailChimp connector to add the form info so I want to be sure it still works with whatever code is generated. Also, the like I don't know what the code how this code is going to affect the MailChimp connection, so I just told it to take that into consideration. Also, the form is set to display a confirmation message I've customized and gravity form settings this also needs to work. So the two things that are peculiar about this form I just made sure to mention those. And then boom, there's my little bit of code. Now. I think gravity, some of the gravity add ons you have to pay for will let you do this. But it's literally four lines of code to do this and it's done. And now that form is no longer going to store submissions and just stack up 1000s and 1000s of email addresses in the database. Don't need it. Right. Describe your problem as best you can and then iterate. Okay, let's get into something more complicated. This one we actually did. I think this was in an office hours. We did this one. So there's this plugin. I think the question was, is there a way that I can easily show view like how many times a page was viewed on the back end and WordPress without having to get into any Google Analytics or whatever I just want a basic view count. And you can there's this plug in plug in I think we did an around up called Awesome viewcount now, it only works for posts. This plugin. I don't know if they have a premium version or what but it only works for posts. So alright, this is a WordPress plugin that adds a view count to the posts list. Currently, it only works with posts modify the code that works for posts pages all define custom post types, including WooCommerce products. Make sure you adjust not only the code to display the view count on all post types, but also the mechanism for tracking views of those post types. I want you to change the code so that it can be added in a code snippets plugin rather than being installed the standard plugin. So I mean, whatever you want to do here, and then it was a one file plugin. So I just copied the PHP and dropped it right in there. Okay, here's how you can modify the code. There goes now it's gonna it'll work now for all post types. The count does not appear in the WooCommerce product list, nor does it appear for custom post types. Oh, so it worked for pages, but not for posts. My apologies custom post types uses different set of hooks. Okay, now update that to fix that. Now. It should have done that as part of my original prompt, but it missed it. So we added the code tested it didn't work this describe it what was going on. Now it fixes the code. Still not appearing for custom post types. Bummer. What happened here? Oh, the timing. Of when get post this call. Alright. So we're going to change up the timing here in the code. And that work. Oh, but wouldn't it be cool if we could make that views columns sortable? So we could sort by which page or post or whatever has the most. We're sure to make that we're just going to do this. And there it goes. Boom, boom, boom, boom, boom, boom, boom,\r\n\r\nand it works. So that's it. Pretty cool, right? So take\r\n\r\na plugin that is almost what you want and ask chat GPT to improve it. Okay, this is a really helpful thing. How many of you are in a beaver builder stack and you remember this plugin that I've been I've recommended a long time ago, called BVB delete cache right on the front end of the site. It adds a little drop down inside beaver builder that says Clear Cache, super helpful. Did you know that unless you've fixed it, it is filling up your error logs with errors because it hasn't been touched in quite some time.\r\n\r\nOkay, let's fix that.\r\n\r\nSo I noticed they were getting errors. All right, I'm getting this error in the WordPress log. Boom, error read property No, blah, blah, blah. The plugin file in question is paste in the whole thing. It's a very simple PHP file. Line 98 Is this. So you know, that was the line that was mentioned in the error? And chat GPT doesn't really have a way to count these lines. So I just, you know, in the file editor, I could see what line 98 was, and so I gave it that. So I've given it a lot of context. I've explained the error. I'm going to ask chat GPT to fix it. So it explains what's the deal. There's an attempt to read Id No, but why why the issue is here to fix this you got in blah, blah, blah, blah. Okay. So I don't care about any of that. Just give me the whole plugin file again, with the fix in place. Certainly.\r\n\r\nBoom, there it is. All right. Now,\r\n\r\nhere's that the magic line, act as a WordPress developer analyze that and you actually you really don't have to say this anymore. I used to be helpful, I found that the results don't matter by using this. Analyze this plugin for security issues and phba to blah, blah, blah, security issue didn't have to do all this stuff right here, blah, blah, blah, blah. You suggest specific changes to the code, so it didn't really give me a good actionable thing. Maybe I should have asked that different. So based on this, this is what I recommend blah, blah, blah. Okay. Make changes for recommendations one and two. Okay, sure. Boom, there it is. Okay, chat. GPT does this from time to time it will give you just the piece to change because it wants to minimize the amount of output it's giving. Now if you are like me, especially if you if you are rating yourself lower on the PHP experience spectrum. I'm gonna mess this up. Is anybody else gonna mess this up? Like I'm gonna miss I'm gonna miss copy. I'm gonna miss a stupid semicolon or whatever, a squiggly bracket. And you know, the fact that I call them squiggly brackets should tell you enough. Yeah, so I don't want to cobble together the code. Okay. So give me the whole new plugin, like the whole PHP thing. Don't give me the little snippets. Certainly. Boom, there it is. Error is fixed. Everything works. Now, I did have another question. I was just curious about what the text domain was at the top here. Do I really need that? And it just explained to me what it was there. So pretty cool, right? Davia chat, GBT doesn't know what PHP 8.2 is.\r\n\r\nBen, what if you want to change\r\n\r\na bigger plugin that's in multiple files. Okay, so then you would have to train it right? You would have to say I'm about to give you a WordPress plugin that contains multiple files and folders, maybe explain the folder structure and what each of the file names are. And then say, Okay, here's the code for this file, boom, here's the code for this file, boom, it's gonna be tedious. The code wp.ai that I mentioned yesterday, is likely going to be better to handle that scenario. I haven't really used it yet. It's brand new, literally, brand new week old. And if there's a few little bugs that have popped up in there, where the developer is actively working on that tool, I think it's going to be fantastic. But that that's probably a better way to approach it. Ben, is there a chat GBT plugin to load multiple files? I don't think you could load a PHP file directly in the chat GPT. I would imagine they would consider that a security risk. Because think what you could do, right? So maybe, if you put them in a text file and had a reference, but then it's just, I mean, you might as well just paste it in. So I imagine that's gonna get better with time. But for now, that's the approach we have to take. Stacy is the Delete cache built into Beaver Builder? Yeah, it's just buried in the settings. And what that little plugin does is it grabs the function that delete that that clears the cache and just puts it in an easier place to find it's part of beaver builder that the plugin just puts it in underneath the submenu on the front end of the site is all it does. Dave is asking, How can you ask it to be compatible with Hey, that to me, you really can't. But you notice in an earlier response, it said I don't know eight not two, but based on what you've said. There's really nothing here that's deprecated and it's using common functions, so you're probably okay, so it doesn't know 8.2 yet.\r\n\r\nYou could say that one it's definitely knows 8.1. Sherry, can you feed it a dot two? I don't think so. Okay, here's another thing\r\n\r\nwe got to start getting ready to land the plane on this on this piece. Okay, this was we may actually go a little long on the segment depending on how this goes. So this, this is cool. Okay, this is an approach I want you to take notice, because it's very helpful. Again, it's all about the prompts. Right? It's all about training chat. GPT in the conversations, this is you know, basic foundational things about using AI that we talked about yesterday. Doesn't matter if you're generating content, generating code, whatever. It's all about what information how much context can I give to chat GPT to help it solve the problem better. So there's all this documentation for these plugins out there, right like, you know, if you're using a developer centric plugin, like meta box or Gravity Forms or whatever, and then got all those Doc's out there, and you've got a whole page with like, you know, different code snippets and functions that apply in there almost what you need, but not quite. You can just give it those things. And it will, you know, it'll take all that into consideration and give you an answer. Often based on the stuff that it's got. So here's, this was a problem I was trying to solve. So here's the actual, the actual issue. This is a client we've had for a long time. They're a dentist in Southern California. We were rebuilding a site, we've rebuilt this thing now. I mean, I think this is the fourth iteration of the site. And for years, their blog had no featured images. And so they didn't want to go back and add literally 1000 featured images to all the blog posts on this site. Okay, it's hundreds and hundreds and hundreds, right. So instead, we decided we're going to do a category featured image and use that because the blog used to just be a straight text list. It was terrible,\r\n\r\nbut that's what they wanted to do. So instead of\r\n\r\nhaving to do a different featured image for every product, we did category featured images. So you'll notice that some of these are the same, but that's better than no featured images at all. Right? Like this picture comes up multiple, whatever, right? So I found this plugin. That's the problem we're trying to solve is how do we get category featured category images to work for posts? So I've got this plugin that I found called categories images that allows a featured image for each post category, but I need to do is have that image output as a shortcode in a beaver theme or layout, here's the documentation for the categories image plugin. Now here is this is the tactic I was just describing. So what I've got here, this is text that I can't remember if it was on the plugin page or the developer side or whatever. But I just grabbed the whole this is probably the plugin page. I just pasted everything that had a ton of usage in like templates and all this stuff. I just dumped all this code in here that it gave me this giving chat TPT as much stuff as I could, to you know educated on how this thing works. All right, so it looks like you want to use the featured image data data data doc, create a custom shortcode boom. All right, using the shortcode in Beaver theme, and boom, okay, but I made a mistake. Oops, wait a minute, not beaver theme or I'm sorry. I want to add the shortcode into a beaver builder post grid as a custom layout. So this is a post grid module. And I'm using a custom layout in that post, you know the HTML layout.\r\n\r\nSo how do I do that?\r\n\r\nFor the image, I just want to drop the shortcode in so that it pulls the category image. All right, the shortcode should look at the category of the current loop item and display that image. So again, I've pretty precisely described now I've refined my prompt to tell it what I want it to do, okay, you want to create a shortcode blah, blah blah. Here's the code. There it goes. This code creates the shortcode current category image. Great. Okay. And that worked. Well, it worked. But we got to refine it some more because there's a particular custom image size that I want it to use. So I've defined the custom image size in my site called news grid. And it's specifically sized and I wanted to use that version of the image, not the thumbnail or the full size or whatever, okay, boom, and it's the code to add that right. Okay, now, let's change the shortcode slightly to say that if the post itself has a featured image, use that one. Otherwise, use the category image. Okay, so if we've added a featured image actually to the post itself, use that one otherwise, fall back to the category image. Also, please make the function name with my prefix instead of the default. Certainly, boom,\r\n\r\nthere it goes. Boom, boom, boom, boom, boom. All right, so that totally works.\r\n\r\nAll right. Now I need you to help me create a shortcode to display the related post to the current post. The output should be three random posts from the current post taxonomy and I want this to be what the HTML output is, there it is. Because what I want to do is down here at the bottom of every post, we're going to have related posts Oh God, His mouth pictures freak me out.\r\n\r\nAnyway, cool.\r\n\r\nAlright, so there's my that's this is what I'm after right there. There's my HTML, and it gave me a function for that. Ready and look, it remembered that I want I want it to prefixed again with with the BW w. So I need now we're getting the CSS I need the three posts to display in three columns and one column on mobile so see, I'm just, I'm doing my development process. And rather than asking a developer to build the stuff, I'm just asking chat GPT to do it one step at a time in fairly plain English. So now it generates some CSS for me. I put all that in. Give me all the look it did it again. Like okay, paste, paste that into your now I'm not going to try to paste that in. Give me the whole PHP again. Boom, there it is. No need to respond to this, but the image size needs to be updated to news grid. Great. Now give me the CSS to add. Boom. Okay, there it is. Okay, that didn't work. It didn't work for some reason. Now, so what does it do? It gives me two options. Flexbox and grid. Cool. So standard CSS didn't work. So it suggests, let's try to listen Flexbox here's an example. Let's try to do this in grid. Here's an example. Okay, grid work. Awesome. Now I need to modify the shortcode. Again, I need to be sure that regardless whether it's the post featured image or the category image, the image size should be news grid. Please fix the code out there was some issue with that I'm not sure why. Also very important, we need to make sure that the current post is excluded from the random posts that might display in our related posts. Oh, there it is. We got the code. Anyway, this goes on for a little ways.\r\n\r\nContinued revising,\r\n\r\nuntil I finally got it down to exactly what I want. Does that make sense? I don't want to take too much more time on this. But you see the process I just want you to I want to show you the the flow that I would use the mind the mind trying to say that just the process of refining\r\n\r\nthe prompt to get it to get it done. Alright, one more. And we'll take a break.\r\n\r\nSo this is so how do we solve a complex problem? So let's brainstorm a solution first. So I did this in two I think I did this it two separate times. And for whatever reason I didn't continue the same. The same conversation probably should have done in the same conversation. But the here's what the client wants. We had built an internal site add like a law partner type site where people had to log in to view certain proprietary documents, blah, blah, blah. And but then later, the client came back and said Wait, we need them to agree to the brand guidelines before we show them any of these documents. So before they say anything, they got to agree to this thing. All right. So we're gonna ask chat GP to help me think about this complicated problem, a user account with role partners create an email is sent to the user with a password reset link. What we want to do is present a checkbox with I have read and agree to the brand guidelines on the password reset page that must be checked before the user can reset their password. So how do we do that? So it gives a boom boom, boom, all this sort of stuff right here. And what hit me was\r\n\r\nthis update,\r\n\r\nlike how am I going to know if the user checks the box in order to show the thing right or not? It okay user meta, okay, we could use user meta for this something oh, wait a minute. Brainstorming on my own self. Can a gravity form Add User meta on submit? Why yes, it can. So we can build this little bit of code that says, When I check this button, make it a gravity form when I check this box and hit this button, a piece of data can be added to some user meta\r\n\r\nwell guess what? In Beaver Builder, which\r\n\r\nthe site is built on, you can have a row display or not based on whether user meta exists so that's what we did. If the user meta wasn't there, it showed the agree. If it was there, it would show the grid of documents pretty cool. So chat GPT helped me think through the solution now. I wasn't functioning in the dark, like I had some knowledge of other tools we were using and how those things might fit together. But chat GPT was instrumental in me figuring out how to do this\r\n\r\nso\r\n\r\nthat there was something else Oh, yeah, here we go. Update user meta on Gravity Forms nine. So I want to add the current date and time that's what I decided to do. So we've got this new user medical agree to brand guidelines. And when I submit the form, add the current date and time in there. And so that way, anybody from the company could go into that user's profile and see in that box, what the date and time was they agreed to the document or to the to the brand guidelines. That's literally it. Just boom, code done out fixed. Problem solved. And the client loved it. So we're are at an hour. Let's take a breath, shall we? So what do you think right now, can you do this? Do you see some ways immediately that you can start to use chat GBT to solve just some very basic problems that you come up against things that you would normally be searching Google for and to find the answers? Let me hear from in the chat. What do you think everybody good\r\n\r\ndo we all need a drink? Perhaps? All right. Let's take\r\n\r\na break until 10. After that's about seven and a half minutes from now. Yeah, seven ish minute break. We're back at 210 Central Time, and we're going to try to create a full plugin in chat GPT. So that's what we're doing when we're back and seven minutes from now back at 210 Central Time. We are quiet\r\n\r\nuntil then.\r\n\r\nAll right.\r\n\r\nWe are back for the final hour of the WordPress AI workshop. And we're gonna build a WordPress plugin.\r\n\r\nWhat could possibly go wrong? So here's the idea. The I don't know if this is\r\n\r\ngoing to work or not, but we're going to do the best we can. So we're going to try to create a WordPress plugin. Margolis that he here is not to create a fully polished, polished final version of an operational plugin. Maybe we'll get there maybe we won't. But at least we're gonna go through the process of you know, you saw in the last hour, the conversations trying to get things narrowed down, we're going to do that live and we'll see how much frustration and or success or both\r\n\r\nthat we have. So\r\n\r\nthis is I'm actually going to use an example of something that I've done in the past because I have at least a general idea of where we're going to go with this. And we're going to use we're going to our goal in this plugin is to create something that will be a default Featured Image plugin for WordPress. How many of you have had that need? Like no matter what if it's a post, I want it to have like this featured image if one is not set, then show this one instead. Right. That's something I think we all need. There are some plugins out there that do it. They are they tend to litter your WordPress admin area with ads and top level menus and so forth. So let's just build one, what do you think? And again, our goal here is to just work on the process. Now I'm actually going to go back into these custom instructions. So Chris, here's where they are. Again, it's you click on your person down there and you do have to have a Plus membership for this I believe. Custom instructions. I'm going\r\n\r\nto toggle this on. And it's just has some parameters right.\r\n\r\nCheck for compatibility point out any security risks, explanations blah, blah, blah, always prefixed functions with BW w. So I'm going to save that we've got our custom instructions working, and we are here in chat GPT four. Okay, so let's start to explain what it is. Let's work on our initial problem. I want you to help me create a plugin for WordPress that will assign a featured image that will Yeah, that will create what that will allow me this is what happens when you do things live that will allow me to define a default featured image or posts on my\r\n\r\nwebsite. This default image should only be applied if the post does not already have a featured image. The font I want you to create a settings page that is nested under the media link, media or settings. What do you think? Media or settings? Media media\r\n\r\nand under the media link in the WordPress admin menu. There's one other things I'm going to want to do here, but this will get us started. Okay, let's take a look at this helped me create a plugin for WordPress. That will allow me to define a default featured image or post on our website default image should only be applied. The post does not already have a featured image, create a settings page. Okay, let's just do that. Okay. We will see we want to call\r\n\r\nthis plugin Nathan's magic images, okay. All right, let's go.\r\n\r\nSo it actually is gonna give us the step by steps of creating a folder starting out alright, and there's gonna be two PHP files. So let's get to work. So first, we're going to create this\r\n\r\nfolder in the plugin\r\n\r\nso content plugins, and I'm in cPanel File Manager here we're going to create a folder.\r\n\r\nThere's our name. And in that folder, I'm going to create two files\r\n\r\nthis would probably be\r\n\r\nquicker if I was using a code editor, but we're going to use cPanel because that's probably the most familiar thing to everybody\r\n\r\nhere.\r\n\r\nAll right, so we now have our files created and they were ready for content.\r\n\r\nOkay,\r\n\r\nso there's the actual code where both of the files so I've got the first code.\r\n\r\nLet's edit\r\n\r\npaste and then we're going to edit this one copy and paste right now what in your themes functions\r\n\r\nreally\r\n\r\nwhy do I don't understand why do I need to add\r\n\r\nthat's weird. That asked me to do that.\r\n\r\nOkay, so right away chat GPT is doing dumb things.\r\n\r\nAwesome. And it already broke. Okay, so\r\n\r\nfrustration level two now with tat GPT because it is now broken. What I asked it to do in my custom instructions which was give me the whole php file.\r\n\r\nAll right, so.\r\n\r\nAll right,\r\n\r\nmaybe it'll remember it now. But my experience is, if it starts hallucinating at the beginning like this, then it usually doesn't get too much better. So that should be fun. For our little demo here. Is everybody with me? So far? This is pretty straightforward. We're just copying and pasting giving it some prompts. Yeah, it has manners and I usually do too. Until I reach a certain level of frustration,\r\n\r\nthen, maybe not. All right. Okay, now. So\r\n\r\nlet's go into our dashboard, in which we should now see the plugin. Oh, here's the one that I built the first time, but we're going to use this one down here. Alright, Nathan's magic images. Activate. Boom. Okay, so now under media, magic images settings.\r\n\r\nThat's weird.\r\n\r\nOkay, so we're gonna want to fix that probably this is if I upload an image, it's going to show it there. But let's, we're just going to work this straight through. Okay, so the first time\r\n\r\nwhen I view the settings page,\r\n\r\nthere is a broken image let's not show\r\n\r\nOkay, well at least it gave me the whole file this time. So it now it's going to add a conditional check to display the image only if it exists. So what was gonna happen here likely is with when the image was set, it was going to show me a thumbnail audit right there. All right. So chat GPT is slow today\r\n\r\nof course. You do. And we wait. And we wait.\r\n\r\nThe you know as you're waiting on chat TV to do its thing. It gives you time to think forward to maybe improve some of your prompts. For the next thing you're going to ask him\r\n\r\nall right, copy. And I think I accidentally just copied and paste. save, refresh. Okay, good. So let's take a quick look. And just grab Oh no, this rhinoceros okay, it didn't show it. But it did show it here.\r\n\r\nSo I don't like that. I don't like that UI, but for now we'll just we'll just leave it alone for the moment. Let's test to see if\r\n\r\nit works. So if I add a new post it adds the featured image. Okay, good. So that part works. That's pretty good.\r\n\r\nNow let's work on our UI a little bit.\r\n\r\nWhen I select the image from the media library it should display on the Settings page. Before I click Save, Save to\r\n\r\nYes, okay. So it's another tweak to the JavaScript. That's writing quicker. So this is just an honestly this is how many developers build their plugins, right? They add a little bit and they test it and they go back and they tweak that and they test it and it's back and forth, back and forth.\r\n\r\nDoo doo doo.\r\n\r\nNow we're adding a script actually onto that page and I'm not sure that's\r\n\r\nthe best thing.\r\n\r\nLet's just one thing at a time. And then this is another principle here is don't try to change your test more than one thing at a time.\r\n\r\nOkay, here's the problem.\r\n\r\nI now can't unset this images, this image so once it's set like you're fully committed, or maybe I can click here and select another one, but I can't delete it. So that's a problem. I think we can just select another image. Okay, so that part now works. Okay, good. And Dave, you're right. I think I may get it to just give me the pieces. I'm just afraid I'm gonna break something.\r\n\r\nBut we'll just we'll try. Need a way to delete the image without just replacing, maybe an X icon on the image\r\n\r\nright. I should have told it just give me the changes\r\n\r\nYeah, it won't remove\r\n\r\nit from the library. I just want it I want to have like a quick hit click x here and it would remove the image\r\n\r\nas the default\r\n\r\nit's added some JavaScript here. It looks like to remove that on click Delete in Yep.\r\n\r\nI'm not sure it's\r\n\r\nbest practice to put these scripts and styles in this one file. So we'll ask that about it. It'll ask it about that in just\r\n\r\na second. Yeah. Boom, save. All right. Look at that nifty\r\n\r\nthey've pretty cool. All right. Now, the way this works,\r\n\r\nit's actually placing the featured image\r\n\r\non the post.\r\n\r\nI think I like that I like that behavior.\r\n\r\nSo we're going to leave that alone. Okay,\r\n\r\nah, what do we want to do here now?\r\n\r\nLet's ask it is it on admin settings? Is it Yeah, that's to have the and\r\n\r\nshould we separate those out or not?\r\n\r\nYep, generally good. Practice. Okay, so let's let's do that\r\n\r\nokay, so notice\r\n\r\nit, forgot my instructions, and it's only giving me this piece.\r\n\r\nSo what do I need to do?\r\n\r\nOkay,\r\n\r\nthis makes me nervous, but we will try it. So we need to actually create\r\n\r\ntwo new files in queueing them in this Okay,\r\n\r\nso we're gonna add another file\r\n\r\ncalled admin dot Jas and another one called admin. dot css.\r\n\r\nI like those names, but we'll just go with it for now.\r\n\r\nLet's edit these. Well, those open\r\n\r\nand we need to move the CSS. Yeah, we don't need the style. We'll just drop that in here. I think the script\r\n\r\nI don't know if I need the script. tag or not.\r\n\r\nI don't think I do.\r\n\r\nDon't think I do. Yeah. Okay. So we'll get rid of those. Save that. Yeah, thanks\r\n\r\nfor that. Okay. And we need to remove this bit for the script and the style at the end. Okay, now we've got it separated out. Let's make sure that all\r\n\r\nworks. Still works well. Not good. So are our exes stopped working?\r\n\r\nOh wait,\r\n\r\nI didn't in queue.\r\n\r\nI didn't add this piece. Got to do that\r\n\r\ndoes that go? Oh, it goes in that\r\n\r\nPHP file. Yes. It's gonna go here at the end. Now it should work. Yes, delete update image.\r\n\r\nAll right. So that is now working. All right, pausing for a moment. Will I share the code? Yeah, I'll share this whole conversation with you when we're done. We're just remind me and I'll share that and if you're watching this on the replay, it'll be in the chat log. Okay, so are we get here questions about what we've done so far before I go forward to tweaking this a little more. Basically, I'm just following instructions and copying and pasting. pause just for a second. Anybody having a duct tape moment? Quit while we're ahead. Now we're gonna get better. We're gonna do better\r\n\r\neverybody good. I'm gonna assume we're good or everybody has gone to sleep or fallen off whatever. You're sitting on. Okay. Let's move ahead, because currently, yeah, I'm trying. I'm hoping there was an error like we haven't had any errors yet.\r\n\r\nSo yeah.\r\n\r\nPaul, will this add images to older posts without a featured image? That's a great question. Let's ask chat GPT. The answer is no.\r\n\r\nBut let's see what it says to do.\r\n\r\nYou could write a\r\n\r\nfunction to retro actively apply the default featured image to other posts. This could be executed as a one time action in your WordPress admin\r\n\r\ncool Yeah, so could be resource intensive. Yeah. 1000 posts, it's gotta go in and add something to h1. That would be a big deal, right? But you could do this if you want it. Okay, how about this? Let's make this an option in our plugin. Make a section on the Settings page called Apply. update old posts.\r\n\r\nupdate existing posts\r\n\r\nwinky face emoji.\r\n\r\nThis might, this might\r\n\r\nblow things up. Christina is asking about this used to be an image when you shared a post to Facebook. That's a completely different issue, Christine. And you would solve that by just Google Facebook debugger and you would have to go manually add that URL and have Facebook re scraped the image\r\n\r\nOkay,\r\n\r\nso here is where I need to.\r\n\r\nadmin settings\r\n\r\nokay, it's having me put\r\n\r\njQuery in the admin settings page and we just separated it out. So that's not going to work.\r\n\r\nWe moved\r\n\r\nall right.\r\n\r\nSo it had forgotten that we added another file. So this is just part of the deal. This is something that AI is going to get better at over time. And quite frankly, the code WP may already not do this sort of thing.\r\n\r\nBut all right, so we want this on our admin.js\r\n\r\nwe really should be commenting\r\n\r\nthis but I'm not going to worry about that right now. And then here on the magic images dot php at the\r\n\r\nbottom\r\n\r\nwe're adding another function here at the bottom\r\n\r\nokay, let's see if this works.\r\n\r\nOh, boom, we get an error. Okay, yay. We get to figure out an error. That'll be the only time you ever hear me say that ever. So what we're going to do to troubleshoot this error is we're going to go back to our public html folder. Well, we don't the error log is empty so it must be in the admin error log in WP admin.\r\n\r\nOkay, wow,\r\n\r\nI have no errors. No error logs\r\n\r\nthat's weird.\r\n\r\nYeah, there's not a plugin errorlog\r\n\r\nthat's interesting. Okay. Well, we just tell chat GPT\r\n\r\nmaybe I got an email Yes, I did get an okay. So in my email, yes. All right. That it did send me an email. Whoa, I don't want to deal with any of that. Let's go back here. And there's the error that was just emailed to me\r\n\r\nup generating please.\r\n\r\nThis Stacy, that was the year where your site is experiencing a technical issue email.\r\n\r\nYou know that WordPress since there was just the WordPress default email\r\n\r\nOkay. Thank you assets as\r\n\r\ndeclared more than once. Make sure you only have one instance of this. Okay. This is why I don't like to copy and paste code. So\r\n\r\ngive me the whole\r\n\r\nthis is why I don't like to copy and paste because things break\r\n\r\nUTD?\r\n\r\ndoing its thing doing thing\r\n\r\nstill doing its thing looks like it'd be about finished. Okay. Now copy, paste, save, refresh. Work. Okay, that\r\n\r\nworked. But we don't have any new functionality. Okay.\r\n\r\nWonder why that is? Maybe I don't have all the admin give me\r\n\r\nwelcome to plugin writing with chat GBT.\r\n\r\nMuch simpler for\r\n\r\nscripts as you can see. When there's multiple files and multiple things you're trying to do it gets a little a little more complicated\r\n\r\nright\r\n\r\nget rid of this\r\n\r\nokay. Yeah, that gives us our update existing posts.\r\n\r\nOkay, here we go. Now we've lost our stock image Ah\r\n\r\nyes, but we are making progress.\r\n\r\nAnd by the way, this is worse if you use GPT 3.5 Believe it or not\r\n\r\nOkay\r\n\r\none more time okay.\r\n\r\nNow we're missing.\r\n\r\napologizes\r\n\r\nit's very sorry\r\n\r\nI don't know if it\r\n\r\nunderstands when I typed what it means in all caps. But I if you look at the history of my chat GBT conversations, you will discover that the longer the conversations are, in the more frustrated I become, the more words are in all caps, much like\r\n\r\ntext messages. I'm sure none of you have that issue. Okay. All right.\r\n\r\nAll right. Well, it's totally different now. But it doesn't work.\r\n\r\nIt may have gotten confused there, Dave. I don't know. This just this happens. Sometimes it happens more than others. But you know.\r\n\r\nThis is why I like to have it give me the whole code every time\r\n\r\nOkay, let's try this.\r\n\r\nLet's see if update existing posts works and then we'll get back to this\r\n\r\nthis isn't working either\r\n\r\nOkay, let's start\r\n\r\nactually, we could just go back up here. Let's do this. So it started hallucinating. Remember what I said? It's sometimes it's better to go all the way instead of trying to argue with it. Let's go back up to the place where the wheels fell off.\r\n\r\nAnd where was that?\r\n\r\nHere\r\n\r\nlet's start over from here\r\n\r\nyou been in certain cases I have just started over again completely. All it doesn't remember anything. So I've gone back. And it's like it's from here. It's brand new. It doesn't remember anything that just went away. That we've rewound, and we're starting from that point again. I find that that is usually better if you're dealing with a hallucination like this. So I mean if our goal was to troubleshoot, this is typical of what you're going to run into. Alright, so here's our magic images dot php.\r\n\r\nHere comes our admin settings dot php.\r\n\r\nHere comes our admin.js\r\n\r\nOkay, we okay so hit this first time we've seen this. So GPT four will output a certain amount of text and we just reached that limit. We have this continue generating. We're going to click that and it'll it should pick up right where it left off. But now it's counting as another response on our total. So I don't know how many we've had. So far. But you know, we're getting we might we may run out of responses to this\r\n\r\nadmin.js Because I knew one of those and our admin CSS let's see if this reboot helped us.\r\n\r\nAlright, so this looks a lot better.\r\n\r\nYes. Okay. So that's actually working.\r\n\r\nupdate existing posts, hold your breath. Nothing. Oh, wait a minute. Maybe it's doing it. Okay. There is no feedback. When you click Update, what was it update existing posts? We should we should have a message\r\n\r\nthere a way we can know\r\n\r\nOkay, before during and after updating,\r\n\r\nupdating existing posts, please wait. Yes, this is exactly what I want.\r\n\r\nNow. It's giving me bits again. Oh, boy. Okay,\r\n\r\nthis is the one I'm concerned about to get this all correct.\r\n\r\nI'm going to give me the whole admin.js\r\n\r\nAlright, we need\r\n\r\nto put this under the button and that I can handle it. Alright. So under the button which is here. That's where we put this span that it's going to use to update with the jQuery\r\n\r\nOh Womp womp.\r\n\r\ncrash on chat GPT you know, what's going to be\r\n\r\nfunny is like all these frustrations and processes. A year from now think about what this is going to be like, if we're gonna look back on this do I remember when we used to have to ask it five times to do whatever and blah blah blah. It's gonna be like, remember when cell phones were this big? It's gonna be like that. This stuff is gonna get so much better. And we will have been using it for so long. We'll be the geezers of this technology.\r\n\r\nAll right. There's our new thing there. And, alright, let's try this again. Nothing happened. Surely that I missed something. All right. That's done. That's saved. That's saved. Okay. Nothing happened. Very anticlimactic.\r\n\r\nOh,\r\n\r\nthis is where it gets really frustrating trying to debug this JavaScript.\r\n\r\nCareer Chris, I\r\n\r\nmight be able to do a progress bar that's way more complicated that I want to try to do today like I can't even get it to display a message right\r\n\r\nall right, well,\r\n\r\nokay. We're just gonna leave that alone. For now. We're about out of time, but what I do want to do this\r\n\r\nokay.\r\n\r\nI want to be able\r\n\r\nto add featured images for the default featured images\r\n\r\nfor each post type in WordPress so our settings page should have a row for each define post type and the ability\r\n\r\ndefault featured image for each.\r\n\r\nShow the total to give me the whole thing we want to do this for every post type.\r\n\r\nWho knows if this will work or not, but it's giving us a function to fetch all the different post types. Now we're ready. It's almost like a loop here has been created. It's going to render all the things for each post type and the button\r\n\r\nother settings remain the same, yeah.\r\n\r\nAll right we're gonna try just paste this in. What could possibly go wrong?\r\n\r\nCopy what the whole thing.\r\n\r\nAll right. So it's add Admin Menu\r\n\r\nSettings.\r\n\r\nYeah, I'm not gonna try to do that\r\n\r\nso your inexplicably has lost a quit showing us this with the description? I don't know. Maybe he just didn't know to update that description since we've expanded it. This is the kind of thing you run into as your the longer a threat goes, the higher the chance of hallucinations. But you absolutely can get results okay,\r\n\r\nall right. And\r\n\r\nthat doesn't look right. But we're gonna just drop it in there because there's so much more\r\n\r\nwe'll put it in the air. Oh, that's not right. Can't be right\r\n\r\nmaybe I took that out because it wasn't working.\r\n\r\nAlright, there's our admin dot j\r\n\r\nAll right, those are the only two other files. There's my admin settings PhD we'll save that. Then here comes our JavaScript\r\n\r\nthis doesn't work, we'll call it a day\r\n\r\nwhat happened? Let's see. All right. Interesting. Pages.\r\n\r\nNothing happens this broken. Okay, so we'd have to keep going on this but you get the idea. Let me show you where I eventually got with the version of this I was experimenting with\r\n\r\nwill deactivate that monstrosity. And we will activate this one\r\n\r\nand this one actually works\r\n\r\nso I've got post types and taxonomies. But I stopped when because it was only giving me categories and not the actual terms in that taxonomy. But this piece actually worked.\r\n\r\nSo, you know,\r\n\r\nit just takes some trial and error. But again, you see the process. Does anybody have questions about what we did or didn't do over the last hour and working through the process of building this plugin? Ben, what if you ask him to type out Oh, that's a good that's a good suggestion to get it to check our work. So\r\n\r\nplease, we'll see please state in a list the requirements have\r\n\r\ngiven you so far for this plugin.\r\n\r\nYeah, that's about right.\r\n\r\nBut then yeah, that is a great idea too. If you're getting lost maybe well, but honestly it's, it is correctly providing the overview of the project, but it is incorrectly doing the thing and really doing the thing is what I'm after here, but so it's it's, I think it'd be interesting. It'd be interesting to see how code WP would handle this same task.\r\n\r\nBut yeah, that's a\r\n\r\nthat is a another subject for another live stream on another day. All right. Other questions, comments about this before we start to wrap things\r\n\r\nup? Yeah, then we could copy this and start\r\n\r\na new conversation and see what happened.\r\n\r\nAll right. So challenge\r\n\r\nfor you today. What is let's hear from you in the chat. What is one thing that you're going to do today, to take this and start to use it? What is one thing you're going to do today? And the rest of this afternoon or evening or whatever, to try to put some of this practical use.\r\n\r\nLet me hear from you in the chat. Then it's just kind of go to sleep. Yeah, it's\r\n\r\na little bit late there been true fairpoint watch the replay. Yeah, you can speed this part up on the replays at. Sally wants to know more about flex boxes. Have a project try to get AI to do for me to add featured on the website. As we're doing this, I really want to see what happens if I make a new chat. paste this in.\r\n\r\nLet's see,\r\n\r\nSally setting things, doing something complicated. Great. These are great office hours. Questions. Barney built chat GPT into our workflow.\r\n\r\nYeah, dream about GPT five. High Low maybe this will\r\n\r\nbe better results if we had it, spit out these requirements and build the thing\r\n\r\nagain. Oh, no.\r\n\r\nClearly this is going to take a little bit of time\r\n\r\nWell, that's weird.\r\n\r\nThey'll see that you'll get this sometimes like, here's the I didn't specifically say, right, the plug in my fault. Bad prompt, right? So it's like here you can think through this and you can write all the PHP and I'm like, wait a minute, what is this you stuff now? This is this is on you chat. GPT not me. I don't know what I'm doing here. So it didn't get lost. It did not get lost. I did not give it the prompt to actually write the plugin. So you write the plugin and now it's going to actually spit out the thing or not?\r\n\r\nYeah, so there it goes. It's doing its thing. All right.\r\n\r\nWell, hopefully this has been fun and not overwhelming. There's so much you can do with chat CPT from content to snippets to Plugins. I look forward to hearing from each of you how you're starting to use this in your work and office hours. Tomorrow is a great time to start that Oh, thank you. Yes, share the code. Thank you, Stacey. Because you know I was not going to do that.\r\n\r\nTotally forgot. All right.\r\n\r\nSo this is the original\r\n\r\nwrote the the the frustrating, broken one.\r\n\r\nAnd here is the new one that is yet to be seen if it works or not.\r\n\r\nThe possible better one. All right, there are\r\n\r\nthe links those will be in the chat log. If you're watching this on the replay. I'm not sure you actually want that code. Yes, it's bad. But those links you could copy it into your own chat GPT and start playing with it and go from there. So that's it, everybody. We're back for office hours tomorrow, one o'clock Central here on","livestream-resources-group":"s:34:\"a:1:{s:6:\"_state\";s:8:\"expanded\";}\";","multi-day_replay_details":["s:1037:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 1 Replay\";s:25:\"day_description_cloneable\";s:309:\"Hour One:An Introduction to AI\r\nHour Two:Using ChatGPT to Work with Content\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"877651636\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1V1gVLzIFq7Xwy4KKh0vgU2FHA-U_4Wj0\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/clR5qij6gsSJq8aUeoKC2DKzsO4?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";","s:1044:\"a:7:{s:18:\"event_replay_title\";s:12:\"Day 2 Replay\";s:25:\"day_description_cloneable\";s:316:\"Hour One:Using ChatGPT in Web Development\r\nHour Two:Creating a Plugin with ChatGPT\";s:35:\"livestream_vimeo_video_id_cloneable\";s:9:\"878058540\";s:16:\"course-resources\";a:1:{i:0;a:4:{s:28:\"resource_link_text_multi_day\";s:15:\"Course Handbook\";s:22:\"resource_url_multi_day\";s:85:\"https:\/\/drive.google.com\/file\/d\/1VZzD34_hZ1ZJowHsn3a8PSOreDu_JdBz\/view?usp=drive_link\";s:23:\"resource_type_multi_day\";s:15:\"Course Handbook\";s:6:\"_state\";s:8:\"expanded\";}}s:23:\"livestream_chat_log_url\";s:82:\"https:\/\/drive.google.com\/file\/d\/1sQVFgXo8eEUWtqSPd1S2osJeMty8sNaz\/view?usp=sharing\";s:40:\"livestream_live_transcript_url_cloneable\";s:66:\"https:\/\/otter.ai\/u\/0woVu8tHVGjbZfubMRyRUnsTCkQ?utm_source=copy_url\";s:6:\"_state\";s:8:\"expanded\";}\";"]}},"postCountOnPage":1,"postCountTotal":1,"postID":448457,"postFormat":"standard","geoCloudflareCountryCode":"US"}; dataLayer.push( dataLayer_content );
Help Docs Software Kadence WordPress AI Workshop 2023

WordPress AI Workshop 2023

2023 has been the year of AI. Virtually every industry has been touched by this amazing new technology.

Are you leveraging the power of AI in your work?

The WordPress AI Workshop is designed for WordPress website creators who want to improve efficiency, and supercharge their workflow.

We’ll explain how to use ChatGPT and other AI tools to work with content and create code that can take your development processes and abilities to the next level.

Day One: Adding AI to your Content Workflow
Day Two: Solving Code Problems with AI

As an iThemes Training Member, you get free access to this event!

Was this article helpful?