Prompts that deliver results

Martin Hrnko

30.11.2024

Effective prompts are key to getting better and more relevant answers from large language models, such as OpenAI ChatGPT or Copilot in Microsoft 365.
The following general principles will help you achieve better results.
  • Clarity and Comprehensibility → The prompt must be clear and unambiguous so that the model understands as accurately as possible what you expect from it.

  • Context → Providing enough context helps the model better understand your needs and provide more relevant answers.

  • Specificity → Be specific and detailed in what you ask the model to minimize the risk of incorrect or general answers.

  • Iteration → Don’t be afraid to modify the prompts and test different variations to find the best way to communicate with the model.

In addition to the above general principles for creating a prompt, there are also a number of different approaches, or rather strategies, on how to formulate a query against a language model. In the following text, we will describe and discuss those that I have encountered, but I do not have the ambition to describe all of them, I probably would not be able to do that. However, I believe that it will inspire you to establish your own prompting strategy adapted to the specific tasks you are solving.

General prompting strategies

In the following text, I present well-known prompting strategies with examples of their use. In the introduction, I always explain the abbreviation and follow with an example from work and personal use. If you have the time and desire, try the examples and of course do not be afraid to modify them to better suit your specific needs. Enter the prompt examples in separate communication threads so that the language model is not influenced by the response to the previous prompt. The strategies are listed in alphabetical order, there is no other logic in their order. Slovak translations of the prompt components are adapted to the purpose of the prompting strategy, do not consider them as literal translations, the goal is to enable a better understanding of the individual approaches.

APE (Action, Purpose, Expectation)

The meaning of prompt items (APE → task, purpose, expectation).

  1. Action→ Define the task or activity that you expect from the language model.

  2. Purpose→ Describe the goal or purpose of the task you are entering.

  3. Expectation→ State the expected result, what you want to achieve by entering.

Example of prompt (APE) in business.

  1. Prepare an hour-long training for the Microsoft 365 package.

  2. The goal is to inform team members about the latest features in Microsoft 365 so that they can use the most modern and effective tools at work.

  3. The desired result is that my team members have a clear idea of ​​the possibilities that Microsoft 365 offers them and that they are able to apply them to common tasks as soon as possible.

Example of prompt (APE) in personal life.

  1. Plan my daily 2-hour training to prepare for a marathon.

  2. The goal is to improve my endurance and prepare for the upcoming marathon.

  3. The expected result is to improve my physical condition and prepare consistently for the marathon.

BAB (Before, After, Bridge)

The meaning of the prompt items (BAB → before, after, bridging).

  1. Before→ Describe the problem or situation before the action for which you expect a suggestion from the language model.

  2. After→ State the result or state after the activity that you want the language model to achieve.

  3. Bridge→ Describe what you think should lead to the change in the state before and after the activity that you expect the language model to achieve.

Example of a prompt (BAB) in business.

  1. Many employees in our company struggle with organizing their emails, which leads to missing important tasks and chaos in the workplace.

  2. I would like all employees to be able to process incoming mail and not be late with responses, nor to be late for meetings.

  3. Design a system to solve the situation.

Example of a prompt (BAB) in personal life.

  1. I struggle with organizing household chores and completing them on time, I don't enjoy them and I don't have time for them. This mainly concerns cleaning and ironing.

  2. I would like to have more time for my children.

  3. Suggest what I should do about it.

CARE (Context, Action, Result, Example)

The meaning of the prompt items (CARE → context, task, result, example).

  1. Context→ Explain the situation.

  2. Action→ Assign a task to the language model.

  3. Result→ Describe what you expect the result to be.

  4. Example→ Give an example of the expected response.

Example of a prompt (CARE) in business.

  1. Many employees waste time searching for documents on SharePoint, which, however, leads to their reduced productivity.

  2. Design a centralized document management system in SharePoint that would include organizing files into logical folders and setting access permissions based on job position.

  3. After implementing the new system, all employees will be able to quickly and easily find the necessary documents.

  4. For example, while working on the reconstruction of a local cultural center, the electrician did not get lost in the complex project documentation, but immediately found a map of electrical wiring in his folder and was able to immediately search for a specific document by name and time it was created.

Example of a prompt (CARE) in personal life.

  1. I have problems managing my home budget and tracking expenses.

  2. Create an Excel spreadsheet for me to track income and expenses with categories for different types of expenses.

  3. After implementing this spreadsheet, I will be able to better control my finances and track expenses.

  4. For example, a monthly expense report will help me identify areas where I can save money.

COAST (Context, Objective, Action, Scenario, Timing)

The meaning of prompt items (COAST → context, goal, task, scenario, time).

  1. Context→ Describe the situation for which you are looking for a solution.

  2. Objective→ Formulate the goal you want to achieve.

  3. Action→ Describe the task you want the model to perform.

  4. Scenario→ Describe the situation you need to solve.

  5. Timing→ State the timeline, or time perspective, that the model should consider when designing an answer.

