Adds the people who engaged with your posts to HubSpot, only once a verified work email is found for them, and never twice.

UsesDropcontactHubSpotPhantomBuster

Turn people who engage with your posts into CRM contacts

ScheduleRun every 24 hours.Run every 24 hours.
ValuesSet engagementPhantomId to blank.Set engagementPhantomId to blank.
ValuesSet maxPeoplePerRun to 25.Set maxPeoplePerRun to 25.
PhantomBusterPhantomBusterGet results for Phantom engagementPhantomId. Save it as export.Get results for Phantom engagementPhantomId. Save it as export.
ValuesSet engagers to export.rows.Set engagers to export.rows.
ValuesSet considered to 0.Set considered to 0.
ValuesSet addedCount to 0.Set addedCount to 0.
Decisions & LoopsFor each engager in engagers:For each engager in engagers:
Decisions & LoopsIf considered multiplied by 1 is greater than or equal to maxPeoplePerRun…If considered multiplied by 1 is greater than or equal to maxPeoplePerRun…
Yes
Decisions & LoopsStop repeating.Stop repeating.
No
No steps
ValuesAdd 1 to considered.Add 1 to considered.
TextTrim engager.firstName and save it as firstName.Trim engager.firstName and save it as firstName.
Decisions & LoopsIf firstName is nullIf firstName is null
Yes
ValuesChange firstName to blank.Change firstName to blank.
No
No steps
TextTrim engager.lastName and save it as lastName.Trim engager.lastName and save it as lastName.
Decisions & LoopsIf lastName is nullIf lastName is null
Yes
ValuesChange lastName to blank.Change lastName to blank.
No
No steps
TextTrim engager.companyName and save it as companyName.Trim engager.companyName and save it as companyName.
Decisions & LoopsIf companyName is nullIf companyName is null
Yes
ValuesChange companyName to blank.Change companyName to blank.
No
No steps
TextTrim engager.profileUrl and save it as profileUrl.Trim engager.profileUrl and save it as profileUrl.
Decisions & LoopsIf profileUrl is nullIf profileUrl is null
Yes
ValuesChange profileUrl to blank.Change profileUrl to blank.
No
No steps
TextTrim firstName lastName and save it as personLabel.Trim firstName lastName and save it as personLabel.
Decisions & LoopsIf personLabel is emptyIf personLabel is empty
Yes
ValuesShow in the output: Skipped an exported row that carried no name, so there was nobody to look up..Show in the output: Skipped an exported row that carried no name, so there was nobody to look up..
Decisions & LoopsSkip to the next item.Skip to the next item.
No
No steps
ValuesSet verifiedEmails to an empty list.Set verifiedEmails to an empty list.
Decisions & LoopsIf a step below fails, save the error as enrichErrorIf a step below fails, save the error as enrichError
Try
DropcontactDropcontactEnrich contact firstName. Save it as enrichment.Enrich contact firstName. Save it as enrichment.
ValuesChange verifiedEmails to enrichment.contact.email.Change verifiedEmails to enrichment.contact.email.
On error
ValuesShow in the output: Could not check for a verified work email for personLabel plus : enrichError.message.Show in the output: Could not check for a verified work email for personLabel plus : enrichError.message.
ValuesSet workEmail to blank.Set workEmail to blank.
ValuesSet emailQuality to blank.Set emailQuality to blank.
Decisions & LoopsFor each candidate in verifiedEmails:For each candidate in verifiedEmails:
TextTrim candidate.email and save it as workEmail.Trim candidate.email and save it as workEmail.
TextTrim candidate.qualification and save it as emailQuality.Trim candidate.qualification and save it as emailQuality.
Decisions & LoopsStop repeating.Stop repeating.
Decisions & LoopsIf workEmail is nullIf workEmail is null
Yes
ValuesChange workEmail to blank.Change workEmail to blank.
No
No steps
Decisions & LoopsIf emailQuality is not nominative@pro or workEmail is empty or workEmail…If emailQuality is not nominative@pro or workEmail is empty or workEmail…
Yes
ValuesShow in the output: No verified work address came back for personLabel - nothing was added to HubSpot. An address is only used when the enrichment tool reports it as that person's own work address.Show in the output: No verified work address came back for personLabel - nothing was added to HubSpot. An address is only used when the enrichment tool reports it as that person's own work address.
Decisions & LoopsSkip to the next item.Skip to the next item.
No
No steps
ValuesSet existingContactId to blank.Set existingContactId to blank.
ValuesSet crmDecision to skip.Set crmDecision to skip.
Decisions & LoopsIf a step below fails, save the error as lookupErrorIf a step below fails, save the error as lookupError
Try
HubSpotHubSpotFind the contact workEmail. Save it as existingContact.Find the contact workEmail. Save it as existingContact.
TextTrim existingContact.id and save it as existingContactId.Trim existingContact.id and save it as existingContactId.
On error
Decisions & LoopsIf lookupError.message contains No contact found (ignoring case)If lookupError.message contains No contact found (ignoring case)
Yes
ValuesChange crmDecision to create.Change crmDecision to create.
No
ValuesShow in the output: Could not check HubSpot for workEmail plus - leaving them alone rather than risking a duplicate: lookupError.message.Show in the output: Could not check HubSpot for workEmail plus - leaving them alone rather than risking a duplicate: lookupError.message.
Decisions & LoopsIf existingContactId is nullIf existingContactId is null
Yes
ValuesChange existingContactId to blank.Change existingContactId to blank.
No
No steps
Decisions & LoopsIf existingContactId isn't emptyIf existingContactId isn't empty
Yes
ValuesShow in the output: workEmail is already in HubSpot as contact existingContactId - the existing record was left untouched.Show in the output: workEmail is already in HubSpot as contact existingContactId - the existing record was left untouched.
Decisions & LoopsSkip to the next item.Skip to the next item.
No
No steps
Decisions & LoopsIf crmDecision is not createIf crmDecision is not create
Yes
ValuesShow in the output: Left workEmail alone: HubSpot did not confirm they are absent from the CRM, so adding them could have created a duplicate.Show in the output: Left workEmail alone: HubSpot did not confirm they are absent from the CRM, so adding them could have created a duplicate.
Decisions & LoopsSkip to the next item.Skip to the next item.
No
No steps
ValuesSet newContactId to blank.Set newContactId to blank.
ValuesSet createFailure to blank.Set createFailure to blank.
Decisions & LoopsIf a step below fails, save the error as createErrorIf a step below fails, save the error as createError
Try
HubSpotHubSpotCreate the contact workEmail. Save it as createdContact.Create the contact workEmail. Save it as createdContact.
TextTrim createdContact.id and save it as newContactId.Trim createdContact.id and save it as newContactId.
On error
TextTrim createError.message and save it as createFailure.Trim createError.message and save it as createFailure.
Decisions & LoopsIf newContactId is nullIf newContactId is null
Yes
ValuesChange newContactId to blank.Change newContactId to blank.
No
No steps
Decisions & LoopsIf createFailure isn't emptyIf createFailure isn't empty
Yes
ValuesShow in the output: Could not add workEmail to HubSpot: createFailure.Show in the output: Could not add workEmail to HubSpot: createFailure.
Else if @newContactId isn't empty
ValuesAdd 1 to addedCount.Add 1 to addedCount.
ValuesShow in the output: Added personLabel (workEmail) to HubSpot as contact newContactId.Show in the output: Added personLabel (workEmail) to HubSpot as contact newContactId.
Otherwise
ValuesShow in the output: HubSpot accepted workEmail but returned no contact id, so this run cannot confirm the record was created. Check HubSpot before running it again.Show in the output: HubSpot accepted workEmail but returned no contact id, so this run cannot confirm the record was created. Check HubSpot before running it again.
ValuesShow in the output: Looked at considered as text plus people who engaged with your posts and added addedCount as text new HubSpot contacts.Show in the output: Looked at considered as text plus people who engaged with your posts and added addedCount as text new HubSpot contacts.