Skip to content

Current path

Prompt Engineering
Level: Intermediate33 lessons
Progress0/33 · 0%

Building Effective Prompts

Define the Task and Goal

State the desired outcome clearly and define success before adding unnecessary detail.

In this lesson

Why this matters

The task states the action; the goal states the outcome it should serve. “Summarize” is a task; “so a manager can decide in one minute” is a goal that changes the content.

How to apply it

  1. Define the task and desired outcome.
  2. Add only context or rules that affect success.
  3. Specify an output form or checkable criterion when needed.
  4. Test on realistic input and revise when a failure pattern appears.

Practical example

Weak example:

text
Weak version of the same task: حلّل الشكاوى.

The weak version leaves an important part of the task or its boundaries to guesswork. The improved version adds information tied directly to success without treating length or complexity as a goal.

Improved example:

text
Improved version: حدّد أكثر 3 أسباب تؤثر في رضا العملاء، واستشهد من البيانات، واقترح إجراءً لكل سبب دون إضافة أسباب غير مدعومة.

Short practice

Apply the lesson concept to this task: اكتب مهمة وهدفًا منفصلين لملخص اجتماع.

Check your understanding

Check: ما الفرق بين المهمة والهدف؟
Answer: المهمة تحدد الفعل، والهدف يحدد النتيجة أو الاستخدام.

Summary

Keep this concept as one tool rather than a magic formula. Tie it to the goal and success criteria, then build on it in the next lesson.