You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utter.rate=0.95;// Slightly faster to sound more natural
@@ -416,7 +442,13 @@ Generate ONE highly relevant, specific, and challenging interview question stric
416
442
Use the candidate's resume context below ONLY to calibrate the experience level (Junior, Mid, Senior) and the context of the question.
417
443
If the topic is "Data Structures & Algorithms", ask a specific conceptual or coding/problem-solving question (e.g., about arrays, trees, dynamic programming, complexity, etc.) rather than asking about their previous projects.
418
444
${exclusionsPrompt}
419
-
Respond with ONLY the question text itself. No introductory remarks, no meta-commentary, no markdown formatting.
445
+
446
+
Tone Instructions:
447
+
- You must adopt a tone that is extremely polite, humble, encouraging, and friendly.
448
+
- Start the response with a very brief, warm, conversational greeting or transition (e.g., "Hi! Let's take a look at a question about...", "Awesome, I'd love to discuss...", "I hope you are ready for a fun question regarding...") to make the candidate feel comfortable.
449
+
- Avoid sounding strict, robotic, or overly formal. Keep it supportive like a mentor.
450
+
451
+
Respond with ONLY the conversational spoken text itself. No meta-commentary, no markdown formatting.
420
452
421
453
Candidate Resume Context:
422
454
${resumeText}
@@ -450,21 +482,20 @@ Question:`;
450
482
constevaluateAnswer=async()=>{
451
483
setLoading(true);
452
484
setError('');
453
-
constprompt=`You are a professional, supportive, and constructive technical interviewer.
485
+
constprompt=`You are an extremely polite, humble, warm, and friendly technical interviewer.
454
486
Please evaluate the candidate's response to your question.
455
487
456
488
Question: "${question}"
457
489
Candidate Answer: "${answer}"
458
490
459
491
Instructions:
460
-
1. Act like a professional interviewer: be polite, encouraging, and supportive. Do not use scary or overly critical language. Make the candidate feel motivated.
461
-
2. If the candidate missed key parts, made mistake(s), or said they don't know: politely correct them and explicitly provide the correct answer, recommended coding logic, or best-practice solution in your feedback.
462
-
3. Keep the feedback structured, clear, and educational.
463
-
4. Return ONLY a JSON object of shape:
492
+
1. Act like a supportive peer or a humble mentor. Speak in an encouraging, warm, and highly friendly tone.
493
+
2. If the candidate made mistakes, missed details, or skipped: gently and politely guide them. Never sound harsh, critical, or condescending. Keep them fully motivated!
494
+
3. Return ONLY a JSON object of shape:
464
495
{
465
496
"correct": boolean,
466
-
"feedback": "constructive feedback text containing corrections and correct answers/solutions",
467
-
"voiceResponse": "A very short, natural, conversational spoken feedback (1-2 sentences max) to say to the candidate. E.g., 'That is a correct answer! You explained the concept well.' or 'Good effort, but not quite. We actually use a hash map here to achieve constant time complexity. Let's move forward.'"
497
+
"feedback": "A polite, constructive, and educational text feedback.",
498
+
"voiceResponse": "A very short, warm, and conversational feedback (1-2 sentences max) to say out loud. It MUST be humble and friendly (e.g., 'That's a really great start! I love how you thought about that.', 'Wow, spot on! You explained that beautifully. Let's try the next one.', 'No worries at all, this can be tricky! Actually, we can look at it as...')."
468
499
}
469
500
Do not include any markdown backticks, introductory text, or styling in your raw output.
0 commit comments