Example of prompt (COAST) in business.

  1. Our team is facing problems with late deliveries of a software project.

  2. We need to improve efficiency and meet deadlines.

  3. Create a new project schedule with clearly defined tasks and deadlines.

  4. The new schedule should allow for better tracking of progress and meeting deadlines.

  5. We need to complete the activities within the project by the end of next week.

Example of prompt (COAST) in personal life.

  1. I am having trouble organizing the responsibilities of organizing a birthday party.

  2. But I would like to organize a beautiful and enjoyable celebration for my son's friends and classmates.

  3. Suggest a place, program, invitation for the celebration.

  4. I need a comprehensive plan from which I can easily and quickly select and carry out specific tasks.

  5. We need to hold the celebration next Saturday at 2:00 PM in Bratislava.

ERA (Expectation, Role, Action)

The meaning of the prompt items (ERA → expectation, role, task).

  1. Expectation→ Describe the expectation you want to achieve.

  2. Role→ Describe the role in which the language model should act when proposing an answer.

  3. Action→ Describe what you need to do.

Example of a prompt (ERA) in business.

  1. I need to prepare a detailed plan to increase the sales of our fruit products.

  2. Act as an experienced international business consultant.

  3. Design an expansion strategy, target market analysis, recommended marketing tactics, and logistical solutions for effective distribution.

Example of a prompt (ERA) in personal life.

  1. I want to improve my physical health and fitness.

  2. Act as a personal trainer and nutrition consultant.

  3. Help me create an exercise plan and diet tailored to my needs.

RACE (Role, Action, Context, Expectation)

The meaning of the prompt items (RACE → role, task, context, expectation).

  1. Role→ State the role in which the language model is acting.

  2. Action→ Describe the action you want to take.

  3. Context→ Describe the situation you are in.

  4. Expectation→ Describe the expected result you want the language model to achieve.

Example of a prompt (RACE) in business.

  1. As an experienced HR manager from a multinational corporation,

  2. Design a strategy for recruiting new talent,

  3. For a fast-growing IT company facing a shortage of qualified workers.

  4. Provide me with a detailed plan with recommended recruitment channels, selection procedures and retention strategies for each type of job.

Example of a prompt (RACE) in my personal life.

  1. As a career advisor,

  2. Help me plan my career path.

  3. I am a recent college graduate in the field of food engineering,

  4. Provide me with a step-by-step plan on how to proceed in managing my future career.

RISE (Role, Input, Steps, Expectation)

The meaning of the prompt items (RISE → role, input, steps, expectation).

  1. Role→ Explain what role the language model is supposed to play.

  2. Input→ State the information or sources of information that the language model is supposed to provide in its answers.

  3. Steps→ What steps the language model should take to provide the answer you need.

  4. Expectation→ State what form you expect the result from the language model to take.

Example of a prompt (RISE) in business.

  1. Working as a consultant for sustainability and environmental policy in the corporate sector.

  2. My company is a medium-sized manufacturer of packaging materials that wants to reduce its environmental impact and implement sustainable practices in production.

  3. Using supplementary questions, analyze current production processes and identify areas with the greatest environmental impact, propose possible solutions and technologies to reduce waste and emissions, and assess the economic efficiency of the proposed measures and their impact on the business.

  4. The goal is to provide a detailed sustainability plan containing specific steps, implementation timeline, and expected results, including potential savings and improved company image.

Example of prompt (RISE) in personal life.

  1. Working as a personal trainer and nutritionist.

  2. I am an individual, a 40-year-old manager who feels overwhelmed by work and has difficulty maintaining a work-life balance. I am starting to feel burned out.

  3. Using additional questions, identify the main stressors in my work and personal life, suggest techniques and strategies for managing stress and improving time management, and provide recommendations to support mental and physical well-being.

  4. Create an individual stress management plan that includes practical steps, relaxation techniques.

ROSES (Role, Objective, Scenario, Expected Solution, Steps)

Meaning of prompt items (ROSES → role, objective, scenario, expected solution, steps).

  1. Role→ State the role that the language model should play.

  2. Objective→ State exactly what you expect from the language model.

  3. Scenario→ Describe the situation you are in and within which the language model should search for an answer.

  4. Expected Solution→ Describe the ideal result you want the language model to achieve.

  5. Steps→ State the steps that the language model should take or consider when preparing an answer.

Example of a prompt (ROSES) in business.

  1. Work as a strategic consultant for sustainable development.

  2. Help our company create a strategy for reducing its carbon footprint and increasing energy efficiency.

  3. Our manufacturing company is facing increasing pressure to reduce its environmental impact and is looking for effective ways to do this.

  4. I need you to propose a detailed plan of action for implementing sustainable practices, including recommendations for technologies and processes that reduce emissions.

  5. Ask follow-up questions to take the following steps: analyze the company's current energy use and emissions, identify areas with the greatest potential for improvement, and propose specific measures.

Example of a prompt (ROSES) in your personal life.

  1. You are a personal language tutor.

  2. Help me create a strategy to improve my Chinese skills.

  3. I want to be able to speak Chinese fluently so that I can communicate better in my personal life.

  4. I need a specific study plan including recommendations for resources, learning methods, and practical exercises to improve my speaking, listening, reading, and writing.

  5. Ask me follow-up questions that you need to know.

