/ module 10 · Building with LLMs
Prompt Builder
A strong prompt is not a question, it is a briefing. Fill in the pieces below and watch the composed prompt on the right. Each field maps to a proven pattern used in production LLM apps.
- List the parts of a strong prompt: role, context, task, format, constraints
- Turn a vague request into a clear briefing
- Use few-shot examples to show the format you want
Try this first: Fill only the Task field first, then add the others one by one.
concept
The anatomy of a prompt
Think of an LLM as a very fast intern who has read the internet but has never met you or your company. Every prompt should tell it who to be, what it knows, what you want done, how to reply, and what it must not do. Missing pieces are the number one reason answers feel generic or wrong.
# Role You are a senior data analyst who explains findings in plain English. # Context Company: a small e-commerce shop selling handmade candles. Audience: the founder, non-technical. Data window: last 30 days of Shopify orders. # Task Summarize which product categories grew the most and suggest 2 next actions. # Output format Return a Markdown report with: 1) 3-bullet summary, 2) a table of top 5 categories with % growth, 3) 2 next actions. # Constraints Use only the data provided. If a number is missing, say 'not available' instead of guessing. Keep it under 200 words. # Examples Input: category=Soy Candles, orders_this_month=120, orders_last_month=80 Output bullet: Soy Candles grew 50% MoM (80 -> 120 orders). # User input Here is the CSV: category,orders_this_month,orders_last_month Soy Candles,120,80 Gift Sets,45,50 Wax Melts,30,10
worked examples
Bad, good, best
Same underlying question, three levels of craft. Copy any into the builder above and tweak.
help me with my emails
You are a helpful assistant. Rewrite the email below to sound professional and under 120 words. Return only the rewritten email. Email: hey can u send the invoice asap thx
# Role You are an executive assistant writing on behalf of a busy founder. # Context Recipient: a vendor we work with weekly. Tone: warm, direct, no filler. # Task Rewrite the draft email to be professional and clear. # Output format Return only the rewritten email body. No subject line. Under 120 words. # Constraints - Do not invent facts. - Keep the original request intact. - Use British English. # Example Draft: "yo can u fix the login bug" Rewrite: "Hi team, could you take a look at the login bug when you get a moment? Happy to jump on a quick call if useful. Thanks!" # Draft to rewrite hey can u send the invoice asap thx
Check yourself
Tick each one you could explain to a friend. If you can't yet, scroll back up and replay the lab.