Auto-deploy: 2026-05-17 02:36:31

This commit is contained in:
Hamza-Ayed
2026-05-17 02:36:31 +03:00
parent c082b1861c
commit 7a1405fe36
2 changed files with 90 additions and 75 deletions

View File

@@ -113,26 +113,35 @@ Respond EXACTLY:
- [2-3 new achievement bullets ready to paste into CV — in English]`;
const dynamicQuestions = job.questions && job.questions.length > 0
? 'Answer THESE specific application questions:\n' + job.questions.map((q, i) => `${i + 1}. ${q.question}`).join('\n')
: 'Answer these common application questions:\n1. Why are you interested in this role?\n2. What is your relevant experience?\n3. What are your salary expectations?\n4. When can you start?\n5. Do you require visa sponsorship?';
? job.questions.map((q, i) => `${i + 1}. "${q.question}" [type: ${q.type}]`).join('\n')
: '1. "Why are you interested in this role?" [type: text]\n2. "What is your relevant experience?" [type: text]\n3. "What are your salary expectations?" [type: text]\n4. "When can you start?" [type: text]\n5. "Do you require visa sponsorship?" [type: text]';
P.qa = `You are a career coach.
IMPORTANT: ALL answers MUST be in English. Be highly concise (1 sentence max for text inputs, Yes/No for radio inputs).
P.qa = `You are a form-filling assistant. Your ONLY job is to answer application form questions.
${prof}
STRICT RULES:
- Return ONLY a raw JSON object. Nothing else.
- Do NOT write cover letters, introductions, paragraphs, or markdown.
- Do NOT use headers like "###" or "##".
- Do NOT use code blocks like \`\`\`json.
- For number/numeric questions: answer with JUST a number (e.g. "6").
- For yes/no or select questions: answer with JUST "Yes" or "No".
- For salary questions: answer with JUST a number (e.g. "25000").
- For text questions: answer in 1 short sentence max.
- Keys must be the EXACT question text.
MY PROFILE:
${userProfile}
JOB:
${ctx}
QUESTIONS TO ANSWER:
${dynamicQuestions}
RETURN EXACTLY A RAW JSON OBJECT where keys are the exact questions above and values are your concise answers.
Do NOT use markdown code blocks like \`\`\`json. Just return the raw JSON.
Example:
RESPOND WITH ONLY THIS FORMAT (raw JSON, no wrapping):
{
"Have you completed the following level of education: Bachelor's Degree?": "Yes",
"How many years of work experience do you have with Infrastructure?": "6",
"Why are you interested in this role?": "My background in mapping perfectly aligns with your needs."
"exact question text here": "concise answer",
"another question": "answer"
}`;
P.benefits = `You are a career analyst specializing in tech compensation in MENA.