What is a system prompt?
A system prompt is a persistent instruction that establishes the model's role, behavior, rules, tone, and output format for the whole conversation. You set it once, and it shapes every response that follows. It answers "who is the model and how should it act?" rather than "what do I want right now?"
Typical system-prompt content: the assistant's persona ("You are a senior tax accountant"), hard rules ("Never give legal advice; always cite the IRS form number"), tone ("Be concise and formal"), and output format ("Respond in JSON with keys summary and steps"). Here is a minimal example:
``` You are a customer-support assistant for an e-commerce store. Rules: - Be concise, friendly, and professional. - Never promise refunds; direct refund requests to the returns policy. - If you don't know an answer, say so and offer to escalate. Format: 2-3 short sentences, no bullet lists. ```