I don't usually over-hide myself, but in this video, we're going over the only formula you will ever need to master prompting on chatgbt and google bard. So let's get started. Hey friends, welcome back to channel. If you're new here, my name is Jeff, I work full of time in tech, and if you're anything like me a couple months ago, you know prompting is an important skill to learn, but you're not exactly sure why some prompts generate outputs that are super generic, while others give you precisely what you're looking for. Since then, I've spent hundreds of hours taking prompt engineering courses and applying what I've learned in my daily life. And so in this video, I'm sharing the six building blocks that make up a good prompt so that you can use this formula to consistently generate high quality outputs. First, it's critical to not only know what the six components are, task, context, exemplars, persona, format and tone, but also know that there's an order of importance to these six components.
To show you what I mean, let's use this simple example. I'm a 70 kg male, give me a three month training program. The first part is context followed by the task. The reason why the task is higher up in the formula hierarchy is if we just input the task without the context, there's still some sort of meaningful output. But if we just give chat to BTD context, nothing really happens. Put another way, it's mandatory to have a task in your prompt. It's important to include relevant context and exemplars, and it's nice to have persona, format and tone. When you think of writing your prompt, go down this mental checklist.
So this formula will act as a consular reminder for you to include just enough relevant information when writing prompts. And as you'll see in this next part, you do not need all six components in every prompt to have a good output. Now let's break down each building block with specific examples starting with the task. The rule of thumb is to always start the task sentence with an action verb, generate, give, write, analyze, etc. And clearly articulate what your end goal is. It could be one simple task like generating a three month training program or a complex three step task like analyzing hundreds of user feedback, sharing the top three takeaways and categorizing the feedback based on the team responsible for following up.
The second component context is the trickiest to get right because technically there's an infinite amount of information you can give. So I found asking myself these three questions to be super helpful in coming up with just enough information to get a good result from chat JBT. First, what's the user's background? Second, what does success look like? And third, what environment are they in? Back to the workout example we now have. I'm a 70 kg male looking to put on five kilograms of muscle mass over the next three months. I only have time to go to the gym twice a week and for one hour each session. Give me a three month training program to follow. Could I have added more background information? Of course. Only prioritize the muscle groups that make me look good at Instagram. But the key to staying productive with chat JBT and Bard is giving just enough information to constrain the endless possibilities.
By the way, although this video is not sponsored, it is supported by those of you who subscribe to my paid Pong TV newsletter on Google workspace tips. Link in the description to learn more. Moving over to the exemplars component. It's just a fancy way of saying examples. Basically all the research on large language models, LLMs, have shown that including examples within the prompt drastically improves the quality of the output. Starting with a simple example, this is a poorly written bullet point from a resume. We can now ask chat JBT to rewrite this bullet point using this structure. I accomplish X by the measure Y that resulted in Z which is actually best practiced by the way. So actually do this in your resume.
For example, I lowered hospital mortality rate by 10% by educating nurses in new protocols which translates to 200 lives saved per year. Here's a slightly more complicated example for interview prep. Based on my own resume, write me an answer to the interview question, what's your biggest weakness? Use the star answer framework, situation, task, action and results. Here instead of using a full blown interview answer as an example, which would be overkill, the star framework acts as an example structure for chat JBT to follow.
Last example, let's say you need to write a job description. You give some context around the opening and ask chat JBT to reference an existing job description. If I use this one I found on LinkedIn, the output will follow the same formatting and use the same professional HRE language, saving me a bunch of time. Main takeaway here, exemplars are not necessary for every prompt, but including a relevant example or framework will greatly improve the quality of your output.
Moving along, the persona component is basically who you want chat JBT and bar to be. And the pro tip here is to think of someone you wish you had instant access to with the task you're facing. If you injured yourself working out, that person might be a physical therapist with experience helping athletes recover. If you're a job seeker, that person might be a recruiter or hiring manager. If you're working on a creative brief, that person might be a senior product marketing manager who's great at storytelling.
Pro tip, you can also name specific individuals, but I found the results to be good only when they're famous enough, like Warren Buffett, Steve Jobs, Jeff Sue. By the way, just had to share this, we have a team off site with a super hero theme, so I asked chat JBT to draft an email from Batman, and it even included things like, please let Alfred know and sign off as The Dark Knight. So fictional characters work as well, and I'm actually going to use this. The fifth component format, the pro tip here is to literally close your eyes and visualize how exactly you want the end result to look like. A million likes on my third spot Instagram photo. Damn it, didn't work.
Back to the user feedback example, I don't want to read each sentence, so I asked chat JBT to take all the feedback and output a table with three headers. The original feedback, the team is responsible for following up and priority. And now I can copy this directly and paste it into a Google sheet. So prepare and filter by team. Other common formats include emails, bullet points and code blocks, but the one I found to be the most useful as a full-time working professional is paragraphs and markdown. For example, I just received a lengthy industry report from my director. First give me the three key takeaways, then summarize based on topic. Use H2 as section headers. Here is the report. Pro tip, whenever I use chat JBT to proofread any document, I specify that all changes need to be bolded so I can easily see exactly what has been changed.
Let's quickly go through the last component, tone, before we put all this together in one example. The good news is tone is easy to understand. Use a casual or formal tone of voice. Give me a witty output, show enthusiasm, sound pessimistic. The bad news is we're usually not very good at recalling the thousands of potential adjectives and adverbs at a moment's notice. So here's a pro tip. Tell chat JBT the feeling you're going for. For example, I'm writing an email to a team I haven't worked with before and I want to be taken seriously without coming off as too stuck up and cringy. Can you please give me a list of five tone keywords I can include in a prompt for chat JBT? And look, now the actual prompt I can say, use clear and concise language and write in a friendly yet confident tone. Putting all this together, let's look at this comprehensive prompt. You are a senior product marketing manager at Apple persona and you've just unveiled the latest Apple product in collaboration with Tesla, the Apple car and received 12,000 pre-orders which is 200% higher than target context. Write an email to your boss, Tim Cookie, sharing this positive news, task and format.
The email should include a TLDR, too long didn't read section, project background, by this product came into existence, business results section, quantifiable business metrics and end with a section thanking the product and engineering teams. Example, structure. Use clear and concise language and write in a confident yet friendly tone. Tone.
Note that if I had an existing email to reference, I could delete the instructions around the structure and simply touch at JBT. The email should follow the exact same format as the one I will share below and paste the email from the four. By the way, you can compare the output from this prompt to that of a simpler prompt.
I just launched a new product, the Apple car. I received 12,000 pre-orders. Please run email to my boss with this update. There's a pretty big difference in terms of how generic and usable the end result is. Now that you know the basics of prompting, my next video is going to take you from beginner to pro, so make sure you're subscribed for that.