System Prompt
A system prompt is a set of instructions given to an AI model that defines its behaviour, personality, constraints, and response format, shaping how it interacts with users throughout a conversation.
What is a System Prompt?
Why System Prompts Matter for Business
Related Terms
Explore further
FAQ
Frequently asked questions
System prompts can range from a few sentences to thousands of words. Start with clear, concise instructions and add detail only where needed. Very long system prompts can consume context window space and may actually reduce instruction-following quality if they contain contradictory or confusing directions.
Users may attempt to override system prompt instructions through prompt injection. While modern models are increasingly resistant to this, it is important to implement additional safeguards (guardrails, output filtering, and validation) for sensitive applications rather than relying solely on the system prompt.
While system prompts are typically hidden from users, they should not contain sensitive secrets like API keys or passwords, as they can potentially be extracted. Treat them as configuration that adds value through customisation but does not depend on secrecy for security.
Need help implementing this?
Our team can help you apply these concepts to your business. Book a free strategy call.