Skip to main content
المدونة

Zalt Blog

Deep Dives into AI Engineering

AT SCALE

How to Write Prompts That Actually Work

By محمود الزلط
Insights
6m read
<

Vague prompts get vague answers. Good ones give the AI four things: a role, a clear task, the context, and the format you want back. Here is the simple beginner formula, plus the mistakes to avoid.

/>
How to Write Prompts That Actually Work - Featured blog post image
Mahmoud Zalt

1:1 Mentor

Are you a software engineer moving into AI?

Let's have a call. I'll help you modernize your skills and learn the tools, systems, and architecture behind reliable AI products. One session or ongoing.

Hire AI Employees

Hire AI Employees that work 24/7. No code.

How to Write AI Prompts That Actually Work

To write a good AI prompt, tell the AI four things: who it should act as, what you want, the context it needs, and what the answer should look like. Vague questions get vague answers. Specific requests with a little context and an example get answers you can actually use. The simplest formula is: give a role, state the task clearly, add the relevant details, and describe the format you want back.

I'm Mahmoud Zalt, an AI systems architect. Through Sista AI I teach people how to talk to AI so it gives them useful answers instead of vague ones. Here is the beginner formula I hand to everyone.

The Four-Part Formula

Almost every strong prompt has these four parts. You do not need all four every time, but the more of them you include, the better the result.

  1. Role: tell the AI who to be. For example, act as a friendly customer support writer. This sets the tone and focus.
  2. Task: say exactly what you want done. Write a reply, summarize this, compare these two options. Be direct.
  3. Context: give the details it cannot guess. Who is the audience, what is the goal, what tone fits, any facts it needs.
  4. Format: describe the shape of the answer. Three bullet points, a short paragraph, a table, under 100 words.

Compare a weak prompt, write something about our new product, with a strong one: act as a marketing writer, write a three-sentence announcement for our new scheduling app, aimed at busy small business owners, in a warm and simple tone. The second one gives the AI everything it needs to help you.

Show an Example, Then Refine

The fastest way to raise quality is to show the AI an example of what good looks like. If you want replies in your voice, paste one reply you wrote before and say, match this style. If you want a summary in a certain shape, show one you like. AI is very good at copying a pattern once it sees one.

Then treat the first answer as a draft, not a verdict. If it misses, do not start over. Tell it what to change: make it shorter, more formal, add a call to action, remove the jargon. Each small correction teaches it what you meant. Good prompting is a short back-and-forth, not a single perfect sentence.

The best way to build this skill is simply to practice. Open the free AI chat tool, try a real request, and refine it two or three times. You will feel your results improve within a few tries.

Common Mistakes to Avoid

Most weak results come from a few habits that are easy to fix once you notice them.

  • Being too vague: asking for help with an email instead of stating the goal, audience, and tone.
  • Cramming everything into one line: break a big request into clear parts, or ask step by step.
  • Assuming it knows your context: it does not know your business, your customer, or last week's meeting unless you tell it.
  • Giving up after one try: the first answer is a starting point. Refining is where the quality comes from.
  • Not saying what you do not want: if you want no buzzwords or no emojis, say so plainly.

Fixing even two of these will noticeably improve your results. Clear input is the whole game.

Frequently Asked Questions

What makes a prompt good or bad?

A good prompt is specific and gives context; a bad one is vague and assumes the AI can read your mind. If you include a role, a clear task, the relevant details, and the format you want, you have covered the essentials that separate a useful answer from a generic one.

Do I need special words or a secret formula to prompt AI?

No. Plain, clear language works best. You do not need magic phrases. You need to say what you want, who it is for, and what the result should look like, the same way you would brief a helpful assistant.

Why does the AI give me generic or off-target answers?

Almost always because the prompt was too broad or missing context. Add who the audience is, what the goal is, and an example of what good looks like. Then refine the first draft with small, specific corrections.

How long should a prompt be?

As long as it needs to be to include the important context, and no longer. A single clear sentence can work for simple tasks. For anything nuanced, a short paragraph with role, task, context, and format will beat a one-liner every time.

Get Confident With Prompts, Fast

Prompting is a skill, and like any skill it is far faster to learn with someone showing you the moves than by guessing alone. A few good habits will change how useful AI feels to you every single day.

My AI Agents for Everyone masterclass covers exactly this, in plain language and with no code. It is a live session, private one-on-one or with your own team, starting at $90. We practice on your real tasks and you leave with reusable prompt templates you can use right away. Learn prompting in the no-code masterclass

Thanks for reading! I hope this was useful. If you have questions or thoughts, feel free to reach out.

Content Creation Process: This article was generated via a semi-automated workflow using AI tools. I prepared the strategic framework, including specific prompts and data sources. From there, the automation system conducted the research, analysis, and writing. The content passed through automated verification steps before being finalized and published without manual intervention.

Mahmoud Zalt

About the Author

I’m Zalt, a technologist with 16+ years of experience, passionate about designing and building AI systems that move us closer to a world where machines handle everything and humans reclaim wonder.

Let's connect if you're working on interesting AI projects, looking for technical advice or want to discuss anything.

Support this content

Share this article