What is prompt engineering?
Prompt engineering is the craft of wording instructions to an AI model so that it gives the answer you are after. A prompt is the text you enter, the question or the task. Engineering refers to going about it systematically: you test, compare and improve instead of guessing. In Swedish people sometimes say promptteknik or prompt design.
The background is that a language model answers what it is given. It knows nothing about your business, your customer or what you mean unless you tell it. Two people who ask for ”a summary” can get completely different results depending on how they phrase it, and the difference is clearest when the task is bigger than a simple question.
It is no secret code. Prompt engineering is mostly a way of being clear, much like when you give a new colleague an assignment. The more you give in the form of context and expectations, the better the result, but there are a few techniques worth knowing by name.
Why the wording matters
A language model works by predicting which text fits best after what is in your instruction. If it says ”write a text about our service”, the model fills in the rest with what is most common: general, slightly empty phrasing. If you give a clear assignment, an audience and an example instead, it has much more to lean on.
This is also the explanation for why the same tool can feel fantastic to one person and useless to another. The difference is seldom in the tool. It lies in how the task is described and how you proceed when the first answer is not enough.
Keep in mind that the model can make things up. It can give a confident answer that is wrong. Good prompts reduce the risk, for example by asking it to say when it is unsure or to use only the text you pasted in, but they never replace your own review.
Four building blocks of a good prompt
Most good instructions consist of the same four parts. The first is role: who should the AI be in this task? ”You are an experienced accounting consultant explaining to a small business owner” gives a different tone from no role at all. The second is context: what does the model need to know? Who is the recipient, what is the purpose, which limits apply?
The third building block is examples. Show what a good answer looks like, often called few shot prompting. One or two examples of earlier texts you are happy with usually do more than a long explanation of the desired style. The fourth is format: what should the answer look like? A list of five points, a table, three sentences or an email of at most 100 words.
Add a fifth thing if you like, criteria for what counts as a good result, and a sixth, what should not be done. ”Use no industry phrases. Do not invent figures. Ask if something is unclear.” are instructions that save many rounds.
Some tools let you save these as instructions that always apply, for example your tone, your audience and what must never be written. Then you do not have to repeat them every time, and everyone on the team gets the same starting point.
- Role: who the AI should act as
- Context: purpose, recipient and background
- Examples: one or two good answers to build on
- Format: length, structure and tone of the answer
- Limits: what must not be done and when it should ask
An example: from vague to clear instruction
Imagine a building firm that wants help replying to a customer complaining about a delayed delivery. The vague version reads: ”Write a reply to an unhappy customer.” The result is a generic email with apologies and no concrete content.
The clearer version reads roughly: ”You are a customer manager at a building company in Sundsvall. Write a reply of at most 120 words to a customer whose material delivery is five days late. The reason is that the supplier had a stoppage. Offer a new delivery day on Thursday and apologise once. Use informal address, no bureaucratic tone and promise nothing other than what I have written.” Here there is role, context, format and limits.
The difference is not that the second version is longer. It is concrete. It says what has happened, what is to be offered and how it should sound, so the model does not have to guess.
TipDo not try to write a perfect prompt on the first go. Write a reasonable one, read the answer and add a line for each thing that went wrong. After three rounds you usually have something you can save as a template.
Techniques for harder tasks
When the task is more than a simple text, a few techniques help. Splitting the task into steps is the most important. Instead of asking for a whole report in one go, you ask first for an outline, review it and then ask for each part. That gives better control and less risk that something important is lost.
Another technique is to ask the model to reason step by step before giving its answer, which often improves results on tasks needing logic or calculation. In some tools this already happens automatically, so test what works in the one you use. You can also ask the model to review its own answer: ”Read through what you wrote and list what could be wrong or assumed.”
For tasks that rely on your own material, paste in the relevant source and ask the model to answer only from it. That reduces the risk of it making things up. Remember not to enter personal data or sensitive data in tools you have not approved for it.
- Split big tasks into several steps
- Ask the model to reason before answering when the task needs logic
- Let the model review and criticise its own answer
- Paste in the source material and ask it to use only that
- Save prompts that work and label them with what they are for
Common mistakes when writing prompts
The most common mistake is being too brief. ”Write an email to the customer” gives the model almost nothing to go on. The second most common is the opposite: a long jumble of instructions that contradict each other. Keep the instruction clear and organise it in parts.
A third mistake is taking the first answer as truth. Always check figures, names and claims, particularly when the text is going to a customer. Ask the model to mark what it is not sure of, and check for yourself what matters.
The fourth is not saving what works. A prompt that took half an hour to polish disappears into the chat history if nobody writes it down. Put templates in a shared document with a line about what they are for and who last updated them.
- Instruction too short, with no context
- Instruction too long, with conflicting demands
- Trusting the first answer without review
- Not saving prompts that work
- Putting sensitive data into the wrong tool
From individual prompts to shared templates
In a company it is seldom profitable for each person to invent their own prompts. What gives an effect is shared templates for recurring tasks: quote drafts, meeting notes, replies to common customer questions. Collect the ones that work in one place, write what each is for and let someone be responsible for keeping them up to date.
When a template is used many times a day, or when it should run without anyone pasting in text, the next step is to build it into an automation or an AI agent. Then the prompt is part of a larger solution that can fetch material, write drafts and put the result where it is needed. Prompt writing then becomes something more systematic, and quality control and testing become more important.
Walldy runs training and workshops in AI use, where prompting is a part, and builds automations and agents when a template should become a real solution. The most common route is to start with a short workshop on your own tasks and see which templates remain after a month.
FAQ
What does prompt engineering mean in Swedish?
It can be translated as promptteknik: the craft of wording instructions to an AI model so that the answer is useful. Engineering refers to the work being systematic, with testing and improvement, and not luck.
What does a good prompt look like?
A good prompt states role, context, what is to be done, what the answer should look like and what should not be done. One or two examples of a desired answer also help a lot. Start simple and improve in steps.
Do you need to program for prompt engineering?
No. Mostly you write plain text in a chat tool. Programming only comes in when the instructions are to be built into an automation or an agent that runs by itself.
Is prompt engineering still important as AI gets better?
Yes, but it is changing. Modern tools handle vague instructions better than before, but the result is still best when the task, audience and format are clear. The ability to describe what you want is useful whichever tool you use.


