What Is a Prompt? 5 Parts That Get AI to Do What You Mean

A prompt is a request you write in plain language for AI to carry out. A good one states the task, context, examples and format you want, then improves over a few tries.

Three crumpled yellow paper balls inside a green paper speech bubble

Photo: Volodymyr Hryshchenko / Unsplash

What is a prompt? A prompt is a request you write in plain language for AI to carry out. According to Google, a good prompt gets an accurate, high-quality response, and it usually needs five parts: the task, context, examples, a format and a few rounds of editing.

What does prompt mean in AI?

A prompt is the input to generative AI, such as what you type into ChatGPT, Gemini or Claude. IBM describes prompts as the natural-language inputs that models use to produce results.

Writing prompts is not about memorizing formulas. Anthropic suggests treating the model as a brilliant new employee who knows nothing about how you work. The more precisely you explain what you want, the better the result.

What are the parts of a good prompt?

A good prompt usually has the five parts below. Grouping them this way is IQ+'s suggestion, based on guidance from Google and Anthropic.

Part

What to state

Example

Task

The specific job

Write an email asking to move a meeting

Context

What the AI does not know

To a long-time client, meeting moves to Thursday

Examples

A few samples you like

Paste an old email in the right tone

Format

The shape of the result

Under 100 words, with a subject line

Editing

What to change after reading

Warmer tone, drop the last line

Google advises stating the format, such as a list or table. It also recommends always including a few examples, but warns that too many can make the model follow them too closely. Anthropic suggests 3 to 5 examples for best results.

Infographic of three parts of a good prompt: task, examples, checking

Illustration: IQ+ · Source: Google, Anthropic

What does a better prompt look like?

For the same job, a clearer prompt usually gives a result you can use right away. The two examples below were written by IQ+ as an illustration.

Vague prompt: "Write an email to move a meeting."

Clear prompt: "Write an email to Mr Nam, a long-time client, asking to move our meeting from Tuesday to Thursday this week because our figures are not ready. Polite and friendly tone. Under 100 words, with a subject line."

The second prompt states the recipient, reason, tone and length. Anthropic offers a simple test: show your prompt to a colleague who does not know the task. If they would be confused, the AI will be too.

Do you still need to check the result?

Yes. IBM notes that generative AI output can be mixed in quality and often needs review by skilled people. The same prompt can also give different results on different models.

So treat prompting as a loop: try, read, edit, try again. Google describes it as repeated testing and refinement. For real work, check figures and names before you send anything. A University of Minnesota report also warns that AI can harm learning when it replaces a learner's own reasoning.

Where should you start with prompts?

Start with one task you do every week and write a prompt for it using the five parts above. After a few edits, save your best prompt to reuse. To go further, see the AI learning roadmap or AI courses for office workers.

FAQ

What is a prompt called in Vietnamese?

It is often called "câu lệnh" or a request to AI. Many people simply use the English word.

Do prompts have to be in English?

No. Prompts are written in natural language, so you can try Vietnamese and compare the results on your tool.

Are longer prompts better?

Not necessarily. A good prompt has enough information, not more words. Add what the AI needs and cut what is irrelevant.

Does a ChatGPT prompt work on Gemini?

Usually, but the result may differ. IBM notes that a prompt that works on one model may not suit another.

See more courses in the AI field on IQ+.

Sources

About IQ+

A knowledge-economy ecosystem: take courses, connect with experts, follow AI news every day

Discussion

No comments yet