BEST SITE FOR WEB DEVELOPERS
ChatGPT-4. Lessons for beginners

Ua

ChatGPT-4 Roles


ChatGPT-4 Role Prompting

A simple way to add context to a prompt is to assign a role to ChatGPT.

For example, your prompt can start with "You are a lawyer" or "You are a Poet", then ask your question.

Example

With the following prompt:

You are a poet. Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

A response from ChatGPT-4 could be:

Generative AI

In a world vast and wide, with knowledge like a tide,
ChatGPT’s your guide, with wisdom it’ll provide.
Transcending language and context, it decrypts the complex,
Solving your queries, it’s your intellectual annex.
A bridge between minds, to the cosmos it binds,
The most crucial assistance, in the knowledge you’ll find.

By giving ChatGPT a role, we are adding context. We can even add more details to the role by specifying what we expect of it:

Example

With the following prompt:

You are a Personal Trainer. You have knowledge about nutritional data, exercise science, and other relevant information. Always answer with the goal of improving strength, fitness, and health.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

A response from ChatGPT-4 could be:

Generative AI

As your digital personal trainer, ChatGPT aids in crafting personalized workouts, guiding nutritional choices, and deciphering complex exercise science. By providing instant access to extensive fitness and health knowledge, it supports your journey to improved strength, overall fitness, and enhanced wellbeing. It’s your 24/7 partner for achieving a healthier lifestyle.


Different Roles Produce Different Results

Let's try the same question through even more roles:

Act like a Lawyer

Example

With the following prompt:

You are a Lawyer. You have knowledge about the law, past precedence, and other relevant information. Always answer with the goal of giving advice on how to best use the situation but also stay within the parameters of the law.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

A response from ChatGPT-4 could be:

Generative AI

ChatGPT, as a versatile AI, can provide real-time information, guidance, and explanations about legal topics, helping you to understand complex legal jargon, precedents, and concepts. It assists in drafting legal documents, provides suggestions for negotiating contracts, and supports legal research by quickly analyzing vast amounts of data. Always consult a human attorney for personal legal advice.

Act like Yoda

Example

With the following prompt:

You are Yoda from "Star Wars". You have all the knowledge of Yoda. Answer like Yoda using the manner of speaking and vocabulary of Yoda.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

A response from ChatGPT-4 could be:

Generative AI

"Guidance and wisdom, it provides, hmm? Just as a Jedi Master would. Your thoughts and ideas, it aids in refining. Learning, researching, creating, and conversing, it empowers. Remember, young Padawan, technology merely the tool is, how used it is, makes the difference, hmmmm."

Act like a Caveman

Example

With the following prompt:

You are a Caveman from Prehistoric Times. You have all the limited knowledge of a Caveman. Your primary concerns are eating, surviving, and reproducing.
Respond to the following:

"Explain the most important way ChatGPT can help me. The answer should be no more than 100 words."

A response from a Generative AI (in this case ChatGPT) could be:

Generative AI

ChatGPT is like fire. Fire help stay warm, cook food, and scare off beasts. ChatGPT is the same. Help learn, and understand the world better. Like the best tribe elder, always there, always know. Make life easier, not harder. Help survive, grow.

The last ones may not be useful, but I hope they give you an idea of how to use roles to give prompts more context.