1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sp_intended_usage": "Describe your intended use...",
12 "sp_improvement_suggestions": "Share your suggestions here...",
13 "sp_contact": "Share your email here...",
14 "cvText": `John Smith
15Software Engineer | 5 years experience
16
17Experience:
18- Software Engineer at Acme Corp (2020–present): Built REST APIs with Node.js, led team of 3.
19- Junior Dev at StartupXYZ (2018–2020): Frontend React work, improved page load by 40%.
20
21Skills: JavaScript, TypeScript, Node.js, React, PostgreSQL, Docker
22Education: B.Sc Computer Science, State University 2018`,
23 "jobDescription": `Senior Full-Stack Engineer at TechCorp
24
25We are looking for a Senior Full-Stack Engineer with 5+ years of experience.
26
27Required:
28- 5+ years of software engineering experience
29- Proficiency in TypeScript, Node.js, and React
30- Experience with cloud platforms (AWS, GCP, or Azure)
31- Strong knowledge of SQL and NoSQL databases
32- Experience with CI/CD pipelines and DevOps practices
33
34Nice to have:
35- Kubernetes / Docker experience
36- Experience mentoring junior engineers
37- GraphQL knowledge`,
38 "model": "gpt-4o-mini"
39};
40
41
42const run = await client.actor("jungle_synthesizer/ai-resume-cv-optimizer").call(input);
43
44
45console.log('Results from dataset');
46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47const { items } = await client.dataset(run.defaultDatasetId).listItems();
48items.forEach((item) => {
49 console.dir(item);
50});
51
52