Prompt engineering
The process of designing prompts so the agent acts exactly how you want
Writing a good system prompt
Writing a good system prompt
You set the system message when building the AI agent and it remains constant throughout the interaction
Include:
who it is what it can do what it can’t do how it should behave
Essential elements
role → who the agent is and what its task is tone & style → casual, formal, domain-specific rules → how specific, constraints and processing limitations & constraints → what the AI agent must not do
Difference in roles
System prompt → what stays the AI behaviour, defined by you
User prompt → what prompt the user gives in the moment
System rules
System rules are the same every time and define the process
User prompts change each time & give the task
