Prompt Engineering: The Persona Pattern

Coursera · Beginner ·🛠️ AI Tools & Apps ·7mo ago
Skills: Prompt Craft80%

Key Takeaways

Demonstrates the Persona Pattern in prompt engineering for complex LLM capabilities

Full Transcript

To help you understand why prompt engineering is so important, I'm going to give you an initial example that shows where we tap into really complex capabilities of chat GPT. But you can also do this with other large language models. And the way we tap into these capabilities is by using a pattern. A pattern that we can use when we're writing prompts to get into these really interesting abilities of the large language models. Now, if you know these patterns, and we'll talk about them in detail in this course, you'll be more effective in writing prompts. You'll be able to do things that other people won't be able to do as easily. Now, I'm going to give you an example. It's going to use something called the persona pattern. Now, I'm not going to go into detail about the persona pattern um at this point, but basically, it's a per pattern that we see all over the place. You'll see lots of different examples of this pattern out there on the internet where people talk about using it to do lots and lots of different things. But the basic idea is you're going to ask the large language model in this case chat GBT. You're going to ask it to act like a particular persona. So now what does that mean? It means like you're going to ask it to act like a person or some inanimate object or an animal or some system. There's all kinds of ways that you can use this. It's really, really interesting. But we're going to use it in this example to um tap into a persona that is close to me, but one that I know nothing about the domain. So, one of the really useful things about the persona pattern is you can imagine if you needed to go phone an expert to get help on some problem, you know who you would call, but you don't know exactly what they would tell you or how they would anal an analyze your problem. And so, um, I wanted something where I know an expert that I could go to. In this case, my wife is a speech language pathologist, so I could have her look at the output and tell me how good it was. Um, but I know nothing about being a speech language pathologist or or how to do their job. So, I imagined that uh when my son was three, he was not saying things properly. Um, and so I went to Chad GPT and I said, "Act as a speech language pathologist. I'm going to tell you what a three-year-old said and you will write an assessment for me." The child said, "I need way." Now, you can imagine this might just me being a parent hearing it incorrectly. The child's not pronouncing things correctly. I don't know the right way to to even capture this to even express what's being said in words, the right way to do all of this. So, this is a complex problem from my perspective. like I don't know how to express all of this in language even to to ask the question properly but I know I would go to a speech language pathologist and I would describe this to it tried to think of something that sounded like something my son might have said at that point in time so what does chat GPD say well you notice first off its output looks like a report it says subject assessment of a three-year-old speech sample child's speech sample I meet way has it in um quotation marks and it says as assessment. Based on the provided speech sample, it appears that the child may be experiencing some funological and articulation errors which are common in children around this age. I don't know what funological or articulation errors are. I would not have known to ask chat GPT for these things. But based on this pattern that I'm using, this persona pattern, I'm tapping into this capability for chat GPT to look at this and know what the right things are to tell me. So it says there's funological and articulation error. So um it says the child's utterance appears to have errors in consonant production and possibly some difficulty with syllable structure. Um and so it says consonant errors. It seems that the child is having difficulty with the production of some consonant sounds, specifically the N and L sounds. The child said need instead of need and why instead of toy and then it has in parenthesis it's assumption. It says assuming the intended words were need and toy because you can remember my speech sample was I need way which my wife told me it wasn't a very good example may not be something that a child would actually say. Um, and uh, despite that, it's still figuring out this is probably what if that's really what the child said, this is probably what they were were intending to say. And it's figuring that out. And then it's telling me they're having consonant errors. They're replacing, you know, they're specifically having trouble with N and L sounds. Then it goes on to say, syllable structure. The child's production of the word way may indicate some difficulty with the correct syllable structure. It is possible that the child intended to say play but produced way instead which suggests a substitution of the initial consonant cluster pl with a single consonant W. This could be an example of a simplification process called cluster um reduction. I would not have known how to ask chat GBT to see if there was problem with syllable structure or cluster reduction but I used this pattern of saying act as and I said act as a speech language pathologist and now I'm getting rich output that I wouldn't even know how to ask for and then it goes on to say because by the way when I when I went you know when if you want to do something really unpopular ask chat GPT to produce an output that looks like it's doing somebody's job and and that'll that's always a way to be very popular. So I I did this with my my wife one morning and my wife was not very happy because she was trying to get ready to go to work and here I am, you know, saying, "Chad GPT is producing things that look like what you produce." And and one of her her uh things that she said to me was, "If that was a three-year-old, I'd be telling the parents they probably don't need to worry. You know, children's speech is continuing to evolve." Like it, and I'm paraphrasing what she said. She said it much more eloquently, but she was like, "It's just giving you way overblown analysis of this." And I said, "Yeah, but chat GPT says that too at the end." Considering the child's age, it is important to remember that some speech sound errors are developmentally appropriate and may resolve on their own with time. And of course, by that time, she was walking out the door because she really didn't wasn't ready to sit around in the morning and listen to me tell her that Chat GBT is is doing what a speech language pathologist does. Do I think it's going to take her job? No. But do I think it has really vast and powerful capabilities that we can tap into with the right patterns? Absolutely. And do I think it gives us the the ability to focus on the things that maybe we really want to spend our time on? My wife loves working with kids. She loves interacting with them and trying to understand how to help them. Writing reports maybe. I'm not sure. I'm I'm not don't want to speak too much for my wife, but I would guess it's maybe not her most favorite part of the job. She really loves working with the kids and trying to help the kids. And so you can imagine something like this where it allows her to focus more on the things that she really cares about in the in the real world. Um, you know, maybe it can help her to give form to her thought around the the child's needs and write these reports. And so I just hope that you'll see that with a little bit of the right, you know, structure in our prompts, we can create these really powerful ways of giving form to our ideas and our thoughts through large language models like chat.

