ITQANDEVWeb & App Development

PROMPT GUIDE

How to Write AI Prompts That Give Accurate Results

The same assistant gives a vague answer to a vague request and a useful answer to a clear one. This guide shows a four-part structure you can reuse, with before and after examples in Arabic, and a short checklist to verify the result.

Why prompts fail

Most weak answers come from missing information, not from a weak tool. The assistant does not know your business, your customer, your tone or what a good answer looks like. It fills the gaps with a safe, average guess.

Three gaps cause most problems: no context, no limits, and no format. The four parts below close those gaps.

The 4 parts of a prompt that works: goal and role, context, rules, and output format

The four parts, with Arabic examples

Pick a tab. Each part is one or two sentences. You do not need fancy wording.

Say what you want and who the assistant should act as. Arabic example: "أنت مسؤول خدمة عملاء في متجر ملابس أونلاين في مصر. اكتب رداً على عميل يشتكي من تأخر الطلب."

Before and after

The same task, written two ways.

Note: the numbers in the example are placeholders. Use your own real prices and offers, and never let the assistant invent them.

Four common mistakes

  • Asking for too much in one prompt
    Split big jobs into steps: outline first, then draft, then edit. Each step is easier to check.
  • Leaving out the audience
    A post for owners of small shops reads differently from a post for engineers. Name who will read it.
  • Not giving the real facts
    If it needs prices, dates or policies, paste them in. If you do not, it may guess.
  • Accepting the first answer
    Reply with what to change: shorter, more formal, remove the second paragraph. Treat it as a conversation.

Verify before you trust

A confident answer is not always a correct one. Run this checklist on anything you will publish or send to a customer.

  1. Check every number, date, price and name against your own records.
  2. Open every link and confirm it exists and says what the answer claims.
  3. Ask: "Which parts are you unsure about?" and "What did you assume?"
  4. Compare with one official source, such as the tool maker's own prompting guide.
  5. Have a person read it once, out loud, before it goes out.

The tool makers publish their own guides: see the OpenAI prompt engineering guide and the Anthropic prompt engineering overview. Both are for developers, and they change as models change.

A deeper talk, when you want to go further

"The prompting playbook" is a talk from the Claude channel on YouTube, published May 2026. It is in English and more technical than this guide, so treat it as a next step.

Turn good prompts into a system

Once a prompt works, save it with blanks like [product] and [audience]. A shared list of tested prompts is often the first useful step. When you need the assistant inside your website or app, writing the goal clearly matters even more: see how to write a project brief, and our first guide, AI for business owners: where to start.

Frequently asked questions

Frequently asked questions

  • Do I need to write prompts in English to get good results?
    No. Write in the language you want the answer in. Test with your own text, because quality can differ by tool, dialect and topic. If a result sounds off, state the dialect and tone you want, and give a short example sentence.
  • Is a longer prompt always better?
    No. A longer prompt helps only when the extra words add context, rules or format. Repeating the same request or adding vague words does not. Keep each part short and specific.
  • How do I stop the assistant from making things up?
    You cannot remove the risk completely. Give it the facts to use, tell it to say when it is unsure, ask for the source of each claim, and check names, numbers, dates and links yourself before you publish.
  • Should I keep my prompts?
    Yes. When a prompt works, save it as a template with blanks for the changing parts. A small shared document of tested prompts saves your team time and keeps the results consistent.

Want a prompt library for your team?

We build assistants and workflows that use your own data. Tell us the task and we will suggest a starting point.

Ready to start your project?

Tell us about your idea. We'll get back within 24 hours.