Many people use AI as if they are typing keywords into a search engine: writing one sentence and then hoping the response is immediately usable. This approach sometimes works, but the results are often inconsistent. Today the answer is neat, tomorrow it’s too general, and in the next attempt, it might miss important parts.
The problem usually isn’t the length of the prompt. A long prompt isn’t necessarily clear. What’s more important is providing the AI with enough context, clear constraints, and a picture of the desired outcome. Think of it as giving a task to a new coworker: the clearer the background and standards for the results, the less likely the work will need to be redone.
Basic Pattern: Context, Task, Constraints, and Format
For everyday tasks, effective prompts can be built from four parts:
- Context: the situation, background, or who the audience for the results is.
- Task: the work that the AI needs to perform.
- Constraints: things to avoid or rules to follow.
- Format: the form of the answer you want.
These four elements don’t always have to be written in detail. For simple tasks, one or two sentences may be sufficient. However, for repetitive tasks—such as summarizing, replying to emails, writing code, or analyzing data—this pattern helps maintain the quality of the results.
Example of a Too General Prompt
Write an email for a customer.The AI doesn’t know the type of customer, the issue being discussed, the appropriate tone, or the purpose of the email. As a result, the output may sound polite but not truly useful.
A More Directed Version
Context: I work as customer support for a software subscription service. A customer is requesting a refund because they forgot to cancel their plan before the trial period ended.Task: Write a polite and empathetic reply email in Indonesian.Constraints: Do not promise a refund before the review is complete. Explain that the request will be forwarded to the billing team.Format: Maximum 150 words, consisting of a greeting, a brief explanation, the next steps, and a closing.
The second prompt doesn’t guarantee the AI will always be correct, but it provides much clearer direction. You can also more easily check if the response meets your needs.
Don’t Just Explain the Task, Explain the Standards for the Outcome
Instructions like “make it more professional” or “write in an engaging style” still leave a lot of interpretation. For some, professional means formal. For others, it means concise and to the point.
Instead of using abstract adjectives, turn those standards into observable traits. For example:
- Use short sentences and avoid technical jargon.
- Start with the main conclusion.
- Use a warm tone, but don’t be overly casual.
- Include a maximum of three actionable recommendations.
- If there is information that is not available, mark it as an assumption.
Such instructions are easier to apply and evaluate. You don’t have to guess whether the result is “engaging”; just check if the structure and constraints are met.
Provide Examples When Style or Format is Crucial
Input and output examples, often referred to as few-shot prompting, are useful when you want the AI to follow a specific pattern. This term means providing several examples before asking the AI to work on a new case.
For instance, if you want to turn meeting notes into work tasks. Instead of just saying “turn into a task,” provide an example:
Notes: “Rina will check prices from three vendors and share the comparison by Friday.”
Desired output: “Task: Compare prices from three vendors. Responsible: Rina. Deadline: Friday. Output: Comparison table.”
After that, provide the next meeting notes. The example helps the AI understand that you want to separate tasks, responsibilities, deadlines, and final results.
Use examples sparingly. One to three representative examples are often more useful than ten inconsistent examples. If the first example uses a different format from the second, the AI receives confusing signals.
Ask the AI to State Assumptions, Not to Fabricate Silently
One risk of using AI is that answers may sound convincing even though they are built from incomplete information. To mitigate this issue, add rules that ask the AI to separate facts, assumptions, and follow-up questions.
If information is insufficient, do not fabricate details. Separate the answer into three parts: available facts, assumptions made, and questions that need to be answered.This pattern is very useful for drafting proposals, analyzing technical issues, or summarizing documents. The AI can still make mistakes, so the results need to be checked, especially when it involves money, law, health, safety, or important decisions.
Use Step-by-Step Prompts for Large Tasks
Another common mistake is asking the AI to complete an entire task in one command: reading materials, determining strategies, writing drafts, fact-checking, and formatting results all at once. For complex tasks, a step-by-step approach is usually easier to manage.
- First step: ask the AI to identify important information and missing parts.
- Second step: ask the AI to outline or create a work plan.
- Third step: ask the AI to draft based on the approved outline.
- Fourth step: ask the AI to perform specific checks, such as consistency of terms, completeness of data, or length of writing.
This way, you not only receive the final result but can also correct the direction of the work earlier. It’s like making a map before starting a long journey: a little time at the beginning can reduce many rounds of revision.
Ready-to-Use Prompt Template
Here’s a template that can be customized for various needs:
Role: Act as [relevant role].Context: [explain the situation, goals, and audience/users].Task: [explain the main work with specific verbs].Available data: [insert important information, text, or parameters].Constraints: [length, tone, prohibited items, and quality criteria].Output format: [table, list, steps, email, code, or other structure].Checks: Before answering, ensure [list of things to check]. If there is missing information, state it explicitly.
The “role” section can be used, but don’t assume it guarantees that the AI will always act like a real expert. The role only helps guide the style and perspective. The quality of the answer still depends on the context, data, and how you check the results.
What You Can Do Now
Choose one task that you often repeat this week—such as summarizing emails, generating content ideas, or explaining code errors. Note the prompts you usually use, then add four things: context, specific task, constraints, and output format.
After receiving the answer, don’t immediately delete the prompt. Save the version that produces the best response, then refine it gradually. A good prompt is not a one-time magic spell, but a working instruction that is continuously adjusted based on real results.
Ultimately, the goal of prompt engineering is not to create commands that sound sophisticated. The aim is to reduce misunderstandings, speed up work, and make AI results easier to check. The clearer the task you request, the greater the chance that AI will become a truly time-saving tool.
– Rio Yotto @rioyotto
