A user may ask a company chatbot a vague question, but the chatbot still needs a consistent role and response style. A system prompt supplies instructions for every task, such as staying on company topics, being courteous, and admitting when it does not know an answer. It is normally hidden from the user. section 7.2.1 section 7.5
Keep the system prompt distinct from the other parts of the assembled prompt:
- Input is what the user writes; it may be informal or contain mistakes. section 7.2.1
- Instruction encodes task-specific directions, while context adds information from retrieval or database lookups. section 7.5
- System instructions establish behavior across tasks, rather than supplying a particular user question or retrieved fact. section 7.5
Company-policy assistant
For a question about a 401(k) match, the system instructions can ask the assistant to answer only company-policy questions, offer documentation links when available, and say when it does not know. The user’s question and retrieved policy information are separate inputs. This structure improves the chance of a useful answer; it does not make every answer reliable. section 7.2.1
Treat the wording as something to test and refine. Small phrasing changes can produce very different responses, and adding examples alone does not guarantee better results. Prompting guides behavior at run time without expensive retraining. section 5.2.3 section 10.5

















































