What is a system prompt used for?#
By providing a clear "job description," a system prompt ensures the AI consistently performs its intended function, aligns with your company's voice, and adheres to critical guidelines, leading to more reliable and specialised outcomes.
How does a system prompt work?#
Before a user ever interacts with the AI, the system prompt is loaded as its foundational context. This text defines the AI's persona (e.g., "You are a helpful and expert real estate assistant"), sets its tone ("Your responses should be professional and encouraging"), and establishes firm rules ("Do not answer questions outside of real estate. Do not offer financial advice.").
This initial instruction acts as the AI's permanent frame of reference for the entire conversation. For every question it receives, it first considers the system prompt's directives before generating a response, ensuring it stays on task and behaves in the desired manner.
How is a system prompt different from a user prompt?#
A system prompt provides the foundational, persistent rules for the AI's entire interaction, set by the developer before the user is involved. In contrast, a user prompt is the specific question or command an end-user types into the chatbox during the conversation. The system prompt is the AI's "job description," while the user prompt is the "individual task" it receives.