I took Google's prompt engineering course for you. So here's the cliff notes version to save you the nine hours. But it's not enough just to listen to me talk about stuff. So I've also included a little assessment at the end of the video to help you remember everything that you learned. Because research shows that immediately reviewing information after you learn it is the best way of retaining that information.
All right, let's go. Let's first go over the structure of this course. Prompting Essentials has four modules.
Module one is start writing prompts like a pro. Pro. This is where they introduce some really helpful frameworks for how to craft prompts. Module two is design prompts for everyday work tasks.
This will include prompts for emailing, brainstorming, building tables, and summarizing documents. Module three is specifically focused on using AI for data analysis and for building PowerPoint presentations. And finally, module four, use AI as a creative or expert partner.
This is where Google really packs it in. Like, I am genuinely super impressed by this module. We talk about advanced prompting techniques like prompt chaining, chain of thought, tree of thought, and a framework for creating agents. All right, module one, let's do the fundamentals.
Let's first define prompting. Prompting is the process of providing specific instructions to a Gen AI tool to receive new information or to achieve a desired outcome on a task. This could be text, images, video, sound, or even code.
The course provides a five-step framework for how to design a prompt. Task, context, references, evaluate, and iterate. The task is what you want the AI to do.
For example, if your friend's birthday is coming up and they're really into anime, you can say, suggest a gift related to anime for my friend's birthday. Now that prompt in itself is okay, but you can elevate this and get a result that's more unique and specific by incorporating two additional things. The first one is a persona, which is a role that you want the AI to embody. For example, you can update the prompt to act as an anime expert to suggest an anime gift for my friend's birthday. You notice that the results are a lot more specific and it's actually split into different genres.
The second thing you can add is the format of the output. The default here is just the list and bullet points, but maybe you want something that's more structured. So you can say organize that data into a table.
The second component of the framework is context. The general rule of thumb is that the more context you can provide, the better the output will be. In your birthday gift example, you can specify something like your friend is turning 29 years old.
Her favorite animes are Shangri-La Frontier, Solo Leveling, and Naruto, etc. etc. You'll see that the output is much more targeted. Third part of the framework is references.
This is where you can provide examples to the AI. Sometimes when you're trying to explain what you want, it's kind of hard to describe it in words. But providing examples can really clear things up.
And AI is especially good at incorporating examples. Maybe you can provide past birthday presents that this person has enjoyed. Step number four is evaluate. This is after you get the output. Just ask yourself, is this output what I want it to be?
And if it's not exactly what you want it to be, then last step is iterate. Prompting is rarely a one and done kind of thing. It's much more of a circular process in which you're refining the prompt to get the results that you want. Just like what we did earlier, oftentimes you might just start with a simple task like suggestions for a birthday present.
Then you want to get better results and you start iterating on that and adding things like a persona, context, and references to finally get to a result that you're happy with. As the course calls it, ABI, always be iterating. Speaking of mnemonics, the course does have one for this five-step framework, which I actually find really difficult to remember.
I think it's Thoughtfully Craft Really Excellent... I don't know what the I stands for. Oh, I'll put it on screen.
But I do have one that I made, which I can remember a lot better. So I don't know, maybe this will help you as well, which is Tiny Crabs Ride Enormous Iguanas. A lot more memorable, in my opinion.
Anyways, whatever it is that you need to do, just figure out some way to remember this framework, because everything else in the course is based on this. The rest of module one, which also includes interviewing different people, I think is interesting but not super necessary. The only other really useful important thing that they presented is the four iteration methods. So by following the, I'm just going to call it, tiny crabs riding enormous iguanas framework, will get you like 80% of the way. But sometimes you're just not quite there.
So to iterate and get the other 20%, there are four different methods that you can try. The first one is just to revisit the prompting framework. Maybe you can give more references, more examples, provide more context. or, you know, add a persona if you haven't already. Number two is to separate your prompt into shorter sentences.
It's helpful to think about AI like how you would talk to a normal person. Like if you just word vomit to someone about whatever it is that you want, they'll probably be like overwhelmed and there's just like a lot of stuff going on, right? So the same thing can happen for AI.
And an easy solution for this is just to break your prompt into simpler sentences and feeding it to the AI slowly. So it's less like blah blah blah blah blah blah blah. I'm more like blah blah and blah. much more organized.
Number three is trying different phrasing or switching to an analogous task. Say you want the AI to help you write a marketing plan, but the results are just kind of like boring and bland. What you can do is that marketing is really just telling a compelling story. So instead, you can ask it to write a story about how this product fits into the lives of our target customer demographics. This is an analogous But the results are much more lively and interesting.
And the fourth iteration method is to introduce constraints. Just like when you tell someone that they can do anything, or like if you ask people, what does everybody want to eat for lunch? And they're just like, oh, anything.
This actually makes it a lot harder for you to get a result that you're happy with. So instead, you can introduce constraints to narrow the focus down. Say you want to generate a playlist for a road trip, and the AI generates a playlist, but it's just like not very interesting.
you can add different constraints like only specific to a certain region only at this specific tempo or only songs about heartbreak for example i don't know maybe you like feeling sad so with these four iteration methods um with the help of ai i also came up with a mnemonic to remember it better which is brahman saves tragic idiots so let's talk about multimodal prompting the most classical way of interacting with a large language model is just by like typing stuff like having a conversation but you can actually interact with many air models like gemini with different modalities as well, including pictures, audio, video, and even code. It's able to take different types of modalities as the input and is able to output using different modalities as well. This doesn't change anything in terms of how you think about prompt.
It's still going to be tiny crabs riding enormous iguanas, but you just might need to be a little bit more careful about specifying what kind of input or output you're looking for and the kind of context that you're providing. For example, if you design a new nail art collection and you want to market it on social media, you could input something like write a social media post featuring this image and then attach your nail art collection as a reference. The post should be fun, short, and focus on the fact that it's a collection of new designs I'm selling. Some other examples of multi-modality usage would be asking a Gen AI tool to suggest recipes based on the photo of the ingredients in your fridge, inputting your brand's logos and colors, and then creating a digital teaser to promote an event. Or if you're working on a short story and you get really inspired by a musical piece, you could try inputting that music piece and tell it to kind of follow those vibes for the atmosphere and details of the story.
Regardless of the modality that you're prompting in, there are two major issues with using AI tools. The first one is hallucinations. A hallucination is when a Gen AI tool provides outputs that are inconsistent, incorrect, or even nonsensical. A really famous example is that if you ask an LLM how many R's are in strawberry, it tells you that there's two R's in strawberry.
The second is biases. Unfortunately, LLMs being trained on human content also incorporates human biases, things like gender and race. So to minimize these sorts of problems, the course recommends that we take a human-in-the-loop approach, which is making sure that you're always checking your outputs and verifying whatever it is that the GenAI tool gives you. In the end, it is your responsibility of making sure that whatever is being produced is in fact accurate. Here is a checklist, feel free just to take a screenshot for some considerations when you're thinking about using AI responsibly.
You know, compared to other Google courses I've taken, especially the AI Essentials course, which you can check out over here, this course is a lot more dense, which is a lot better bang for your buck. So pay attention. Moving on to module two.
Module two is called Design Prompts for Everyday Work Task. It's essentially just providing examples of use cases based on the Tiny Crabs Riding Enormous Iguanas framework and the Ramen Saves Tragic Idiots framework too. That's why I'm going to go through this module relatively quickly. I'll highlight some of the examples I think are really important and for the rest of them I'll actually just put on screen so you can take screenshots of it if you want and build out your own prompt library where you can kind of like store the prompts that you want to use.
One of the biggest use cases that most people have when using Gen AI tools. is by using it to produce content. For example, like writing emails. Here's an example of a situation when you want to write an email to your staff about a new schedule change for your gym. I'm a gym manager and we have a new gym schedule.
Write an email informing our staff of the new schedule. Highlight the fact that the... MWF Monday, Wednesday, Friday, Cardio Blast class changed from 7am to 6am. Make the email professional and friendly and short so that the reader can skim it quickly. Here's the new schedule.
And you can actually attach the link that contains the new schedule. This sort of email probably takes you like 10 minutes to write, but by using a Gen AI tool, you can do it in like a minute. Most of us do send quite a lot of little emails here and there throughout the week, so the time savings do add up.
For this kind of email, you probably aren't super picky, but what happens if you need to write email that is a lot more important? or you're writing other things like an essay, an article, or a newsletter, you would care a lot more about the tone and the word choice that's being used. Instead of using general terms like write a casual summary, try to use more specific phrases like write a summary in a friendly, easy to understand tone, like explaining to a curious friend.
You can also provide references for context, other emails or articles or whatever that you've written in the past, and tell the AI to match the tone. I'm going to now include a few other prompts on screen related to generating text for content. which you can take a screenshot to add to your prompt library if you want.
If you're currently in YouTube, University thinking about going to university or going back to university to maybe get an additional degree You should check out straighter line straighter line is a credible online education platform where you can take high quality online courses designed by academics from leading universities and recommended by accredited educational institutions. You can basically take a course at a fraction of the cost and still transfer the credit to your college or university. More than 3,000 colleges and universities have accepted credit from straighter line courses.
So not only are straighter line courses much more affordable, they also come with the flexibility of being able to take a class when you want and at your own pace. They even have a variety of support services like tutors and resources to help you succeed. If you're still on the fence just check out their course catalog and you can start a free trial today at this link over here also linked in description thank you straighter line for sponsoring this portion of the video now back to the video module 3 is pretty similar to module 2 it's just more example use cases very helpful example use cases though specifically data analysis and presentations the big word of caution here is that be careful about what data that you're inputting into your am model if you're working for you know a company you do not want to be violating any privacy policies and you probably don't want to be putting some sensitive data into some large language model as well the example from of course if say if you have a data set for a grocery store chain with information about the store the area items that they have available the daily customer count and store sales if you're not very good at google sheets or excel you might input a prompt like this attached is a google sheet of store data how can i create a new column in sheets that calculates the average sales per customer for each store it can help teach you specific things like this and it can actually do more. Save your interest in the trends in the dataset. You could then add on to give me insights into the relationship between daily customer count, items available, and sales based on the given data.
Gemini is able to show some interesting trends including the fact that there's no clear correlation between items available and store sales. If you find this interesting, you can continue prompting it, digging into this, and maybe coming up with ways to figure out why that's the case. I'm gonna put on screen now a couple other prompts. related to spreadsheets and data analysis that you might find helpful.
The second part of the module is about building presentations and I'm going to put on screen out a couple prompts related to presentations that could be helpful. And finally we are at module four! We're almost done guys!
Module four is titled Use AI as a Creative or Expert Partner. This is an extremely important module and what made me very impressed about this course. So first we're going to cover some advanced prompting techniques. Starting off with prompt chaining. Prompt training is a way to guide GenAI tools through a series of interconnected prompts, adding new layers of complexity along the way.
For example, you're an author and you wrote a wonderful novel, and now you want to market and sell your novel. So you need to come up with a marketing plan. The course recommends you use Google AI Studio for this because it has a much longer context window because you're going to be attaching your entire manuscript.
The first thing you might want to do is to generate some summaries of your manuscript. Generate three options for a one-sentence summary of this novel manuscript. The summary should be similar in voice and tone to the manuscript, but more catchy and engaging.
So Jeb and I was able to give some decent options, but you want to focus on a more specific theme. That's where the prompt chaining comes in, taking the output from the previous prompt, and then asking, create a tagline that is a combination of the previous three options, with a special focus on the exciting plot twist and mystery of the book. Find the catchiest and most impactful combination. The tagline should be concise and leave the reader hooked and wanting to read more.
And great, it comes up with the desert whisperer's secret. A young weaver seeks the city of singing stones, but the greatest journey unfolds in the whispers of her own heart. Anyways, you can keep refining things if you want. And finally, maybe even asking Gemini to generate a six-week promotional plan for the book tour, including the locations and the channels to promote each stop on the tour.
So that was prompt chaining. There's two other advanced techniques in this module. Chain of thought prompting and tree of thought prompting. As a note, a lot of these AI terminologies and techniques sound like super fancy, but they're actually not. Like chain of thought prompting is about asking the AI to explain its reasoning as a step by step process.
It's similar to how your math teacher might ask you to explain your work. So he or she is able to identify like the steps that you're taking and where you could be going wrong. All you have to do throughout your prompting sequence is to tag on the line, explain your thought process.
This helps you understand the AI's reasoning for things and you can help improve his decision making. Tree of thought prompting, as his name suggests, is sort of like a tree. It allows you to explore multiple reasoning paths or like branches simultaneously. This is really helpful for abstract or complex problems, like developing novel plots with new characters or creating outlines and drafting sections for lengthy documents.
You can work with the AI tool to explore different options and evaluate them to finally come up with the best output. As an example, maybe you're creating an online course and you want to create a cool image on the landing page. You can use tree of thought prompting to brainstorm different options.
A potential prompt may be, imagine three different designers are pitching their designs to me. All designers will write down one step of their thinking then share it with the group. Then all experts will go on to the next step, etc.
If any expert realizes they're wrong at any point, then they leave. The question is, generate an image that's visually energetic and features images of art supplies and computers. Show me three suggestions in very different styles from simple to detailed and complex.
And here's the output. Gemini came up with. Now looking at this output, you might be like, I kind of like the vibes of one, where one could be going. So you can tell the AI that you like the first one and you'll like to expand the idea a little bit more and perhaps generate three different color schemes for that concept.
And you can just keep doing that until you end up with something that you like. A pro tip is that you can combine chain of thought and tree of thought prompting by asking the AI to explain his reasoning at each iteration so you can provide feedback. Another pro tip as you're prompting along.
is if you ever get stuck and you don't really know what prompt to use, you can actually use AI to help you come up with a prompt. This is called meta prompting. All right, the last section of the course is on agents, and I've actually not seen a single course be able to cover agents as well as this one. So first definitions, what is an AI agent? An AI agent is like an expert designed to help with tasks and answer questions.
You can have all sorts of agents. You can have coding agents that help you with coding, marketing agents that come up with marketing plans with you, a golf agent that can correct you on your golf swings, or maybe just a friend agent that can be your friend. The course covers two types of agents. The first one is a simulation agent called AgentSim. Agent Sim can simulate scenarios with you, like conduct interviews or do role-playing.
For example, if you work in an HR department, you might be tasked with coming up with a training program to help interns improve their interviewing skills for that final job assessment. For AI agents, you want to focus a lot on the persona and the context. The persona here is Act as a Career Development Training Simulator. The task is, your task is to help interns master interview skills and conduct conversations with potential managers.
Then you have the context. You need to support the following types of conversations, articulating strengths and skills, communicating professionally and confidently, and discussing future career development goals. Once an intern has picked a conversation topic, provide details about the situation and the interviewer's role. Then act as the interviewer and allow the intern to participate as the employee. Make sure to guide a conversation in a way that will allow the intern to exercise their interview skills.
Finally, you want to include a stop role where you can tell the agent that you're done with the simulation. Continue to role play until the intern replies with jazz hands. After the intern gives the stop rule jazz hands, provide them with key takeaways from the simulation and skills they can work on. Now that it's set up, you can start doing a simulation, maybe by inputting the chart analysis that I did for my intern project. Agent Sim will ask you more questions about the analysis and you can keep responding to them.
And at the end, you can insert jazz hands and then Agent Sim will provide feedback for you. The second kind of agent is an agent for expert feedback called Agent X. Agent X is able to give you feedback on any topic of your choosing, sort of like a personalized tutor or consultant. Here's an example prompt to create an Agent X that can provide you feedback about a pitch for a potential client.
First, the persona. You're my potential client, the VP of advertising at a world-famous sports car company known for its innovation, performance, and engineering excellence. Now the context. You're considering hiring a creative agency to develop a new campaign that will attract a younger generation of buyers. You're in a meeting with me. the design director of a creative agency that's pitching a new campaign for your company.
And now the task. Act as my potential client. When I provide answers, critique the answers. If needed, ask follow-up questions. Continue the conversation until I give the stop-roll break.
Then give me a summary of the whole conversation, highlighting ways I can improve my pitch. You also want to include additional material references for your agent. I've included a brief the car company provided me that has all the relevant information for this project.
Use the information from this brief to inform your answers. AI agents can be super powerful if you can design them correctly, and these are only two examples. I really like how the course also provides a guideline for how to create any AI agent.
First, you need to assign a persona that you want the AI agent to take on. For example, act like a successful personal fitness trainer and talented nutritionist. Step two is that you want to give as much context and detail as you can about the scenario and the conversation.
For example, I'm looking to improve my overall fitness and adopt a healthier lifestyle. Step three is to specify the type of conversations or the kind of interactions that you want to have with the AI agent. You might also want to set some rules to follow, like ask me about my workout routines and meal planning and give me feedback.
Step four is to provide a stop phrase in order to stop the conversation. This can literally be anything you want, so go wild. An example they give is no pain, no gain.
And finally, step five, ask the tool to provide feedback or areas of improvement after the conversation ends. At the end of our conversation, provide a summary of the advice you provided. And that is it my friends! You have now completed the Google Prompting Essentials course and saved nine hours of your time.
But as promised, to make sure that you actually have retained this information, I will now put on screen the questions for the little assessment. Please answer these questions to actually retain the information you've just learned. You can like say it in your head, you can say it to your friend, your dog, your cat, whatever.
But for proof, you should write it in the comments. Thank you all so much for watching and I will see you guys in the next video or live stream.