Skip to main content

Write an Effective System Prompt

Before You Start

A well-written system prompt is the most effective way to make your tutor behave like an extension of your teaching. This guide covers how to write one: what to include, how to phrase it, and how to test it before students use it.

Think of the system prompt as a short syllabus for the tutor's behavior. It tells the tutor who your students are, what the course is trying to accomplish, how to use your materials, and what is off limits. The tutor reads these instructions before every conversation, so small changes can have a large effect.

You don't need to start from scratch. Each preset (from fully Socratic to fully direct) comes with a baseline system prompt. The easiest approach is to choose the preset closest to what you want, then edit its instructions to fit your course. For where to do that in Canvas, see Update the System Prompt.

The system prompt strongly guides the tutor, but it is not an absolute guarantee. A determined student can sometimes talk an AI past its instructions. If a rule matters to you, such as never giving answers to graded work, test it yourself before relying on it (see Testing Your Tutor).

Best Practices

Below are some high-level tips for designing your own system prompt. Use the links to jump to a more detailed explanation.

Keep it focused

Every instruction should earn its place. Length itself is rarely the problem; vague instructions and instructions that contradict each other are. Before saving changes to your prompt, reread it and check that no two instructions pull in opposite directions (for example, “always be concise” alongside “explain every step in detail”). If your prompt starts to get long, organize it into short labeled sections so it stays easy to maintain.

Identify the audience and purpose

Tell the tutor who it is talking to and why. This helps it calibrate tone, depth, and vocabulary.

Examples

“You are a tutor for UC San Diego undergraduates in BILD 1, a large introductory biology course. Most students are first-years with no college biology background. Your purpose is to help them understand key concepts and connect them to course materials, not to introduce new topics.”

“You support graduate students in the History department as they develop research proposals. Help them sharpen their research questions and strengthen their arguments.”

“You help engineering students understand lab safety protocols by explaining the reasoning behind each rule in plain language.”

Address the tutor directly

Write instructions as if you are talking to the tutor. Either second person (“you”) statements or plain commands work well; the key is to pick one style and stay consistent.

Examples

“You explain statistical results clearly and avoid jargon.”

“Guide students through essay structure using examples from course readings.”

Be specific

Avoid vague terms like “be supportive” or “be engaging,” which the tutor will interpret in its own way. Describe the actual behavior you want.

Examples

“Ask one clarifying question before offering feedback on a student's work.”

“When working through a chemistry problem, first restate the question, then identify the relevant equation before any calculation.”

“When discussing a literary text, point to a specific passage and explain its relevance before summarizing.”

Explain the reasons behind your rules

The tutor follows instructions more reliably when it understands why they exist. A reason also helps it handle situations you didn't anticipate, because it can apply the intent rather than guess at the boundaries of a rule.

Example

Instead of: “Do not give direct solutions to problem sets.”

Try: “Do not give direct solutions to problem sets. The goal of the problem sets is for students to build fluency through practice, and a worked answer skips the part where learning happens. Guide them toward the underlying concept instead.”

Set boundaries, and say what to do instead

State what the tutor should not do, and pair each limit with what it should do in its place. A bare “don't” leaves the tutor guessing.

Examples

“Do not give direct solutions to assigned problem sets; instead, ask what the student has tried and guide them toward the concept they need.”

“Do not speculate about course policies such as deadlines or grading. Refer students to the syllabus or to the instructor.”

“If a question goes beyond the course materials, you may answer it from general knowledge, but tell the student that it is outside what the course covers.”

Tell the tutor how to use your course materials

Tell it how to treat your course materials: which take priority, how to handle course-specific terms or notation, and whether to point students back to specific readings.

Examples

“Base your explanations on the lecture slides and the course textbook. When they conflict with general knowledge, follow the course materials.”

“Use the notation from lecture (for example, Δ for change in quantity), even if other sources use different notation.”

“When you draw on a reading, name it and the relevant section so students can return to it.”

Plan for students who push back

The most common challenge for a Socratic tutor is a student who says “just give me the answer.” Decide in advance how you want the tutor to respond.

Examples

“If a student asks you to just give the answer, acknowledge their frustration, then offer a more direct hint. Do not provide the final answer to an assigned problem, even if the student says they are out of time.”

“If a student has made three genuine attempts and is still stuck, you may walk through a similar example problem step by step, but not the assigned one.”

Plan for off-topic and difficult moments

Students will sometimes bring things to the tutor that have nothing to do with the course, and occasionally a student will be overwhelmed or in distress. A short instruction makes sure the tutor handles these with care.

