Skip to content
Try this course

Free course template · Global

Guardrails and output filtering for AI features

A ready-made course, live deck and three surveys for software engineers. 40 minutes, 6 lessons, 10-question final check. Last reviewed 4 December 2026; not legal advice.

Try the courseClaim the template

Play a game from the course

Guardrails and output filtering for AI features: try 3 questions

Three questions from this course. Pick an answer, then see why.

Play the game

Game not loading? Open it in a new tab (opens in a new tab)

Three pieces that work together

Learners sign in, so every finish and score is recorded. 4 fields to fill in with your details.

Claim the template

6 lessons, about 40 minutes

Minutes are an estimate.

  • Lesson 1: Where guardrails sit · 5 min

    Before you begin · Ignore previous rules

  • Lesson 2: Match the control to the risk · 8 min

    Risks · Sort the control · Check your choice

  • Lesson 3: Write refusals that work · 8 min

    A good refusal · Rewrite it · A legitimate question blocked

  • Lesson 4: Test the guardrails · 7 min

    Two test sets · Read the result · All attacks stopped

  • Lesson 5: Run and maintain · 7 min

    The review loop · Be honest · A Friday attack

  • Lesson 6: Final assessment · 5 min

    Final assessment · Course complete

Claim the template

Inside this course

Taken from the course itself.

By the end, learners can

  • Map the places a guardrail can sit: before the model, inside the prompt, on tool calls and after the output
  • Choose controls for common risks: off-topic requests, leaked data, made-up facts and injected instructions
  • Write a refusal and a fallback message that are clear, kind and do not reveal the rules
  • Test guardrails with attack and legitimate cases, and read the trade-off between blocking too much and too little
  • Log blocks, review them and keep the rules current

Sample questions, with answers

  1. Selin's assistant gave way when a user said "ignore previous rules". What does this show?

    • A rule in the prompt alone is not a dependable guardrail; add layers you can test
    • The user must be blocked forever
    • Prompts can never include rules
    • The model needs a longer name

    Answer: A rule in the prompt alone is not a dependable guardrail; add layers you can test. Text rules can be talked round. Combine layers and test them.

    Lesson 2: Match the control to the risk

  2. Which control best limits what a risky tool call can do?

    • A friendlier tone
    • A read-only account for the tool
    • A longer prompt
    • A bigger model

    Answer: A read-only account for the tool. A tool limit is enforced outside the model, so a clever request cannot undo it.

    Lesson 3: Write refusals that work

  3. Which refusal is best?

    • "Policy violation 7.2"
    • A long lecture
    • "Nope"
    • "I cannot help with that here. A colleague in payroll can; here is the contact."

    Answer: "I cannot help with that here. A colleague in payroll can; here is the contact.". It is plain, kind and gives a way forward without exposing the rules.

    Lesson 4: Test the guardrails

A scenario from "Write refusals that work"

Obinna's bot refuses a legitimate pay-slip question as ’sensitive’.

Best response: Add the case to the false-positive set, narrow the rule and retest both attack and legitimate cases.

Weaker responses: Switch the filter off; Hide the refusal rate in the report.

Common questions

Yes. Claiming the template and editing it are free.

Yes. The course is self-paced and online, and the live deck lets you add a live session in the room or online.

At onboarding or as continuing professional development, with a yearly refresher (best practice).

Software engineers, ML engineers and security-minded product owners.

Record completion in your own LMS or record system, so you can show who finished the course and when.

Your own details, each highlighted inside the course:
  • Link to your live session deck
  • Link to the self-paced course
  • Your AI use policy is at
Then edit anything else you like: wording, scenarios, your logo.
Visit the help centre (opens in a new tab)