2.3 One-shot Prompting

Guide Copilot with a single example

Provide one reference example so Copilot mirrors the tone, depth, and structure you need for study materials.

When to use one-shot prompts

  • You already have a model answer or flashcard and want Copilot to match its style.
  • You're standardising notes across security operations, threat analysis, or compliance topics.
  • You need Copilot to respect jargon level, tone, or formatting guidelines.

Pattern to follow

  1. State the new task clearly.
  2. Provide a single example enclosed in quotes or fenced formatting.
  3. Highlight the aspects Copilot must copy-tone, length, layout, or vocabulary.

Sample one-shot prompts

  • "Using the flashcard format below, create one for identifying phishing indicators:
    Q: What are the primary indicators of a spear-phishing attack?
    A: Personalized content, urgent requests, spoofed sender addresses, and links to credential harvesting sites."
  • "Match this summary style to outline the SIEM log analysis workflow:
    Example: 'To investigate a failed login alert…' (include concise numbered steps)."
  • "Mirror the tone of this security policy reminder to write one about incident reporting:
    'Reminder: Report suspicious activity within 15 minutes…'"

Workshop: copy the style

  1. Select an existing flashcard, summary, or checklist you’ve written.
  2. Identify what makes it effective-tone, structure, or key phrases.
  3. Write a one-shot prompt that gives Copilot that example and asks for a new piece covering a related topic.
  4. Compare the result to the original. Note any differences to emphasise in few-shot prompting (module 2.4).

Next steps

Need Copilot to learn a whole pattern? Continue to 2.4 for few-shot prompting.

Continue to 2.4