WebMagicInformatica
Agentic AI

The 4-Part Prompt Formula That Fixes Bad AI Answers

Vague prompts get vague answers. Learn the simple 4-part formula (role, task, context, format) with before-and-after examples you can copy, plus the follow-up moves that turn a decent answer into a great one.

AA
AdminNovember 19, 2026·4 min read
The 4-Part Prompt Formula That Fixes Bad AI Answers

If AI keeps giving you generic, bland or slightly-off answers, the problem is rarely the AI. It is usually the prompt. The good news: you don't need "prompt engineering" tricks. You need a simple structure that gives the AI what a smart colleague would ask you for anyway.

The formula: Role, Task, Context, Format

Part The question it answers Example
Role Who should the AI act as? "You are an experienced HR manager."
Task What exactly should it do? "Write a reply declining a candidate."
Context What does it need to know? "Interviewed for a data analyst role, strong SQL, weak communication, we may hire again in 6 months."
Format What should the answer look like? "Under 120 words, warm but clear, end with an invitation to reapply."

You don't always need all four, but the more of them you include, the less editing you do afterwards.

Before and after: three real examples

Example 1: An email

Before:

Write an email about the project delay.

After:

You are a project manager writing to a client. Tell them the website launch moves from 10 to 17 March because the payment provider's approval is delayed. We have finished everything else. Tone: calm and accountable, not apologetic. Under 150 words, with a clear new date and one line on what we're doing to avoid further delays.

The second prompt produces an email you can send after a quick read, instead of a generic template you have to rewrite.

Example 2: Learning something new

Before:

Explain Docker.

After:

Explain Docker to a beginner who knows basic programming but has never used containers. Use one everyday analogy, then a 5-step example of running a web server in a container. End with the three commands I should learn first.

Example 3: Working with data

Before:

Analyse this sales data.

After:

Here is a CSV of monthly sales by region for 2025. Find the three biggest changes month-to-month, suggest a likely reason for each (label these as guesses), and show the results as a table with columns: region, month, change %, possible reason.

Notice the instruction to label guesses. It is a small habit that keeps you from mistaking speculation for fact.

Five follow-up moves that improve any answer

The first answer is a draft. These follow-ups are where the quality comes from:

  1. "Make it shorter / simpler / more formal." Adjust tone and length without retyping everything.
  2. "Give me three different versions." Variety helps you spot the best direction.
  3. "What did you assume?" Surfaces hidden assumptions you may need to correct.
  4. "Ask me questions before you answer." Great for complex tasks: the AI interviews you for missing context first.
  5. "Show this as a table / checklist / step-by-step plan." Format changes make information usable.

Two advanced techniques worth knowing

Show an example ("few-shot" prompting)

If you want output in a specific style, show it one or two examples:

Rewrite these product updates in the same style as this example. Example: "New: export reports as PDF. Saves you the copy-paste into Word." Updates to rewrite: ...

The AI copies the pattern far more reliably than if you describe the style in words.

Ask it to think step by step

For anything involving logic, calculations or planning, add: "Work through this step by step before giving your final answer." It tends to reduce careless mistakes, and lets you see where the reasoning went wrong if it does.

A reusable template

Copy this into your notes and fill in the brackets:

You are [role].
Your task: [what to do].
Context: [who it's for, background, constraints, what you already know].
Format: [length, structure, tone]. If anything is unclear, ask me first.

Practice makes it automatic

After a week of using the formula, you will do it without thinking, and your AI results will improve across every tool you use.

Our free course AI for Beginners has a full section on prompting that works, including a hands-on lab where you fix five bad prompts side by side. For workplace scenarios, see Prompting for Professionals.

aiChatGPTPrompt EngineeringProductivity