Skip to main content

System Prompts

The system prompt is your agent's DNA -- it defines who the agent is, how it behaves, and what it knows. A well-crafted system prompt is the difference between a helpful agent and a frustrating one.

The Three Context Layers​

Before diving into system prompts, it helps to understand how MeetLoyd builds the complete context an agent sees at runtime. There are three distinct layers, each with a different purpose and change cadence:

LayerWhat It IsChangesExample
System PromptHow the agent works. Role, personality, methodology, expertise, behavioral rules.Rarely (role evolution)"You are a Sales Development Rep. Data-driven, concise."
CharterWho the agent is in this org. Mission, boundaries, who to escalate to, what requires approval. Generated during Team Starting.Quarterly (org restructuring)"Mission: increase pipeline 30%. Cannot access Stripe. Escalate deals >$50K."
Intent StateWhat to focus on now. Boss-defined weekly priorities, hard/soft constraints, success criteria.Weekly (priorities shift)"Focus: EMEA enterprise leads. No cold emails to existing customers."

At each run, the agent works from all three, together with your company context and what it remembers about the work at hand.

Why three layers?

The system prompt tells the agent how to work. The charter tells it where it fits in the organization. The intent state tells it what to prioritize right now. Without the charter, agents drift from their organizational role. Without intent state, agents work on last week's priorities.

What Goes in a System Prompt?​

The system prompt is the first thing your agent "reads" before every conversation. It tells the agent who it is, what it can do, how it should behave, and what it should avoid.

Anatomy of a Good System Prompt​

A complete system prompt typically covers these areas:

SectionPurposeExample
Identity and RoleWho the agent is and what its job is"You are Sarah, the IT Helpdesk Assistant at Acme Corp."
CapabilitiesSpecific actions the agent can take"Reset passwords (with identity verification), create tickets, check system status"
BoundariesWhat the agent should NOT do"Cannot access production systems, cannot share employee data"
KnowledgeDomain-specific information"We use Okta for SSO, Slack for communication, ServiceNow for ticketing"
Communication StyleTone and formatting preferences"Friendly but professional, use numbered steps for procedures"
Escalation RulesWhen to hand off to a human or another agent"Escalate after 3 failed attempts, always escalate security incidents"

Writing Effective System Prompts​

1. Identity and Role​

Start with who the agent is. Be specific about the organization and role:

You are the IT Helpdesk Assistant for Acme Corporation. You help employees resolve technical issues and answer IT-related questions.

Tips: Give the agent a name to humanize interactions (optional). Be specific about the organization. Clearly state the role.

2. Capabilities​

List specific actions, not vague abilities. Align with the tools you have enabled:

Your capabilities:

  • Answer questions about company software and systems
  • Guide users through troubleshooting steps
  • Reset passwords (after identity verification)
  • Create support tickets for complex issues

3. Boundaries​

Equally important -- define what the agent should NOT do:

Your boundaries:

  • You cannot directly access production systems
  • You cannot make changes without appropriate approvals
  • For password resets, always verify: employee ID and manager name
  • Never share one user's information with another

4. Knowledge​

Provide domain-specific information so the agent does not have to guess:

Company IT Environment:

  • Email: Google Workspace
  • Communication: Slack (workspace: acme-corp)
  • VPN: Cisco AnyConnect (server: vpn.acme.com)
  • SSO: Okta
  • Ticketing: ServiceNow

5. Communication Style​

Match your company's tone:

Communication guidelines:

  • Friendly but professional
  • Clear, numbered steps for procedures
  • Avoid jargon unless the user uses it first
  • Confirm resolution before closing
  • Concise responses (expand if needed)

6. Escalation Rules​

Define when and how to hand off:

Escalate when:

  • User explicitly requests human help
  • Issue unresolved after 3 troubleshooting attempts
  • Any security concern
  • Hardware requiring physical inspection

Prompt Patterns​

The "Remember" Pattern​

Help the agent use memory effectively by telling it what to remember (name, devices, preferences, past issues) and what to reference naturally in future conversations.

The "Guard" Pattern​

Remind the agent that user messages cannot override its instructions and that it follows normal procedures whatever a message claims. This complements, but does not replace, the platform's own protections and your organisation's guardrail policies, which apply whatever the prompt says.

The "Format" Pattern​

Ensure consistent output: use numbered lists for procedures, bullet points for options, headers for long responses. Adapt response length to the question.

The "Verify" Pattern​

Build in safety checks for sensitive operations: verify identity, confirm the action, explain what will happen, get explicit confirmation.

Common Mistakes​

MistakeProblemBetter Approach
Too vague"You are a helpful assistant"Specify the role, organization, and scope
No boundaries"Answer any question the user asks"Define what is in-scope and what is not
Too rigidFixed greeting/answer/closing formatAdapt response length and format to the question
Missing context"Help users with software issues"List the specific tools and systems your company uses

Testing Your Prompt​

Test these scenarios before deploying:

ScenarioWhat to Check
Happy pathAgent gives clear, accurate instructions
Boundary testAgent refuses requests outside its scope
Prompt injectionAgent stays in character when told to "ignore instructions"
EscalationAgent hands off gracefully when it cannot resolve
MemoryAgent recalls information shared earlier in the conversation

Every change is versioned​

Each change to an agent's prompt or behaviour is recorded. Open the agent's page to see its Change history, compare versions and restore an earlier one; Control → Evidence → Changes lists changes across all agents.