Prompt Engineering: A Guide to Better AI Outputs

Updated:

An AI draft can sound polished and still leave you with most of the work. The email needs rewriting, the summary skips the important point, or the answer includes a fact you never supplied.

You spend another ten minutes asking for changes, then wonder whether writing it yourself would have been quicker. Another rewrite can leave you unsure whether the problem is your request or the answer. This guide follows a complete welcome-email example from the first brief to a reusable prompt, so you can see how a vague request becomes an email you can actually send.

What Is Prompt Engineering?

Prompt engineering is the process of designing, testing, and refining the instructions and context you give generative AI—tools that create text, images, or other content. The prompt is the input. Prompt engineering is the work of improving that input based on the results, as AWS’s explanation describes.

A text model generates responses using patterns learned during training and the context available to it. Your prompt supplies the assignment, relevant facts, and boundaries that shape its answer.

What Is Prompt Engineering?: How Prompt Engineering Works; Define The Task; Supply Relevant Facts; Specify The Output; Check The Response; Revise The Instruction; Test Again

For everyday business tasks, I would start with five actions:

  1. Define the task.
  2. Supply the information needed to complete it.
  3. Specify the output.
  4. Check the response.
  5. Revise the instruction behind any failure.

You can practice this in a chat tool you already use. The workflow below requires no coding or paid course. Start with a task small enough that you can judge the result yourself.

How to Write a Useful AI Prompt

Define the Task and Success Criteria

Choose one deliverable, name its audience, and explain what it should help that person do.

“Help with my course” leaves almost every decision open. “Write a welcome email that helps a new customer start Lesson 1” gives the response a purpose.

Define The Task And Success Criteria: Turn A Vague Ai Request Into A Clear Task; Help With My Course; Deliverable: Welcome Email; Audience: New Customer; Goal: Start Lesson 1; Write A Welcome Email That Helps A New Customer Start Lesson 1.

For our worked example, imagine you sell a beginner smartphone food photography course called Smartphone Food Photos. A customer has bought it, and you need a welcome email that gets them started. The course details, prompts, and sample copy below are teaching examples.

Before writing the prompt, decide what would make the email usable:

  • One subject line.
  • An email body under 120 words.
  • The correct course name.
  • An accurate description of the first exercise.
  • One lesson link.
  • Plain, friendly language with a clear next action.
Define The Task And Success Criteria: Ai Welcome Email Success Criteria; One Subject Line; Body Under 120 Words; Correct Course Name; Accurate First Exercise; One Lesson Link; Plain Language + Clear Next Action; Smartphone Food Photos; Window Light

These checks turn “write a good email” into a task you can assess. That follows Anthropic’s guidance on success criteria: make requirements specific, measurable, and relevant to the task.

I would choose these checks before asking for copy. Otherwise, it is easy to accept a cheerful paragraph because it sounds finished.

Supply the Relevant Facts

Gather the information the AI needs, then separate it from your instructions with clear labels. “Task,” “Reference Facts,” and “Output Requirements” are enough for this assignment.

For the course email, the reference facts are:

ItemSupplied Fact
Course nameSmartphone Food Photos
First lessonLesson 1 covers window light
First exercisePhotograph one meal beside a window with the phone’s flash off
Lesson destination[lesson_url]
Supply The Relevant Facts: Ground Ai Welcome Emails In Supplied Facts; Course: Smartphone Food Photos; Lesson 1: Window Light; Exercise: One Meal, Window, Flash Off; Destination: [Lesson_Url]; Welcome To Smartphone Food Photos; Photograph One Meal

The model has no reason to know your lesson content unless you provide it. Leaving it to guess could produce an email about editing apps when the actual lesson covers light.

Also decide what should happen when information is missing. My rule for this task would be:

Ask about essential gaps or conflicting facts before drafting. Omit optional details, and preserve any placeholder I explicitly provide.

Supply The Relevant Facts: Ai Prompt Rules For Missing Information; Essential Fact Missing Or Conflicting?; Ask Before Drafting; Explicit [Lesson_Url] Placeholder?; Preserve It Exactly; Optional Detail Absent?; Omit It; Sensitive, Unnecessary

