← Back to Blog The 4-part prompt formula: Role, Context, Task, Format

The 4-Part Prompt Formula for Better AI Answers

Most weak AI answers come from weak prompts. AI only knows what you tell it, so a vague request returns a vague answer. The fix is a four-part formula you can use on every prompt: Role, Context, Task, Format.

The formula at a glance

  1. Role: Tell the AI who to be.
  2. Context: Share the situation and the audience.
  3. Task: State exactly what you want.
  4. Format: Control how the answer comes back.

The parts go in that order. Each one removes a guess the AI would otherwise make for you.

Part 1: Give it a role

A role sets the point of view and the level of expertise. "You are a senior marketing manager" produces different priorities than "You are a copy editor."

Pick the role that matches the output you want. Use a job title, not a personality. A role that fits the task beats a generic "expert."

Example: "You are a senior marketing manager."

Part 2: Add your context

Context is the situation. Who is the audience? What is the business? What is already true? Without it the AI writes for nobody in particular.

Include only what changes the answer: your business type, your audience, the constraint that matters.

Example: "I run a 3-person bakery selling to local offices."

Part 3: State the task

Say exactly what you want done. Use a verb and a number. "Help with email" is a topic. "Write three email subject lines" is a task.

If the task has an occasion, name it.

Example: "Write three email subject lines for a Friday promo."

Part 4: Set the format

Format controls length, structure and style. Tell the AI how long, what layout and what to return.

Common format instructions: a numbered list, a table, under 50 characters per line, a 100-word summary, plain language with no jargon.

Example: "Keep each under 50 characters. Return a numbered list."

Before and after

The two prompts below show the same request with and without the formula.

Weak prompt:

Write some email subject lines for my bakery.

This leaves the AI to guess your audience, your offer, the number of lines and the length. You get generic lines that fit any bakery.

Formula prompt:

You are a senior marketing manager. I run a 3-person bakery selling to local offices. Write three email subject lines for a Friday promo. Keep each under 50 characters. Return a numbered list.

Now the AI knows the point of view, the audience, the job, the count, the length and the layout. The answer is easier to use because it is aimed at a real situation.

Run both in your AI tool and compare. The difference you see in your own result is the best proof for your own work.

A copy-and-paste template

You are [role].

[Context: who you are, who the audience is, what matters].

[Task: the exact thing you want, with a number].

[Format: length, structure, style].

Save this template in a notes app and fill in the brackets each time.

Common mistakes

Use the formula for work, business and daily life

The same four parts work outside marketing.

These are teaching examples, not customer results.

Frequently asked questions

What is a prompt formula?

A prompt formula is a repeatable structure for the instructions you give an AI tool. This one has four parts: Role, Context, Task and Format.

Does the formula work in ChatGPT, Claude and Gemini?

The formula is plain-language instruction, so it works in any AI chat tool that accepts text. Results differ between tools, so test your own prompts.

How long should a prompt be?

As long as it takes to cover the four parts. Often that is three to five sentences.

Do I need all four parts every time?

For quick, low-stakes requests, Task and Format are enough. For anything you plan to use, add Role and Context.

Next step

Pick one task you do every week, write it with the four parts and compare the answer with what you usually get.

Want to keep going? AI Domination teaches practical AI for work, business and daily life through courses, audiobooks and ebooks.

Browse the AI Domination catalog at learn.aidomination.net