A System Prompt (or system instructions) is a set of core instructions provided to an AI model before the user conversation begins, defining the model's persona, boundaries, task rules, and formatting constraints.
Helps AI builders design and scale robust architectures; mastering the implementation of System Prompt improves latency, accuracy, and operational efficiency for persona generation, coding agent guidelines, and safety enforcement.
A system prompt (or system instruction) is a high-priority directive injected at the beginning of an LLM context window to establish the model's identity, tone, guidelines, and behavioral guardrails. The system prompt remains active across the chat session, overriding user instructions when safety conflicts occur.
User prompts are conversational messages. System prompts act as system-level guidelines that dictate how the model must interpret all subsequent user messages.
Yes, during prompt injection or jailbreak attacks, models can be manipulated into ignoring system instructions.
OpenAI Group PBC today detailed GPT-Red, an internal artificial intelligence system it built to attack its own models and surface prompt injection vulnerabilities before they reach users.
Explore GPT-Red, OpenAI's automated red teaming system that uses self-play to improve AI safety, alignment, and prompt injection robustness.