CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

Writing System and User Prompts

A model can only follow the instructions it is given, so the wording of your prompts decides how useful its replies are. This lesson covers writing system and user prompts, adding examples, and testing your wording before an app depends on it.

10 cards

Writing System and User Prompts

In this lesson · 6 sections

Terms you'll meet

Tap a card to see what it means.

Step 1 of 6

A model can only follow the instructions it is given, so the wording of your prompts decides how useful its replies are. This lesson covers writing system and user prompts, adding examples, and testing your wording before an app depends on it.

What a system prompt should settle

The system prompt lets the developer settle several things once, so every conversation starts from the same place. A useful one answers four questions. What is the assistant, and what is its job? Who is it talking to, and in what tone? What is out of bounds, and what should it say when a request falls outside its job? What shape should replies take? Picture a help assistant for a city library. Its system prompt could name that role, ask for plain language aimed at members of the public, limit it to library services, and tell it to point people to the front desk when it cannot answer. Microsoft's system message guidance adds tools and data sources as an optional component, advises second person ("You are...") and favors concise wording. Always spell out the fallback, so the edge of the assistant's scope is covered by an instruction.