AX-300 · Lesson 8 of 12 · Module 3: Make It Reliable · 3:10
Guardrails that hold
Anything an agent reads from outside (reviews, emails, web pages, files) can hide instructions; this is prompt injection, and models cannot yet reliably tell an order from information, so a line in the prompt helps but is not a lock. Put the guardrails in the system: label outside text as information, check every draft and action for what must never pass (discount codes not on the list, prices that don’t match the price list, links to other sites, wrong recipients), and block anything on the never list. Avoid the risky mix of outside text, private data and a way to send things out: remove one of the three or put a person in between, and give the agent no more tools, access or freedom than the job needs (excessive agency). Worked example: a review’s white text slipped a free-box code into a draft; a system check now blocks unlisted codes ten times out of ten.

What you will learn
- Spot text that tries to give an agent orders
- Add checks the system enforces, not the prompt
- Avoid the risky mix of tools and data
The one thing to remember
Put the lock in the system.
Common mistake: Relying on a line in the prompt to block attacks
The model reads instructions and outside text as one stream of words, so a well-worded message can talk it out of a rule.
The fix: Add checks in the system that block the action, whatever the text says.
Key terms
- Guardrail
- A check the system enforces on what the agent reads or does.
- Prompt injection
- Hidden text that tries to give the agent new orders.
- Excessive agency
- An agent with more tools, access or freedom than it needs.
Part of AI Agent Builder (AX-300)
For people who run AI workflows: build an agent with the right tools, tests and guardrails, and approvals where it counts.
12 lessons, practice quizzes, a final exam and the Sophyx Certified AI Agent Builder – Professional certificate. Regular price USD 49.99. Your first certification is free. Free with any paid Sophyx plan.
Start the course free