← Back to Workshop Hub MODULE F2 · PROMPT ENGINEERING

The CRAFT of Prompt Engineering

Five slots (Context, Role, Action, Format, Trust) turn a vague request into an answer you can act on and defend.

01 · The framework

Five slots make a prompt worth acting on

Miss a slot and the agent guesses. Click a letter, or watch the slots fill in on one real leave request.

Your prompt, assembled
CUse GL-HR-014, the leave guideline. An Officer with 4 years' service asks for 12 days' leave, starting in 6 working days.
RAct as a People & Culture leave administrator.
ACheck the request against the guideline and draft the reply.
FOne page: a table with Item, Guideline says, Clause, Status.
TCite the clause for every point. If the guideline is silent, write NOT COVERED and name who decides.
C · Context

The document and the facts of this case. Without them the agent fills gaps from general knowledge.

Context and Trust do the most work: give it the document, and let it say "not covered".
Where each slot lives in Amazon Quick
02 · The difference

Same request, two prompts

A leave request that looks routine. Compare the reply to a one-line prompt with the reply to a CRAFT prompt.

The request, sent to People & Culture

Officer, 4 years' service. Wants 12 working days' leave starting in 6 working days. The manager said yes by email. 9 unused days: carry all forward, or be paid for the extra?
Sounds sure, skips the rules
Yes. An Officer with 4 years of service gets 16 days, so 12 is well within entitlement. Your manager has approved it, so you are all set. Unused leave can usually be carried forward, and many organisations will pay out the balance. Do check with HR.
The lazy reply got the easy part right and walked past the rules. Check any row yourself in the guideline.
The guideline, and the four kinds of Context

GL-HR-014 is a synthetic guideline for Westmere Health Services, a fictional organisation. It is not Synapxe's leave policy. You will load it into a Space in F3. Download the guideline and check every row.

Kind of contextExample in this caseWhere it goes in Quick
DomainThe leave guideline itselfA Space
DataOfficer, 4 years, 12 days, 9 unusedYour message
SituationLeave year closes 31 March; team mid-deploymentYour message
ConstraintsWorking days, cite clauses, no advice beyond the guidelinePersona instructions
03 · The R slot

A role changes what the answer notices

One vendor proposal, three readers. Pick a role and see what each one flags first.

Northbridge Cleaning Services 3 years SGD 240,000 a year Price held 30 days Subcontracting allowed 90 days' notice to end

Same facts, different questions. Name the role that would read this document in real life.
The role formula, and reading from several angles

Four ingredients: a title, years of experience, a specialty, and a working trait. For example: "You are a procurement officer with 10 years in public-sector contracts, who specialises in facilities services and reads for risks first." Keep it short. Quick rewrites persona instructions in its own words, so the idea survives better than the exact phrasing.

Several angles on one decision. Run the same proposal past two or three roles and compare. If the Finance reading says "fine" and the Procurement reading says "gaps", the disagreement is the signal to ask a person before signing.

04 · The F and T slots

Shape it, then make it defensible

Format makes a reply easy to scan. Trust makes it safe to rely on. Tap a Trust rule to see it in the reply.

Q: Can I carry over my 9 unused leave days?

A: Partly. Per GL-HR-014:

  • Carry-forward limit: 7 days (§6.1)
  • Your 9 days: 7 carried, 2 lost (§6.2)
  • Paying out unused days: not during employment (§6.3)
  • Restoring days lost to a project deployment: NOT COVERED IN GL-HR-014
  • Ask your Head of Department in writing (§8.1)

This is the F3 hand-off: you will ask your agent one question the guideline covers and one it does not.

An agent that can say "not covered" is one you can put in front of a colleague.
Format patterns, and the "do not" rules
PatternAsk forGood for
Rating"GREEN, AMBER or RED with a one-line reason"Quick assessments
Table"Columns: Item, Source says, Section, Status"Comparisons, checklists
Ranked list"The top 5 risks, most important first"Priorities
Decision"APPROVE, DEFER or REJECT, then why"Recommendations (a person decides)

Ask for Markdown (a .md file with ## headings and a table) when you will reuse the result. Next quarter's version is an edit, not a retype.

Write these into the agent's persona instructions. A rule that must be quoted exactly goes in a reference document.

05 · Think step by step

Ask it to show its steps

For anything with numbers or sign-offs, add "think step by step". Watch a training request get checked.

The question

A team asks to attend a SGD 6,000 course. Training budget SGD 40,000, spent SGD 31,500, committed SGD 4,000. The policy extract: line managers approve up to SGD 5,000, directors above that.
Visible steps are easy to check. If a step is wrong, you can see exactly where.
Four ways to ask for reasoning
TechniqueAdd to the promptReach for it when
Step by step"Think step by step."Everyday checks against a policy
One worked exampleShow one finished example first.A batch that must all look the same
Step back"List the principles, then apply them."A new circular you have not read before
Several angles"Work it three ways and say where they differ."Calls that are costly to get wrong

The last one is triangulation, the habit an auditor already has. Where the readings disagree, ask a person.

06 · Try it yourself

Build a prompt, watch the reply change

Pick a task, then switch slots on. The prompt is colour-coded by slot. Try C first, then add T.

YOUR PROMPT
WHAT COMES BACK
Guessing

Replies are written for this page to show the pattern. They are not live model output.

Fill the slots in rounds: C, R and A first, then F, then T. Save the result as your agent's instructions.
Next: hands-on prompt exercises →

Then F3: you build the leave guideline assistant in Amazon Quick.

Seven common slips (tap one to see the fix)