WALIWAYAI INSTITUTE

An educational initiative of Tragro

Tutorial / Tutorials

How to write a good AI prompt

Give an assistant a clear task, useful context and a way to check its answer.

Waliway AI Institute

Original publication date unconfirmed

Updated

3 min read · estimateSources checked

Editorial process and assistance

In this guide
  1. Give five useful pieces of information
  2. Compare a vague prompt with a bounded one
  3. Inspect an authored before-and-after
  4. Use examples and iteration carefully
  5. A reusable starting prompt

“Improve this email” leaves several decisions open. Should the assistant shorten it, soften a refusal or add a proposed deadline? A polished response may be unsuitable because you never wanted it to make the last decision.

A good prompt makes the task and its boundaries visible. It does not make every failure the user’s fault.

Give five useful pieces of information

State the task, provide the source material, identify the audience, specify the output, and name the constraints. Include only context the task needs and that you have permission to share.

OpenAI’s prompting documentation discusses explicit instructions, relevant context and examples. These are useful starting practices, not a guarantee that a particular model will follow them correctly.

Compare a vague prompt with a bounded one

This fictional source is complete:

Arun offers 800 cartons for USD 9,600, excluding delivery. Dispatch on 18 November may be possible, subject to a stock check. The buyer has not approved a purchase. Ask for delivery cost and stock confirmation by 2 p.m. Dubai time on 6 November 2026. No attachment exists.

A vague prompt is:

Write a professional reply accepting this.

That instruction conflicts with the buyer’s actual authority. More elegant writing will not repair that conflict.

A better prompt is:

Draft a reply requesting the missing delivery cost and stock confirmation. Use only the supplied facts. This is not an order or price acceptance. Preserve the response deadline. Do not invent prior discussions, attachments, payment promises or a confirmed dispatch date. Keep the email under 120 words. Put any unresolved questions outside the draft.

Inspect an authored before-and-after

These two excerpts are constructed teaching examples, not recorded AI outputs.

Flawed excerpt:

We confirm the order at the agreed delivered price of USD 9,600. Please dispatch on 18 November. Our purchase order is attached.

Revised excerpt:

Thank you for the quotation for 800 cartons at USD 9,600, excluding delivery. Please provide the delivery charge and confirm whether stock allows dispatch on 18 November. Please reply by 2 p.m. Dubai time on 6 November 2026. We will confirm separately if the purchase is approved.

The second version removes unsupported acceptance and an invented attachment, preserves missing freight and keeps the requested deadline. It remains a draft: the sender must check the recipient and confirm that these are still the current facts.

The complete annotated-email article offers a longer source, flawed draft and correction table.

Use examples and iteration carefully

An example can show the structure you want. Label which parts are examples and which are facts for the current task. Otherwise, a model may carry an example’s price or customer name into the answer.

After the first response, identify a concrete problem: “You described the date as confirmed; the source calls it a target.” Request a revision and compare it with the original evidence.

A better prompt may improve a response, but repeated failure may reflect model limitations, missing context, retrieval errors or an unsuitable workflow. You can shorten the task, change the tool or do the work directly. There is no technique that works every time.

A reusable starting prompt

Complete [task] for [audience] using [source]. Return [format]. Preserve [important facts and restrictions]. If the source cannot answer something, identify the gap. Do not invent [likely unsupported details]. Before finishing, compare the output with the source and list unresolved issues separately.

This is a drafting aid. Your checking method should exist outside the prompt too: a source comparison, a calculator, a test case or a person authorised to make the final decision.

Sources and method

  1. developers.openai.com — reference

Editorial disclosure

Revised with AI assistance. Sources are linked and teaching examples are identified as fictional or authored. No individual author, human reviewer or product test is claimed.

By Waliway AI Institute. About the publication.