Agentrix212AI commited on
Commit
543af8f
Β·
verified Β·
1 Parent(s): 6c80627

Upload 3 files

Browse files
Workflows/N8N_Workflows/HR_Linkedin_Workflow/HR_Linkedin_Candidate_Finder.json ADDED
@@ -0,0 +1,845 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "HR_Linkedin_Candidate_Finder",
3
+ "nodes": [
4
+ {
5
+ "parameters": {
6
+ "formTitle": "πŸ€– AI HR Assistant - Find Perfect Candidates",
7
+ "formDescription": "Let AI find and analyze the best LinkedIn candidates for your role in Morocco",
8
+ "formFields": {
9
+ "values": [
10
+ {
11
+ "fieldLabel": "Job Title",
12
+ "placeholder": "e.g., Cybersecurity Engineer, Marketing Manager, Software Developer",
13
+ "requiredField": true
14
+ },
15
+ {
16
+ "fieldLabel": "Required Skills",
17
+ "fieldType": "textarea",
18
+ "placeholder": "e.g., Python, React, CISSP, Digital Marketing, AWS (optional)"
19
+ },
20
+ {
21
+ "fieldLabel": "Years of Experience",
22
+ "fieldType": "dropdown",
23
+ "fieldOptions": {
24
+ "values": [
25
+ {
26
+ "option": "Any"
27
+ },
28
+ {
29
+ "option": "1-2 years"
30
+ },
31
+ {
32
+ "option": "3-5 years"
33
+ },
34
+ {
35
+ "option": "5-8 years"
36
+ },
37
+ {
38
+ "option": "8+ years"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "fieldLabel": "Industry Preference",
45
+ "placeholder": "e.g., Technology, Healthcare, Finance, Banking (optional)"
46
+ },
47
+ {
48
+ "fieldLabel": "Location",
49
+ "placeholder": "Morocco, Casablanca, Rabat, etc."
50
+ },
51
+ {
52
+ "fieldLabel": "Number of Profiles to Find",
53
+ "fieldType": "dropdown",
54
+ "fieldOptions": {
55
+ "values": [
56
+ {
57
+ "option": "5"
58
+ },
59
+ {
60
+ "option": "10"
61
+ },
62
+ {
63
+ "option": "15"
64
+ },
65
+ {
66
+ "option": "20"
67
+ }
68
+ ]
69
+ },
70
+ "requiredField": true
71
+ }
72
+ ]
73
+ },
74
+ "options": {}
75
+ },
76
+ "id": "b9dd3cbc-74c1-4c5f-a3e8-0d35c3e33046",
77
+ "name": "HR Job Search Form",
78
+ "type": "n8n-nodes-base.formTrigger",
79
+ "position": [
80
+ 100,
81
+ 240
82
+ ],
83
+ "webhookId": "hr-job-search-mvp",
84
+ "typeVersion": 2.2
85
+ },
86
+ {
87
+ "parameters": {
88
+ "modelId": {
89
+ "__rl": true,
90
+ "mode": "list",
91
+ "value": "gpt-4o-mini"
92
+ },
93
+ "messages": {
94
+ "values": [
95
+ {
96
+ "content": "You are an expert in Boolean search and recruitment keyword generation. When given a job title, you must:\n\n1. Generate comprehensive alternative keywords, synonyms, and related job titles but only in the same field for example (Cybersecurity )\n2. Include industry-specific terms, abbreviations, and certifications\n3. Add seniority level variations (Junior, Senior, Lead, Principal, etc.)\n4. Consider related roles that could fit the same position\n\nEXAMPLE:\nInput: \"Cybersecurity Engineer\"\nOutput should include: \"Cybersecurity Engineer\" OR \"Security Engineer\" OR \"InfoSec Engineer\" OR \"SOC Analyst\" OR \"Security Analyst\" OR \"Penetration Tester\" OR \"Security Architect\" OR \"CISSP\" OR \"Information Security\" OR \"Cyber Security\" OR \"IT Security\" BUT not Risk Analyst \n\nAlways stick as close as you can be to the field of search \n\nYour response must be in this EXACT JSON format:\n{\n \"search_string\": \"site:linkedin.com/in ([comprehensive OR search with all keywords]) (Morocco OR Maroc OR Casablanca OR Rabat)\",\n \"sheet_name\": \"JobTitle_YYYY-MM-DD_HH-MM\",\n \"keywords_generated\": [\"list\", \"of\", \"all\", \"keywords\", \"used\"]\n}\n\nGenerate the most comprehensive search possible to find ALL relevant candidates.",
97
+ "role": "system"
98
+ },
99
+ {
100
+ "content": "=Job Title: {{ $json['Job Title'] }}\nRequired Skills: {{ $json['Required Skills'] || 'Any' }}\nExperience Level: {{ $json['Years of Experience'] || 'Any' }}\nIndustry: {{ $json['Industry Preference'] || 'Any' }}\nLocation: {{ $json['Location'] || 'Morocco' }}\n\nGenerate comprehensive LinkedIn search string with ALL possible alternative keywords and synonyms for this job title."
101
+ }
102
+ ]
103
+ },
104
+ "simplify": false,
105
+ "jsonOutput": true,
106
+ "options": {}
107
+ },
108
+ "id": "5cf1be11-384e-4689-b599-06b2416ce00e",
109
+ "name": "Generate Enhanced Search String",
110
+ "type": "@n8n/n8n-nodes-langchain.openAi",
111
+ "position": [
112
+ 400,
113
+ 240
114
+ ],
115
+ "typeVersion": 1.8,
116
+ "credentials": {
117
+ "openAiApi": {
118
+ "id": "jJ43azhw4WsPfIMK",
119
+ "name": "OpenAi account"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "parameters": {
125
+ "jsCode": "// Calculate how many search pages we need\nconst profilesNeeded = parseInt($('HR Job Search Form').first().json['Number of Profiles to Find']);\nconst resultsPerPage = 10; // Google returns 10 results per page\nconst pagesNeeded = Math.ceil(profilesNeeded / resultsPerPage);\n\n// Create an array of page objects for Split In Batches to iterate over\nconst pages = [];\nfor (let i = 0; i < pagesNeeded; i++) {\n pages.push({\n json: {\n pageNumber: i + 1,\n startIndex: i * resultsPerPage,\n totalPages: pagesNeeded,\n profilesNeeded: profilesNeeded\n }\n });\n}\n\nconsole.log(`Need to fetch ${pagesNeeded} pages to get ${profilesNeeded} profiles`);\nreturn pages;"
126
+ },
127
+ "id": "c55e53af-3d74-4554-bb34-4d8d2cf82b94",
128
+ "name": "Create Page Items",
129
+ "type": "n8n-nodes-base.code",
130
+ "position": [
131
+ 760,
132
+ 240
133
+ ],
134
+ "typeVersion": 2
135
+ },
136
+ {
137
+ "parameters": {
138
+ "options": {}
139
+ },
140
+ "id": "8c85455b-eb5e-4095-8943-ed4981874658",
141
+ "name": "Split In Batches",
142
+ "type": "n8n-nodes-base.splitInBatches",
143
+ "position": [
144
+ 940,
145
+ 420
146
+ ],
147
+ "typeVersion": 3
148
+ },
149
+ {
150
+ "parameters": {
151
+ "url": "https://www.googleapis.com/customsearch/v1",
152
+ "authentication": "genericCredentialType",
153
+ "genericAuthType": "httpHeaderAuth",
154
+ "sendQuery": true,
155
+ "queryParameters": {
156
+ "parameters": [
157
+ {
158
+ "name": "cx",
159
+ "value": "a5563873d4aad4c46"
160
+ },
161
+ {
162
+ "name": "q",
163
+ "value": "={{ $('Generate Enhanced Search String').first().json.choices[0].message.content.search_string }}"
164
+ },
165
+ {
166
+ "name": "start",
167
+ "value": "={{ $json.startIndex + 1 }}"
168
+ },
169
+ {
170
+ "name": "gl",
171
+ "value": "ma"
172
+ },
173
+ {
174
+ "name": "cr",
175
+ "value": "countryMA"
176
+ }
177
+ ]
178
+ },
179
+ "options": {}
180
+ },
181
+ "id": "7bac956e-cf7d-4388-abff-be72f83123ec",
182
+ "name": "Google Custom Search",
183
+ "type": "n8n-nodes-base.httpRequest",
184
+ "position": [
185
+ 1380,
186
+ 520
187
+ ],
188
+ "typeVersion": 4.2,
189
+ "credentials": {
190
+ "httpHeaderAuth": {
191
+ "id": "m8uhxFfX4rvbDniC",
192
+ "name": "Google Custom Search"
193
+ }
194
+ }
195
+ },
196
+ {
197
+ "parameters": {
198
+ "jsCode": "// Extract LinkedIn URLs from Google Custom Search API response\nconst response = $input.first().json;\nconst pageInfo = $('Split In Batches').item.json;\n\nif (!response.items || !Array.isArray(response.items)) {\n console.log(`Page ${pageInfo.pageNumber}: No search results found`);\n return [];\n}\n\nconst linkedInProfiles = response.items\n .filter(item => {\n return item.link && \n item.link.includes('linkedin.com/in/') &&\n !item.link.includes('google.com');\n })\n .map(item => {\n let url = item.link.split(/[?#]/)[0];\n url = url.replace(/\\/$/, '');\n \n return {\n json: {\n linkedin_url: url,\n page_number: pageInfo.pageNumber\n }\n };\n });\n\nconsole.log(`Page ${pageInfo.pageNumber}: Found ${linkedInProfiles.length} LinkedIn profiles`);\nreturn linkedInProfiles;"
199
+ },
200
+ "id": "dd37dec6-03c0-4b00-bcca-c1803ff480b4",
201
+ "name": "Extract LinkedIn URLs",
202
+ "type": "n8n-nodes-base.code",
203
+ "position": [
204
+ 1660,
205
+ 520
206
+ ],
207
+ "typeVersion": 2
208
+ },
209
+ {
210
+ "parameters": {
211
+ "amount": 2
212
+ },
213
+ "id": "e641d961-dbce-4ef9-bce8-29b6a0ea8e31",
214
+ "name": "Wait 2s (Rate Limit)",
215
+ "type": "n8n-nodes-base.wait",
216
+ "position": [
217
+ 1920,
218
+ 520
219
+ ],
220
+ "webhookId": "wait-rate-limit",
221
+ "typeVersion": 1.1
222
+ },
223
+ {
224
+ "parameters": {
225
+ "jsCode": "// Collect all unique LinkedIn URLs from all pages\nconst allItems = $input.all();\nconst uniqueUrls = new Map();\n\n// Deduplicate URLs\nallItems.forEach(item => {\n if (item.json.linkedin_url) {\n uniqueUrls.set(item.json.linkedin_url, item.json.linkedin_url);\n }\n});\n\nconst urlArray = Array.from(uniqueUrls.values());\nconsole.log(`Collected ${urlArray.length} unique LinkedIn URLs total`);\n\n// Prepare for APIFY\nreturn [{\n json: {\n profileUrls: urlArray,\n totalUrls: urlArray.length\n }\n}];"
226
+ },
227
+ "id": "ec4764fb-71f3-4c48-afd1-f9f3e5c74bdb",
228
+ "name": "Prepare APIFY Input",
229
+ "type": "n8n-nodes-base.code",
230
+ "position": [
231
+ 1120,
232
+ 200
233
+ ],
234
+ "typeVersion": 2
235
+ },
236
+ {
237
+ "parameters": {
238
+ "jsCode": "// Process APIFY LinkedIn data\nconst items = [];\n\n// Get all items from the previous node - they come as individual JSON objects\nconst profiles = $items().map(item => item.json);\n\nconsole.log(`Processing ${profiles.length} profiles from APIFY`);\n\nprofiles.forEach(profile => {\n if (!profile) return;\n \n // Extract skills from the complex structure\n let skillsList = '';\n if (profile.skills && Array.isArray(profile.skills)) {\n skillsList = profile.skills\n .map(skill => skill.title || '')\n .filter(title => title.length > 0)\n .slice(0, 10) // Limit to first 10 skills\n .join(', ');\n }\n \n // Extract education information\n let educationList = '';\n if (profile.educations && Array.isArray(profile.educations)) {\n educationList = profile.educations\n .map(edu => {\n const parts = [];\n if (edu.title) parts.push(edu.title);\n if (edu.subtitle) parts.push(edu.subtitle);\n if (edu.caption) parts.push(`(${edu.caption})`);\n return parts.join(' - ');\n })\n .filter(edu => edu.length > 0)\n .join('; ');\n }\n \n // Extract certifications\n let certifications = '';\n if (profile.licenseAndCertificates && Array.isArray(profile.licenseAndCertificates)) {\n certifications = profile.licenseAndCertificates\n .map(cert => cert.title || '')\n .filter(title => title.length > 0)\n .join(', ');\n }\n \n const processedProfile = {\n linkedin_url: profile.linkedinUrl || '',\n full_name: profile.fullName || profile.firstName + ' ' + profile.lastName || '',\n headline: profile.headline || '',\n email: profile.email || 'Not provided',\n current_job_title: profile.jobTitle || '',\n current_company: profile.companyName || 'Not specified',\n company_industry: profile.companyIndustry || 'Not specified',\n experience_years: profile.currentJobDurationInYrs || 0,\n location: profile.addressWithCountry || profile.addressCountryOnly || '',\n skills: skillsList || 'Not listed',\n education: educationList || 'Not provided',\n about_summary: (profile.about || '').substring(0, 500) || 'No summary available',\n connections: profile.connections || 0,\n certifications: certifications || 'None listed'\n };\n \n items.push({ json: processedProfile });\n});\n\nconsole.log(`Successfully processed ${items.length} LinkedIn profiles`);\nreturn items;"
239
+ },
240
+ "id": "798c893a-d023-46e3-855e-84604fbdb7c7",
241
+ "name": "Process LinkedIn Data",
242
+ "type": "n8n-nodes-base.code",
243
+ "position": [
244
+ 1940,
245
+ 60
246
+ ],
247
+ "typeVersion": 2
248
+ },
249
+ {
250
+ "parameters": {
251
+ "modelId": {
252
+ "__rl": true,
253
+ "value": "gpt-4o-mini",
254
+ "mode": "list",
255
+ "cachedResultName": "GPT-4O-MINI"
256
+ },
257
+ "messages": {
258
+ "values": [
259
+ {
260
+ "content": "=You are an expert HR recruiter analyzing LinkedIn profiles for job fit in Morocco. \n\n**JOB REQUIREMENTS:**\nJob Title: {{ $('HR Job Search Form').first().json['Job Title'] }}\nRequired Skills: {{ $('HR Job Search Form').first().json['Required Skills'] || 'Any' }}\nExperience Level: {{ $('HR Job Search Form').first().json['Years of Experience'] || 'Any' }}\nIndustry: {{ $('HR Job Search Form').first().json['Industry Preference'] || 'Any' }}\nLocation: {{ $('HR Job Search Form').first().json['Location'] || 'Morocco' }}\n\n**Keywords Generated:** {{ $('Generate Enhanced Search String').first().json.choices[0].message.content.keywords_generated.join(', ') }}\n\n**SCORING CRITERIA:**\n- Experience Match (1-10): Relevance of work history and years\n- Skills Match (1-10): Alignment of technical/professional skills \n- Education Match (1-10): Relevant education and certifications\n- Location Fit (1-10): Geographic preference and availability\n- Overall Fit (1-100): Comprehensive assessment\n\n**RESPOND IN THIS EXACT JSON FORMAT:**\n{\n\n\"linkedin_url\": \"https://ma.linkedin.com/in/mohamed-amineel-fakiri/en\",\n\"full_name\": \"MOHAMED-AMINE EL-FAKIRI\",\n\"headline \": \"SOC Analyst @DATAPROTECT | Speaker | Founder & Head of SOC4M Community | Qradar | ELK | LogRhythm | Security+ | BTL1 | CCTH | SOCRadar | DFIR\",\n\"email\": \"[email protected]\",\n\"current_job_title\": \"SOC Analyst\",\n\"current_company\" : \"Orange Cyberdefense\"\n\"company_industry\": \"Computer & Network Security\",\n\"experience_years\" : 2.67\n\"location\": \"Casablanca-Settat, Morocco\",\n\"skills\": \"Discover, Visualizations, Dashboards, Stack Overview, Security App, Hunt Capstone, Data modeling, Search, Aggregations, Data processing \",\n\"education\": \"SUPEMIR - Licence Professionnelle , RΓ©seaux et CybersΓ©curitΓ©, Option Administration des SystΓ¨mes et Cloud Computing - (Sep 2024 - Jun 2025); CitΓ©s des MΓ©tiers et des CompΓ©tences - Technicien spΓ©cialisΓ© , Infrastructure Digitale option SystΓ¨mes et RΓ©seaux - (Sep 2022 - Jul 2024)\",\n\"about_summary \": \"--> I am a SOC Analyst at DATAPROTECT, the cybersecurity leader in Morocco and Africa.\\nI contribute to the continuous monitoring of information systems, alert triage, threat detection, as well as the qualification, analysis, and investigation of security incidents.\\n\\n--> I also hold a Bachelor's degree in Networks & Cybersecurity from SUPEMIR, allowing me to deepen my skills and stay aligned with the latest industry challenges.\\n\\n--> Passionate about digital security, I'm always open to discussion\",\n \"overall_fit_score\": 85,\n \"experience_match\": 9,\n \"skills_match\": 8,\n \"education_match\": 7,\n \"location_fit\": 10,\n \"ai_recommendation\": \"Highly Recommended\",\n \"key_strengths\": \"Strong technical background, 5+ years experience\",\n \"potential_concerns\": \"May need training in specific framework\",\n \"interview_questions\": \"Tell me about your experience with X; How do you approach Y?\"\n}\n\nRecommendations: Highly Recommended (80+), Recommended (60-79), Consider (40-59), Not Recommended (<40)",
261
+ "role": "system"
262
+ },
263
+ {
264
+ "content": "=**CANDIDATE PROFILE:**\nLinkedin : {{ $json.linkedin_url }}\nName: {{ $json.full_name }}\nHeadline: {{ $json.headline }}\nCurrent Role: {{ $json.current_job_title }} at {{ $json.current_company }}\nIndustry: {{ $json.company_industry }}\nExperience: {{ $json.experience_years }} years\nLocation: {{ $json.location }}\nSkills: {{ $json.skills }}\nEducation: {{ $json.education }}\nAbout: {{ $json.about_summary }}\n\nAnalyze this candidate's fit for the job requirements."
265
+ }
266
+ ]
267
+ },
268
+ "simplify": false,
269
+ "jsonOutput": true,
270
+ "options": {}
271
+ },
272
+ "id": "b437b0a6-5e58-4f92-a11d-175f69c2ea64",
273
+ "name": "AI Candidate Analysis",
274
+ "type": "@n8n/n8n-nodes-langchain.openAi",
275
+ "position": [
276
+ 2160,
277
+ 60
278
+ ],
279
+ "typeVersion": 1.8,
280
+ "credentials": {
281
+ "openAiApi": {
282
+ "id": "jJ43azhw4WsPfIMK",
283
+ "name": "OpenAi account"
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "parameters": {
289
+ "operation": "append",
290
+ "documentId": {
291
+ "__rl": true,
292
+ "value": "1GTG76Em0WJRsPXJBjkFAECZ0vdLrtDGu7Rqdvz4wlIQ",
293
+ "mode": "list",
294
+ "cachedResultName": "Linkedin",
295
+ "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1GTG76Em0WJRsPXJBjkFAECZ0vdLrtDGu7Rqdvz4wlIQ/edit?usp=drivesdk"
296
+ },
297
+ "sheetName": {
298
+ "__rl": true,
299
+ "value": 736098385,
300
+ "mode": "list",
301
+ "cachedResultName": "Linkedin",
302
+ "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1GTG76Em0WJRsPXJBjkFAECZ0vdLrtDGu7Rqdvz4wlIQ/edit#gid=736098385"
303
+ },
304
+ "columns": {
305
+ "mappingMode": "defineBelow",
306
+ "value": {
307
+ "linkedin_url": "={{ $json.choices[0].message.content.linkedin_url }}",
308
+ "full_name": "={{ $json.choices[0].message.content.full_name }}",
309
+ "headline": "={{ $json.choices[0].message.content[\"headline \"] }}",
310
+ "email": "={{ $json.choices[0].message.content.email }}",
311
+ "current_job_title": "={{ $json.choices[0].message.content.current_job_title }}",
312
+ "current_company": "={{ $json.choices[0].message.content.current_company }}",
313
+ "company_industry": "={{ $json.choices[0].message.content.company_industry }}",
314
+ "experience_years": "={{ $json.choices[0].message.content.experience_years }}",
315
+ "location": "={{ $json.choices[0].message.content.location }}",
316
+ "skills": "={{ $json.choices[0].message.content.skills }}",
317
+ "education": "={{ $json.choices[0].message.content.education }}",
318
+ "about_summary": "={{ $json.choices[0].message.content.about_summary }}",
319
+ "overall_fit_score": "={{ $json.choices[0].message.content.overall_fit_score }}",
320
+ "experience_match": "={{ $json.choices[0].message.content.experience_match }}",
321
+ "skills_match": "={{ $json.choices[0].message.content.skills_match }}",
322
+ "education_match": "={{ $json.choices[0].message.content.education_match }}",
323
+ "location_fit": "={{ $json.choices[0].message.content.location_fit }}",
324
+ "ai_recommendation": "={{ $json.choices[0].message.content.ai_recommendation }}",
325
+ "key_strengths": "={{ $json.choices[0].message.content.key_strengths }}",
326
+ "potential_concerns": "={{ $json.choices[0].message.content.potential_concerns }}",
327
+ "interview_questions": "={{ $json.choices[0].message.content.interview_questions }}"
328
+ },
329
+ "matchingColumns": [],
330
+ "schema": [
331
+ {
332
+ "id": "linkedin_url",
333
+ "displayName": "linkedin_url",
334
+ "required": false,
335
+ "defaultMatch": false,
336
+ "display": true,
337
+ "type": "string",
338
+ "canBeUsedToMatch": true,
339
+ "removed": false
340
+ },
341
+ {
342
+ "id": "full_name",
343
+ "displayName": "full_name",
344
+ "required": false,
345
+ "defaultMatch": false,
346
+ "display": true,
347
+ "type": "string",
348
+ "canBeUsedToMatch": true,
349
+ "removed": false
350
+ },
351
+ {
352
+ "id": "headline",
353
+ "displayName": "headline",
354
+ "required": false,
355
+ "defaultMatch": false,
356
+ "display": true,
357
+ "type": "string",
358
+ "canBeUsedToMatch": true,
359
+ "removed": false
360
+ },
361
+ {
362
+ "id": "email",
363
+ "displayName": "email",
364
+ "required": false,
365
+ "defaultMatch": false,
366
+ "display": true,
367
+ "type": "string",
368
+ "canBeUsedToMatch": true,
369
+ "removed": false
370
+ },
371
+ {
372
+ "id": "current_job_title",
373
+ "displayName": "current_job_title",
374
+ "required": false,
375
+ "defaultMatch": false,
376
+ "display": true,
377
+ "type": "string",
378
+ "canBeUsedToMatch": true,
379
+ "removed": false
380
+ },
381
+ {
382
+ "id": "current_company",
383
+ "displayName": "current_company",
384
+ "required": false,
385
+ "defaultMatch": false,
386
+ "display": true,
387
+ "type": "string",
388
+ "canBeUsedToMatch": true,
389
+ "removed": false
390
+ },
391
+ {
392
+ "id": "company_industry",
393
+ "displayName": "company_industry",
394
+ "required": false,
395
+ "defaultMatch": false,
396
+ "display": true,
397
+ "type": "string",
398
+ "canBeUsedToMatch": true,
399
+ "removed": false
400
+ },
401
+ {
402
+ "id": "experience_years",
403
+ "displayName": "experience_years",
404
+ "required": false,
405
+ "defaultMatch": false,
406
+ "display": true,
407
+ "type": "string",
408
+ "canBeUsedToMatch": true,
409
+ "removed": false
410
+ },
411
+ {
412
+ "id": "location",
413
+ "displayName": "location",
414
+ "required": false,
415
+ "defaultMatch": false,
416
+ "display": true,
417
+ "type": "string",
418
+ "canBeUsedToMatch": true,
419
+ "removed": false
420
+ },
421
+ {
422
+ "id": "skills",
423
+ "displayName": "skills",
424
+ "required": false,
425
+ "defaultMatch": false,
426
+ "display": true,
427
+ "type": "string",
428
+ "canBeUsedToMatch": true,
429
+ "removed": false
430
+ },
431
+ {
432
+ "id": "education",
433
+ "displayName": "education",
434
+ "required": false,
435
+ "defaultMatch": false,
436
+ "display": true,
437
+ "type": "string",
438
+ "canBeUsedToMatch": true,
439
+ "removed": false
440
+ },
441
+ {
442
+ "id": "about_summary",
443
+ "displayName": "about_summary",
444
+ "required": false,
445
+ "defaultMatch": false,
446
+ "display": true,
447
+ "type": "string",
448
+ "canBeUsedToMatch": true,
449
+ "removed": false
450
+ },
451
+ {
452
+ "id": "overall_fit_score",
453
+ "displayName": "overall_fit_score",
454
+ "required": false,
455
+ "defaultMatch": false,
456
+ "display": true,
457
+ "type": "string",
458
+ "canBeUsedToMatch": true,
459
+ "removed": false
460
+ },
461
+ {
462
+ "id": "experience_match",
463
+ "displayName": "experience_match",
464
+ "required": false,
465
+ "defaultMatch": false,
466
+ "display": true,
467
+ "type": "string",
468
+ "canBeUsedToMatch": true,
469
+ "removed": false
470
+ },
471
+ {
472
+ "id": "skills_match",
473
+ "displayName": "skills_match",
474
+ "required": false,
475
+ "defaultMatch": false,
476
+ "display": true,
477
+ "type": "string",
478
+ "canBeUsedToMatch": true,
479
+ "removed": false
480
+ },
481
+ {
482
+ "id": "education_match",
483
+ "displayName": "education_match",
484
+ "required": false,
485
+ "defaultMatch": false,
486
+ "display": true,
487
+ "type": "string",
488
+ "canBeUsedToMatch": true,
489
+ "removed": false
490
+ },
491
+ {
492
+ "id": "location_fit",
493
+ "displayName": "location_fit",
494
+ "required": false,
495
+ "defaultMatch": false,
496
+ "display": true,
497
+ "type": "string",
498
+ "canBeUsedToMatch": true,
499
+ "removed": false
500
+ },
501
+ {
502
+ "id": "ai_recommendation",
503
+ "displayName": "ai_recommendation",
504
+ "required": false,
505
+ "defaultMatch": false,
506
+ "display": true,
507
+ "type": "string",
508
+ "canBeUsedToMatch": true,
509
+ "removed": false
510
+ },
511
+ {
512
+ "id": "key_strengths",
513
+ "displayName": "key_strengths",
514
+ "required": false,
515
+ "defaultMatch": false,
516
+ "display": true,
517
+ "type": "string",
518
+ "canBeUsedToMatch": true,
519
+ "removed": false
520
+ },
521
+ {
522
+ "id": "potential_concerns",
523
+ "displayName": "potential_concerns",
524
+ "required": false,
525
+ "defaultMatch": false,
526
+ "display": true,
527
+ "type": "string",
528
+ "canBeUsedToMatch": true,
529
+ "removed": false
530
+ },
531
+ {
532
+ "id": "interview_questions",
533
+ "displayName": "interview_questions",
534
+ "required": false,
535
+ "defaultMatch": false,
536
+ "display": true,
537
+ "type": "string",
538
+ "canBeUsedToMatch": true,
539
+ "removed": false
540
+ }
541
+ ],
542
+ "attemptToConvertTypes": false,
543
+ "convertFieldsToString": false
544
+ },
545
+ "options": {}
546
+ },
547
+ "id": "dda3f8f9-d8eb-4510-8d40-54c7e05f40b1",
548
+ "name": "Save to Google Sheet",
549
+ "type": "n8n-nodes-base.googleSheets",
550
+ "position": [
551
+ 2540,
552
+ 60
553
+ ],
554
+ "typeVersion": 4.5,
555
+ "credentials": {
556
+ "googleSheetsOAuth2Api": {
557
+ "id": "03CEMaGPaZ8zhwpp",
558
+ "name": "Google Sheets account"
559
+ }
560
+ }
561
+ },
562
+ {
563
+ "parameters": {
564
+ "operation": "Run actor",
565
+ "actorId": {
566
+ "__rl": true,
567
+ "value": "2SyF0bVxmgGr8IVCZ",
568
+ "mode": "list",
569
+ "cachedResultName": "✨Mass Linkedin Profile Scraper with Email πŸ“§ (No Cookies)",
570
+ "cachedResultUrl": "https://console.apify.com/actors/2SyF0bVxmgGr8IVCZ/input"
571
+ },
572
+ "customBody": "={{ JSON.stringify($json) }}",
573
+ "waitForFinish": 60,
574
+ "authentication": "apifyOAuth2Api"
575
+ },
576
+ "type": "@apify/n8n-nodes-apify.apify",
577
+ "typeVersion": 1,
578
+ "position": [
579
+ 1360,
580
+ 200
581
+ ],
582
+ "id": "236a74b0-3d83-4b89-8773-5bd4a762e40b",
583
+ "name": "Run an Actor",
584
+ "credentials": {
585
+ "apifyOAuth2Api": {
586
+ "id": "UNRHKVgdpVz9rVTs",
587
+ "name": "Apify account"
588
+ }
589
+ }
590
+ },
591
+ {
592
+ "parameters": {
593
+ "url": "=https://api.apify.com/v2/actor-runs/{{ $json.id }}/dataset/items",
594
+ "authentication": "predefinedCredentialType",
595
+ "nodeCredentialType": "apifyOAuth2Api",
596
+ "options": {}
597
+ },
598
+ "id": "513fd071-2b4d-42c2-9988-f311047af92f",
599
+ "name": "Get APIFY Results",
600
+ "type": "n8n-nodes-base.httpRequest",
601
+ "position": [
602
+ 1660,
603
+ 60
604
+ ],
605
+ "typeVersion": 4.2,
606
+ "credentials": {
607
+ "apifyOAuth2Api": {
608
+ "id": "UNRHKVgdpVz9rVTs",
609
+ "name": "Apify account"
610
+ }
611
+ }
612
+ },
613
+ {
614
+ "parameters": {
615
+ "content": "## πŸ€– OpenAI Setup Required\n**What it does:** Generates Boolean search strings\n\n**Setup:**\n1. Get API Key from https://platform.openai.com/api-keys\n2. Add to n8n credentials as \"OpenAI account\"\n3. Uses GPT-4o-mini model",
616
+ "height": 200,
617
+ "width": 400,
618
+ "color": 7
619
+ },
620
+ "id": "b8f3117e-84ee-490e-bbc4-6e2170ff4026",
621
+ "name": "Sticky Note - OpenAI Setup",
622
+ "type": "n8n-nodes-base.stickyNote",
623
+ "position": [
624
+ 300,
625
+ 0
626
+ ],
627
+ "typeVersion": 1
628
+ },
629
+ {
630
+ "parameters": {
631
+ "content": "## πŸ” Google Custom Search Setup\n**What it does:** Searches for LinkedIn profiles\n\n**Setup Required:**\n1. **Create Search Engine:**\n - Go to https://programmablesearchengine.google.com/\n - Click \"Add\" β†’ Set to search entire web\n - Copy Search Engine ID (cx parameter)\n\n2. **Get API Key:**\n - Go to https://console.cloud.google.com/\n - Enable \"Custom Search API\"\n - Create credentials β†’ API Key\n - Add as HTTP Header Auth with header name \"key\"",
632
+ "height": 380,
633
+ "width": 500,
634
+ "color": 6
635
+ },
636
+ "id": "84e671a0-27ed-4632-a68d-dce7241e40e5",
637
+ "name": "Sticky Note - Google Custom Search",
638
+ "type": "n8n-nodes-base.stickyNote",
639
+ "position": [
640
+ 1220,
641
+ 740
642
+ ],
643
+ "typeVersion": 1
644
+ },
645
+ {
646
+ "parameters": {
647
+ "content": "## πŸ•·οΈ APIFY Setup\n**What it does:** Scrapes detailed LinkedIn profiles\n\n**Setup:**\n1. Create account at https://apify.com/\n2. Get API Token from Settings β†’ Integrations\n3. Find \"Mass LinkedIn Profile Scraper with Email\"\n4. Add APIFY OAuth2 credentials in n8n\n5. Actor waits up to 60 seconds for completion",
648
+ "height": 320,
649
+ "width": 500,
650
+ "color": 3
651
+ },
652
+ "id": "4030ed7b-53fa-41dc-bd11-365fad797985",
653
+ "name": "Sticky Note - APIFY Setup",
654
+ "type": "n8n-nodes-base.stickyNote",
655
+ "position": [
656
+ 1180,
657
+ -160
658
+ ],
659
+ "typeVersion": 1
660
+ },
661
+ {
662
+ "parameters": {
663
+ "content": "## πŸ“Š Google Sheets Setup\n**What it does:** Saves analyzed candidates\n\n**Setup:**\n1. Create/use existing Google Sheet\n2. Connect Google account in n8n\n3. Select your spreadsheet\n4. Ensure sheet has all required columns\n5. Data appends to existing records",
664
+ "height": 260,
665
+ "width": 500
666
+ },
667
+ "id": "99c8a9c3-8a40-4bc8-8054-797ec8bab850",
668
+ "name": "Sticky Note - Google Sheets Setup",
669
+ "type": "n8n-nodes-base.stickyNote",
670
+ "position": [
671
+ 2440,
672
+ 220
673
+ ],
674
+ "typeVersion": 1
675
+ },
676
+ {
677
+ "parameters": {
678
+ "content": "## πŸš€ LinkedIn HR Assistant Workflow\n\n**Overview:**\nThis workflow automates LinkedIn candidate search and analysis for HR managers in Morocco.\n\n**Flow:**\n1. HR fills form with job requirements\n2. AI generates comprehensive search keywords\n3. Google searches LinkedIn profiles\n4. APIFY scrapes detailed profile data\n5. AI analyzes candidate fit\n6. Results saved to Google Sheet\n\n**Features:**\n- Smart keyword expansion\n- Morocco-focused search\n- Email extraction\n- AI-powered scoring\n- Automated recommendations\n\n**Rate Limits:**\n- 2-second delay between searches\n- Processes up to 20 profiles per run",
679
+ "height": 600,
680
+ "width": 400,
681
+ "color": 6
682
+ },
683
+ "id": "94a85e8a-3de4-42ea-8c06-cec4e8182f93",
684
+ "name": "Sticky Note - Workflow Overview",
685
+ "type": "n8n-nodes-base.stickyNote",
686
+ "position": [
687
+ -240,
688
+ -40
689
+ ],
690
+ "typeVersion": 1
691
+ }
692
+ ],
693
+ "pinData": {},
694
+ "connections": {
695
+ "HR Job Search Form": {
696
+ "main": [
697
+ [
698
+ {
699
+ "node": "Generate Enhanced Search String",
700
+ "type": "main",
701
+ "index": 0
702
+ }
703
+ ]
704
+ ]
705
+ },
706
+ "Generate Enhanced Search String": {
707
+ "main": [
708
+ [
709
+ {
710
+ "node": "Create Page Items",
711
+ "type": "main",
712
+ "index": 0
713
+ }
714
+ ]
715
+ ]
716
+ },
717
+ "Create Page Items": {
718
+ "main": [
719
+ [
720
+ {
721
+ "node": "Split In Batches",
722
+ "type": "main",
723
+ "index": 0
724
+ }
725
+ ]
726
+ ]
727
+ },
728
+ "Split In Batches": {
729
+ "main": [
730
+ [
731
+ {
732
+ "node": "Prepare APIFY Input",
733
+ "type": "main",
734
+ "index": 0
735
+ }
736
+ ],
737
+ [
738
+ {
739
+ "node": "Google Custom Search",
740
+ "type": "main",
741
+ "index": 0
742
+ }
743
+ ]
744
+ ]
745
+ },
746
+ "Google Custom Search": {
747
+ "main": [
748
+ [
749
+ {
750
+ "node": "Extract LinkedIn URLs",
751
+ "type": "main",
752
+ "index": 0
753
+ }
754
+ ]
755
+ ]
756
+ },
757
+ "Extract LinkedIn URLs": {
758
+ "main": [
759
+ [
760
+ {
761
+ "node": "Wait 2s (Rate Limit)",
762
+ "type": "main",
763
+ "index": 0
764
+ }
765
+ ]
766
+ ]
767
+ },
768
+ "Wait 2s (Rate Limit)": {
769
+ "main": [
770
+ [
771
+ {
772
+ "node": "Split In Batches",
773
+ "type": "main",
774
+ "index": 0
775
+ }
776
+ ]
777
+ ]
778
+ },
779
+ "Prepare APIFY Input": {
780
+ "main": [
781
+ [
782
+ {
783
+ "node": "Run an Actor",
784
+ "type": "main",
785
+ "index": 0
786
+ }
787
+ ]
788
+ ]
789
+ },
790
+ "Process LinkedIn Data": {
791
+ "main": [
792
+ [
793
+ {
794
+ "node": "AI Candidate Analysis",
795
+ "type": "main",
796
+ "index": 0
797
+ }
798
+ ]
799
+ ]
800
+ },
801
+ "AI Candidate Analysis": {
802
+ "main": [
803
+ [
804
+ {
805
+ "node": "Save to Google Sheet",
806
+ "type": "main",
807
+ "index": 0
808
+ }
809
+ ]
810
+ ]
811
+ },
812
+ "Run an Actor": {
813
+ "main": [
814
+ [
815
+ {
816
+ "node": "Get APIFY Results",
817
+ "type": "main",
818
+ "index": 0
819
+ }
820
+ ]
821
+ ]
822
+ },
823
+ "Get APIFY Results": {
824
+ "main": [
825
+ [
826
+ {
827
+ "node": "Process LinkedIn Data",
828
+ "type": "main",
829
+ "index": 0
830
+ }
831
+ ]
832
+ ]
833
+ }
834
+ },
835
+ "active": false,
836
+ "settings": {
837
+ "executionOrder": "v1"
838
+ },
839
+ "versionId": "9ed25d94-8a99-4911-9c71-9e190d63d694",
840
+ "meta": {
841
+ "instanceId": "cc8fbc6c0e10ac107523cabe2453f0b9216ff0ef0c1f112312039de381e2f175"
842
+ },
843
+ "id": "IefwcvC3ephB6Paj",
844
+ "tags": []
845
+ }
Workflows/N8N_Workflows/HR_Linkedin_Workflow/Linkedin_Profile_Templates.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ linkedin_url,full_name,headline,email,current_job_title,current_company,company_industry,experience_years,location,skills,education,about_summary,overall_fit_score,experience_match,skills_match,education_match,location_fit,ai_recommendation,key_strengths,potential_concerns,interview_questions
Workflows/N8N_Workflows/HR_Linkedin_Workflow/linkedin-scraper-tutorial.md ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # πŸš€ LinkedIn HR Assistant - Complete Setup Tutorial
2
+
3
+ ## Overview
4
+ This n8n workflow automates LinkedIn candidate search and analysis for HR managers. It finds profiles based on job requirements, analyzes them with AI, and saves results to Google Sheets.
5
+
6
+ ### What You'll Need:
7
+ - n8n instance (self-hosted or cloud)
8
+ - Google account
9
+ - OpenAI account
10
+ - APIFY account (provides $5 free credit)
11
+ - About 30 minutes for setup
12
+
13
+ ---
14
+
15
+ ## πŸ“₯ Step 1: Install n8n
16
+
17
+ ### Option A: Cloud Version (Easiest)
18
+ 1. Go to [https://n8n.partnerlinks.io/5usz6npozak4](https://n8n.partnerlinks.io/5usz6npozak4)
19
+ 2. Click "Start for free"
20
+ 3. Create your account
21
+ 4. You'll get a hosted n8n instance ready to use
22
+
23
+ ### Option B: Self-Hosted
24
+ ```bash
25
+ # Using npm
26
+ npm install n8n -g
27
+ n8n start
28
+
29
+ # Using Docker
30
+ docker run -it --rm \
31
+ --name n8n \
32
+ -p 5678:5678 \
33
+ -v ~/.n8n:/home/node/.n8n \
34
+ n8nio/n8n
35
+ ```
36
+
37
+ Access n8n at: `http://localhost:5678`
38
+
39
+ ---
40
+
41
+ ## πŸ“‹ Step 2: Import the Workflow
42
+
43
+ 1. Copy the workflow JSON file (provided separately)
44
+ 2. In n8n, click the menu (three lines) in the top-left
45
+ 3. Select "Workflows" β†’ "Import from File" or "Import from URL"
46
+ 4. Paste the JSON content or upload the file
47
+ 5. Click "Import"
48
+
49
+ The workflow will appear with all nodes and sticky notes ready for configuration.
50
+
51
+ ---
52
+
53
+ ## πŸ”‘ Step 3: Set Up API Credentials
54
+
55
+ ### 3.1 OpenAI API Key
56
+
57
+ **Purpose:** Powers the AI to generate search keywords and analyze candidates
58
+
59
+ 1. Go to [https://platform.openai.com/](https://platform.openai.com/)
60
+ 2. Sign up or log in
61
+ 3. Navigate to [https://platform.openai.com/api-keys](https://platform.openai.com/api-keys)
62
+ 4. Click "Create new secret key"
63
+ 5. Name it (e.g., "n8n LinkedIn Assistant")
64
+ 6. Copy the key immediately (you won't see it again!)
65
+
66
+ **Add to n8n:**
67
+ 1. In the workflow, click on any OpenAI node
68
+ 2. Click on "Credentials" dropdown
69
+ 3. Select "Create New"
70
+ 4. Paste your API key
71
+ 5. Name it "OpenAI account"
72
+ 6. Click "Save"
73
+
74
+ ---
75
+
76
+ ### 3.2 Google Custom Search API
77
+
78
+ **Purpose:** Searches Google for LinkedIn profiles
79
+
80
+ #### Part A: Create Custom Search Engine
81
+ 1. Go to [https://programmablesearchengine.google.com/](https://programmablesearchengine.google.com/)
82
+ 2. Click "Add" or "Get started"
83
+ 3. Configure your search engine:
84
+ - **Search the entire web:** Toggle ON
85
+ - **Name:** "LinkedIn Profile Search"
86
+ 4. Click "Create"
87
+ 5. Copy your **Search engine ID** (looks like: a5563873d4aad4c46)
88
+ 6. Save this ID - you'll need it!
89
+
90
+ #### Part B: Enable API and Get Key
91
+ 1. Go to [https://console.cloud.google.com/](https://console.cloud.google.com/)
92
+ 2. Create a new project or select existing one
93
+ 3. Click "Enable APIs and Services"
94
+ 4. Search for "Custom Search API"
95
+ 5. Click on it and press "Enable"
96
+ 6. Go to "Credentials" in the left menu
97
+ 7. Click "Create Credentials" β†’ "API Key"
98
+ 8. Copy the API key
99
+
100
+ **Add to n8n:**
101
+ 1. In the workflow, click the "Google Custom Search" node
102
+ 2. In credentials, select "Create New"
103
+ 3. Choose "Header Auth"
104
+ 4. Set:
105
+ - **Name:** "Google Custom Search"
106
+ - **Header Name:** `key`
107
+ - **Header Value:** Your API key
108
+ 5. Click "Save"
109
+ 6. In the node settings, update the `cx` parameter with your Search Engine ID
110
+
111
+ ---
112
+
113
+ ### 3.3 APIFY Account
114
+
115
+ **Purpose:** Scrapes detailed LinkedIn profile information
116
+
117
+ **🎁 Note:** APIFY provides $5 free credit for new accounts - enough for ~500 profile scrapes!
118
+
119
+ 1. Go to [https://apify.com/](https://apify.com/)
120
+ 2. Click "Sign up for free"
121
+ 3. Complete registration
122
+ 4. Go to Settings β†’ Integrations
123
+ 5. Find "Personal API tokens"
124
+ 6. Copy your API token
125
+
126
+ **Find the LinkedIn Scraper:**
127
+ 1. Go to [APIFY Store](https://apify.com/store)
128
+ 2. Search for "Mass LinkedIn Profile Scraper with Email"
129
+ 3. Note the actor ID (shown in the workflow as: 2SyF0bVxmgGr8IVCZ)
130
+
131
+ **Add to n8n:**
132
+ 1. Click the "Run an Actor" node
133
+ 2. In credentials, select "Create New"
134
+ 3. Choose "OAuth2"
135
+ 4. Enter your API token
136
+ 5. Name it "Apify account"
137
+ 6. Click "Save"
138
+
139
+ ---
140
+
141
+ ### 3.4 Google Sheets
142
+
143
+ **Purpose:** Stores the analyzed candidate data
144
+
145
+ 1. Ensure you're logged into your Google account
146
+ 2. Create a new Google Sheet or use existing one
147
+ 3. Name it "LinkedIn Candidates" or similar
148
+
149
+ **Add to n8n:**
150
+ 1. Click the "Save to Google Sheet" node
151
+ 2. In credentials, select "Create New"
152
+ 3. Choose "OAuth2"
153
+ 4. Click "Connect my account"
154
+ 5. Authorize n8n to access Google Sheets
155
+ 6. Select your spreadsheet from the dropdown
156
+ 7. The workflow will create necessary columns automatically
157
+
158
+ ---
159
+
160
+ ## βš™οΈ Step 4: Configure the Workflow
161
+
162
+ ### 4.1 Update Form Webhook URL
163
+ 1. After importing, the form will have a unique webhook URL
164
+ 2. Find it in the "HR Job Search Form" node
165
+ 3. This is where users will access the form
166
+
167
+ ### 4.2 Verify Node Connections
168
+ - All nodes should be connected (green lines)
169
+ - Check that each node has valid credentials (green checkmark)
170
+
171
+ ### 4.3 Test the Workflow
172
+ 1. Click "Execute Workflow" button
173
+ 2. Open the form URL in a browser
174
+ 3. Fill in test data:
175
+ - Job Title: "Software Engineer"
176
+ - Location: "Morocco"
177
+ - Number of Profiles: "5"
178
+ 4. Submit and monitor the execution
179
+
180
+ ---
181
+
182
+ ## 🎯 How to Use the Workflow
183
+
184
+ 1. **Access the Form:** Share the webhook URL with HR team members
185
+ 2. **Fill Job Requirements:**
186
+ - Job title (required)
187
+ - Skills (optional)
188
+ - Experience level
189
+ - Location (defaults to Morocco)
190
+ - Number of profiles (5-20)
191
+ 3. **Submit and Wait:** The workflow will:
192
+ - Generate search keywords
193
+ - Search Google for LinkedIn profiles
194
+ - Scrape detailed information
195
+ - Analyze fit with AI
196
+ - Save to Google Sheets
197
+ 4. **Review Results:** Check the Google Sheet for:
198
+ - Candidate details
199
+ - AI scoring (1-100)
200
+ - Recommendations
201
+ - Interview questions
202
+
203
+ ---
204
+
205
+ ## πŸ’‘ Tips & Best Practices
206
+
207
+ ### Rate Limits
208
+ - Google Custom Search: 100 queries/day (free tier)
209
+ - APIFY: $5 credit β‰ˆ 500 profiles
210
+ - OpenAI: Depends on your plan
211
+ - The workflow includes 2-second delays to respect rate limits
212
+
213
+ ### Optimizing Costs
214
+ - Start with 5-10 profiles per search
215
+ - Use specific job titles for better results
216
+ - Monitor your API usage regularly
217
+
218
+ ### Troubleshooting
219
+ - **No results found:** Check if location is too specific
220
+ - **APIFY timeout:** Increase wait time in node settings
221
+ - **Google Sheets error:** Re-authenticate credentials
222
+ - **API limits:** Check your quotas in respective dashboards
223
+
224
+ ---
225
+
226
+ ## πŸ”’ Security Notes
227
+
228
+ - Never share your API keys publicly
229
+ - The workflow JSON has been cleaned of all personal credentials
230
+ - Each user must add their own API keys
231
+ - Store credentials securely in n8n's credential manager
232
+
233
+ ---
234
+
235
+ ## πŸ“š Additional Resources
236
+
237
+ - [n8n Documentation](https://docs.n8n.io/)
238
+ - [n8n Community Forum](https://community.n8n.io/)
239
+ - [OpenAI Pricing](https://openai.com/pricing)
240
+ - [Google Custom Search Pricing](https://developers.google.com/custom-search/v1/overview)
241
+ - [APIFY Documentation](https://docs.apify.com/)
242
+
243
+ ---
244
+
245
+ ## 🀝 Support
246
+
247
+ If you encounter issues:
248
+ 1. Check the n8n execution logs for errors
249
+ 2. Verify all API credentials are correct
250
+ 3. Ensure you haven't hit rate limits
251
+ 4. Join the n8n community forum for help
252
+
253
+ ---
254
+