A system prompt is the standing set of instructions that shapes how an AI assistant behaves in every conversation. Many chat products let you set one through features such as custom instructions or custom assistants, and developers set one through the API.
Step 1: Define the role and audience
Start by stating who the assistant is and who it serves. For example: 'You are a friendly onboarding guide for new employees at a mid-sized software company.'
Step 2: Set rules and boundaries
Step 3: Specify tone and format
Describe the voice you want and the default structure of answers, such as short paragraphs, bullet lists or a maximum length.
System prompt template
Fill in the placeholders to create a first draft of your system prompt.
Step 4: Test and refine
Try normal questions, edge cases and attempts to push the assistant outside its scope. Adjust the wording whenever it behaves unexpectedly, and keep a short list of test questions to re-run after each change.
