Giving AI a Clear Role and Goal
Two useful components of a prompt are the role and the goal.
The role describes the perspective or function you want the AI assistant to use.
The goal describes what you want to accomplish.
What Is a Role?
A role tells the AI what perspective or type of assistance you want.
For example:
Act as a beginner-friendly programming tutor.
This tells the AI that the response should be approached from the perspective of teaching a beginner.
What Is a Goal?
A goal describes the result you want to achieve.
For example:
Help me understand how machine learning works.
A more specific goal might be:
Help me prepare a simple explanation of machine learning that I can use when teaching beginners.
Role and Goal Are Different
Role: The perspective or function the AI should use.
Goal: The outcome you want to achieve.
For example:
Role: Act as a career coach.
Goal: Help me prepare answers for a beginner-level job interview.
Why Give AI a Role?
A role can help establish the type of response you want.
For example:
Act as a business analyst and explain the main business risks in this report.
The role provides a useful perspective for the task.
Roles Are Not Magic Credentials
Assigning a role does not give the AI real-world credentials, authority, or professional responsibility.
For example, telling an AI to act as a doctor does not make the AI a licensed doctor.
A role is a prompting technique for establishing perspective. It is not a replacement for qualified human expertise.
Choose a Relevant Role
The role should relate to the task.
An editor role can be useful when reviewing a document.
A project-management perspective can be useful when creating a project plan.
A business-analysis perspective can be useful when examining business risks.
Not Every Prompt Needs a Role
Simple tasks do not always need a role.
For example:
Convert 10 kilometers to miles.
The task is already clear, so adding a special role may provide little benefit.
What Makes a Good Goal?
A useful goal describes the result you want.
Compare:
Help me with marketing.
with:
Help me create three marketing ideas for a new online course aimed at beginners.
The second goal is more specific and easier to evaluate.
Make the Goal Specific
Specific goals reduce ambiguity.
Instead of:
Improve my presentation.
try:
Improve the structure of my presentation so that the main argument is easier for a non-technical audience to understand.
Define the Desired Outcome
Ask yourself:
What should I have at the end of this task?
The answer can become the goal.
Possible outcomes include:
- A completed email.
- A study plan.
- A comparison table.
- A summary.
- A list of recommendations.
- A project outline.
- A revised document.
Make Goals Measurable When Useful
When appropriate, make the goal measurable.
For example:
Create five interview questions.
This is more measurable than:
Create some interview questions.
Combine Role and Goal
A simple structure is:
Role + Goal
For example:
Act as a study coach. Help me create a seven-day plan for learning AI fundamentals.
The role establishes the perspective and the goal establishes the desired outcome.
Add Context
Once the role and goal are clear, relevant context can make the request more useful.
For example:
Act as a study coach. Help me create a seven-day plan for learning AI fundamentals. I am a complete beginner and have one hour available each evening.
Add Specific Instructions
You can then explain exactly what the AI should do.
For example:
Act as a study coach. Help me create a seven-day plan for learning AI fundamentals. I am a complete beginner and have one hour available each evening. Cover the most important concepts first and include a short review activity each day.
Example: Writing
Role: Act as a professional customer-support writer.
Goal: Create a response to the customer.
Context: The customer delivery is delayed by two days.
Instruction: Explain the delay, apologize, and provide the revised delivery date.
Example: Learning
Role: Act as a patient teacher.
Goal: Help me understand neural networks.
Context: I have no mathematics or programming background.
Instruction: Explain the basic idea using simple language and everyday examples.
Example: Analysis
Role: Act as a business analyst.
Goal: Identify the most important risks in the report.
Context: The report is being prepared for senior management.
Instruction: Identify five risks and explain their potential business impact.
Avoid Ambiguous Goals
Some goals are too broad.
- Make this better.
- Help with my business.
- Tell me about technology.
- Improve this.
These requests may require the AI to guess what the user actually wants.
Turn Broad Goals Into Specific Goals
For example:
Broad: Improve my resume.
Specific: Rewrite my resume summary to make it clearer and more relevant to entry-level data analyst positions.
Role and Goal Do Not Guarantee Quality
A clear role and goal can improve the focus of a prompt, but they do not guarantee that the AI response will be accurate or complete.
The AI may still misunderstand information or produce an incorrect answer.
Important results should therefore be reviewed and verified when appropriate.
A Reusable Pattern
You can use this simple pattern:
Act as [relevant role]. Help me [specific goal].
Then add context and instructions when necessary.
What You Should Remember
- A role establishes a useful perspective or function.
- A goal describes the desired result.
- Role and goal serve different purposes.
- A relevant role can help focus a response.
- A role does not give an AI real-world professional credentials.
- Specific goals reduce ambiguity.
- Not every prompt needs a role.
- Role and goal can be combined with context and instructions.
- Measurable goals can make tasks easier to evaluate.
- Clear role and goal instructions improve focus but do not guarantee accuracy.
What Comes Next?
The next lesson in the curriculum will focus on Adding Context and Background.