The most important thing to get right is the role definition — the first few sentences that tell the agent who it is, what it does, and who it serves. Everything else in the prompt flows from that frame, and a weak role definition is the root cause of most agent behavior problems.
Why the Role Definition Comes First
AI models process your system prompt as context that shapes every response they generate. The role definition at the top acts like a frame: everything the model reads after it gets interpreted through that lens. If you write “You are a helpful AI assistant,” the model defaults to its broadest, most generic behavior — helpful but undefined. If you write “You are Mia, the learning assistant for the AI Teaching Academy, helping coaches and consultants aged 45+ who are building their first online campus,” the model has a specific context to work from, and its responses become noticeably more relevant and consistent.
Think of it like a casting decision. Before an actor walks on stage, they need to know who they’re playing, what the character wants, and who they’re talking to. Without that, they improvise in the most generic direction possible. With it, everything they do feels intentional.
What a Strong Role Definition Includes
A well-crafted role definition covers four things in two to four sentences: who the agent is (give it a name if possible), what specific job it does, who its audience is, and how it should sound. “You are Alex, the community assistant for Digital Coach Academy. You help members navigate course content, find resources, and troubleshoot their FluentCommunity account. Your members are educators and coaches aged 45+ who are new to AI tools. Use warm, simple language — no jargon, no technical terms without explanation.” That’s eighty words. It’s enough to transform the quality of every response the agent gives.
What This Means for Educators
Most campus agents that frustrate students or produce off-brand responses have one thing in common: a vague or missing role definition. Before you add guardrails, examples, or special instructions, get the role definition right. It’s the cheapest improvement you can make with the highest return. You can have a mediocre agent with a great role definition and it will still outperform a perfectly-structured prompt with a vague one.
The Simple Rule
Spend 80% of your prompt-writing energy on the first four sentences. Name the agent. Define its job precisely. Describe its audience specifically. Set the tone clearly. Once that foundation is solid, every other prompt improvement builds on something stable.
