# Integrate Callingly With HubSpot

Source: https://callingly.com/help/article/5-integrate-callingly-with-hubspot

<div data-html-block><table class="feature-chips"><tbody><tr><td><span class="material-icons" style="color: #5B66FF">swap_horiz</span> Two-way integration</td><td><span class="material-icons" style="color: #5B66FF">account_tree</span> Workflow trigger</td><td><span class="material-icons" style="color: #5B66FF">sync</span> Two-way owner sync</td></tr></tbody></table></div>

Callingly connects to your HubSpot account, allowing you to trigger calls to your leads using a Workflow in HubSpot. The call results and recording can then sync back to HubSpot.

<div class="row relevant"><p><span class="material-icons">supervisor_account</span> Owners and Admins can set up integrations. <em class="float-right-desktop">Approx. reading time 6 min.</em></p></div>

<h2 id="connect">Connect Callingly to HubSpot</h2>

You'll initiate the connection between Callingly and HubSpot from the Callingly side.

<dl><dt>1.</dt><dd><strong>Navigate to the</strong> <a href="https://callingly.com/dashboard/integrations/new" target="_blank"><em>New Integration</em> page</a>.</dd><dt>2.</dt><dd><strong>Click the <em>Connect</em> button</strong> next to the HubSpot integration option.</dd><dt>3.</dt><dd><p><strong>Select the HubSpot account you wish to use</strong> on the screen that pops up, to grant Callingly access to your HubSpot account.</p><div class="callout-green"><span class="material-icons">info_outline</span><div><strong>Note</strong>: If you're not logged in, you'll be taken to HubSpot's login page first.</div></div></dd><dt>4.</dt><dd><strong>Click the <em>Choose Account</em> button.</strong> The HubSpot connection will happen and you'll be redirected back to Callingly.</dd></dl>

<h2 id="choose-options">Choose Settings</h2>

Open the integration from the <a href="https://callingly.com/dashboard/integrations" target="_blank">Integrations</a> page. Its **Settings** tab has these options:

<div class="callout dashed"><h4>Name</h4><p>The integration's name in Callingly.</p><h4>Sync Calls</h4><p>Log each of your reps' calls with a lead in HubSpot as a call.</p><h4>Sync AI Agent Calls</h4><p>Log the AI Agent's calls with leads in HubSpot, inbound or outbound, answered or not. See <a href="#sync-ai-agent-calls">below</a>.</p><h4>Sync AI Scheduled Calls</h4><p>Create a meeting in HubSpot when your AI Agent books a callback with a lead.</p><h4>Sync SMS</h4><p>Log texts you send and receive in HubSpot.</p><h4>Sync Lead Owner</h4><p>When Callingly assigns the lead to a user, set the same owner in HubSpot. Each user must be matched to their HubSpot user (see <a href="#sync-lead-owner">below</a>).</p><h4>AI Meeting Booking</h4><p>When a lead asks the AI Agent for a time, book a meeting on your HubSpot meeting link instead of a Callingly callback. See <a href="#ai-meeting-booking">below</a>.</p></div>

<p class="mb-2"><strong>What starts a call:</strong> a HubSpot workflow with Callingly's <em>Start Call</em> action. The next section shows how to set one up.</p>

<p class="mb-2">Two more tabs finish the setup:</p><ul class="mb-2"><li><strong>Routing</strong> decides which team calls each lead, and which sequence it follows. See <a href="https://callingly.com/help/article/82-understanding-call-routing" target="_blank">Understanding Call Routing</a>.</li><li><strong>Fields</strong> matches HubSpot fields to Callingly's lead fields, including your own custom fields.</li></ul>

<h2 id="create-workflow">Create a Workflow in HubSpot</h2>

Now we need to set up a workflow in HubSpot that will pass Lead information to Callingly and start the <a href="https://callingly.com/help/article/19-the-10-step-outbound-call-flow" target="_blank">outbound call flow.</a>

For the purposes of this article, we want our workflow to cause _new_ leads to be called through Callingly. We don’t need anything to happen through Callingly when an existing HubSpot lead changes.

From the dashboard of your HubSpot account:

<dl class="mb-2"><dt>1.</dt><dd><strong>Click <em>Workflows</em></strong> in the top navigation menu. You'll be redirected to the workflows page.</dd><dt>2.</dt><dd><strong>Hit the <em>Create Workflow</em> button</strong> in the top right corner of the page.</dd><dt>3.</dt><dd><strong>Choose <em>From Scratch</em></strong> from the dropdown menu. You'll be taken to the setup page.</dd><dt>4.</dt><dd><strong>Select either <em>Contact-</em>, <em>Deal-</em>, or <em>Ticket-</em> based</strong> for the type of workflow. The other options HubSpot provides will not work with Callingly. For the purposes of this article, we'll choose a Contact-based workflow.</dd><dt>5.</dt><dd><strong>Tick the <em>Blank workflow</em> option</strong> under the question <em>How do you want this workflow to start?</em></dd><dt>6.</dt><dd><strong>Click <em>Next</em></strong></dd></dl>

