Beginner โฑ 20 min read ๐Ÿ‘ฅ For professionals & students ๐Ÿ“… July 4, 2026

Prompt Engineering for Non-Engineers

You don't need to code to write great AI prompts. You need five patterns, a framework called RTF, and the discipline to give the AI context. This guide teaches all three โ€” with real before/after examples you can copy today.

Why Prompt Engineering Matters

The difference between a mediocre AI output and a great one is almost never the AI model โ€” it's the prompt. The same ChatGPT that gives you a generic, useless paragraph with "write me a proposal" will give you a polished, ready-to-send document with the right prompt. Prompt engineering is the skill of asking well. It's not coding. It's clear thinking, translated into instructions.

After reading this guide, you'll know the five core patterns that cover 90% of real-world prompting, the RTF framework that makes every prompt better, and the common mistakes that waste your time.

The RTF Framework: Role, Task, Format

Before the five patterns, learn this simple framework. Every good prompt has three parts:

โŒ Without RTF
Write a refund policy.
โœ… With RTF
Act as an e-commerce lawyer [Role]. Write a refund policy for a Kenyan online store selling electronics [Task + Context]. 7-day returns, sealed items only, M-Pesa refund in 5 days, comply with Consumer Protection Act 2012. โ‰ค200 words [Constraints]. Format as a ready-to-publish document [Format].

The first prompt gives you a generic, American-style policy that doesn't mention M-Pesa or Kenyan law. The second gives you something you can almost publish. That's the power of RTF.

The 5 Core Patterns

Pattern 1: Role-Play ("Act as...")

Assigning a persona is the single highest-impact thing you can do. It constrains vocabulary, tone, depth, and perspective. The AI doesn't just "write about marketing" โ€” it writes as a marketing strategist, using the frameworks, terminology, and judgment of one.

โŒ Before
Explain depreciation.
โœ… After
Act as a CPA explaining depreciation to a small-business owner who hates jargon. Use a shoe-shop example.

The "after" version gives you an explanation that uses a concrete, relatable example (buying shoes for a shop, wearing them out over time, deducting the cost), in plain language, at the right depth for a non-accountant. Always assign a role.

Pattern 2: Few-Shot (Give Examples)

Large language models learn from examples in the prompt. If you show 2โ€“5 examples of the input โ†’ output you want, the AI will match that pattern. This is called "few-shot" prompting, and it's especially powerful for classification, formatting, and tone-matching tasks.

โŒ Before
Classify the sentiment of this review: [review]
โœ… After (few-shot)
Classify sentiment as Pos, Neg, or Neutral. Examples:
"Loved it!" โ†’ Pos
"Broke in 2 days" โ†’ Neg
"It's okay" โ†’ Neutral

Now classify: [review]

Without examples, the AI might return "The sentiment is positive because..." (a full sentence). With examples, it returns just "Pos" โ€” exactly the format you want for a spreadsheet. Give 2โ€“5 examples whenever you need a specific output format.

Pattern 3: Chain-of-Thought (Step by Step)

For math, logic, multi-step reasoning, or any task where the AI might "jump to the wrong conclusion," ask it to reason step by step. This dramatically reduces errors on problems that require intermediate steps.

โŒ Before
If 3 pens cost $12, what do 7 pens cost?
โœ… After (chain-of-thought)
If 3 pens cost $12, what do 7 pens cost? Solve step by step, showing each calculation, then give the final answer.

The "after" version forces the AI to show: (1) $12 รท 3 = $4 per pen, (2) $4 ร— 7 = $28. You can verify each step. If it makes an error, you'll see exactly where. Use chain-of-thought for anything involving numbers, logic, or multi-constraint reasoning.

Pattern 4: Context + Constraints

AI models default to generic, American, English-language output. If you need something specific โ€” a particular audience, legal jurisdiction, length, tone, or set of rules โ€” say so explicitly. Constraints are guardrails.

Example with full context + constraints
Act as a Kenyan employment lawyer [Role]. Write a warning letter template for an employee who has been late 5 times in 2 weeks [Task]. Context: company is in Nairobi, 30 employees, under Kenya Employment Act 2007. Constraints: professional tone, cite the relevant section of the Act, give the employee 7 days to improve, โ‰ค200 words, format as a letter with date/address/salutation/sign-off [Format].

The context (Kenya, Nairobi, Employment Act 2007) and constraints (7 days, 200 words, letter format) turn a generic "write a warning letter" into something a Kenyan HR manager could actually use. Always specify: who is this for, what jurisdiction/rules apply, and what are the hard limits?

Pattern 5: Delimiters + Output Format Specification

When you're pasting large amounts of text into a prompt (an article, a contract, a dataset), use delimiters like ###, """, or XML tags (<article>...</article>) to separate your instructions from the data. This prevents "prompt injection" โ€” where the AI confuses your instructions with the content you're asking it to process.

Example with delimiters + JSON output
Summarize the text between <article> tags into a JSON object with keys: {title, tldr, key_points (array of 3 strings), sentiment ("pos"/"neg"/"neutral")}. Return ONLY valid JSON, no other text.

<article>
[paste your article here]
</article>

With delimiters, the AI knows exactly where the article starts and ends. With "Return ONLY valid JSON," you get output you can paste directly into code. Use delimiters whenever you mix instructions with large text inputs.

Advanced: Temperature and Control

If you're using the ChatGPT API (not the web interface), you can control "temperature" โ€” how creative vs. deterministic the output is:

In the ChatGPT web interface, you can approximate this by phrasing: "Be precise and factual" (low temperature) vs. "Be creative and brainstorm freely" (high temperature).

Common Mistakes to Avoid

  1. Vague prompts โ€” "Write something good about marketing." What does "good" mean? What format? What audience? Be specific.
  2. No context โ€” Who is this for? What jurisdiction? What tone? Without context, you get generic American English.
  3. No examples for novel formats โ€” If you want a specific output shape, show 2โ€“3 examples. Don't describe it; demonstrate it.
  4. One giant compound question โ€” Instead of "analyze this data, find trends, make a chart, write a summary, and suggest next steps," break it into 4 separate prompts. You'll get better results on each.
  5. Trusting output without checking โ€” AI hallucinates citations, statistics, and dates. Always verify anything factual.

Practice Exercises

The only way to learn prompt engineering is to practice. Try these five exercises, in order:

  1. Take a vague prompt you've used before (e.g., "write a blog post about AI") and rewrite it using RTF. Compare the two outputs.
  2. Add 3 few-shot examples to a sentiment classification task. Test on 10 real reviews. Did accuracy improve?
  3. Use chain-of-thought on a math or logic word problem. Check the AI's reasoning step by step.
  4. Use <article> delimiters and request JSON output. Parse the result with a JSON validator.
  5. Run the same prompt twice โ€” once with "be creative" and once with "be precise." Diff the two answers.

The One-Minute Prompt Checklist

Before you hit send on any prompt, check:

If you check all six, your prompt is in the top 5% of prompts the AI receives. Your output quality will reflect that.

Want AI prompts tuned for YOUR business?

My AI Audit ($4,500 / KES 350K) includes a custom prompt library built around your specific workflows โ€” sales, support, operations, HR. 50% credited toward any build.

See AI Audit package โ†’ Get in touch

Sources & References

  • Prompt Engineering Guide โ€” promptingguide.ai
  • IBM Think: Prompt Engineering โ€” ibm.com/think/topics/prompt-engineering
  • PromptHub: Few-Shot Prompting โ€” prompthub.us
  • K2view: Chain-of-Thought โ€” k2view.com
  • RTF Framework โ€” Medium (@aciddun), Buffalo State Library