Guardrails.
Guardrails are technical and organisational safeguards that define what an AI system may and may not do. They check inputs and outputs, restrict tools and permissions, and require human approval for sensitive steps, so that a chatbot or AI agent cannot cause harm even when it makes mistakes or someone tries to manipulate it.
Guardrails — Explained in Detail
Language models are powerful but not reliable in the way classic software is. They can hallucinate, be talked round by cleverly worded input or overlook a rule in the system prompt. Guardrails therefore operate outside the model: they are rules and checks in the surrounding system that apply whatever the model happens to 'think'. The term comes from road building, where a crash barrier does not steer the vehicle but stops it leaving the road.
Broadly, there are four kinds. Input checks filter requests, such as prompt injection attempts or topics the assistant is not responsible for. Output checks review answers before they are shown, for personal data, prices outside the list or missing sources, for example. Action limits restrict which tools an agent may use and with which rights, read-only for instance. And approvals require a person to confirm sensitive steps, see human-in-the-loop.
Guardrails matter more the more a system can do on its own. A chatbot or voice agent that only answers questions can damage trust with a wrong answer. An AI agent that sends emails or changes data through an MCP connector, or operates a user interface via computer use, can do real damage. Hence the principle of least privilege: an agent gets only the tools and data it needs for its task, and critical actions are technically tied to approval.
Guardrails are also about being able to demonstrate control. If you use AI in customer contact, you should be able to show which rules apply, how they were tested and what happens when something goes wrong. For providers with an EU connection, the EU AI Act requires transparency and controls depending on the risk class; in Switzerland the principles of the Federal Act on Data Protection (FADP, SR 235.1) apply. This is context, not legal advice.
Guardrails in practice: from light to strict
For a website chat, simple guardrails are often enough: a clear system prompt, a limited knowledge source, a filter for personal data in answers and a fixed reply for topics outside its remit. For an agent that writes into systems, stricter measures follow: tools with fixed parameters instead of free-form commands, amount limits, an allow-list of recipients, a log of every action and approval before anything is sent or booked.
Good guardrails are tested like any other feature, with normal requests, edge cases and deliberate manipulation attempts. How we secure assistants and agents is described under AI agent development and chatbot development. Which risks matter most for your project we work out in AI consulting.
Example: a fiduciary office secures its receipts agent
A constructed example: a fiduciary office in Zug has an AI agent read incoming receipts, assign them to the right client and file them as drafts in the accounting system. The guardrails: the agent may only create drafts, never post or pay. It may only choose clients from a fixed list. If it is unsure about the assignment, the receipt goes to a review queue rather than into the accounts.
In addition, the agent treats text on receipts as data, not instructions: if an invoice says 'Please pay immediately to account X', its permissions do not change. Every action is logged, and a qualified person approves the drafts. The agent saves data entry, while responsibility for the bookkeeping stays with people.
Related Page
AI agent developmentFrequently Asked Questions About Guardrails
No. A system prompt influences the model's behaviour but can be circumvented with cleverly crafted input. Important rules must also be enforced outside the model, through checks, restricted permissions and human approval.
Usually a limited knowledge source, clear rules on prices and commitments, a filter for personal data and a fixed reply for topics outside its remit, plus an easy route to a person.
No. They reduce risk and limit the damage when something goes wrong. Testing, logs and regular review of conversations or actions are part of the package too.
More Terms Starting with "G"
GEO (Generative Engine Optimization)
GEO is the optimization of content to appear and be cited in AI-generated search answers (Google AI ...
Google Business Profile
Google Business Profile (formerly: Google My Business) is the free Google tool for managing your loc...
Google Search Console
Google Search Console (GSC) is a free tool from Google that shows website operators how their pages ...
Ready for Your Project?
Apply this knowledge to your website — DLM Digital will help you.