<h3 id="set-up-triggers">Set up triggers</h3>

For our article, we want Callingly’s outbound call flow to be triggered when a new lead comes into HubSpot. Because of the way HubSpot works, we’ll want to specify that we only want to trigger the workflow for _New Leads_ that were created after today’s date — otherwise, we’ll start calling anyone and everyone with the Lead status of New.

<dl><dt>1.</dt><dd><strong>Click the <em>Set up triggers</em> button</strong>. A panel will slide open asking you to select a filter type.</dd><dt>2.</dt><dd><strong>Choose the <em>Contact properties</em> filter.</strong></dd><dt>3.</dt><dd><strong>Select <em>Lead Status</em></strong>.</dd><dt>4.</dt><dd><strong>Tick the <em>is any of</em> box</strong>.</dd><dt>5.</dt><dd><strong>Choose <em>New</em> from the dropdown menu</strong>.</dd><dt>6.</dt><dd><strong>Click the <em>Apply filter</em> button</strong>.</dd><dt>7.</dt><dd><strong>Press the <em>AND</em> button to add a secondary filter</strong>.</dd><dt>8.</dt><dd><p><strong>Repeat steps 2 – 6, adding <em>Became a lead date</em></strong> as the secondary filter, setting the date to after today’s date.</p><div class="callout-blue"><span class="material-icons">tips_and_updates</span><div><strong>Tip</strong>: You might also add a tertiary filter that filters out any leads that don’t have phone numbers, to help conserve resources.</div></div></dd><dt>9.</dt><dd><p><strong>Click the <em>Save</em> button</strong>.</p><div class="callout-green"><span class="material-icons">info_outline</span><div><strong>Note</strong>: Only you know how your HubSpot setup works best. These parameters are for demonstration purposes only and might not work for you. In that case, choose what does!</div></div></dd></dl>

<h3 id="create-an-action">Create an action</h3>

It’s great for the workflow to start, but if we don’t define an action nothing will happen. So let’s tell HubSpot what is meant to happen to our Leads after they enter the workflow.

<dl class="mb-2"><dt>1.</dt><dd><strong>Hit the + button</strong> in your workflow path to add an action to it.</dd><dt>2.</dt><dd><strong>Select <em>Start Call</em></strong> under the Callingly list of actions.</dd><dt>3.</dt><dd><strong>Choose a Team</strong> from the dropdown menu.&nbsp; &nbsp;&nbsp;</dd><dt>4.</dt><dd class="mb-2"><strong>Click the <em>Save</em> button</strong> to save the chosen action in your workflow.</dd></dl>

<h3 id="review-and-publish">Review and publish your workflow</h3>

It's crucial that you both Review and publish your workflow; otherwise, all the work you’ve done is for naught!

<dl><dt>1.</dt><dd><strong>Press the <em>Review and publish</em> button</strong> in the top right corner of the screen. You’ll be taken to a screen where you’re asked to select a few options.</dd><dt>2.</dt><dd><strong>Choose <em>Yes, enroll existing contacts who meet the trigger criteria as of now</em></strong>. Since we included a filter for the Became a lead date, we don’t need to worry about unnecessary contacts hitting this workflow.</dd><dt>3.</dt><dd><strong>Configure any other settings</strong> on this page that you feel are necessary. For example, under the heading When a contact no longer meets the criteria you might choose to have them removed from the workflow.&nbsp;</dd><dt>4.</dt><dd><p><strong>Click the <em>Turn on&nbsp;</em>button</strong> in the top right corner of the page.</p><div class="callout-blue mb-2"><span class="material-icons">tips_and_updates</span><div><strong>Tip</strong>: It’s a good idea to name your workflow with something unique and descriptive. This way, you can easily find it again later if you need to update it or do troubleshooting.</div></div></dd></dl>

<h2 id="sync-ai-agent-calls">Sync AI Agent Calls</h2>

With <strong>Sync AI Agent Calls</strong> on, each AI Agent call with a lead, inbound or outbound and answered or not, is logged as a call on the contact's HubSpot timeline. Each call's title carries Callingly's result, and its outcome uses HubSpot's built-in call outcomes where one fits, so you can use them in workflows and reports:

<table class="table-striped"><thead><tr><th>Callingly result</th><th>HubSpot call outcome</th></tr></thead><tbody><tr><td>Contacted, Callback Scheduled</td><td>Connected</td></tr><tr><td>Left Voicemail</td><td>Left voicemail</td></tr><tr><td>Voicemail (none left), No Answer</td><td>No answer</td></tr><tr><td>Busy</td><td>Busy</td></tr><tr><td>Failed (the dial didn't go through)</td><td>None</td></tr></tbody></table>

Calls that never became a conversation with a lead aren't logged: a team member or robocall dialing in, an inbound caller who hangs up without speaking, or a lead who hangs up during the AI's introduction.

<strong>Sync Calls</strong> still logs your reps' calls, so a lead the AI Agent warm-transfers shows both: the AI's call and the rep's.

<h2 id="ai-meeting-booking">AI Meeting Booking</h2>

When a lead asks the AI Agent for a time, on an outbound call or by text, it can book a meeting on your HubSpot meeting link instead of a Callingly callback. The AI only offers times that are open on the link, and HubSpot sends the lead the invite.

<dl><dt>1.</dt><dd><strong>Pick how meetings are booked</strong> under <em>AI Meeting Booking</em>: <em>On one meeting link</em>, or <em>On each lead owner's personal link</em> (the meeting link of the contact's owner in HubSpot).</dd><dt>2.</dt><dd><strong>Pick the link</strong> in <em>AI Meeting Link</em>. With lead owners' links, this is the <em>Fallback Meeting Link</em>, for leads whose owner has no personal link or who have no owner. Leave it empty to book callbacks for those leads.</dd><dt>3.</dt><dd><strong>Save</strong>.</dd></dl>

