0
0
Prompt Engineering / GenAIml~5 mins

Message roles (system, user, assistant) in Prompt Engineering / GenAI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the role of the system message in a conversation with an AI?
The system message sets the overall behavior and rules for the AI. It guides how the AI should respond throughout the conversation.
Click to reveal answer
beginner
Who sends the user message in an AI chat?
The user message is sent by the person interacting with the AI. It contains questions, commands, or information for the AI to respond to.
Click to reveal answer
beginner
What does the assistant message represent in AI conversations?
The assistant message is the AI's reply to the user. It provides answers, explanations, or actions based on the user's input and system instructions.
Click to reveal answer
intermediate
Why is the system message important before user and assistant messages?
Because it sets the context and rules, the system message helps the AI understand how to behave, making the conversation more useful and consistent.
Click to reveal answer
intermediate
Can the assistant message influence the next user message?
Yes, the assistant's reply can guide or change what the user asks next, shaping the flow of the conversation.
Click to reveal answer
Which message role sets the AI's behavior and rules?
ASystem
BUser
CAssistant
DObserver
Who sends the user message in an AI chat?
AThe person interacting with the AI
BThe system
CThe AI assistant
DThe developer
What does the assistant message contain?
AInstructions for the AI
BSystem logs
CUser questions
DAI's replies
Why is the system message placed before user and assistant messages?
ATo log the conversation
BTo greet the user
CTo set context and rules for the AI
DTo end the chat
Can the assistant message affect what the user asks next?
ANo, user messages are independent
BYes, it can guide the user's next input
COnly if the system allows it
DOnly in multi-user chats
Explain the roles of system, user, and assistant messages in an AI conversation.
Think about who sends each message and what its purpose is.
You got /3 concepts.
    Why is the system message important before the user and assistant messages?
    Consider how the AI knows how to behave.
    You got /3 concepts.