Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions app/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function generateResume(resumeInfo: BasicResumeInfo) : Promise<Cust
const result = await streamText({
model,
prompt: message,
system: `You are an AI named quickcv that generates resumes in markdown format with a high ATS score. Only return the resume content in markdown format using the provided data. Do not include any greetings, confirmations, errors, or pleasantries. The output should only be the resume itself.`,
system: `You are an AI named quickcv that generates resumes in markdown format with a high ATS score. Only return the resume content in markdown format using the provided data. Do not include any greetings, confirmations, errors, or pleasantries. The output should only be the resume itself. Also try quantifying the resume with numbers and percentages where possible and if enough data is provided. Use the best verbs and adjectives to describe the person's skills and achievements. The resume should be targeted at the role and company provided in the data. Also try to make use of bullet points and lists where possible. Avoid using any personal pronouns and too much repetition.`
});

const stream = createStreamableValue(result.textStream);
Expand All @@ -93,7 +93,7 @@ function generateResumeInfoMessage(resumeInfo: BasicResumeInfo) : string {
let message = ``
for (const key in resumeInfo) {

if (!resumeInfo[key] || resumeInfo[key] === '') {
if (!resumeInfo[key] || resumeInfo[key]?.toString().trim() === '') {
continue;
}
// if name start with i am or i'm {name}
Expand Down Expand Up @@ -136,6 +136,10 @@ function generateResumeInfoMessage(resumeInfo: BasicResumeInfo) : string {
}
}
}

if (key === 'targetCompany') {
message += `I want this resume to be targeted at me getting a job at ${resumeInfo[key]}. `
}
}
return message;
}
5 changes: 5 additions & 0 deletions helpers/resume-builder/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export const fields: CustomFieldProp[] = [
placeholder: 'Software Engineer',
label: 'Role',
},
{
name: 'targetCompany',
placeholder: 'Google',
label: 'Company (Targeted Company your resume is for)',
},
{
name: 'skills',
placeholder: 'React, Node, TypeScript',
Expand Down