Prompt engineering is the process of writing inputs, prompts, and questions for generative AI chatbots, like ChatGPT. Because generative AI only returns responses that are as good as the prompts you ask, it’s important to engineer quality prompts. Writing well-crafted prompts not only has the potential to save you time, but it also increases the likelihood that you will be more satisfied with the results that the AI generates.
Perhaps the best way to begin understanding prompt engineering is to simply experiment and engage with one of the leading generative AI chatbots:
Any of these four options are good choices and can give you a good first experience. They all have both free and paid options, with the free version being sufficient to get started.
Choose one and give it a try. Afterwards, experiment with the others if you have time to see whether you prefer one over another. While they each behave similarly, one of the tools might work better for your unique style or needs.
Take a little time to engage with the chatbot and try to find practical uses. Ask it to help you with planning something for your classroom, like a lesson plan or an assessment. Then, ask follow-up questions to refine the answer that you receive. Think of the interaction as having a conversation with a colleague or a thought partner. You can communicate with the chatbot in ordinary conversational language, just like you would with another person.
Once you get a general sense of how the generative AI chatbot works and what its outputs look like, you can move on to more refined prompt engineering strategies. While any query will give you some sort of response, experts and power users have discovered a few techniques that can enhance the quality of your results. Here are a few of those tips and strategies to try out.
Prompting Strategies
Priming refers to the practice of starting a generative AI prompt with some background or context for the prompt. One common method of priming a prompt is to tell the AI what role to assume. For instance, you might begin by typing:
“You are an excellent second grade science teacher teaching a class of 26 second grade students in late fall.”
In this example, you have provided a role, a level of expertise, some context about the audience, and the time frame.
To build on the second grade science teacher example, you might type this next:
“Design a 60-minute science lesson about photosynthesis. Your objective should align with Next Generation Science Standard 2-LS2-1. The concept is new to students, although they have each planted a flower from a seed 2 weeks ago. The plants are just emerging from the soil. In the lesson, include an opening to capture student attention, identification of the outcome, and then an outline of the lesson. Make sure that the lesson is engaging and provides a hands-on learning experience for students.”
If you break down this example, you can see that several important details were added. You set a specific time limit of 60 minutes, you identified the task of designing a lesson, and you provided the objective for the lesson, including both the general topic of photosynthesis and the specific standard with which the lesson should be aligned. With your new details, you even explained the output format that you wanted from the AI. You said that there should be an opening attention-getter, an outcome, and an outline of the lesson. You also provided a little more background and context to help the AI better align to your specific needs.
The key is to remember that the more detailed you can be with your prompt, the better the AI can serve as an understanding and helpful planning partner.
This is a really important aspect of interacting with a generative AI chatbot, as this is where you can turn a below average response into an excellent one. Since AI is predicting content based on your wording and detail, it’s possible that the prompt language you chose doesn’t result in a perfect outcome. That’s to be expected. Much of prompt engineering is “thought engineering” and follow-up questioning.
Again, imagine that you are talking to another human colleague who might not have understood what you meant the first time. What would you do? You’d probably provide additional context and detail before asking a follow-up question. You should do the same thing with the chatbot. Follow up until you have what you need.
Remember, you can also extend the task if you think of something else you’d like generated. For instance, once you have a lesson about photosynthesis, you might follow up with something like this:
“Now, create a practice activity for this lesson with a formative assessment. Be sure to provide the answer key.”
If you’re just getting started and want a little more structure and guidance than what was outlined in the first three tips, you might want to start with a sample prompt framework. These are sample prompts with somewhat generic wording and then space holders for the specific details you want to add. Think of these like “fill in the blank” exercises.
Here’s an example from AI for Education for writing a strengths-based lesson plan prompt. The capitalized, bracketed content indicates fields to be completed by the user.
“Act as an experienced [GRADE LEVEL / CONTENT AREA] teacher, skilled at designing engaging learning activities for students of all ability levels. Develop a [CONTENT AREA] activity for [GRADE LEVEL] students who are developing an understanding of [CONCEPT]. They have a good understanding of [LIST PREVIOUSLY MASTERED CONTENT]. Their other skills include [LIST STUDENT STRENGTHS]. Suggest three to five activities that build on these strengths to help them develop their skills in [CONCEPT].”
There are a growing number of prompt libraries available online. Here are a few to get you started:
- GenAI Chatbot Prompt Library for Educators (AI for Education)
- AI Prompt Libraries for Educators (Eric Curts via Control Alt Achieve)
- Prompt Library (Dr. Ethan Mollick via More Useful Things: AI Resources)
In addition to prompt libraries, there are several AI tools that are specifically built for education and that have become very popular with teachers. These sites offer libraries of common teaching tasks that you can select. Tasks range from developing assessments to lesson design to communication.
By selecting a teaching task, the site asks you some questions about your needs and then does much of the prompt engineering in the background for you. The prompt it uses is shaped by both a preset structure as well as the information you have provided. These sites can offer guidance and help reduce the potentially overwhelming experience of staring at a blank prompt box in one of the major generative AI tools.
Three tools in particular have become popular in education circles:
There are several definitions for reverse prompt engineering. In its simplest form, you can think of reverse prompt engineering as asking the AI to help you generate your prompt.
For example, you might type something like this:
“What do you need to know to help me generate an excellent science lesson for a class of second graders?”
The AI will then provide you with a list of questions that you would answer in a follow-up message. This targeted information can help the AI generate your desired output, which is a lesson.
Another version of reverse prompt engineering would be to follow up your conversation string with the AI by asking:
“What else do you need to know?”
Just as before, you would then answer the AI’s questions or provide the requested details.
With this technique, you provide the AI an example of the type of response you’re seeking. That example is the one-shot prompt. For the science lesson example, you might paste in a copy of a successful lesson that you have developed and then tell the AI to use that lesson as a model.
Essentially, you are teaching the AI what you want for an output. It’s similar to showing a human collaborator an example of what you’re trying to produce. Having a strong model from which to work can greatly improve the outcome. It can be helpful to model AI interactions after human-to-human ones. Visualize the AI chatbot as your thought partner and have a professional conversation.
In this model, you not only give the AI a task but also instruct it to think through the steps needed to reach a solution, often providing examples of the reasoning process at the same time. Chain-of-thought prompts can take a bit longer to write, but you’ll be rewarded with a more detailed and accurate response.
For example, if you were trying to get the AI to explain how to solve a math problem, you might type something like this:
“Here is how to solve a math problem step-by-step:
1. “To solve 2x + 3 = 11, first subtract 3 from both sides to get 2x = 8.
2. Then, divide both sides by 2 to find that x = 4.”
Once you’ve added the model of how to work through this type of math problem, you then give the AI a new problem and ask it to solve that problem sharing the steps it used based on the model you provided.
“Now, solve this problem step-by-step: 3x – 5 = 10.”
You are essentially teaching the AI about what you want and how it should reason through the work. Again, this is a similar approach to one you might take with a colleague. It’s good teaching, but instead of teaching a person, you’re teaching the AI about what you are seeking.
There are more potential prompt engineering strategies, especially for advanced users, but if you get comfortable with these eight, you will already be way ahead on the prompt engineering curve.
AVID Connections
This resource connects with the following components of the AVID College and Career Readiness Framework:
- Instruction
- Systems
- Opportunity Knowledge
Extend Your Learning
- MagicSchool (official website)
- SchoolAI (official website)
- Brisk Teaching (official website)
- GenAI Chatbot Prompt Library for Educators (AI for Education)
- AI Prompt Libraries for Educators (Eric Curts via Control Alt Achieve)
- Prompt Library (Dr. Ethan Mollick via More Useful Things: AI Resources)