RTF (Role, Task, Format)

The meaning of the prompt items (RTF → role, task, format):

  1. Role→ State the role in which the language model is to perform.

  2. Task→ State what the language model is to do for you.

  3. Format→ State the form in which you expect the result to be.

Example of a prompt (RTF) in business.

  1. Act as an experienced senior HR professional.

  2. Prepare an advertisement for a job position as a junior programmer with a focus on JavaScript for our startup company where we create games.

  3. Provide me with the complete text of the advertisement, including requirements, job description and benefits.

Example of a prompt (RTF) in personal life.

  1. Act as a chef specializing in Slovak cuisine.

  2. Suggest me a recipe for a romantic dinner for two using seasonal ingredients.

  3. Provide me with a shopping list and step-by-step instructions for preparing dinner.

TAG (Task, Action, Goal)

The meaning of prompt items (TAG → goal, task, result).

  1. Task→ Describe the task, what exactly you expect from the language model.

  2. Action→ State what the language model should do for you.

  3. Goal→ Define the result that you want to achieve using the result from the language model.

Example of a prompt (TAG) in business.

  1. I need to create an attractive description for our new toilet paper on our website.

  2. Describe an engaging and informative text that highlights the key benefits and features of the product.

  3. The goal is to increase potential customers' interest in our product.

Example of a prompt (TAG) in personal life.

  1. I need to write a poem on the topic of love and loss for a literary competition.

  2. Compose an emotional poem that expresses the complex emotions associated with love and loss.

  3. I would like to impress the jury with original content and style and increase my chances of winning the competition.

TRACE (Task, Request, Action, Context, Example)

The meaning of prompt items (TRACE → problem, request, steps, context, example).

  1. Task→ The problem you want to solve using the language model.

  2. Request→ The task you want the language model to do.

  3. Action→ What steps should the language model do.

  4. Context→ What is the additional information about the problem you are solving.

  5. Example→ An example of the expected answer.

An example of a prompt (TRACE) in business.

  1. Our company needs to raise awareness of a new eco-friendly product on the market.

  2. Create a creative slogan and design an advertising campaign for this product.

  3. Analyze the product features, identify the target audience, and create a slogan along with a short description of the campaign.

  4. The product is a biodegradable cleaning product designed for households that care about sustainability and an eco-friendly lifestyle.

  5. I expect a slogan along the lines of "Cleanliness without compromise for our planet" and a campaign design focused on social media and eco-blogs.

Example of a prompt (TRACE) in personal life.

  1. I want to plan a vacation abroad, but I can't decide where to go.

  2. Recommend three vacation destinations according to my preferences.

  3. Consider my interests and requirements, compare the suggested destinations, and briefly describe why they would be suitable for me.

  4. I don't like history, but I like good music and good cuisine. I'm planning a vacation for two weeks in the summer months and prefer places where you can relax pleasantly.

  5. I don't expect recommendations like Greece for its ancient monuments and beautiful beaches, Italy for its rich history and excellent cuisine, or Spain for its combination of culture, beaches, and gastronomy.

Final Summary and Recommendations

Finally, let’s summarize some generally valid rules for creating prompts.

  • Be specific→ Clearly define what you expect from the model and provide enough details.

  • Provide context→ Describe the situation or problem so that the model better understands your needs.

  • Iterate and test→ Don’t be afraid to modify the prompts and try different variations to find the best results.

  • Use clear and understandable language→ Make sure that your prompt is understandable and unambiguous.

For those of you who have read this Newsletter to the end, the most important advice for free at the end.

  • Review→ Approach all outputs of the language model critically. Verify information and advice, never forward them without evaluation and do not present them as the results of your work without verifying the results. This will avoid surprises.

  • Encourage→ encourage the language model to ask additional questions, at the end of each prompt you can write the sentence "Ask additional questions so that you can prepare the best possible answer in this area".

  • Experiment→ experiment with different approaches to creating prompts and assigning tasks, this will achieve more creative results. Tell the model not only what your output should look like, but also what it should not look like. Do not tell the model what it should do and what the result should look like, but also what it should not look like. Do not tell it where you want to go on vacation, but where you do not want to go and what you do not want to do there.

  • Check→ if you think that language models cannot yet help you with the design of procedures, answers, emails, try them at least to check typos or the correctness of the formulations of your own texts. You will be surprised in what areas language models can already advise you today.

We hope these tips and strategies will help you create effective prompts and improve your work with large language models. Consider the above procedures as inspiration for your own creation, don't be afraid to experiment 💪.

If you have any questions or need further assistance, do not hesitate to contact us at MH THREE TECHNOLOGIES.

We are here to help you turn complex challenges into clear solutions and your visions into reality!

If you are interested in the topic of Enterprise Architecture in your company, arrange a consultation with us via email martin.hrnko@mh3.sk, or directly here: https://calendly.com/martinhrnko/45-minute-meeting.

Get first-hand information!

Sign up for the newsletter.

YES, I want news !