# Connecting HubSpot

This guide walks you through connecting Spara to HubSpot so that lead conversations and field data sync automatically to your CRM.

For a full feature reference, see [Hubspot (CRM)](/integrations/crm-integrations/hubspot-crm.md).

## What Syncs

Once connected, Spara can:

* Write conversation data and field values to matching HubSpot Contacts (Push)
* Create new HubSpot Contacts when no match is found
* Import existing HubSpot Contacts into Spara as Leads (Pull)

{% stepper %}
{% step %}

#### Navigate to Integrations

Go to [**Settings > Integrations**](https://app.spara.co/organization/integrations) and find the HubSpot card. Click **Authorize**.

{% hint style="info" %}
You need Manager or Integrator permissions to connect integrations. See [User Management](/platform/settings/user-management.md) for role details.
{% endhint %}
{% endstep %}

{% step %}

#### Authorize with HubSpot

You'll be redirected to HubSpot to grant Spara access. Log in with an account that has admin or integration permissions. The connection is established automatically — no additional configuration is required in HubSpot.
{% endstep %}

{% step %}

#### Configure Push Rules

Under **Push Rules**, enable the sync behaviors you want:

* **Update matching, pre-existing HubSpot Contact** — Spara writes data to a Contact when a Lead matches by email or HubSpot ID
* **Create HubSpot Contact when no match is found** — Spara creates a new Contact if no match exists (requires the update option to be enabled)
  {% endstep %}

{% step %}

#### Map fields

Under **Data Model Sync**, set up field mappings between Spara Lead fields and HubSpot Contact properties. For each mapping:

1. Choose a **Spara Lead Field** (e.g., First name, Company, or any custom field)
2. Choose the corresponding **HubSpot Contact Field**
3. Set the **Write rule** — overwrite existing values, or only write when the field is empty

For a full list of available Spara fields, click **View your Data Model** within the HubSpot settings page, or go to [**Data Model**](https://app.spara.co/data-model).
{% endstep %}

{% step %}

#### Save and verify

Click **Save** to activate the connection. New lead activity will begin syncing to HubSpot immediately.

To verify, have a test lead interact with your Spara agent and check that a corresponding Contact appears or is updated in HubSpot.
{% endstep %}
{% endstepper %}

## Troubleshooting

### Reconnection required

If the HubSpot card shows "Reconnection required," Spara's access token has expired. Go to [**Settings > Integrations > HubSpot**](https://app.spara.co/organization/integrations/hubspot/manage), click **Deauthorize**, then authorize again.

### Disconnecting

To disconnect HubSpot, go to [**Settings > Integrations > HubSpot**](https://app.spara.co/organization/integrations/hubspot/manage) and click **Deauthorize**. Your field mappings are preserved if you reconnect later.


---

# 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://docs.spara.com/guides/integration-guides/connecting-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.
