Which part of a prompt sets the assistant's role and rules?
Why A is the answer
The system prompt
The system prompt sets behavior for the conversation. The user prompt holds each request.
In detail
- The system prompt sets the assistant's role and rules.
- Keep rules in the system prompt.
Use case
An illustrative scenario, not a real incident.
A support bot must stay polite and on topic. The system prompt sets that role and those rules, while each user prompt carries the question.
See it in different ways
sequenceDiagram participant App as Your app participant M as Model App->>M: System prompt with role and rules App->>M: User prompt M-->>App: Response
mindmap
root((Settings))
Temperature
Lower is more consistent
Higher is more varied
Max tokens
Limits reply length
System prompt
Role and rulesmindmap
root(("Prompt"))
n1["System prompt"]
n2["Role"]
n3["Rules"]
n4["User prompt"]
n5["The request"]Key point: The system prompt sets role and rules.
Why the other options are wrong
- B. The temperature setting
- Temperature controls variety.
- C. The deployment name
- A deployment name identifies the deployment.
- D. The user prompt that follows it
- The user prompt holds the request.

