1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "employer_criteria": {
12 "role": "ESL Teacher (Elementary)",
13 "location": "Seoul",
14 "max_salary_krw": 3000000,
15 "must_haves": [
16 "native or near-native English",
17 "in Korea or 30 days"
18 ]
19 },
20 "candidate_answers": {
21 "name": "John Doe",
22 "current_location": "Seoul",
23 "visa_status": "E-2",
24 "years_experience": 3,
25 "age_groups_taught": "elementary, middle school",
26 "why_teaching": "I love helping children learn and grow",
27 "enjoy_about_teaching": "Seeing students progress and gain confidence",
28 "teaching_challenges": "Managing different learning styles - I adapt my approach",
29 "education_background": "Bachelor's in Education, TESOL certified",
30 "previous_locations": "Korea, China",
31 "availability": "Immediate",
32 "salary_expectation_krw": 2800000,
33 "sample_intro": "I use interactive games and activities to make learning fun",
34 "spoken_intro_transcript": "Hello, my name is John and I have three years of experience teaching English to elementary students.",
35 "spoken_intro_audio_base64": ""
36 }
37};
38
39
40const run = await client.actor("seoulcommerce/ai-candidate-screener").call(input);
41
42
43console.log('Results from dataset');
44console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47 console.dir(item);
48});
49
50