How to write a good AI prompt: a beginner's guide
A good AI prompt is a clear assignment, like one you would give a new colleague. It has five elements: role, task, context, format and, if needed, an example. The more context you give, the less the AI has to guess. The first answer is rarely final, so the best result usually comes from a conversation in which you clarify and improve.
Why answers are often generic
If you ask it to write an email to a customer, the AI does not know who the customer is, what happened, what your tone is or what you want to achieve. So it writes an average email that fits everyone and no one. The problem is not the tool but the assignment.
Imagine giving the task to a new, smart colleague who knows nothing about your company. What would you tell them? That is exactly what belongs in the prompt.
Five elements of a good prompt
Five elements of a good prompt
-
1RoleWho the AI should think as: an experienced HR manager, a financial analyst, an editor.
-
2TaskOne clear action verb: write, compare, shorten, find risks.
-
3ContextWhat happened, who it is for, what the goal is, what the constraints are.
-
4FormatLength, structure, tone, language: for example 5 bullets, no more than 120 words.
-
5ExampleIf you have a sample you like, add it. It works better than a description.
Not every prompt needs all five. For a short question, task and context are enough. But if the result will be used at work, each extra element reduces editing time.
Example: before and after
The same task, two prompts
BeforeGeneric prompt
- Write an email to a customer about a delay.
- Unknown who the customer is
- Reason and new deadline unknown
- Result: long, generic text
AfterPrompt with context
- Role: an experienced account manager.
- Task: an email to a long-term customer about a delivery delay.
- Context: supplier was the cause, new deadline Friday, we offer free delivery.
- Format: up to 120 words, businesslike and warm tone.
In the second case, the AI no longer has to guess. The answer is usually usable straight away or after one correction.
Improve in conversation, not from scratch
The best users do not write one perfect prompt. They write a good start and then refine. These follow-up requests work almost every time:
-
Shorten
Cut it in half while keeping the key points.
-
Change the tone
Make it more direct and less formal.
-
Ask me
Before you answer, ask me three questions you need to know.
-
Critique
What are the three weakest points in this text or plan?
-
Give options
Give three different options so I can choose.
The most common mistakes
Five mistakes that spoil the result
-
1Too little contextThe AI fills the gaps with generic assumptions.
-
2Several tasks in oneSplit a big job into steps and do them one at a time.
-
3Blind trustFacts and numbers must be checked, the AI can invent them.
-
4Confidential dataDo not enter them into tools the company has not approved.
-
5Giving up after the first answerOne clarification often gives the biggest improvement.
Template: prompt structure
| Element | Your text |
|---|---|
| Role: who should the AI think as? | |
| Task: what exactly should it do? | |
| Context: what happened, who is it for, what is the goal? | |
| Constraints: what to avoid, what to include? | |
| Format: length, structure, tone, language? | |
| Example: is there a sample you like? |
What you can adapt
- Save frequently used prompts in a shared team library so no one has to start from scratch.
- If the result has to be in Latvian, write the tone guidance and example in Latvian too.
- For a complex task, ask for a plan first and only then for the text itself.
Frequently asked questions
What is an AI prompt?
A prompt is the text you use to give a task to an AI tool such as ChatGPT. It describes what you want, in what context and in what form. The quality of the answer depends largely on the quality of the prompt.
How do you write a good prompt?
Give a role, a clear task, context and the desired format, and add an example if possible. Then improve the result with follow-up requests instead of starting over.
Is it better to write prompts in English or Latvian?
Modern tools understand Latvian well. If the result has to be in Latvian, it is usually better to write the prompt in Latvian. On very specific technical topics, English sometimes gives more precise answers.
Why is the AI answer too long and generic?
Usually because the prompt lacks context and format. State the length, audience and goal, for example no more than 5 bullets for board members.
Read also: How to use ChatGPT at work · Automate, improve or AI? · How to develop an AI strategy
We practise prompt writing with your own work tasks. AI training for managers.