That makes an absent lesson destination different from an intentional [lesson_url] placeholder. One needs a question; the other should stay in the draft for you to replace.

Keep sensitive information out of a public chatbot. For this email, the customer’s payment details and purchase record add nothing useful. Check the service’s data terms before sharing confidential material. The UK’s National Cyber Security Centre recommends excluding sensitive information from queries to public language models.

Specify the Output and Assemble the Prompt

Describe the structure, length, tone, and factual limits. Replace vague requests such as “make it engaging” with choices you can recognize: familiar words, short sentences, and one concrete next action.

Here is the complete prompt:

Task:
Write a welcome email for a new customer who bought
Smartphone Food Photos.

Goal:
Help the customer start Lesson 1.

Reference facts:
- Course name: Smartphone Food Photos
- Lesson 1 covers window light.
- The first exercise is to photograph one meal beside a window
  with the phone’s flash off.
- Lesson link: [lesson_url]

Output requirements:
- Return one subject line and an email body under 120 words.
- Name the course.
- Explain the first exercise.
- Include the lesson link once.
- Use plain, friendly language and a concrete next action.
- Use only the supplied facts for claims about the course.

Missing-information rule:
Ask before drafting if essential facts are missing or contradictory.
Omit optional details that have not been supplied.
Preserve the [lesson_url] placeholder exactly.
Specify The Output And Assemble The Prompt: Build An Ai Welcome Email Prompt; Task; Welcome Email For A New Customer; Goal; Help Them Start Lesson 1; Reference Facts; Course • Window Light • Exercise • Link; Output Requirements; 1 Subject • Body

Each part settles a decision that affects the email. The prompt does not need an elaborate role description or a paragraph explaining why welcome emails matter.

Keep the instructions proportionate to the job. If you ask for a brief email and then demand five benefits, three stories, and a detailed lesson summary, resolve that conflict before generating.

How to Check an AI Response

Compare the answer with your original requirements before judging its polish.

An opening such as “Unleash your creativity and begin your photography journey” offers encouragement, but it does not tell the customer what to do.

How To Check An Ai Response: Check An Ai Welcome Email Against Its Brief; Start Lesson 1 Of Smartphone Food Photos; Welcome To Smartphone Food Photos!; Start With Lesson 1, Which Covers Window Light. For Your First Exercise, Photograph One Meal

“Photograph one meal beside a window with your phone’s flash off” gives them the supplied exercise. That difference matters more than how enthusiastic the introduction sounds.

Here is a complete illustrative email you could adapt:

Subject: Start Lesson 1 of Smartphone Food Photos

Welcome to Smartphone Food Photos!

Start with Lesson 1, which covers window light. For your first exercise, photograph one meal beside a window with your phone’s flash off.

Open Lesson 1 here: [lesson_url]

Check it against the brief:

CheckWhat the Sample Contains
One subject line“Start Lesson 1 of Smartphone Food Photos”
Course nameSmartphone Food Photos appears in the body
Correct first exerciseOne meal, beside a window, with the phone’s flash off
One lesson destination[lesson_url] appears once
Body under 120 words33 words, counting [lesson_url] as one word
Practical language“Open Lesson 1 here” directs the customer to the lesson link
How To Check An Ai Response: Verify Ai Claims Against Their Sources; Lesson 1 Covers Window Light.; Supported By Supplied Facts; You Receive A Course Certificate.; Not Supplied: Verify Or Remove; Ai Approval Is Not Independent Evidence

Use a word counter when a length limit matters. Before sending this email, replace [lesson_url] with the correct destination and open the link yourself.

For factual tasks, also compare claims with the supplied material or appropriate original sources. If the AI adds a course certificate, check whether that feature exists. A smooth sentence does not make it part of your product.

Anthropic’s hallucination guidance recommends making claims auditable through supporting sources. Asking the AI to review its answer can help you spot problems, but its approval does not independently establish accuracy. Follow the evidence yourself when a claim affects what you publish or decide.

How to Improve a Prompt That Falls Short

Fix the Instruction Behind the Failure

Name the failure before asking for a revision. “Try again” gives you another answer, but it leaves the underlying problem unresolved.

