A System Prompt is a special instruction you give to an AI model before the conversation starts that defines its role, personality, behavior, and constraints. Think of it as "pre-programming" the AI—like telling an actor their character before the play begins. User messages come after the system prompt. System prompts persist across the entire conversation and guide how the AI interprets and responds to every user message.
Use system prompts when building AI products, chatbots, or assistants where you need consistent behavior across conversations. Define the AI's role ("You are a Python tutor"), personality ("Be encouraging and patient"), output format ("Always respond in JSON"), constraints ("Never suggest paid tools"), and domain expertise. Most OpenAI/Anthropic APIs support system prompts as a separate parameter.
Ai Vocabulary
Define AI personality and rules