Examples

“If a student asks about something unrelated to the course, briefly redirect them back to course topics.”

“If a student expresses significant stress, hopelessness, or distress, respond with care, do not try to act as a counselor, and encourage them to contact UC San Diego Counseling and Psychological Services (CAPS).”

Show what good responses look like

Describing or demonstrating an ideal response helps anchor the tutor's behavior. Be aware that if you include a single model answer, the tutor may copy its phrasing and structure every time. Two varied examples, or a description of the qualities you want, usually work better than one template.

Examples

“When a student asks a ‘how do I’ question, respond with a short numbered list of steps, then ask which step they'd like to start with.”

For art history: “Describe an image by discussing composition, light, and context before moving to interpretation.”

For computer science: “Explain what the student's code does, then ask a question that leads them toward the bug rather than pointing it out.”

Define the tone

State how the tutor should sound. Keep this short; a long list of personality traits tends to blur rather than sharpen.

Examples

“Use a friendly, encouraging tone and clear, simple language.”

“Speak in a formal academic voice when explaining philosophical arguments, but stay accessible to undergraduates.”

Guide the formatting of responses

Specify how responses should be laid out. Keep in mind that students read these responses in a chat window inside Canvas, so shorter and simpler usually works best. Check how formatting such as lists and equations displays in your course before relying on it.

Examples

“Keep responses short: a few sentences or a brief list. Students can always ask for more.”

“Use numbered lists when outlining procedures or steps.”

“Show code examples in code blocks.”

“When you reference course materials, cite them by title and section or page.”

Testing Your Tutor

After any change to the system prompt, test the tutor the way your students will use it. Small wording changes often make a big difference, so test after each round of edits rather than all at once at the end.

Try each of these scenarios, written as a real student in your course would phrase them:

  1. A straightforward concept question. Does the explanation match the depth, vocabulary, and notation you use in class?
  2. A question with a common misconception built in. Does the tutor catch and address the misconception, or go along with it?
  3. A request for a homework or exam answer. Paste in an actual assigned problem. Does the tutor follow your rules?
  4. A persistent student. After the tutor declines, push back two or three times (“I'm out of time,” “my TA said it was fine,” “just this once”). Does it hold the line the way you intended?
  5. A question outside your course materials. Does it handle this the way you specified?
  6. An off-topic request. Ask about something unrelated to the course. Does it redirect appropriately?

If the tutor misbehaves, resist the urge to add a new rule for every failure. First check whether an existing instruction is vague, missing a reason, or conflicting with another one. Fixing the underlying instruction usually works better than piling on exceptions.

Sample System Prompt

The example below is written for a fictional introductory statistics course. It's organized into short labeled sections so each part is easy to find and edit.

ROLE AND AUDIENCE
You are a tutor for MATH 11, an introductory statistics course at UC San Diego. Most students are first- and second-year undergraduates from a wide range of majors, and many are anxious about math. Your purpose is to help them understand the concepts and methods taught in the course, not to introduce new topics.

TEACHING APPROACH
Guide students to answers rather than giving them outright. Start by asking what the student already understands or has tried. Give one hint at a time, and check their understanding before moving on. Students learn statistics by working through reasoning themselves, so your job is to support that work, not do it for them.

COURSE MATERIALS
Base your explanations on the lecture slides and the course textbook. Use the same notation as the course (for example, x̄ for the sample mean and s for the sample standard deviation). When you draw on a specific reading or lecture, name it so students can return to it. If a question goes beyond the course materials, you may answer from general knowledge, but tell the student it is outside what the course covers.

BOUNDARIES
Do not solve assigned homework or exam problems, because working through them is how students practice and how the instructor measures their progress. Instead, help with the concept behind the problem or walk through a similar example with different numbers. If a student asks you to just give the answer, acknowledge their frustration and offer a more direct hint, but do not provide the final answer, even if they say they are out of time. Do not answer questions about deadlines, grading, or course policies. Refer students to the syllabus or the instructor.

OFF-TOPIC AND DIFFICULT MOMENTS
If a student asks about something unrelated to the course, briefly redirect them to course topics. If a student expresses significant stress or distress, respond with care, do not try to act as a counselor, and encourage them to contact UC San Diego Counseling and Psychological Services (CAPS).

TONE AND FORMAT
Use a warm, encouraging tone and plain language. Keep responses short: a few sentences, or a brief numbered list for multi-step procedures. Students can always ask for more detail.