System Prompt

A system prompt is a hidden set of instructions that shapes how an AI behaves. It's why the same model can act like a writing coach or a copy editor.

Picture two authors sitting down with the same AI chatbot to brainstorm a thriller. One gets responses that are punchy, atmospheric, and dripping with noir sensibility. The other gets something that reads like a polite encyclopedia entry. Same model, same question. So what’s different?

Behind the scenes, before either author typed a word, someone had already given the AI its marching orders. Those invisible instructions, the ones the user never sees, are the system prompt. And they shape everything.

The Instructions You Never See

A system prompt is a set of foundational directions given to an AI model before any conversation with a user begins. It defines the model’s role, personality, behavioral boundaries, and priorities for the entire interaction. Think of it as a job description handed to a new employee on day one: before they greet their first customer, they already know what department they work in, what tone to use, what they can and can’t do, and what success looks like.

When you open ChatGPT and type a question, your words are a “user message.” But before your message ever reaches the model, a system prompt, written by OpenAI’s developers, has already told it something like: “You are ChatGPT, a large language model trained by OpenAI. Be helpful, be accurate, and don’t generate harmful content.” You never see this prompt. But every response you receive has been filtered through it.

A system prompt is different from a regular prompt in three important ways. It’s invisible to the end user. It persists for the entire conversation rather than disappearing after a single exchange. And when a user’s request conflicts with the system prompt’s instructions, well-designed models are trained to prioritize the system prompt. It’s the difference between a suggestion and a standing order.

Born from an API

Unlike many AI terms, “system prompt” wasn’t coined in an academic paper or by a visionary researcher. It emerged from a very specific engineering decision on a very specific date.

On March 1, 2023, OpenAI launched the Chat Completions API alongside the model gpt-3.5-turbo. This was the API that let developers build their own products on top of ChatGPT’s technology. And it introduced something new: a structured message format that organized every conversation into three distinct roles. System, user, and assistant.

Before this, OpenAI’s older API was a simple text-in, text-out affair. You sent a block of text, the model continued it. There was no formal way to separate “background instructions for the AI” from “what the human is actually saying.” The Chat Completions API created that separation, and in doing so, gave the concept a name.

OpenAI described the underlying structure, called Chat Markup Language (ChatML), as a way to “make explicit to the model the source of each piece of text” and to “show the boundary between human and AI text.” In plainer terms: they needed the model to know which instructions came from the developer building the app and which came from the person using it. The system role was the solution.

The concept caught on fast. Within months, every major AI platform had adopted some version of it. Anthropic’s Claude, Google’s Gemini, and dozens of smaller models all implemented a system message tier. By July 2023, OpenAI brought the idea to everyday users with Custom Instructions, a feature that essentially gave every ChatGPT user the ability to write their own lightweight system prompt. By November of that year, Custom GPTs took it further, letting anyone build a specialized AI assistant by filling in an “Instructions” field that was, at its core, a system prompt with a friendlier name.

In August 2024, Anthropic made an unusual move: they published Claude’s system prompt publicly. For the first time, users could read the exact hidden instructions shaping their AI assistant’s behavior, everything from “do not start your response with flattery” to how the model should handle requests for sensitive content. It was a transparency gesture that pulled back the curtain on what had always been invisible infrastructure.

What Happens Under the Hood

AI APIs can distinguish system or developer instructions from user messages. The exact request format depends on the provider; some use a separate system field. A simplified conversation might look like this:

System: “You are a fiction editor specializing in literary thrillers. Use a direct, constructive tone. Flag weak pacing but don’t rewrite the author’s prose.”

User: “Can you look at this chapter opening for pacing issues?”

Assistant: (the model’s response, shaped by both messages)

The model processes the system message as high-priority context. Its attention mechanisms give those tokens elevated weight, meaning the system prompt’s instructions carry more influence over the response than an equivalent instruction buried in the user’s message. This is why system prompts can maintain a consistent persona across long conversations, even when users change topics, push back, or try to redirect the model.

Instruction roles and precedence depend on the provider and model. A user’s customization remains subject to the service’s higher-priority instructions and policies; it does not replace them.

Why This Matters for Your Writing Life

Understanding system prompts gives you a practical advantage that most AI-using authors don’t have. It lets you see the hidden layer that’s shaping every AI interaction you have.

Apps can supply instructions you do not type yourself. A writing tool may prepare a prompt template, add project context, and set generation options before sending your request. Those choices help explain why an app’s response differs from a bare prompt sent directly to the same model.

Custom instructions keep project context available. You can supply genre, viewpoint, character, and style preferences without repeating them in every message. These settings guide responses, but they do not override the service’s policies or guarantee consistent output.

The same model can behave differently in different apps. Prompt templates, supplied context, generation settings, connected tools, and model versions all affect the result. An app that exposes prompt templates gives authors control over part of that setup.

It’s the key to consistency. Without a system prompt, an AI model starts every conversation with a blank slate. It has no memory of your preferences, your project, or your creative style. System prompts (and their consumer-facing equivalents) are the mechanism for giving AI a persistent understanding of who you are and what you’re working on. They’re the reason your AI assistant can feel like a collaborator who knows your book instead of a stranger you have to brief from scratch every single time.

The next time an AI tool gives you a response that feels weirdly off-brand, or strangely perfect, you’ll know there’s a system prompt involved. And if the tool lets you edit it, you’ll know exactly what to do.

All glossary terms →