Explaining Prompt Engineering
Explain What is Prompt Engineering. Framework for prompting to get Best results. You are explaining this to a person with no technical background. No Code Examples. use Examples tasks that non technical persons understands.
When a lamp arrives with a cracked shade, “Help me write an email” leaves the AI guessing who you’re writing to and what you want them to do. Give it the recipient, the facts, and a clear request, and you have a draft you can check before sending.
What is prompt engineering?
A prompt is an instruction you give an AI assistant. Prompt engineering means writing and revising that instruction to guide the answer. For the lamp email, that means telling the assistant you’re writing to the shop, explaining what arrived damaged, and asking for a replacement.
A four-part framework for writing prompts
Use this checklist when you have a specific result in mind. OpenAI’s prompting guide recommends being specific about what you want, including the format and length [1].
| Part | What to tell the AI | Dinner planning example |
|---|---|---|
| Goal | What you want it to do | Plan five dinners for the week. |
| Context | Who it’s for and what it needs to know | The meals are for four people, and one is vegetarian. |
| Source | What facts or material it should use | List the ingredients already in your fridge. |
| Output | How the answer should look and what limits apply | Give one line per meal and keep the plan low-budget. |
For a simple request like “Give me three names for a neighborhood book club,” the goal alone can be enough.
Put the four parts together for the lamp email
The goal is to ask for a replacement, and the email is for the shop. The facts are that the lamp arrived yesterday with a cracked shade and you have a photo. The draft needs a subject line, fewer than 100 words, and a blank for the order number.
Check the draft and revise it
Compare the two replies
In this example, ChatGPT asks for more information when given the short request. The detailed prompt gives it enough information to draft the email.
> Help me write an email.
Sure. Who are you writing to, and what do you want the email to say?
> Draft an email to the shop asking for a replacement. The lamp arrived yesterday with a cracked shade, and I have a photo of the damage. Use those facts. Include a subject line, keep the email under 100 words, and leave a blank for the order number.
Subject: Replacement request
Hi customer service team,
My lamp arrived yesterday with a cracked shade, and I have a photo of the damage. Could you send a replacement?
Order number: ____
Thanks!
Ask five questions before sending
A draft can read smoothly and still invent a detail, such as an order number. Check it against your prompt.
- Is it clear who the email is for?
- Does it ask for a replacement?
- Does it preserve the facts you supplied?
- Is it under 100 words?
- Is the order number still blank?
Fix one thing with a follow-up
If the draft sounds too stiff, ask for a tone change and say what to keep.
Make it sound like an everyday email. Keep the request for a replacement and the same facts.
Run through the five questions again before sending the revised draft.
Key takeaways
- Give the AI a goal, context, source material, and a description of the output you want.
- Check the answer against your facts and the limits you set.
- Use a short follow-up to fix one issue at a time, then check the revised answer.
References
- [1] Best practices for prompt engineering with the OpenAI API, OpenAI Help Center