System Prompts

Learn how to write effective system prompts that define your AI assistant's behavior.

Last updated: April 19, 2026
Last updated:

The system prompt is the single most important configuration element of your AI assistant. It is a set of natural-language instructions that tells the AI who it is, what it should accomplish, how it should communicate, and what it must never do. A well-crafted system prompt produces a consistent, professional, on-brand assistant. A vague or poorly structured prompt produces unpredictable behavior.

What to Include in a System Prompt

Role & Identity

Define who the assistant is. Give it a name, a company affiliation, and a clear job description. Example: 'You are Alex, a customer service agent for Sunrise Dental. Your job is to help callers book appointments and answer questions about our services.'

Objective

State the primary goal of the call. What outcome should the assistant be working toward? Be specific — 'book an appointment' is better than 'help the caller.'

Tone & Style

Specify how the assistant should communicate. Should it be formal or casual? Empathetic or direct? Brief or thorough? Consistent tone builds trust with callers.

Key Information

Include any facts the assistant needs to know — business hours, service offerings, pricing, locations, policies. The assistant can only share information it has been given.

Constraints & Guardrails

Tell the assistant what it must not do. Examples: do not discuss competitor pricing, do not make promises about refunds, always transfer to a human for billing disputes.

Handling Edge Cases

Anticipate common off-topic questions and tell the assistant how to handle them. This prevents the AI from going off-script when callers ask unexpected things.

Prompt Structure Best Practices

There is no single required format for a system prompt, but the following structure tends to produce the most reliable results:

# Role

You are [Name], a [role] for [Company]. Your primary goal is to [objective].

# Tone

Speak in a [tone] manner. Keep responses concise — no more than 2-3 sentences per turn.

# Key Information

- Business hours: Monday–Friday, 9am–5pm EST

- Services: [list your services]

# Rules

- Never discuss pricing unless the caller asks directly.

- If a caller is upset, acknowledge their frustration before responding.

- Always confirm the caller's name and phone number before ending the call.

Common Mistakes to Avoid

MistakeWhy It Causes Problems
Too vagueThe AI fills in gaps with assumptions that may not match your brand or goals.
Too long and unstructuredThe AI may miss important instructions buried in dense paragraphs. Use sections and bullet points.
No constraintsWithout guardrails, the AI may discuss topics or make commitments you did not intend.
Conflicting instructionsIf two instructions contradict each other, the AI will choose one arbitrarily. Review for consistency.
Missing edge case handlingCallers will ask unexpected questions. If you do not tell the assistant how to handle them, it will improvise.