In my blogging workflow, I kept asking AI to “make this more useful.” It added headings and longer explanations, but the reader still had no clear action to take. I was spending time trimming the additions while keeping the same vague instruction. That experience changed what I put in the brief: the action the reader should be able to take after reading.

Fix The Instruction Behind The Failure: Fix The Prompt Behind An Ai Email Failure; Generic Encouragement; State The Customer’s Next Action; Invented Course Features; Restrict Claims To Supplied Facts; Wrong Format; Request 1 Subject + 1 Body

Use the same approach when checking your own responses:

Output ProblemWhat to CheckCorrection
Generic encouragementDoes the prompt state the reader’s next action?Specify that the customer should open Lesson 1 and try the exercise
Invented course featuresWere those features supplied anywhere?Provide the facts and restrict course claims to them
Wrong formatAre structure instructions missing or competing?Request one subject line followed by one email body
Skipped requirementsIs the task overloaded or contradictory?Resolve the conflict or reduce the scope
Wrong exerciseIs the reference material incomplete or inconsistent?Obtain the correct lesson details before drafting again

For the welcome email, useful feedback would be:

Replace the abstract encouragement with the supplied window-light exercise. Keep one lesson link and the body under 120 words.

Fix the reusable prompt too. Removing an invented certificate fixes that draft. To reduce the chance of the same error in future emails, clarify in the saved prompt where course claims must come from.

Fix The Instruction Behind The Failure: Test Ai Prompt Revisions Fairly; Keep Input And Checklist The Same; Collect A Few Original Responses; Change One Major Instruction; Collect A Few Revised Responses; Compare Failures And Editing Work; Save The

If you can spot what is wrong with an answer but are unsure how to change the instructions, AI Prompt Builder can help. Bring your prompt and response to get a revised version you can try on the same task.

Lead Magnet Cover
FREE AI SKILL

Free AI Prompt Builder

Use AI to turn a bad answer into clearer directions for the next try.
Send My AI Prompt Builder ❯
Instantly delivered to your inbox
Customer Avatar 1
Customer Avatar 2
Customer Avatar 3
Customer Avatar 4
Rated highly by 1,200+ users

Change one major instruction at a time, then compare a few responses from each version using the same input and checklist. I would begin with the failure creating the most editing work.

If essential facts are absent, get them. More forceful wording cannot supply your actual lesson content. If the prompt is clear and the model still struggles, compare another model using the same requirements. Anthropic’s prompting overview also distinguishes problems suited to prompt changes from those better addressed elsewhere in the setup.

Show Examples When Style or Format Is Unclear

Start with direct instructions. If the response still misses the style or structure, show a short example of what you want.

A prompt without demonstrations is called a zero-shot prompt. A prompt with a few demonstrations is called a few-shot prompt. These examples help show patterns in wording, scope, and format, as explained in Google’s prompting guidance.

Show Examples When Style Or Format Is Unclear: Zero-Shot And Few-Shot Ai Prompts; Zero-Shot: Instructions Without Examples; Use Everyday Words, Short Sentences, And A Concrete Action.; Few-Shot: Instructions With A Few Examples; Start With One Meal

For the course email, you could add:

Style sample: “Start with one meal and the light from a nearby window.”

Follow the sample’s everyday words, short sentences, and concrete action. Take all course facts from the reference material.

That final sentence separates style from information. You want the AI to copy how the sample communicates while using the correct facts for the assignment.

Show Examples When Style Or Format Is Unclear: Separate Ai Style Examples From Course Facts; Style Sample; Start With One Meal And The Light From A Nearby Window.; Copy The Communication Pattern; Reference Facts; Lesson 1 • Window Light • Flash Off

If you provide several examples, keep their structure consistent. A collection of conflicting examples gives the model another set of decisions to make.

I would skip a long library of samples for this short email. Add an example when it solves an observed problem.

Split Complex Tasks at Useful Review Points

Separate a task when the next stage depends on a decision you need to review.

One welcome email can stay in one request. A full course onboarding sequence has more decisions: what each email should accomplish, which lesson it should reference, and whether the messages repeat themselves.

Split Complex Tasks At Useful Review Points: Prompt Chaining For A Course Email Sequence; 1. Map The Sequence; Purpose + Learner Action For Each Email; 2. Review Before Drafting; Correct Gaps And Repetition; 3. Draft From The Approved Map; Carry The

