Mapping Custom Variables from HubSpot to a Sendblue Workflow
Last updated: July 20, 2026
Setting Up and Using Custom Variables in Sendblue
This guide walks you through creating custom variables in Sendblue, building a workflow that uses them, and mapping data from HubSpot so those variables populate automatically.
Overview
Custom variables let you pull dynamic data (like a lead owner's name) from HubSpot into your Sendblue workflows. Setting this up involves three parts:
Creating the custom variables in Sendblue
Building your workflow in Sendblue
Connecting HubSpot to map data into those variables
Step 1: Create Your Custom Variables in Sendblue
In the Sendblue dashboard, go to Settings.
Click Custom Variables.
Create each custom variable you plan to use in your workflow.
Step 2: Build Your Workflow
Go to the Workflows section in Sendblue.
Build out the workflow you want to use, including the custom variables you created in Step 1.
Step 3: Set Up the Trigger in HubSpot
Go into HubSpot and set up the trigger for your workflow.
From the trigger, connect to the Sendblue Workflow action.
Select the Sendblue workflow you want to use.
Map the following fields:
First name
Last name
Phone number
Email (optional)
Step 4: Map Custom Variables to HubSpot Fields
This is the step that connects the custom variables you built in Sendblue to the actual HubSpot data.
Go to the custom variable you created in Sendblue and copy its name.
Paste it into the mapping field in HubSpot.
Immediately after the pasted variable name, add a colon (
:) with no space before or after it.After the colon, enter the HubSpot field(s) you want mapped to that variable.
If mapping more than one field to a single variable, separate them with a comma and no spaces.
Example: If you're mapping a variable to capture the lead owner, you would map it to both who the lead owner is and their name, formatted like this: (please remember this is an example and needs to be mapped to the field that contains this information within your HubSspot account)
lead_owner: this is the Sendblue variable
owner_name: this is the Sendblue variable
hubspotfield: this represents the data in hubspot that you will map
lead_owner:hubspotfield,owner_name:hubspotfield
Important formatting rules:
The colon must come immediately after the variable name (no space).
No spaces around commas when mapping multiple fields.
Use the custom variable name exactly as it appears in Sendblue.
Step 5: Save and Activate
Once all your variables are mapped, click Save.
Review your workflow to confirm everything looks correct.
Turn the workflow on.
Once activated, the custom variables will pull data through automatically into the workflow you built in Sendblue.
Quick Recap
Step | Where | What You're Doing |
|---|---|---|
1 | Sendblue > Settings > Custom Variables | Create the variables |
2 | Sendblue > Workflows | Build the workflow |
3 | HubSpot | Set up trigger, connect to Sendblue Workflow, map name/phone/email |
4 | HubSpot mapping field | Map custom variable to HubSpot field(s) using |
5 | Sendblue | Save, review, and turn workflow on |