# HubSpot

{% hint style="success" %}
**Who can use this feature?**

The **HubSpot** connector can be used by those with the **Builder** subscription plan.

For more details, see our [**pricing comparison matrix**](https://squirrel365.io/pricing/).
{% endhint %}

Use the Hubpot connector to send basic contact details to your **HubSpot** CRM. The connector also enables you to automatically add them to a segment (list).

## HubSpot Connector Properties

### Connecting an account

To be able to send contact information to HubSpot you will need to connect to a HubSpot account.

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2Ft615i3VMpylSkHmUrhAt%2FHubspot_Details.png?alt=media&#x26;token=08d1aa65-79d0-4baf-85f1-79141b37f5b5" alt="" width="281"><figcaption></figcaption></figure>

Begin by expanding the dropdown and selecting 'New Account' under the **HUBSPOT DETAILS** section. This will prompt an external browser window to open, where you will connect your Squirrel account to HubSpot. Two options will appear:

1. Create a HubSpot account
2. Sign in to your HubSpot account

Select the appropriate option and follow the steps to create or log in to a HubSpot account.

Once you have followed the steps and logged into your HubSpot account, you will be prompted to select an account to connect to Squirrel. Select the account and click the 'Choose account' button.

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FiGlsDP1eD8m7ByFTGJKE%2FHubspot_connectaccount.png?alt=media&#x26;token=d4ef9e84-1509-4194-ae13-7fcaace53ce4" alt="" width="563"><figcaption><p>Select the desired account and click 'Choose account'</p></figcaption></figure>

Once the account has been selected, the webpage will update to display a successful connection to HubSpot.&#x20;

The dropdown under **HUBSPOT DETAILS** should now contain the connected account.&#x20;

{% hint style="info" %}
It may be necessary to close and re-open the Squirrel designer at this point to pick up the details of the newly connected HubSpot account.
{% endhint %}

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2F7FgoeVyab33wz6P7XnuU%2FHubspot_selectaccount.png?alt=media&#x26;token=5108b781-cd60-4f9c-b24a-a27cef0b0e76" alt="" width="281"><figcaption><p>The connected account populated</p></figcaption></figure>

Select the HubSpot account that you wish to connect and the rest of the connector's properties will appear.

### Capturing Contact Details

The **CONTACT DETAILS** section contains pairs of inputs. Where you can map the contact field in HubSpot to the source filed in the Squirrel Project.  **Email** is set as the first of these pairings as this is mandatory for the creation of a contact record in HubSpot. Bind the **Source** to the cell that contains the email address you want to send to HubSpot.

Click on the '**Add a contact field**' button to add more information to the contact record. Clicking on the button will cause the following pair pf properties to appear:

* **Contact field** - Select from the list of available contact fields in the drop down.

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FhmZb3Z3J7CgMFXZs8jAC%2FHubspot_newcontactfield.png?alt=media&#x26;token=3a24a1be-5256-41d7-8681-ee779d9e4c52" alt="" width="279"><figcaption></figcaption></figure>

* A **Source** input field - Bind to the spreadsheet to the cell that contains the value for the contact field you selected above. For example, with "First Name" selected as the **Contact field,** you would bind this **Source** to a cell containing the First Name for the contact.
* '**Add a contact field**' button - select this button <img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2FoLNMqv5mY9sBTdgaeGNd%2Fimage.png?alt=media&#x26;token=41e4c551-a2c4-47fe-b1f6-954f82c241db" alt="" data-size="line"> to add another set of inputs. Continue adding and mapping all the contact fields that you wish to populate in HubSpot.&#x20;

#### Automatically add contacts to a List/Segment

<figure><img src="https://911720298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLBGzn2hXrIMe50klQCv%2Fuploads%2F6a7BW9nT60VylXeCmksw%2Fimage.png?alt=media&#x26;token=1f234898-a321-42cc-a34e-583526641645" alt="" width="249"><figcaption></figcaption></figure>

* **Add contact to list after creation** - this option, if checked, adds the contact to the specified segment (list) after it is created. This is checked by default.&#x20;
* **Select the list to add to** - this dropdown populates with a selection of pre-existing lists in your HubSpot account for you to select from.

{% hint style="info" %}
If no items appear in this list, you will need to create a segment (list) in HubSpot first.
{% endhint %}

### Triggering the HubSpot connection

After you have created your fields and bound them to the spreadsheet, create a trigger for the items to be sent to HubSpot under the **USAGE** section at the bottom of the properties panel.&#x20;

A trigger is a set of conditions that determine when the connector will fire. Learn about [Conditional logic](https://learn.squirrel365.io/how-tos/conditional-logic) for further information on how to get this working.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.squirrel365.io/components-functions-and-connections/overview-2/cloud/hubspot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
