Tutorial

From email opens in Smartlead to LinkedIn tasks in HubSpot

How to go from multiple email opens to engaging on LinkedIn. Learn how to automate your sales pipeline using HubSpot, Smartlead, Clay, and OutboundSync.


In this video, I demonstrate how to integrate multiple tools and data providers, including Smartlead, OutboundSync, Clay, and HubSpot, to automate the process of identifying and enriching sales leads.

The workflow involves taking contacts with multiple email opens, retrieving their LinkedIn profiles, creating tasks, associating tasks, and enriching contacts in HubSpot.

I detail the process with instructions on utilizing API calls, setting filters, creating workflows, and handling custom properties. Our goal is to improve sales efficiency by automating follow-up actions based on contact engagement.

Transcript

Introduction and Overview

[00:00:00] Harris Kenny: Hey there, in today's video, I want to show you how you can take a multiple open contact from a Smartlead campaign, get their LinkedIn contact, and then create a task, associate the task, and then enrich that LinkedIn profile in HubSpot. And in this video, we're going to use OutboundSync, Clay, a few different data providers, Smartlead, and then of course HubSpot.

[00:00:23] So here you can see the final result in this shared table. I'm going to explain everything that we're doing here, but just at a really high level we've got a contact that we sent over through a test payload in OutboundSync.

[00:00:35] And so this is a test, Email open, which is our trigger. And then what the user wanted to do is they wanted to know if there's contacts where they have multiple opens on an email and then take for the sales reps to take action on those multiple open contacts.

[00:00:51] I sent that test open activity over into HubSpot and you can see the after, after factor, the end result here. We've got a task. We've got a LinkedIn profile, but I'll explain how we did those things.

Setting Up the Workflow in HubSpot

[00:01:02] Harris Kenny: So we sent over that test payload with OutboundSync.

[00:01:06] Then we use a workflow in HubSpot. We want to find contacts where they have an OutboundSync opened email and that event was sent more than three days ago. In other words, that open webhook was fired off more than three days ago from Smartlead.

Filtering and Static Lists

[00:01:21] Harris Kenny: And so just to review and show you how to find this in OutboundSync. So we go to filters and then in HubSpot, select for open properties, and then we would be getting the event timestamp from those open properties, and then we're setting it to being more than three days.

[00:01:35] then we're going to add it to a static list because we don't want to be doing this multiple times. We just want to run this if a contact multiple opens any given email, they're going to be enrolled in this workflow. And you can see the static list here. And this static list is going to be our source inside of clay.

[00:01:54] So we're importing contacts from HubSpot from this static list. Uh, and the list in this case is called OutboundSync open three plus days. We're getting the contact ID, the owner ID, the email address. And then this is data that we're getting from OutboundSync, which is the campaign name and the campaign ID.

Integrating with Clay and SmartLead

[00:02:14] Harris Kenny: Now we're going to look up that lead in SmartLead using Clay's integration. Clay has a built in integration, uh, with SmartLead. And so we're going to use that email address to do a lookup. And what I'm going to do here is I'm going to switch the view on this table so that I can show you specifically what's happening in those enrichments.

[00:02:29] Just give me one second. All right, we are back. And this is the full proper table in Clay. Um, you can see a lookup here now. Oh. I've got, uh, the smartlead API key connected, but I'm also going to use an API call in a second, uh, in smartlead. And let me show you that next. You're going to notice that there's no lead found here.

[00:02:48] I just want to note really quick that I don't want to show real data. So this is just, uh, test data. In another table, I ran this and these lookups do work.

API Calls and Task Creation

[00:02:57] Harris Kenny: We find our lead and then we're going to do an API call into Smartlead. Now I'm going to zoom in here so you can see we're doing this as an endpoint directly into Smartlead.

[00:03:08] And then you're going to need to enter your API key here, and you're going to look up based on the campaign ID. And the ID and Smartlead that we get from this lookup and what we're going to return from that. One of the properties that we're going to return from that will be the open count. So we're going to map that out.

[00:03:24] And then we have a conditional formula here where if the open count is greater than two, return true, otherwise return false. The next piece of this is that we want to use LinkedIn for opens of two or more. And you may have loaded a LinkedIn profile in your initial Smartlead list up front. So we have a merge column here, um, that is checking if you did that.

[00:03:49] So we're pulling from that Smartlead column. And then if not, if that's null and if that's empty, then we have that as a run condition to trigger checking, uh, these four different providers to see if any of them have a LinkedIn profile. And then there'll be a merge between the first choice of being, if you did it already in Smartlead or the second choice from the enrichments.

[00:04:10] So now we know we have a contact in HubSpot that was sent an email through Smartlead synced with OutboundSync. We know they've opened the email multiple times. And we have their LinkedIn profile. So we want to create something where HubSpot can be used as the system of action for the sales rep. Let me drill down and show you how this works.

[00:04:36] All right. I just verified that my API keys are not going to be displayed. So, uh, the first thing we're going to do is we're going to create a task. So you can see the API call that we're doing here. I'm just going to scroll into the body of this API call, and you can see the variables that we're referencing from Clay.

[00:04:51] And then your API key would go down here. Now, if you want to do this, you're going to need to create a connected app in HubSpot in order to do these API calls, and you're going to have to set the proper scopes for that. In other words, have the proper permissions in order to do these tasks. That's a little bit, I was going to say outside of the scope of this video, because I just want to stay focused here, but that's the missing piece here, you need to have a connected HubSpot app with the appropriate permission to do these API calls.

[00:05:16] Now that we've created a task, we want to associate that task with the contact. So we are going to run this API call to do that. And you can see, again, we're referencing these IDs that we're using earlier in this table, again, using that API key.

Final Steps and Custom Properties

[00:05:32] Harris Kenny: And then finally, I figure why not add that LinkedIn profile to HubSpot since we have it and we're going to reference it in the task in the first place, but we might as well add it as a property and HubSpot as well.

[00:05:43] So we've got a patch API call designed to do that and we're taking that. Now, I just want to. This is the last little thing here that they think about that's maybe not shown in the video is that LinkedIn profile is not a standard property in HubSpot. So we've created that as a custom contact property in the custom contact properties group.

[00:06:02] We're calling that out here when we update that specific property. And then we're going to run the rest of the way. And so what that's going to look like in practice is that a task is going to get assigned three days after an email goes out and it's been opened at least once. We're going to check if it's been open multiple times.

[00:06:22] If it's been open multiple times, we're going to get the LinkedIn profile, either from smartlead or from data providers. Then we're going to take that information to create a task, associate the task and enrich the contact object in HubSpot.

Conclusion and Next Steps

[00:06:38] Harris Kenny: So give it a go. Let me know what you think. I, um, I think it's pretty cool.

[00:06:41] And this is just the beginning. There's a lot of things you could build on top of this associating companies, doing other things, but hopefully it's a helpful start. Thanks.

Similar posts

Get the Outbound Office Hours email newsletter

Learn from outbound experts about advanced workflows to help your team hit their numbers. Sign up today for the latest in outbound sales strategics, tactics, and tools ➔