For that larger assignment:

  1. Supply the lesson facts and ask for a map of each email’s purpose and learner action.
  2. Review the map and correct gaps or repetition.
  3. Carry the approved map and reference facts into the drafting prompt.
  4. Check the drafts against those decisions.

This creates a useful pause before the AI writes several emails around a weak plan. Passing one stage’s output into a separate request for the next stage is called prompt chaining. Anthropic’s guidance on prompt chaining identifies inspecting intermediate outputs as a reason to separate stages.

Turn a Working Prompt Into a Reusable Template

Once a prompt works, separate the stable instructions from the information that changes.

This general structure is a useful starting point:

Create [deliverable] for [audience] to accomplish [goal].

Reference material:
[relevant facts or source material]

Include:
[required content]

Constraints:
[length, tone, factual boundaries, and exclusions]

Return:
[output structure]

Missing information:
[what to ask about, what to omit, and which placeholders to preserve]

For the course email, make the course name, lesson topic, exercise, and lesson URL replaceable fields. Keep the length, structure, and missing-information rules in the saved instructions.

Turn A Working Prompt Into A Reusable Template: Build A Reusable Ai Welcome Email Template; [Course_Name]; [Lesson_Topic]; [First_Exercise]; [Lesson_Url]; Replace For Each Assignment; 1 Subject + 1 Email Body; Body Under 120 Words; Plain, Friendly

For a product description, supply verified product features and check that the draft adds no unsupported claims. For a report summary, supply the report and ask for each main finding to point to its supporting passage or table.

Save the acceptance checklist and an approved output example beside the template. I want to know how to judge the result when I return to a prompt, without having to reconstruct the original task.

Before relying on it, try these inputs:

Test InputExpected Behavior
Complete lesson facts and a real destinationDraft an email that meets the checklist
Complete lesson facts and an explicit [lesson_url] placeholderDraft the email and preserve the placeholder
Lesson destination entirely absentAsk for the destination before drafting
Two conflicting descriptions of the first exerciseAsk which exercise is correct
Turn A Working Prompt Into A Reusable Template: Four Tests For A Reusable Ai Email Prompt; Complete Facts + Real Destination; Draft To The Checklist; Complete Facts + [Lesson_Url]; Draft; Preserve The Placeholder; Destination Entirely Absent; Ask

These tests check the rules that matter for reuse. A prompt that works once with a perfect brief may still fail when a field is empty.

Record the prompt version and model used, and retest after changing the model, requirements, or template. Also compare the full effort with doing the task manually. Include gathering facts, writing the prompt, reviewing the answer, and editing it.

In my own work, article production went from days to hours after I built a custom AI content pipeline. That improvement came from the pipeline as a whole. A saved prompt earns its place by reducing the preparation and editing a task needs.

I would rather keep a small set of prompts that survive real work than collect hundreds I have never tested.

What Next?

Pick one AI response you recently had to rewrite and list three checks that would have made it usable. Revise the prompt around those checks, run it again, and save the version that needs less editing.

Use the social buttons to share this guide when your next AI discussion turns into a hunt for the perfect prompt. The welcome-email example gives you a concrete task to test together.

Which recurring task would you most like AI to handle with less correction? Tell me in the comments, and bring any other questions about writing or checking prompts.

Share this post with your friends & followers:
Abhishek is a data scientist by day & an online entrepreneur by night. He is known for his ability to simplify complex concepts and make them accessible to a wider audience. He started Passive Book to share his insights and experiences on how to effectively build an online business, which has quickly become a go-to resource for anyone looking to bootstrap an online business from scratch.

Leave a Comment

Build an Online Business 
Without Quitting Your Job

Join 10,000+ solopreneurs building six-figure online businesses from scratch with limited time & tight budgets using smart systems & AI automations.
Optin Form - Main

Free Bonus: Get access to our AI workflows & cheat sheets
Person sitting with laptop in home office environment with launching rocket, coffee mug, sleeping dog, bookshelf, and house plant illustrating work-from-home online business lifestyle. Decorative image.
Thank you for sharing

Follow Us On: