Finds a work email for each new lead in your Airtable table, trying Prospeo then Hunter, and writes it onto the row.
Uses
Airtable
Hunter
Prospeo
Find work emails for new Airtable leads with Prospeo and Hunter
baseId to blank.Set baseId to blank.tableName to Leads.Set tableName to Leads.minScore to 90.Set minScore to 90.tableName. Save it as leadsResult.List records in tableName. Save it as leadsResult.records to leadsResult.records.Set records to leadsResult.records.record in records:For each record in records:recStatus to record.fields["Enrichment Status"].Set recStatus to record.fields["Enrichment Status"].recStatus is not enriched and recStatus is not needs_reviewIf recStatus is not enriched and recStatus is not needs_reviewYes
recId to record.id.Set recId to record.id.firstName to record.fields["First Name"].Set firstName to record.fields["First Name"].lastName to record.fields["Last Name"].Set lastName to record.fields["Last Name"].companyName to record.fields.Company.Set companyName to record.fields.Company.companyDomain to record.fields.Domain.Set companyDomain to record.fields.Domain.resolvedEmail to blank.Set resolvedEmail to blank.emailStatus to not_found.Set emailStatus to not_found.emailSource to none.Set emailSource to none.title to record.fields.Title.Set title to record.fields.Title.linkedin to record.fields.LinkedIn.Set linkedin to record.fields.LinkedIn.firstName is yes and lastName is yes and companyDomain is yesIf firstName is yes and lastName is yes and companyDomain is yesYes
prospeo.Enrich a person. Save it as prospeo.prospeoFound to prospeo.found.Set prospeoFound to prospeo.found.prospeoEmail to prospeo.email.Set prospeoEmail to prospeo.email.prospeoStatus to prospeo.email_status.Set prospeoStatus to prospeo.email_status.prospeoFound is yes and prospeoEmail isn't blank and prospeoStatus is…If prospeoFound is yes and prospeoEmail isn't blank and prospeoStatus is…Yes
resolvedEmail to prospeoEmail.Change resolvedEmail to prospeoEmail.emailStatus to prospeoStatus.Change emailStatus to prospeoStatus.emailSource to prospeo.Change emailSource to prospeo.prospeo.job_title, or title if it is empty and save it as title.Use prospeo.job_title, or title if it is empty and save it as title.prospeo.linkedin_url, or linkedin if it is empty and save it as linkedin.Use prospeo.linkedin_url, or linkedin if it is empty and save it as linkedin.No
No steps
resolvedEmail is blankIf resolvedEmail is blankYes
companyDomain lastNames email at firstName. Save it as hunter.Find companyDomain lastNames email at firstName. Save it as hunter.hunterEmail to hunter.email.Set hunterEmail to hunter.email.hunterScore to hunter.score.Set hunterScore to hunter.score.hunterAcceptAll to hunter.accept_all.Set hunterAcceptAll to hunter.accept_all.hunterEmail isn't blank and hunterScore is greater than or equal to minScore…If hunterEmail isn't blank and hunterScore is greater than or equal to minScore…Yes
resolvedEmail to hunterEmail.Change resolvedEmail to hunterEmail.emailStatus to valid.Change emailStatus to valid.emailSource to hunter.Change emailSource to hunter.No
No steps
No
No steps
No
emailStatus to missing_input.Change emailStatus to missing_input.finalStatus to needs_review.Set finalStatus to needs_review.resolvedEmail isn't blankIf resolvedEmail isn't blankYes
finalStatus to enriched.Change finalStatus to enriched.No
No steps
resolvedEmail, or record.fields.Email if it is empty and save it as email.Use resolvedEmail, or record.fields.Email if it is empty and save it as email.recId in tableName.Update recId in tableName.No
No steps