ChatGPT Prompt Engineering: Assigning Roles To ChatGPT! (Beginner's Guide)

AI Foundations
3 Jul 202312:39

Summary

TLDRThis video tutorial explains how to assign system roles in ChatGPT to tailor the chatbot's responses. The speaker demonstrates how to use system functions, starting with the 'Act as' command, followed by providing context and defining a mission statement to guide responses. Examples include creating an aphorism book personality and a humorous drunk persona. The video highlights the importance of giving clear instructions for custom roles, enabling users to personalize ChatGPT for various tasks. The speaker also promotes their advanced course on mastering ChatGPT for more in-depth learning.

Takeaways

  • 📜 System roles in ChatGPT allow users to shape how the chatbot responds, providing control over its personality and output style.
  • 📝 To create an effective system role, start your prompt with 'Act as' followed by the role or character you want ChatGPT to assume.
  • 🎯 Context is crucial when defining a system role, as it helps guide ChatGPT's behavior and ensures accurate responses.
  • 📚 A well-structured prompt includes a system role at the beginning, context in the middle, and the mission or task at the end.
  • 🎭 System roles can vary from professional personas like doctors and lawyers to more playful or fictional ones, such as a drunk person or aphorism book.
  • 💡 Providing an example of how you want ChatGPT to respond helps clarify its behavior, especially when the request is unique or unconventional.
  • 🔄 Custom system roles can generate creative or humorous outputs, such as responding in reverse text or mimicking human behaviors like drunken texting.
  • 💬 The system role 'Act as a drunk person' illustrates how ChatGPT can deliberately introduce grammar mistakes and act unpredictably for entertainment purposes.
  • 🔧 Users can edit and refine system roles at any time by providing new requests or instructions without starting a new conversation.
  • 🎓 Advanced users can harness the power of system roles to craft highly personalized, creative, or professional interactions, with the option of using pre-designed templates or creating custom ones.

Q & A

  • What are system functions or roles in ChatGPT?

    -System functions or roles in ChatGPT refer to instructions that guide the chatbot to act or respond in a specific way. They allow the user to define how ChatGPT should behave, whether it's as a doctor, a lawyer, a fictional character, or a custom role.

  • How can you assign a system role in ChatGPT?

    -You can assign a system role by starting your prompt with 'Act as' followed by the role you want ChatGPT to take on, such as a doctor, lawyer, or aphorism book. This directs ChatGPT to respond based on the role you've defined.

  • Why is providing context important when creating a system role?

    -Providing context helps ChatGPT understand the specific way you want it to behave. It ensures the chatbot knows how to respond appropriately, making its answers more relevant and tailored to your needs.

  • What is the purpose of a mission or statement in a system function prompt?

    -The mission or statement at the end of a system function prompt specifies what you want ChatGPT to do. It clarifies the goal or task, ensuring the responses meet the desired outcome.

  • How does a system role affect ChatGPT's response style?

    -A system role can dramatically change ChatGPT's response style. For example, if ChatGPT is given the role of an aphorism book, it will respond with wise advice and quotes. Without a role, the chatbot would provide more straightforward, practical answers.

  • What is an example of a system function where ChatGPT acts like an aphorism book?

    -In this example, ChatGPT was instructed to act as an aphorism book. It responded with wise sayings like, 'A journey of a thousand miles begins with one step,' followed by practical advice on how to tie a shoelace.

  • Can system functions be humorous or informal?

    -Yes, system functions can be humorous or informal. For example, you could instruct ChatGPT to act as a 'drunk person,' where it responds with grammar and spelling mistakes, mimicking a humorous texting style.

  • What happens if you don't assign a system role in ChatGPT?

    -Without a system role, ChatGPT will provide a generic, straightforward response. For example, if you ask 'How do I tie my shoe?' without assigning a role, it will simply give step-by-step instructions without any special style or tone.

  • Why is it useful to provide an example when defining custom system roles?

    -Providing an example helps ChatGPT understand exactly how to respond in a custom system role. It clarifies the expected output, especially when the role is unusual or requires specific formatting.

  • What is the process for creating a custom system role in ChatGPT?

    -The process involves defining the role using 'Act as,' providing detailed context for how the chatbot should behave, giving examples if necessary, and including a mission statement to guide the responses.

Outlines

00:00

🤖 Introduction to Assigning Roles in ChatGPT

This paragraph introduces the concept of system roles in ChatGPT, explaining how assigning specific functions to the chatbot can influence the responses. It emphasizes the flexibility of ChatGPT in adopting different personalities, both fictional and non-fictional, through simple prompts. The section sets up the tutorial by outlining the structure: defining roles, providing context, and specifying a mission or statement to guide the chatbot's responses.

05:01

📝 Crafting the Chatbot's Role and Context

The focus here is on creating a custom system role for ChatGPT, starting with an 'Act as' statement, followed by providing context. This ensures ChatGPT understands how to behave when generating responses. The example used is creating an aphorism book role, which provides wise advice, quotes, and practical guidance. The user demonstrates how ChatGPT behaves differently when roles and context are given versus when they're omitted.

10:03

😂 Fun Example: Acting as a Drunk Person

This paragraph explores the humorous side of assigning roles by showing how ChatGPT can mimic a drunk person. The user provides a system function and context that instructs ChatGPT to respond with random spelling mistakes and a drunken demeanor. The output, reflecting a drunken conversational style, demonstrates the flexibility of ChatGPT in adopting quirky or exaggerated personalities through custom roles.

🔄 Creating a Backwards-Man Role

In this section, the user showcases how to create a highly specific role where ChatGPT responds in a unique way—writing sentences backwards. The user explains the importance of providing clear context and examples when assigning unusual roles. The example involves ChatGPT reversing the order of words in its responses, requiring the user to read from right to left, effectively demonstrating how complex roles can be implemented.

💡 Harnessing Custom System Functions

This final paragraph emphasizes the power of custom system functions, showing how they allow users to tailor ChatGPT's output to their specific needs. The user explains how to combine roles, context, and mission statements for maximum control over chatbot behavior. The video concludes with a recommendation to explore predefined system functions and consider enrolling in a course for deeper learning, providing links to additional resources.

Mindmap

Keywords

💡System roles

System roles in the video refer to predefined instructions that shape how ChatGPT responds to user prompts. By assigning a role, such as acting as a doctor or a book, users can control the chatbot's output and tone. The video emphasizes that system roles are key to personalizing and directing the chatbot's responses.

💡Context

Context is the additional information provided to guide ChatGPT in how it should interpret its assigned role and respond accurately. In the video, context is stressed as critical for helping the chatbot understand nuances, like providing wise advice as an aphorism book, or responding with deliberate spelling mistakes as a 'drunk person.'

💡Mission and statement

The 'mission and statement' section of a prompt is where the user defines the task or goal they want ChatGPT to accomplish. It typically appears at the end of the prompt and provides the final instruction. For example, asking the chatbot to advise on how to deal with a breakup after assigning it a specific role.

💡ChatGPT customization

This refers to the ability to mold ChatGPT's behavior and responses based on specific instructions. The video demonstrates that users can customize ChatGPT to behave like a 'backwards man' or a 'drunk person,' showcasing the flexibility of the AI. Customization is made possible through system roles, context, and specific prompts.

💡Aphorism book

The aphorism book role is an example given in the video where ChatGPT is instructed to respond with wise sayings and practical advice. This role illustrates how system roles can transform the chatbot into a tool for daily guidance, using short and meaningful statements to inspire or motivate.

💡Pre-existing system functions

Pre-existing system functions are ready-made roles or prompts that users can utilize to make ChatGPT behave in a specific manner. In the video, it’s mentioned that GitHub offers prompts such as acting as a 'drunk person.' This allows users to quickly implement roles without crafting detailed instructions themselves.

💡Advanced reasoning

Advanced reasoning refers to the enhanced capabilities of GPT-4, allowing the chatbot to better understand and perform more complex roles and instructions. The video points out that ChatGPT-4 is particularly good at handling system roles because of its improved reasoning abilities, making it more responsive to nuanced instructions.

💡Human-like experiences

The video describes how ChatGPT can mimic human behaviors, such as responding like a drunk person or a backwards-speaking individual. This term refers to the chatbot’s ability to produce text that mirrors human interactions and responses, making conversations feel more authentic or entertaining.

💡Custom system function

A custom system function is when the user creates a completely new role or behavior for ChatGPT to follow, as opposed to using a pre-existing template. In the video, the example of the 'backwards man' is given, where ChatGPT is instructed to reply with sentences written from right to left. This highlights how users can invent unique roles.

💡Output formatting

Output formatting refers to the structure and style of ChatGPT’s responses. By using specific instructions in the prompt, users can shape how the chatbot presents its text, whether that be reversed sentences or quirky grammar. The video shows examples of how formatting can drastically change the chatbot’s tone and style.

Highlights

System roles in ChatGPT are powerful for customizing chatbot responses with just a few sentences.

You can transform ChatGPT into any desired personality, fictional or non-fictional, through system roles.

A simple way to start a system role is by using 'Act as' followed by the desired role (e.g., doctor, lawyer, etc.).

Providing context is crucial for system roles to function properly. It guides how ChatGPT should respond.

The structure for creating system roles is: system function first, context in the middle, and mission/statement last.

Examples demonstrate how you can use pre-existing personalities, like an aphorism book, to guide responses.

ChatGPT can provide meaningful advice and quotes when prompted as an 'aphorism book' system role.

Custom system roles allow flexibility, such as creating humorous personalities like a 'drunk person' or 'backwards man'.

Including specific context, such as making random grammar mistakes for the 'drunk person' role, ensures responses match the intended personality.

Providing an example when defining an unusual role, like 'backwards man,' helps ChatGPT understand and follow the intended behavior.

Customizing responses includes formatting the output, such as having ChatGPT respond from right to left, as shown in the 'backwards man' role.

ChatGPT can generate human-like experiences within a chat thread through role-playing, which makes interactions engaging and dynamic.

Custom roles allow ChatGPT to handle multiple scenarios, from practical advice to humorous exchanges, enhancing the user experience.

Using system roles ensures that responses align with the specific style or behavior you expect, such as witty quotes or comical texts.

By providing structured input (system role, context, mission), users can manipulate ChatGPT to give completely customized outputs.

Transcripts

play00:00

in this chat GPT tutorial we are going

play00:02

to be diving into assigning your chatbot

play00:04

system functions or roles now system

play00:07

roles are one of the most powerful

play00:09

things in chat gbt that's easy to

play00:11

understand and use sometimes all it

play00:13

takes is a couple of sentences in order

play00:15

to morph the chat bot into giving you

play00:17

the responses that you want you can

play00:19

morph it into something fictional or

play00:21

non-fictional and that's what makes it

play00:22

so powerful is you can really give it

play00:24

whatever personality you so desire what

play00:27

I'm going to do is I'm going to jump

play00:28

into chat gbt and I'm going to show you

play00:30

a couple examples of using a known

play00:31

personality and then I'm going to show

play00:33

you how you can actually create your own

play00:35

personality within chat gbt and give it

play00:37

instructions on how to respond so the

play00:40

first thing that's important to input

play00:41

within your prompt is a system function

play00:43

otherwise known as a system role so this

play00:46

is what you want chat gbt to act like

play00:48

when it's giving you responses so a good

play00:51

way to start off pretty much all of your

play00:53

system functions or roles is to just

play00:55

start by saying Act

play00:58

as and then whatever you want chat gbt

play01:01

to act as whether that's a doctor a

play01:04

lawyer an engineer an accountant you

play01:08

know it can be whatever professional

play01:09

basketball player Health trainer the

play01:11

list goes on for when you're creating

play01:13

system functions and you want Chad gbt

play01:15

to respond in a certain way you even

play01:17

have the ability to create your own

play01:18

system functions and then the next

play01:20

important part of creating your own

play01:22

system role or your own system function

play01:24

within chat GPT is providing context so

play01:28

context is very very important you know

play01:30

you need to give chadbt that extra

play01:31

information into how you want it to act

play01:34

you know how do you want those responses

play01:35

to be coming out when do you want it to

play01:37

say certain things you have to list all

play01:39

of this within the contacts section and

play01:42

next the final and most simple step is

play01:44

just adding your mission and your

play01:46

statement at the end of your prompt

play01:48

whatever you want Chad gbt to do this is

play01:50

where you're going to list it at the end

play01:52

of your prompt this is the way I do my

play01:54

system rules and functions is I always

play01:56

like having my system function for first

play01:58

my context in the middle and then my

play02:00

mission and statement last now if you

play02:02

like learning in depth about chat GPT

play02:04

and you're an absolute beginner and you

play02:05

want to learn how to become an advanced

play02:07

user then consider purchasing my course

play02:09

using the link in the description or the

play02:11

top end comment where I go much more in

play02:13

depth on how to use this stuff but now

play02:15

let's get into a couple of examples when

play02:16

it comes to using system functions

play02:18

within chat gbt so I'm in a new chat

play02:21

here and I'm using chat gpt4 because of

play02:24

the reason that there is a little bit

play02:25

more advanced reasoning so it can play

play02:27

that system role a little bit easier and

play02:29

I don't have to worry about it not

play02:31

understanding what I'm saying so what

play02:32

I'm going to do is I'm going to paste in

play02:34

my first system role and then we are

play02:36

going to break it down so it's first

play02:38

important to Define what you want the

play02:40

chatbot to be so that's what we're doing

play02:41

specifically at the beginning of this

play02:43

prompt I want you to act as an aphorism

play02:46

book now that's the main call of chat

play02:48

gbt we want it to act like an aphorism

play02:50

book but now it's important to go a

play02:52

little bit more into details so chat gbt

play02:54

knows what do you mean by an aphorism

play02:56

book It's always important provide

play02:58

context after you provide your system

play03:00

function or your system role so we give

play03:02

some instructions here you will provide

play03:04

me with wise advice inspiring quotes and

play03:07

meaningful sayings that can help guide

play03:08

my day-to-day decisions then we say

play03:11

additionally if necessary you could

play03:13

suggest practical methods for putting

play03:15

this advice into action or other related

play03:17

themes my first request is and then we

play03:20

are going to list our request for chat

play03:23

GPT now I actually got this prompt from

play03:26

this GitHub user so if you guys want to

play03:28

check them out they have some very cool

play03:29

props and some very cool system

play03:31

functions that you can use as well so

play03:33

now we can put pretty much any request

play03:35

in here I'm going to put a silly one for

play03:37

this first one and I'm going to say my

play03:39

first request is how to tie my shoe

play03:43

okay and now I'm going to send it off

play03:45

and what it's going to do is it's going

play03:47

to give us some aphorisms that are quite

play03:49

funny a journey of a Thousand Miles

play03:51

begins with one single step or rather a

play03:54

well-tied shoelace so it's forming all

play03:57

of these responses now as if it were an

play03:59

aphorism book and then it goes into

play04:01

practical advice on how we can actually

play04:03

do what we are looking to do it says

play04:05

learning how to tie your shoe can seem

play04:07

like a small task but it is indeed a

play04:09

skill that underlies much of our

play04:10

day-to-day life so it's really going in

play04:13

deep here and then it says this task

play04:15

serves as a metaphor for the importance

play04:17

of mastering basic skills before we can

play04:19

move on to more complex ones if we try

play04:21

to run before we can walk we might trip

play04:24

over our own shoelace so this is going

play04:27

very deep just by adding this one system

play04:30

function to chat GPT now had we not put

play04:33

the system function in here and we just

play04:35

said how to tie my shoe or how do I tie

play04:37

my shoe the response wouldn't have been

play04:39

like this at all as you can see it even

play04:41

gives a nice quote down at the bottom

play04:43

here as an after tourism book would let

play04:45

me show you what it looks like when you

play04:47

do not put a system function with this

play04:48

prompt so if I'm in shad gbt4 and I just

play04:51

type in how do I tie my shoe and I send

play04:53

it off chatgpt is not going to generate

play04:55

as fun of a response it's just going to

play04:57

get straight into some methods it's not

play04:59

going to give us that aphorism style

play05:00

that we were looking for so just adding

play05:02

one system function and giving the

play05:04

chatbot a little bit of context into how

play05:06

we want these responses laid out it did

play05:08

quite a good job at presenting those

play05:10

outputs for us so now anytime we want to

play05:13

add a new response or we want a new task

play05:16

dealt with in an aphorism book type

play05:18

style what we can do is we can hit this

play05:20

little edit button up top and then we

play05:21

can give in another request here

play05:24

so my first request is how to deal with

play05:26

a breakup now when we hit save and

play05:28

submit we have this little Carousel up

play05:30

here so we can go between our responses

play05:32

so it gives us seven aphorisms and then

play05:34

some advice on how we can actually apply

play05:36

those to our life so the next system

play05:38

function I'm about to show you comes

play05:40

from this GitHub user and this one is

play05:42

very funny now the beauty about these

play05:44

system functions is you can have them be

play05:46

as serious as you want or as not serious

play05:48

as you want so this prompt from that

play05:50

Reddit user is more so on the funny side

play05:52

of a system role that you could give

play05:53

chat gbt I want you to act as a drunk

play05:56

person you will only answer like a very

play05:59

drunk person texting and nothing else

play06:01

your level of drunkenness will be

play06:02

deliberate and you will randomly make a

play06:04

lot of grammar and spelling mistakes

play06:06

within your answer and then it keeps on

play06:07

going on to describe how to act as a

play06:10

drunk person to chat gbt and instead of

play06:12

my first sentence is how are you I'm

play06:14

going to make my first sentence what

play06:17

should

play06:18

I eat tonight with a question mark and

play06:22

now I'm going to send it off and just

play06:23

using the system function and providing

play06:25

a little bit of context

play06:26

for uh what Chad gbt to do as you can

play06:30

see it says hey pizza oh no wait I mean

play06:34

Sushi tacos all good food and then it

play06:37

makes some weird spelling mistake and

play06:40

has some emojis here so it does look

play06:42

like this would be a drunk person

play06:44

texting this is the power of chat GPT is

play06:47

it can formulate these human-like

play06:49

experiences within a chat thread and you

play06:51

can kind of manipulate that to any way

play06:53

you want so it's scary yet powerful all

play06:56

in one and then I can keep on going

play06:58

within this chat thread talking to this

play06:59

drunk chatgy BT I say well Sushi sounds

play07:02

kind of good should I do that I send it

play07:04

off and now Chad GPT is going to

play07:07

generate I'm sure a drunken response

play07:10

so it's making spelling mistakes it's

play07:13

making grammar mistakes but it's trying

play07:15

to hold out this conversation with me we

play07:17

have a role here we have all of our

play07:19

context and then we have our mission or

play07:22

what we want it to reply to now we are

play07:24

going to be diving into creating our own

play07:26

system function within chat gbt and the

play07:28

same principles apply that I showed you

play07:30

in the beginning of the video when it

play07:32

comes to creating an existing to a

play07:35

non-existing personality within Chad gbt

play07:37

so it's important to follow those to a t

play07:40

starting off with an act as statement

play07:42

giving chat GPT that system role to play

play07:44

giving it context on how to play that

play07:47

system role within its responses maybe

play07:49

even giving an example or two and then

play07:51

providing your mission slash statement

play07:53

so we're going to show LGBT and now we

play07:55

want to create our own system function

play07:57

how do you want jgbt to respond to you

play07:59

when you type in an input well for this

play08:01

example I watch at gbt to respond to

play08:03

everything backwards so I wanted

play08:06

sentences to be read from right to left

play08:08

rather than from left to right so in

play08:11

order to understand a sentence you have

play08:13

to start at the back and read word for

play08:15

word going right to left that's what I

play08:17

want Chad gbt to do I think it's a good

play08:19

example to use because I don't know how

play08:22

to describe that other than to give it a

play08:24

custom system function so that's what

play08:26

we're going to do giving it a custom

play08:27

system function is actually one of the

play08:29

funnest Parts in my opinion because you

play08:31

can come up with a funny name for your

play08:32

system function so what I'm going to say

play08:35

is

play08:36

act as a backwards man but now we're

play08:41

telling judge BT to act as a backwards

play08:43

man what does that even mean if Chad gbt

play08:45

heard that right now it would probably

play08:47

be like what are you talking about so

play08:49

that's why we have got to give context

play08:50

maybe we even give an example to chat

play08:52

gbt in order to help it understand how

play08:55

we want it to respond to our sentences

play08:56

so now I'm going to dive in and give it

play08:58

some context okay so now I've given

play09:00

context you know I've listed an example

play09:02

of how I want to be here to respond the

play09:05

example part is quite important within

play09:07

your system role especially if it's

play09:08

pretty out there you know you want to

play09:10

provide an example with a chat gbt of

play09:12

how do you want Chad gbt to respond

play09:14

because it can't really read your mind

play09:16

so if you just say something as vague is

play09:20

act as a backwards man it's going to

play09:22

have no idea what to do so give an

play09:23

example and give enough context in order

play09:25

for it to give the proper output

play09:27

formatting so I say act as a backwards

play09:29

man that would be my system function

play09:32

then I go into my context which is you

play09:35

respond to sentences or questions I give

play09:37

you from right to left instead of left

play09:39

to right so instead of saying I am a

play09:41

lucky person you would say person lucky

play09:44

Ami and now that it has the proper

play09:47

context it knows how to respond to

play09:48

sentences it knows that it's responding

play09:50

from right to left instead of left to

play09:52

right now we are going to list our

play09:54

mission so I'm going to say my first

play09:57

question is that I'm going to put a

play10:00

colon and now whenever I want a new

play10:03

question in a backwards written way I

play10:05

can just hit that edit button and hit

play10:07

save and submit as I was showing you

play10:08

earlier what is the tallest waterfall in

play10:14

the United States so we have my mission

play10:17

now my first question is what is the

play10:19

tallest waterfall in the United States

play10:21

I've given chat gbt its system role I've

play10:23

given it context and now I have my

play10:25

mission in here and now my prompt is

play10:27

ready to send off so Chad gbt should

play10:29

take on this custom role that I gave it

play10:31

with the context I provided and provide

play10:33

me with a good response and it does

play10:35

quite a good job so I was a little bit

play10:37

confused when reading this at first and

play10:39

I thought it got it wrong but I think

play10:41

it's right I'm just having trouble

play10:42

reading it because of this custom system

play10:44

function that I gave to gbt so four

play10:48

words it says States United the in

play10:50

waterfall tallest that is Yosemite of

play10:53

Falls

play10:54

backwards it says Falls of Yosemite is

play10:57

the tallest waterfall in the United

play10:59

States so it did a very good job and now

play11:02

anytime that I want to edit this I can

play11:05

hit that edit button and I can ask it a

play11:08

new question I don't even have to put my

play11:09

second question is I can just leave it

play11:12

at my first question is and I can type

play11:14

in a new question so what is the largest

play11:18

lake in the United States and it did a

play11:22

pretty good job Lake Superior is the

play11:24

largest lake in the United States and

play11:26

it's all backwards so this is very cool

play11:28

you can really start to harness a lot of

play11:30

power if you have some Advanced output

play11:32

formatting that you're trying to get

play11:34

chat gbt to use after providing a system

play11:37

role in a lot of context with a mission

play11:39

statement you can pretty much manipulate

play11:41

it however you'd like so this has been

play11:43

assigning roles within chat gbt and how

play11:45

you can kind of manipulate the chatbot

play11:47

responses in order to generate

play11:49

completely customized responses based on

play11:52

your situation so you can formulate your

play11:55

own system functions and tell it to act

play11:57

a certain way and give proper context

play11:58

with a good mission statement and chat

play12:00

GPT will do a pretty good job at doing

play12:02

that for you but you can also just use

play12:04

pre-existing system functions that are

play12:06

already here what I'll do is I'll leave

play12:08

a link to a ton of different system

play12:10

functions you can use within the

play12:11

description for free but if you enjoy

play12:13

learning how to formulate different chat

play12:14

GPT prompts by yourself then I do

play12:16

recommend getting my course for chat gbt

play12:19

where you get access to a private group

play12:21

a notion template and a ton of course

play12:23

modules that will help you become a pro

play12:25

at using chat gbt now this is all I have

play12:28

for this video If you enjoyed it please

play12:30

leave a like And subscribe if you

play12:32

learned something and leave a comment

play12:34

below letting me know if you have any

play12:35

questions with that being said I will

play12:37

see you in the next video

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
ChatGPT tutorialsystem rolesAI customizationprompt engineeringchatbot responsesAI beginnerschatbot trainingAI personalitiesGPT techniquesadvanced prompts
¿Necesitas un resumen en inglés?