<div class="callout-green mb-2"><span class="material-icons">info_outline</span><div><strong>Note</strong>: Meetings need the lead's email, because HubSpot sends the invite there. A lead without one, or a booking HubSpot can't take, gets an ordinary callback instead. If the settings ask you to reconnect HubSpot, do so and allow meeting access.</div></div>

<h2 id="sync-lead-owner">Sync Lead Owner</h2>

With <strong>Sync Lead Owner</strong> on, match each Callingly user to their HubSpot user:

<dl><dt>1.</dt><dd><strong>Go to the <a href="https://callingly.com/dashboard/users" target="_blank">Users</a> page</strong> and click <strong>Edit</strong> next to the user.</dd><dt>2.</dt><dd><strong>Under <em>Integrations</em>, pick their account</strong> in the <em>HubSpot User</em> dropdown.</dd><dt>3.</dt><dd><strong>Save</strong>, and repeat for each user.</dd></dl>

A lead that already has an owner in HubSpot comes into Callingly with the matching user as its owner.

<h2 id="next-steps">Next Steps</h2>

<ol class="mb-2"><li><strong>Test the integration</strong>. Create a new fake lead in your HubSpot account, ensuring that it matches whatever parameters you included in your workflow. This should cause the lead to enter the HubSpot workflow. A call will initiate through the <a target="_blank" href="https://callingly.com/help/article/19-the-10-step-outbound-call-flow">outbound call flow</a> within a few minutes.</li><li><strong>Set the call schedule</strong>. Be sure to <a target="_blank" href="https://callingly.com/help/article/37-setting-availability-schedules">set the schedule</a> for when your Team can receive calls. This way, nobody will receive a call outside of work hours.</li></ol>

<h2 id="pro-tip">Pro-Tip</h2>

#### Route to different Callingly teams based on lead information

<p class="mb-2">You can route leads to specific teams based on the Lead’s information. Add an if/then branch <strong>before the</strong> <strong>Start Call</strong> action event in your workflow. You can then put the <em>Start Call</em> action after each if/then branch, choosing a different Team for each action.</p>

<h2 id="common-questions">Common Questions</h2>

#### Can the AI Agent book meetings on my HubSpot calendar?

Yes. Pick a link under <strong>AI Meeting Booking</strong> in the integration's settings, and when a lead with an email asks for a time, on an outbound call or by text, the AI books a meeting on that link instead of a callback. See [AI Meeting Booking](#ai-meeting-booking).

#### Can I see the AI Agent's calls in HubSpot?

Yes. Turn on <strong>Sync AI Agent Calls</strong>, and the AI's calls with leads are logged on the contact's timeline with their result and HubSpot call outcome. See [Sync AI Agent Calls](#sync-ai-agent-calls).

#### Where is the lead status synced in HubSpot?

The lead status and lead results are synced to the contact’s callingly\_status and callingly\_results fields in HubSpot.

<div class="callout-green mb-2"><span class="material-icons">info_outline</span><div><strong>Note</strong>: <strong>Sync Calls</strong> logs your reps' calls with leads. The AI's own calls sync only with <strong>Sync AI Agent Calls</strong> on (see <a href="#sync-ai-agent-calls">above</a>). With <strong>Sync Lead Owner</strong> on, the rep who takes the AI's transfer becomes the lead's owner in HubSpot, if your account assigns lead owners automatically.</div></div>

#### How do I route leads to different Teams?

You can add an if/then branch before the Start Call action event in your workflow. You can then put the Start Call action after each if/then branch, choosing a different Callingly team for each action.

#### How do I ensure the correct fields are synced between HubSpot and Callingly?

On the <a href="https://callingly.com/dashboard/integrations" target="_blank">Integrations page</a> in Callingly, select the fields from HubSpot that match the Callingly fields. Choose the appropriate item for HubSpot from the dropdown menu for each Callingly field. You do this on the integration's **Fields** tab; see [Choose Options](#choose-options) above.

#### How do I sync the lead owner between HubSpot and Callingly?

You can do this by heading over to the <a href="https://callingly.com/dashboard/users" target="_blank">Users page</a> in Callingly and editing the User you want to change. Look for the HubSpot User field box and select the user from the dropdown menu. When a Lead is synced into Callingly, the Lead will maintain that relationship with your user as the lead owner.
