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:
- Role โ Who should the AI pretend to be? ("Act as a marketing strategist..." / "Act as a CPA explaining to a small-business owner...")
- Task โ What exactly should it do? Use a verb + object + scope. ("Write a 90-word cold email..." / "Summarize this 10-page report into 5 bullet points...")
- Format โ How should the answer look? ("Format as a markdown table..." / "Return as JSON with keys {title, summary, tags}..." / "Plain text, ready to paste into an email...")
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.
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.
"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.
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.
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.
<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:
- Temperature 0 โ deterministic, factual, best for data extraction, classification, legal/medical content
- Temperature 0.7 โ balanced, good default for most tasks
- Temperature 1.0+ โ creative, best for brainstorming, fiction, marketing copy
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
- Vague prompts โ "Write something good about marketing." What does "good" mean? What format? What audience? Be specific.
- No context โ Who is this for? What jurisdiction? What tone? Without context, you get generic American English.
- No examples for novel formats โ If you want a specific output shape, show 2โ3 examples. Don't describe it; demonstrate it.
- 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.
- 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:
- 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.
- Add 3 few-shot examples to a sentiment classification task. Test on 10 real reviews. Did accuracy improve?
- Use chain-of-thought on a math or logic word problem. Check the AI's reasoning step by step.
- Use
<article>delimiters and request JSON output. Parse the result with a JSON validator. - 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:
- โ Did I assign a Role? ("Act as a...")
- โ Did I specify the Task clearly? (verb + object + scope)
- โ Did I define the Format? (table, JSON, email, bullets, word count)
- โ Did I give Context? (audience, jurisdiction, tone)
- โ Did I set Constraints? (length, what to include/exclude)
- โ If a novel format, did I give Examples?
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.
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