Skip to content
Everything *[NYC] 2026: see what we announced. →

System prompt definition

A system prompt is the set of instructions given to a language model before a conversation begins, defining its role, tone, boundaries, and the rules it should follow. It is separate from the user's message and applies to every response in the session, not to a single request.


A diagram explaining System prompt in terms of related concepts.

What does a system prompt actually do?

What is the difference between a system prompt and a user prompt?

What goes in a good system prompt?

Where should the system prompt live?

Can a system prompt be attacked or leaked?

Explore Sanity Today

Understanding system prompt is just the beginning. Take the next step and discover how Sanity can enhance your content management and delivery.

Last updated: