Prompt Engineering Complete Guide

Advanced65 min13 chaptersFree

Course Contents

  1. 5.1 What Is Prompt Engineering — and Why It Pays
  2. 5.2 The Four-Part Prompt Structure
  3. 5.3 Zero-Shot vs Few-Shot Techniques
  4. 5.4 Chain-of-Thought Prompting
  5. 5.5 Structured Output: JSON, Tables, Lists
  6. 5.6 System Prompts and Role Design
  7. 5.7 Prompt Templates and Variables
  8. 5.8 Iteration Methodology
  9. 5.9 Common Mistakes: Five Pitfalls
  10. 5.10 Template Library: 15 Workplace Scenarios
  11. 5.11 Multi-Turn Strategy and Context Management
  12. 5.12 Advanced Optimisation
  13. 5.13 Summary + Capstone Project

5.1 What Is Prompt Engineering — and Why It Pays

Prompt engineering is the skill of instructing AI precisely enough that its output is usable with minimal editing. It is currently the highest-leverage AI skill because the same model produces 40-point or 90-point results depending solely on the instruction quality — and the instruction costs nothing. Unlike other skills, mastery takes weeks, not years: it is clear thinking, formalised.

5.2 The Four-Part Prompt Structure

Universal template: the four-part prompt [ROLE] You are a senior retail marketing consultant with 10 years of Hong Kong experience. [TASK] Design 3 Instagram post themes for the Christmas season. [FORMAT] Each theme includes: a headline, post copy (under 80 words), and 5 hashtags. [CONSTRAINTS] Casual tone; target audience is cat owners aged 25-40; no emoji. [EXAMPLE] Last October's post that worked: "Didn't expect lights this fast — oh wait, it's my cat."
Role sets style, task sets scope, format sets shape, constraints set boundaries, examples set taste. A prompt is complete only when all five fields are filled.
Chapter checklist

5.3 Zero-Shot vs Few-Shot Techniques

Business Example

Few-shot solves the brand-voice problem

A pet photography studio has a very distinctive Instagram voice (deadpan Cantonese humour). Generic prompts produced copy that was "too corporate." The owner switched to few-shot: pasting three of her best past captions and asking AI to "match this tone and rhythm for a new post." One shot, perfect match — for AI, examples are the most precise specification you can give.

Choosing zero-shot vs few-shot

  1. Try zero-shot first: state the need directly. If output scores 80+ and you're done.
  2. If not, add one example: paste an ideal-output sample and retry.
  3. Still not there, use 2-3 examples: complex tone and format tasks (brand copy, report style) usually need them.
  4. Archive the final prompt: this becomes your "brand prompt asset" the whole team reuses.
Chapter checklist

5.4 Chain-of-Thought Prompting

CoT live test: a pricing decision I'm pricing a pet shower service. First list the information you need from me. Then reason step by step: cost structure → competitor reference → psychological price points → finally give me 3 pricing options with their risks. Do not skip steps; write out every step.
"Do not skip steps" is the chain-of-thought trigger. Output becomes an auditable reasoning trail — you can check each assumption one by one, which matters enormously for business decisions.
Chapter checklist

5.5 Structured Output: JSON, Tables, Lists

FormatUse casePrompt phrasing
ListIdeas, to-dos, check items"Use a numbered list, one line each, under 15 words"
TableComparisons, specs, quotes"Use a markdown table with columns: item/unit price/MOQ"
JSONFeeding another system"Output JSON only, schema: {name, price, tags[]}"
EmailExternal communication"Output subject + body; body under 120 words, professional but warm"

Structured output is the bridge from "using AI" to "automating with AI": lists are for humans, JSON is for machines. Once your prompts stably emit a fixed JSON schema, you can plug AI into spreadsheets, Notion, or your own systems — the workflow-automation course covers this in depth.

Chapter checklist

5.6 System Prompts and Role Design

Pro tip

The system prompt (or an opening setup block) is your "standing configuration" — write once, effective for the whole conversation. The best-value three lines: (1) role + seniority "You are a Hong Kong retail marketing consultant with 10 years' experience"; (2) output norms "Answer in Traditional Chinese, bold key points, default concise"; (3) boundary "If unsure, say so directly — never invent." These three lines lift everyday conversations immediately.

Chapter checklist

5.7 Prompt Templates and Variables

Variable syntax in three minutes

  1. Freeze the fixed parts: role, format, constraints stay unchanged.
  2. Convert changeable parts to [variables]: "Write a [platform] post for [product], targeting [audience]."
  3. Store in a team-shared doc with fill-in instructions per variable.
  4. Anyone can use it: colleagues fill the blanks and get 80-point content — that's the leverage of templates.
Chapter checklist

5.8 Iteration Methodology

Treat the first output as a draft, not a verdict. The fastest improvement path is targeted feedback, not prompt rewrites: "section 2 is too generic — give me two concrete examples with Hong Kong context" beats starting over. Keep a change log for prompts that matter; three iterations usually reach publishable quality.

5.9 Common Mistakes: Five Pitfalls

Pitfall 1Asking ten questions at once
RightSplit it: one core task per prompt; decompose complex work
Pitfall 2Demanding expert output without context
RightProvide industry, audience, past attempts — AI can't read minds
Pitfall 3Giving up after the first unsatisfying output
RightIterate: "here's what's wrong + what I want" beats rewriting the prompt
Pitfall 4Over-long requests ("write 2000 words")
RightSpecify structure, not length: "5 sections, 3 points each"
Pitfall 5Delegating fact-checking to AI
RightNumbers, laws and quotes are always human-verified
Chapter checklist

5.10 Template Library: 15 Workplace Scenarios

ScenarioTemplate core (fill the brackets)
Product description"Write a [platform] product description for [product], highlighting [3 features], tone [brand voice], under [length]"
Customer complaint reply"As [company] support, reply to: [complaint]. Acknowledge, apologise, offer [resolution], under 100 words"
Meeting minutes"Summarise this transcript into decisions / actions+owners / open questions"
Weekly report"Turn these bullets into a weekly report: [bullets]. Sections: wins, numbers, risks, next week"
Competitor snapshot"Compare [us] vs [competitor] on [dimensions]; output a table + 3 takeaways"

The full 15-template library follows this pattern — copy, fill brackets, run. Build your own variants into the shared library as you go.

5.11 Multi-Turn Strategy and Context Management

5.12 Advanced Optimisation

5.13 Summary + Capstone Project

Capstone: build your team prompt library
Summary

You now direct AI with role-task-format-constraint-example structure, few-shot precision, chain-of-thought reasoning and structured output. Next, put those prompts on autopilot: AI Workflow Automation in Practice →

Keep learning

Frequently Asked Questions

Is a longer prompt always better?
No. Length serves clarity: every sentence should add role, task, format, constraint or example. Padding dilutes the key points.
Why does the same prompt give different results?
AI has built-in randomness (temperature) — one input can yield several plausible outputs. Fix format and examples in the prompt for stability, or use low-temperature API settings.
How do I keep and share good prompts?
Build a shared team template library: record purpose, variable instructions and best examples per template. The workflow-automation course shows how to plug templates into automated flows.

Ready to put AI to work in your business?

Buddylala.ai assigns you a dedicated AI account manager — zero technical overhead, integrating ERP/CRM/Shopify.

Free WhatsApp consultation →