2/6
Lesson 2 of 6

Prompt engineering

Clear prompts lead to more useful drafts.

Prompt engineering means giving an AI model clear instructions, relevant context and a useful output format. Tell it what you need, then review the draft and refine your request. Ask it to flag missing information rather than fill the gaps with guesses.

Four techniques to try

Context before the task

Provide the audience, situation and constraints. Example: “Write from the perspective of an e-commerce marketer with 9 years of experience. Draft a Facebook post about AI tools for online store owners. Use a knowledgeable tone without hype.” The role guides the response; it does not give the model real credentials.

Use a role to guide the perspective

A role can guide the perspective and style. A copywriter role may encourage persuasive language; an editor role may encourage a concise, structured response. Compare the outputs rather than assuming a role always improves them.

Show an example of the style you want

Describe the style and provide examples the model can actually read. “Here are 3 sample posts. Draft the fourth with a similar length, structure and tone, using new wording.” Paste the samples when the tool cannot open links.

Output structure and format

Specify the output: a table, a list, 3 paragraphs or an 80-word draft. “Write 5 headline options. For each, include [number], [headline] and [why it may fit this audience].”

Try it yourself

Use the practice tool below to compare a basic prompt with one that includes context, a role and an output format. Check which response is more useful and needs less editing.

AI tutor · Prompt engineering
AI based on course materials

AI responses are free within a shared site-wide limit. If it is reached, try again later.

Scenario:

Compare the results

Compare a basic prompt on the left with your version on the right. Add a role, context and output format, then compare the responses.

Comparison: weak prompt vs yours

Task: Write a promotional Facebook post about the launch of a new online marketing course.

Basic prompt (provided)
Write a post about a marketing course.
Your revised prompt

AI responses are free within a shared site-wide limit. If it is reached, try again later.

Challenge: build a useful prompt

Write a prompt for the task below. The AI tutor will review it against 4 lesson criteria and suggest improvements.

Prompt challenge: get AI feedback
AI based on course materials

Task: Write a prompt requesting 3 Facebook posts for a B2B company launching an AI analytics service. Include the audience, relevant service details and a useful output format.

The AI will review your prompt against the lesson criteria
  • •A role or writing perspective is specified
  • •The context and intended audience are clear
  • •The desired tone is specified
  • •The output structure and length are specified

AI responses are free within a shared site-wide limit. If it is reached, try again later.

Prompt template

Reusable prompt template
Write from the perspective of a [marketer / copywriter / social media specialist / editor] with [N years] of experience in [industry]. Draft a [post / article / email / brief] for [Instagram / Facebook / email] about [topic].

Audience: [describe].
Tone: [confident / bold / knowledgeable / friendly].
Goal: [sales / engagement / explanation].
Length: up to [N] [words or characters].
Context and verified facts: [provide them].
Task: [specific request].

Ask about important missing information. Do not invent claims, figures or personal experience.
Knowledge check
Test yourself
0 / 3
01

Which instruction gives the model useful direction?

02

Why specify a role, such as an e-commerce marketer?

03

Which instruction communicates your preferred style more clearly?