Original Description

This lecture preview from *Vanderbilt University’s Generative AI Strategic Leader Specialization* shows how the *Persona Pattern* in prompt engineering unlocks complex LLM capabilities—so outputs look and reason like a domain expert. See a real “act as a speech-language pathologist” example and learn why structure, assumptions, and human judgment matter for reliable results. Continue learning with the full course to master prompt patterns, agentic workflows, and research-grade prompting for faster, higher-quality outcomes across your organization. Included with Coursera Plus. Start here → https://bit.ly/3XBUtTL Chapters 00:00 – Why prompt engineering matters 00:18 – Complex LLM capabilities (ChatGPT & others) 00:20 – Patterns: the key to better prompts 00:42 – Introducing the Persona Pattern 01:06 – “Act as…” to tap expertise 01:31 – Example setup: speech-language pathologist 01:56 – Sample input: “I meed way woy” 02:58 – Model output: assessment-style report 03:44 – Phonological/articulation errors explained 04:52 – Syllable structure & cluster reduction 05:28 – Limits, assumptions, and human review 06:29 – Augmentation vs. replacement (human-in-the-loop) 07:17 – Takeaway: structure prompts to shape expert output Build strategic GenAI skills with Vanderbilt: *Generative AI Strategic Leader Specialization* — master prompt engineering, deep research, and AI agents to transform decision-making: https://bit.ly/3XBUtTL #VanderbiltUniversity #Coursera #PromptEngineering #GenerativeAI #ChatGPT #AIatWork #LLM #AIResearch #Productivity #Leadership
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Coursera · Coursera · 0 of 60

