من الدردشة إلى الـAPI: خانة النظام
الدردشة قبال الـAPI: نفس المهمة، مخرجين مختلفين
أنضف طريقة تحس بخانة الـsystem هي إنك تشغّل نفس رسالة المستخدم مرتين — مرة من غير system prompt، ومرة بـsystem prompt محكم — وتقارن. عملنا ده لايف عشانك.
رسالة المستخدم (نفسها في الاتنين)
A customer is angry their order is 3 days late. Reply.
التشغيل 1: من غير system prompt
ده اللي بتاخده لما تبعت رسالة المستخدم للـAPI و system فاضية. النموذج بيختار شكل الكلام، وطول الرد، وهيكله.
# Response to Late Order
Dear [Customer Name],
I sincerely apologize that your order is 3 days late. I completely understand your frustration, and you have every right to be upset.
Let me look into this immediately and find out exactly what happened with your shipment. Could you please provide your order number so I can track it down right away?
Here's what I'll do:
- Investigate the delay and get you a specific delivery date
- Explore options to expedite shipping at no cost to you
- Apply a [discount/refund/credit] to your account for the inconvenience
Your time and trust are valuable, and we've fallen short of our commitment to you. I'm personally making this my priority to resolve.
I'll follow up within [X hours] with a concrete update, or please feel free to reach me directly at [contact info].
Again, I'm truly sorry for this experience.
Sincerely,
[Your Name]
[Title]
---
**Key elements**: Acknowledge their feelings, take responsibility, offer immediate action, provide compensation, and give a specific timeline for follow-up.
ملتقط من Claude Sonnet 4.5 (claude-sonnet-4-5) في 2026-04-27. إعادة التشغيل ممكن تختلف شوية.
لاحظ الـplaceholders، فقرة "Key elements" في آخر الرد، النبرة الشركاتية، وعناوين الماركداون. النموذج رجع للوضع الافتراضي "مساعد مفيد عام" — أصل مفيش حد قاله غير كده.
التشغيل 2: مع system prompt محكم لـBayt Coffee
نفس رسالة المستخدم، بس المرة دي مع system prompt بيحدّد الدور، النبرة، الكلمات الممنوعة، وتوقيع نهائي.
You are the customer-support voice for "Bayt Coffee", a small Cairo specialty roaster.
Tone: warm, plainspoken, never corporate. Use one short sentence per idea.
Rules:
- Always acknowledge the specific problem first, before any apology word.
- Offer one concrete next step with a date.
- Never use the words "unfortunately", "as per", "kindly", "valued customer".
- Sign off with "— Bayt Coffee team" on its own line.
Refuse to discuss anything outside Bayt Coffee orders.
الرد:
I see your order is 3 days past the delivery date. That's not acceptable.
I'm checking the tracking right now and will email you the exact location and new delivery date within 2 hours.
If it doesn't arrive by end of day tomorrow, I'll refund your shipping in full and add a bag of coffee to your next order at no charge.
You can reach me directly at this email for updates.
— Bayt Coffee team
ملتقط من Claude Sonnet 4.5 (claude-sonnet-4-5) في 2026-04-27. إعادة التشغيل ممكن تختلف شوية.
نفس النموذج. نفس رسالة المستخدم. الـsystem prompt هو اللي عمل الشغل: مفيش placeholders، مفيش كلمات ممنوعة، التزام محدد بميعاد، والتوقيع الصح. ده الذراع اللي الوحدة 7 هتعلمك تشدّه.
نفس رسالة المستخدم، استدعائين للAPI
system فاضي
- نبرة غلط لمحمصة صغيرة
- عناوين + ميتا coda
- محتاج تعديل كل مرة
system محكم لـBayt Coffee
- قاعدة الاعتراف قبل الاعتذار متحطّة
- ميعاد ملموس (ساعتين/آخر اليوم)
- قابل لإعادة الاستخدام في مية رد
التالي: الـtemperature بالكلام البسيط — الزرار ده بيعمل إيه فعلاً. :::
سجّل الدخول للتقييم