1. The fundamental law of input: restricting is not improving
Designing and deploying conversational agents in production, I often see the exact same pattern. A product team discovers the power of a modern LLM, gets excited about its flexibility, then worries about its unpredictability.
Faced with that uncertainty, the immediate instinct is almost always to over-constrain the system. Teams try to force exchanges onto narrow rails, pile up prohibition rules, and turn the system prompt into an endless theatre script.
In production, the outcome is predictable: the agent becomes frustrating, costs a premium, adds nothing beyond a traditional decision tree, and stalls the moment a user steps off the beaten track.
There is an engineering principle often forgotten during scoping phases:
Without fresh input data (RAG, session state, user profile, up-to-date business facts), overloading system instructions does not make an agent smarter. It simply bottlenecks it.
Many teams hope to make their assistant bulletproof by accumulating rules like: "If the user asks A, you must answer B. Never mention C. If they hesitate, redirect to D".
In doing so, you are asking a statistical engine trained on billions of parameters to emulate a deterministic if/else script. LLMs are ill-suited to applying strict, exhaustive rules over a long context, whereas they excel at understanding intent, reformulating, and reasoning from context.
If a user journey cannot tolerate any nuance and must strictly follow a five-step sequence, do not use an AI agent. An interactive form, a decision tree driven by buttons, or a deterministic script will be a thousand times faster, far cheaper, and perfectly reliable.
What gives an agent its true value and flexibility is not trying to pre-script every imaginable branch in its initial instructions. It is providing the right dynamic context and the right tools at the right moment: targeted RAG on relevant documents, up-to-date session state, and business APIs with clean interfaces. That contextual fuel is what allows the model to handle the twists and turns of real conversations while staying grounded, without requiring a fifteen-page script.
The fallacy is not having business rules, but choosing to enforce them through natural-language prompts. Constraints belong in code (input/output guardrails, typed tools, validation schemas, permissions). The prompt should simply set the role, expected tone, and three or four non-negotiable boundaries, without attempting to cover every scenario in a novel.
2. Measure usage, not slides
Product teams almost always have a linear journey in mind. On slides, the flow looks obvious: three steps, a confirmation, a clear outcome. Starting with two or three nominal user journeys is healthy.
The mistake is locking those hypotheses into the prompt before testing the agent against real interactions.
In production, facing a free-text input, users rarely follow the paths imagined on paper:
- A banking assistant scoped for balance lookups suddenly has to handle a disputed direct debit and a limit increase in the very same sentence.
- An HR bot centered on time-off requests mainly receives inquiries about payslips, employer certificates, or health insurance.
- A SaaS support bot built around three predefined topics ("password, billing, bug") gets hit with API quota questions, transient access requests, or workspace deletions.
This behavior is completely normal: users simply express their needs in their own words, without caring about the functional silos imagined beforehand. With AI agents, the right approach always starts from the ground up: observe actual conversations, measure query distributions, then harden and optimize the journeys that naturally emerge. Not the other way around.
If the agent has been loaded with constraints to force the initial scoping path, it will only satisfy the minority of users who follow the rails obediently. For everyone else, rigid rules generate logical contradictions, incomprehensible refusals ("I cannot answer until you have completed step 2"), and genuine frustration.
Worse still, high-value use cases that the model could easily handle with contextual common sense get blocked, simply because they were not on the scoping slides.
3. The false sense of safety in 15-page system instructions
Stacking rules in the prompt gives decision-makers an illusion of control. It feels reassuring in steering committees: you present a scoping document where every scenario appears neatly mapped out.
In production, this buildup produces three well-known side effects:
- Attention dilution and conflicting instructions: The larger the system prompt, the less precise the model becomes on its core mission. As soon as an edge case arises, rules inevitably clash.
- Conciliatory hallucinations: When a legitimate question fits into none of the predefined boxes, the model is trapped between assisting the user and adhering to strict prohibitions. That is when it invents the most absurd justifications.
- Degraded latency and inflated inference costs: Every extra paragraph of instructions is re-evaluated and billed on every request (short of a flawless prefix cache), delaying the Time To First Token (TTFT).
4. Move both value and rigor: dynamic context and software guardrails
Does that mean we should let enterprise agents run without guardrails? Absolutely not. But we must not fall into the opposite trap either: replacing an overblown prompt with a rigid state machine in code that traps the user all over again.
An agent's value and flexibility come from its ability to reason over the right context. Safety and reliability, meanwhile, rely on deterministic software guardrails placed on its inputs, outputs, and tools.
What actually works in production
1. A concise, targeted prompt: Define the role, the expected tone, and three or four non-negotiable golden rules. Leave the rest of the model's attention and reasoning space open.
2. Dynamic context just in time: Stop stuffing the initial prompt with static facts. Inject fresh data on the fly as the agent needs it: targeted RAG from relevant documents, live session state, user profiles, and conversation history. This context gives the agent flexibility without bloating the prompt.
3. Tools (Tool Calling) connected to the right APIs: The agent determines when to query a CRM, an ERP, or a knowledge base. The tool returns verified ground-truth data with a streamlined schema. The model orchestrates and answers, but never has to guess a fact.
4. Input and output guardrails: Injection detection, compliance validation, and strict JSON schemas validated by Pydantic whenever an output triggers downstream execution. If a response needs to be verified, it is checked by deterministic code before running.
5. Critical business logic in code: Caps, calculations, access permissions, pricing, and discounts: these decisions belong to Python or SQL functions, not natural-language pleading that the LLM is politely asked to obey.
6. Continuous evals on real tool trajectories: Benchmark tool call sequences and user satisfaction against authentic field conversation logs, not a couple of idealized workshop scenarios.
Conclusion
Trying to secure an agent by turning it into a rigid automaton through its prompt is an expensive dead end. Production maturity does the opposite: leave the model's reasoning space open with a thin prompt, provide the right context and tools at the right moment, and lock down safety and transactions in code.
Observe real user needs first. Place each responsibility where it belongs: flexibility in context and tools, constraints and guardrails in software architecture.