HubSpot Workflows

Automate email verification in workflows

Use HubSpot Workflows + Clearout to automatically verify emails whenever a new contact is created in HubSpot or an existing contact’s email is updated. This keeps your CRM continuously clean without manual checks.​

You can also see this process in action in the video:

Why use Clearout in workflows?

When contacts come from multiple sources (imports, integrations, forms, manual entry), not all of them pass through form or chat validation. By adding Clearout to your workflows, you can:​

  • Enrich contacts with Clearout custom properties such as verification status, safe‑to‑send, role/disposable/gibberish flags, verified time, and more.​

  • Improve data quality by filtering out invalid, disposable, role, or gibberish emails.​

  • Create precise segments and targeting rules (for example, only send campaigns to contacts marked safe‑to‑send).​

  • Personalize outreach based on role accounts vs. individual mailboxes.​

  • Reduce manual cleanup and automatically remove bad contacts, saving credits and campaign costs.​

To achieve this, you’ll complete three main steps, then test and review field mappings.

1

Syncing Clearout Standard Fields to Hubspot CRM

To begin, please ensure that Clearout's standard properties are present in your HubSpot account.

  • Link your HubSpot account with Clearout herearrow-up-right.​

  • Upon successful linking, Clearout creates a Clearout Information property group in HubSpot with all Standard Clearout fields as custom properties.​

  • If you already linked HubSpot earlier and don’t see this group, simply unlink and re‑link the HubSpot account from Clearout; the fields will then be synced.​

These properties will later be populated by the workflow’s custom code step.

2

Creating HubSpot Workflow

Next, create a workflow that will host the Clearout validation logic.

  • In HubSpot, go to Automations → Workflows.

Go to HubSpot Automations to Setup Workflows

  • Click Create workflow → From scratch.

Create New HubSpot Workflow
  • Choose Contact‑based and Trigger manually to start configuring the workflow.

Select Contact‑based and Trigger manually to start configuring the workflow.
  • You will adjust the triggers in the next step so the workflow runs whenever a new contact is created, or a contact’s email is updated, Clearout’s Verification when any contact gets added or updated into the CRM

Adjust the triggers when a new contact is created
3

Set up the workflow

3.1 Configure triggers

Make the workflow run on:

  • New contact created, and

  • Email property changed.

Steps:

  1. Click Set enrollment triggers (Start triggers).

Set a Enrollment Triggers

  1. Add the first trigger under Date events → Record created (this covers new contacts).​

Add the first trigger under Date events for Record Created
  1. Add a second trigger under the OR section: choose Date events → Property value changed.​

    Add the first trigger under Date events for Property Value Changed
  2. For this second trigger, select the Email property and set New value → is known, then click Save.​

Set Email as new value "Unknown"

Now the workflow will trigger whenever a contact is created or its email address is updated.

3.2 Add Clearout validation via Custom Code

Add a step that calls Clearout and returns verification output fields

  1. Click the + icon below the trigger to add an action.

  2. Choose Data Ops → Custom code.

Add custom code under "Data Ops"
  1. Under Property to include in code, select the Email property (under Text properties). This makes the contact’s email available inside the Node.js code.

Select Email property
  1. In the code editor, replace the default code with the following (update the token before saving):

  1. Generate a Clearout API Tokenarrow-up-right. Copy and replace REPLACE_WITH_YOUR_SERVER_APP_TOKEN with your API token.​

  2. Under Data output, define the outputs: status, safe_to_send, and verified_on (names must match the code above).

Define Output Properties
  1. Use the Test action to run the step against a sample contact; if everything is correct, you should see a successful response with these output fields.

Successful response with selected output fields
  1. Save this action. The test call will also appear in your Clearout Activitiesarrow-up-right section.

Check Clearout Activities to confirm successful implementation

3.3 Branch and handle invalid vs valid contacts

Now, create branches to handle contacts differently based on Clearout’s result.

Branch to handle Valid and invalid email addresses
  1. Add a new action below the custom code step and choose Branch → One property or action output.​

    1. Select "One property or action output" in custom code
  2. For the Select property, choose Action outputs → status (from the custom code step).​

    1. Select Action outputs as Status
  3. Create two branches:

    • Branch A: status equals invalid

      • Branch out to capture valid and invalid status
    • Branch B: status is not equal to invalid.​

      • Branch out to capture valid and invalid status

Branch A: Delete invalid contacts (optional)

If you want to automatically remove invalid contacts:

  1. Under the status = invalid branch, add a new action.​

  2. Select CRM → Delete contact and save.​

    Delete Invalid Email address After validation

    workflow to Delete Invalid Email address After validation

(You can skip this step if you prefer to keep invalid contacts and just mark them.)

Branch B: Update Clearout fields for valid/other contacts

  1. Under the status is not equal to invalid branch, add a new action.

  2. Select CRM → Set property value.​

  3. Under Property to set, choose one of the Clearout properties from the Clearout Information group (for example, Clearout Verification Status).​

    1. set "property to set" as "Clearout Verification Status"
  4. In Insert data, select Action outputs → status as the value.​

  5. Save the action.​

Repeat this Set property value action for other Clearout standard fields you want to update, such as

  • Clearout Safe To Send

  • Clearout Verified On

  • Clearout Reason, etc.​

When finished, your workflow should show:

  • Trigger (record created OR email changed) → Custom code (Clearout call) → Branch (status invalid vs not invalid) →

    • Invalid branch: Delete contact (optional)

    • Valid/other branch: Set Clearout fields on the contact.​

      Trigger to check the setup

Finally, click Review and publish the workflow to activate it.

4

Test the workflow

  • In HubSpot, manually create a new contact under CRM → Contacts with a test email and check if Clearout verification runs.​

  • Confirm in Clearout Activities or by viewing the contact’s Clearout Information properties (for example, Clearout Verification Status, Safe To Send, Verified On) that the data is populated.​

  • Edit the email address of an existing contact and verify that the workflow triggers again and updates the Clearout's fields accordingly

Test the workflow
5

Clearout ↔ HubSpot standard field mappings

Property group in HubSpot: Clearout Information.

HubSpot Property Label

HubSpot Internal

Clearout Standard

Clearout API Response

Clearout Safe To Send

co_safe

CO_SAFE

safe_to_send

Clearout Verification Status

co_status

CO_STATUS

status

Clearout Reason

co_reason

CO_REASON

substatus.desc

Clearout Suggested Email

co_semail

CO_SEMAIL

suggested_email_address

Clearout Disposable Status

co_dispose

CO_DISPOSE

disposable

Clearout Free Account Status

co_free

CO_FREE

free

Clearout Role Account Status

co_role

CO_ROLE

role

Clearout Verified on

co_vryon

CO_VRYON

verified_on

Clearout MX Record

co_mxrec

CO_MXREC

detail_info.mx_record

Clearout SMTP Provider

co_smtppro

CO_SMTPPRO

detail_info.smtp_provider

Clearout Verified Datetime

co_vrydt

CO_VRYDT

verified_on

Clearout Gibberish Status

co_gibberish

CO_GIBBERISH

gibberish

If you have questions or need help fine-tuning this workflow, you can reach out to the Clearout Support

Last updated

Was this helpful?