Module 5 of 6Lesson 2 of 2~14 min
Design layered guardrails
Data leaks, off-topic answers, unauthorized actions: the risks of an embedded assistant aren't solved with one sentence in the prompt. This lesson helps you identify the threats that matter for your product and spread protections across several layers, from authorization to monitoring.
Lesson objective
By the end of this lesson, you will be able to identify the main risks of an embedded assistant and place each guardrail in the right layer (authorization, input, model, tools, output, monitoring).
Topics covered
- AI guardrails
- AI assistant security
- threat model
- prompt injection
- responsible AI
In the glossary
Where it fits
Actions and guardrails
What can the assistant do, and how do you stop it from doing what it shouldn't?
Lessons in this module
- Specify the assistant's tools and actions
- Design layered guardrails (this lesson)
What you will learn in this module
This lesson is part of the course Build an AI assistant for your product
- Specify the assistant's tools and actions (data read, actions written, confirmation, permissions) and choose how to build it.
- Identify the risks (injection, leaks, excessive actions, costs) and design layered guardrails that go beyond the prompt.
Related courses
- AI & ProductAdvancedRegular practice: you already use the tools or work on this topic.
Design a RAG architecture that fits your product
3 hr 30 min
- AI & ProductAdvancedRegular practice: you already use the tools or work on this topic.
Evaluate an AI feature: test sets, metrics and LLM judges
3 hr
- AI & ProductExpertAdvanced level: for deeper mastery and specialization.
Ship and monitor an AI feature in production
3 hr