HubSpot integration
This guide walks you through connecting HubSpot to Better Email, authenticating the account, and optionally syncing contact properties for recipient fields and segmentation.
Before you start
To connect HubSpot, you will need:
- a HubSpot account you can authorize with OAuth
- an admin user in Better Email who can create and edit integrations
- permission in HubSpot to create or update marketing-email assets
1. Create the integration in Better Email
In Better Email:
- Go to
Integrations. - Create a new integration.
- Enter a clear name for the integration.
- Choose
Hubspotas the type. - Optional: under
Access, restrict the integration to specific users or groups. - Enable the integration.
- Save the integration.
2. Authenticate with HubSpot
- Open the saved integration.
- Click the authentication link.
- Sign in to HubSpot if needed.
- Approve Better Email's access.
- Return to Better Email and confirm the integration shows as connected.
Better Email stores the access token, refresh token, and token expiry automatically. If the token expires later, Better Email refreshes it during export or sync.
TODO: Add a screenshot of the HubSpot integration after save, showing the connection state and authentication action.
3. Export to HubSpot
HubSpot export is a two-step flow inside Better Email:
- Better Email creates a template shell in HubSpot.
- Better Email creates the marketing email content using the rendered body from your Better Email draft.
Important to know:
- Better Email stores the HubSpot template ID so future exports can recreate the template cleanly.
- Templates are placed in the
betteremailfolder in HubSpot. - Merge tags and segmentation are rendered using HubSpot-specific syntax.
4. Optional: sync recipient fields from HubSpot
HubSpot can also provide contact properties for merge tags and segmentation.
To turn that on:
- Open the HubSpot integration.
- Turn on
Sync recipient fields. - Save the integration.
- Go to
Recipient Fields. - Run
Sync from <integration name>.
Better Email reads contact properties from HubSpot and maps them into recipient fields.
Troubleshooting
If export or sync fails, double-check:
- the integration is enabled
- the OAuth connection is still active
- the HubSpot account you authorized has the required email and content permissions
- the right users or groups have access to the integration in Better Email
If the connection was set up a long time ago, re-authenticating is a good first step before deeper debugging.