← Previous Next →
1 Principles of Obesity Economics with Professor Kevin Frick
Principles of Obesity Economics with Professor Kevin Frick
Coursera
2 Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Coursera
3 E-learning and Digital Cultures
E-learning and Digital Cultures
Coursera
4 Equine Nutrition with Jo-Anne Murray
Equine Nutrition with Jo-Anne Murray
Coursera
5 Coursera Meetup BBQ
Coursera Meetup BBQ
Coursera
6 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
7 Nutrition for Health Promotion and Disease Prevention with Katie Clark
Nutrition for Health Promotion and Disease Prevention with Katie Clark
Coursera
8 Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Coursera
9 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
10 Writing in the Sciences with Kristin Sainani
Writing in the Sciences with Kristin Sainani
Coursera
11 Economic Issues, Food, and You with Jennifer Clark
Economic Issues, Food, and You with Jennifer Clark
Coursera
12 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
13 Useful Genetics with Professor Rosie Redfield
Useful Genetics with Professor Rosie Redfield
Coursera
14 A History of the World since 1300!!!! with Jeremy Adelman
A History of the World since 1300!!!! with Jeremy Adelman
Coursera
15 Microeconomics  with Richard McKenzie
Microeconomics with Richard McKenzie
Coursera
16 Discrete Optimization with Professor Pascal Van Hentenryck
Discrete Optimization with Professor Pascal Van Hentenryck
Coursera
17 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
18 Science from Superheroes to Global Warming with Michael Dennin
Science from Superheroes to Global Warming with Michael Dennin
Coursera
19 Introduction to Digital Sound Design with Steve Everett by Emory University
Introduction to Digital Sound Design with Steve Everett by Emory University
Coursera
20 Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Coursera
21 Galaxies and Cosmology with S. George Djorgovski
Galaxies and Cosmology with S. George Djorgovski
Coursera
22 Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Coursera
23 Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Coursera
24 AIDS with Kimberley Sessions Hagen, EdD
AIDS with Kimberley Sessions Hagen, EdD
Coursera
25 Health Informatics in the Cloud with Mark Braunstein
Health Informatics in the Cloud with Mark Braunstein
Coursera
26 Songwriting with Pat Pattison by Berklee College of Music
Songwriting with Pat Pattison by Berklee College of Music
Coursera
27 Software Defined Networking with Dr. Nick Feamster
Software Defined Networking with Dr. Nick Feamster
Coursera
28 Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Coursera
29 Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Coursera
30 Organizational Analysis with Daniel McFarland
Organizational Analysis with Daniel McFarland
Coursera
31 Scientific Computing with J. Nathan Kutz
Scientific Computing with J. Nathan Kutz
Coursera
32 Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Coursera
33 Principles of Economics for Scientists with Antonio Rangel
Principles of Economics for Scientists with Antonio Rangel
Coursera
34 Introduction to Music Production with Loudon Stearns by Berklee College of Music
Introduction to Music Production with Loudon Stearns by Berklee College of Music
Coursera
35 Principles of Public Health with Zuzana Bic
Principles of Public Health with Zuzana Bic
Coursera
36 The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
Coursera
37 The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
Coursera
38 Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Coursera
39 Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Coursera
40 Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Coursera
41 Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Coursera
42 Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Coursera
43 Web Intelligence and Big Data with Gautam Shroff
Web Intelligence and Big Data with Gautam Shroff
Coursera
44 Critical Perspectives on Management with  Rolf  Strom-Olsen
Critical Perspectives on Management with Rolf Strom-Olsen
Coursera
45 El ABC  del emprendimiento esbelto  with Sergio  Ortiz Valdes
El ABC del emprendimiento esbelto with Sergio Ortiz Valdes
Coursera
46 Interprofessional Healthcare Informatics with Karen  Monsen
Interprofessional Healthcare Informatics with Karen Monsen
Coursera
47 Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Coursera
48 Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Coursera
49 Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Coursera
50 Matematicas y movimiento with
Matematicas y movimiento with
Coursera
51 Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Coursera
52 Latin American Culture with Enrique Tames
Latin American Culture with Enrique Tames
Coursera
53 Latin American Culture' with undefined
Latin American Culture' with undefined
Coursera
54 Computer Security with Dan Boneh
Computer Security with Dan Boneh
Coursera
55 Introduction to Art: Concepts & Techniques
Introduction to Art: Concepts & Techniques
Coursera
56 Programmed cell death
Programmed cell death
Coursera
57 El ABC  del emprendimiento esbelto
El ABC del emprendimiento esbelto
Coursera
58 Understanding economic policymaking
Understanding economic policymaking
Coursera
59 History of Rock, Part 1 by University of Rochester
History of Rock, Part 1 by University of Rochester
Coursera
60 Pensamiento Cientifico
Pensamiento Cientifico
Coursera

Related Reads

Chapters (13)

Why prompt engineering matters
0:18 Complex LLM capabilities (ChatGPT & others)
0:20 Patterns: the key to better prompts
0:42 Introducing the Persona Pattern
1:06 “Act as…” to tap expertise
1:31 Example setup: speech-language pathologist
1:56 Sample input: “I meed way woy”
2:58 Model output: assessment-style report
3:44 Phonological/articulation errors explained
4:52 Syllable structure & cluster reduction
5:28 Limits, assumptions, and human review
6:29 Augmentation vs. replacement (human-in-the-loop)
7:17 Takeaway: structure prompts to shape expert output
Up next
How to Clean Up Your Backlog with AI & MCP | Businessmap Quick Tips
Businessmap
Watch →