`;
}
if (p.includes('job description') || p.includes('jd')) {
return `
Senior Product Designer
We're looking for a Senior Product Designer to craft intuitive, delightful experiences across our platform. You'll own end-to-end design, from research to polished UI, and partner closely with product and engineering.
Responsibilities: lead design for key initiatives, run user research, build and maintain design systems, mentor peers.
Requirements: 5+ years product design, strong portfolio, fluency in Figma, systems thinking.
`;
}
if (p.includes('interview question')) {
return `
Here are role-specific interview questions:
Walk me through how you'd design a system to handle 1M concurrent users.
Describe a technically challenging project and the tradeoffs you made.
How do you approach debugging a production incident under time pressure?
Tell me about a time you disagreed with a teammate on an approach.
`;
}
if (p.includes('summar')) {
const c = DB.candidates[0];
return `
Resume summary — ${c.name}
${c.experience} years of experience, currently ${c.currentTitle} at ${c.currentCompany}. Strong in ${c.skills.slice(0, 3).join(', ')}. ATS match ${c.aiScore}% for ${c.jobTitle}. ${c.recommendation}.
`;
}
if (p.includes('email')) {
return `
Subject: Interview Invitation — Next Steps
Hi [Candidate],
Thank you for applying. We were impressed by your background and would love to invite you to an interview. Please share your availability for this week.
Best regards, Talent Team
`;
}
if (p.includes('offer letter')) {
return `
Offer Letter
Dear [Candidate], We are pleased to offer you the position of Product Manager at a base salary of $160,000, plus equity and benefits. This offer is contingent on standard background checks.
We're excited about the possibility of you joining the team.
`;
}
if (p.includes('skill gap')) {
return `
Skill Gap Analysis — Engineering pipeline
Kubernetes under-represented (only 22% of pipeline)
System Design gap at senior level
React well covered
Consider sourcing candidates with cloud-native infra experience.
`;
}
if (p.includes('pipeline')) {
const total = DB.candidates.length;
return `
Pipeline health analysis
${total} active candidates across 6 stages
Conversion Applied → Interview: ~28%
Bottleneck detected at Assessment stage (longest dwell time)
Offer acceptance trending at 82%
Recommendation: accelerate assessment turnaround to improve velocity.
`;
}
if (p.includes('productivity') || p.includes('recruiter')) {
return `
Team productivity this month
Top performer: ${[...DB.recruiters].sort((a, b) => b.hires - a.hires)[0].name}
Avg time-to-hire: 27 days (3 days faster than last month)
Interview completion rate: 91%
`;
}
if (p.includes('recommend') || p.includes('suggest')) {
const c = [...DB.candidates].sort((a, b) => b.aiScore - a.aiScore)[0];
return `
Top recommendation: ${c.name} (${c.aiScore}% match) for ${c.jobTitle}. Strong on ${c.matchedSkills.slice(0, 2).join(' & ')}. I'd prioritise scheduling a screen this week.
`;
}
return `
I can help with ranking candidates, comparing profiles, drafting JDs, interview questions, emails, offer letters, skill-gap and pipeline analysis, and more.
This is a fully-designed interface. Wire an AI endpoint (Claude / OpenAI) into AI.send() to make responses live.