Introduction
HubSpot is a cloud-based customer relationship management software or CRM. It is a platform that connects your marketing, sales, and services tools to a unified CRM database.
MoEngage <> HubSpot
The MoEngage and HubSpot integration can help you connect your marketing and sales team by fluently moving data between MoEngage and HubSpot - making it easy to engage your new contacts in HubSpot through MoEngage, and carefully curating an experience for your prospects at every stage of your sales funnel. We leverage Zapier to enable this integration. With this integration, you can:
-
-
- Create or update HubSpot contacts in MoEngage
- Add or remove HubSpot leads/opportunities to custom segments in MoEngage
-
Use Cases
-
-
- Automatically import all new and updated contacts from Hubspot into MoEngage.
- When a new deal is created, add the contacts into a custom cohort (segment) in MoEngage.
- Trigger a campaign from MoEngage each time a new product is added to Hubspot.
- Import new email events from Hubspot to MoEngage.
- Add or remove users from a cohort (segment) in MoEngage when the deal enters a new stage inside Hubspot.
-
Integration
library_add_check |
Prerequisites
|
A. Import HubSpot Contacts to MoEngage
info |
Note This workflow makes use of the Create or Update User Action. |
Every contact in HubSpot is either a lead, opportunity or customer. You can create or update users in MoEngage each time there is an update in their Lifecycle Stage. This will enable you to engage your contacts and gain more insights timely.
Follow the steps:
Step 1: Select Hubspot as the trigger app
- Select Hubspot from the list of apps.
- Choose the "Event" as "Contact Recently Created or Updated". Click continue.
- Connect your Hubspot account. Select your Hubspot account from the dropdown and click continue.
- Select the properties you want to retrieve. Click continue once satisfied.
- Click "Test trigger" and Zapier will try to fetch a recent Contact. Click on continue to move to the next step.
Step 2: Select MoEngage as the Action app
Search for "MoEngage" from the apps and select it.
- From the event dropdown, select: "Create or Update User". Click continue.
- Following the prerequisites, you should see your MoEngage account already listed. You can either choose that or connect a new one. Click continue once done.
- In the next step, "Set up action", you will see a list of attributes and user properties for you to either fill in or map from the previous step. Click here to know more. You can add the relevant custom user attributes as per your requirements.
- For our setup, we have linked the following:
Customer ID
->ID
Full Name
->Contact Information: First Name
Contact Information: Last Name
First Name
->Contact Information: First Name
Last Name
->Contact Information: Last Name
Email
->Contact Information: Email
Source
-> "HubSpot"Other Attributes
->hubspot_lifecycle-stage
->Contact Information: Lifecycle Stage
In the below images, we only show you those fields which have been mapped:
- Once you are satisfied with your mappings, click on "Continue".
- In the final step, click on "Test & continue".
- If the API call was successful, you should see a "success" return.
You can also verify this in your MoEngage dashboard. Go to your Hubspot user's profile and look under custom attributes:
You can now send campaigns by filtering users that have relevant user attributes.
B. Add Leads to a Custom Segment in MoEngage
info |
Note This workflow uses the Add or Remove User from Cohort (Audience) Action. |
For this use case, we will set up a Zap to automatically add new leads in the Lifecycle Stage "Attempted to Connect" (custom lead stage) to a custom segment inside MoEngage so that we can later send them reminder emails using Campaigns.
Step 1: Select Hubspot as the trigger app
-
-
- Select Hubspot from the list of apps.
- Choose the "Event" as "New Contact Property Change". Click continue.
- Connect your Hubspot account. Select your Hubspot account from the dropdown and click continue.
- Select the Property Name to add the trigger as: "Contact Information: Lifecycle Stage".
- Select the other additional properties you want to retrieve. Click continue once satisfied.
- Click "Test trigger", and Zapier will try to fetch a recent Contact. Click on continue to move to the next step.
-
Step 2: Select MoEngage as the Action app
Search for "MoEngage" from the apps and select it.
-
-
- From the event dropdown, select: "Add or Remove User From Cohort (Audience)". Click continue.
- Following the prerequisites, you should see your MoEngage account already listed. You can either choose that or connect a new one. Click continue once done.
- In the next step, "Set up action", you will see a form to fill in or map from the previous step. Click here to know more.
- Select if you want to add or remove a user. Fill in all the mandatory fields, and you will be presented with an option to test this setup. Ensure you fill in at least one of "User ID" or "Anonymous ID". To know more, read the Cohort API docs.
- For our setup, we have linked the following:
Cohort Name
-> "hubspot-contact-lifecycle-stage-1. Contact Information: Lifecycle Stage
"Cohort ID
-> "hubspot-contact-lifecycle-stage-1. Contact Information: Lifecycle Stage
"User ID
->1. Contact Information: Email
Anonymous ID
->1. Contact Information: Email
-
-
-
- Once you are satisfied with your mapping, click continue.
- You will now be presented with an option to test this setup.
-
-
-
- Click on "Test & continue" to test this setup.
- If the API call was successful, you should see a "success" return.
-
You can also verify this in your MoEngage dashboard. Go to your MoEngage Dashboard >> Segment >> Create segment. Filter users by "Custom Segment", and you should see your newly created cohort here.
This confirms that your Zap was successful.
Engage using MoEngage Campaigns
Now that you have imported contacts from HubSpot into MoEngage and put them in different cohorts (segments), you can send promotional mail to your leads highlighting your latest product features or new capabilities. You can simply segment your leads using your lifecycle stage attribute (from HubSpot) and send them a MoEngage email campaign. Read more about MoEngage campaigns here.