> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qontext.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot

> Connect your HubSpot CRM with Qontext

## Overview

The HubSpot connection lets Qontext securely and regularly read CRM data from your connected HubSpot account. That data is structured and stored in your context repository so your AI tools can use it for retrieval and answers.

<Info>
  Only data that the connected HubSpot user can access is ingested. Use an account with access to the contacts, companies, and deals you want in Qontext.
</Info>

**Supported data types:**

| Object      | Description                                                             |
| ----------- | ----------------------------------------------------------------------- |
| `Contacts`  | People and their key details from your CRM                              |
| `Companies` | Organizations linked to your contacts and deals                         |
| `Deals`     | Sales opportunities and their pipeline stages                           |
| `Leads`     | Lead records and their properties                                       |
| `Notes`     | Insights and updates added to CRM records                               |
| `Tasks`     | To-dos and follow-ups tracked in HubSpot                                |
| `Emails`    | Email conversations tracked and linked to contacts, companies, or deals |
| `Meetings`  | Scheduled or logged meetings with prospects or clients                  |
| `Calls`     | Call records associated with a contact or company                       |

***

## Recommended setup

Use a **dedicated integration user** in your HubSpot workspace to ensure a stable connection.

<div className="qontext-tip-check-wrapper">
  <Tip> Create a service account such as `qontext@yourcompany.com` with **Super Admin** rights. This keeps the integration active even if employee accounts change or are deactivated. </Tip>
</div>

The integration user will:

* Authenticate the connection between Qontext and HubSpot.
* Maintain consistent access to required HubSpot data.

***

## Setting up the connection

You can connect HubSpot from your Qontext workspace, authorize access in HubSpot, then choose what to sync and how often. The steps below walk you through the full flow.

<Info>
  You can also manage all your credentials, including HubSpot, from the **Sources** page.
</Info>

<Steps>
  <Step title="Open Sources in your workspace">
    In the [Qontext app](https://app.qontext.ai), open your workspace and go to the **Sources** tab, then click **+ Connect data source**.

    <img src="https://mintcdn.com/qontext/j3o0tEnncO_MaI30/connections/images/sources_page.png?fit=max&auto=format&n=j3o0tEnncO_MaI30&q=85&s=11648406c2e1aef5cf37535482067443" alt="Sources tab in a Qontext workspace" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="2977" height="1856" data-path="connections/images/sources_page.png" />
  </Step>

  <Step title="Select HubSpot as the data source">
    Choose **HubSpot** from the list of available data sources. This starts the HubSpot connection flow.

    <img src="https://mintcdn.com/qontext/QPEmfEYHnv00ykRo/connections/images/qontext_select_integration.png?fit=max&auto=format&n=QPEmfEYHnv00ykRo&q=85&s=333cc38e25e2a6c6003ebe5a0b64d492" alt="Select HubSpot from the list of integrations" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="1502" height="1075" data-path="connections/images/qontext_select_integration.png" />
  </Step>

  <Step title="Connect your HubSpot account">
    You can **reuse existing credentials** (if you’ve already connected this HubSpot account to Qontext) or **create a new connection**.

    <img src="https://mintcdn.com/qontext/w_4cBLKBmF7oI7ya/connections/images/qontext_choose_connection.png?fit=max&auto=format&n=w_4cBLKBmF7oI7ya&q=85&s=e455b0c28bed13daa4eea9d56c56a2cb" alt="Choose an existing connection or create a new one" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="1517" height="787" data-path="connections/images/qontext_choose_connection.png" />

    If you create a new connection, sign in to HubSpot when prompted and select the HubSpot account you want to use.

    On the HubSpot consent screen, review the requested permissions and click **Connect app** to approve. This completes the OAuth flow and grants Qontext read access to the CRM data you authorize.

    <img src="https://mintcdn.com/qontext/yLBYSiXLqjzPPV31/connections/images/hubspot/hubspot_scope_selection.png?fit=max&auto=format&n=yLBYSiXLqjzPPV31&q=85&s=1162e92ee3e2aab94770305857d15807" alt="HubSpot OAuth scope consent screen" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="604" height="729" data-path="connections/images/hubspot/hubspot_scope_selection.png" />
  </Step>

  <Step title="Configure what to sync (filters)" id="configure-what-to-sync-filters">
    By default, Qontext can sync a broad set of data. You can narrow it using one or more of these options so only the data you need is ingested into your context repository.

    <Tabs>
      <Tab title="Manual selection">
        Pick specific contacts, companies, or deals by searching and selecting them. Use this when you only want a defined set of records.

        <img src="https://mintcdn.com/qontext/yLBYSiXLqjzPPV31/connections/images/hubspot/hubspot_select_manually.png?fit=max&auto=format&n=yLBYSiXLqjzPPV31&q=85&s=ff5ca54fed6b11666d00c0cc75c1365c" alt="Manually select contacts, companies, or deals" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="750" height="382" data-path="connections/images/hubspot/hubspot_select_manually.png" />
      </Tab>

      <Tab title="Select segment(s)">
        Sync data from one or more HubSpot lists or segments. Useful when you already manage audiences in HubSpot and want the same scope in Qontext.

        <img src="https://mintcdn.com/qontext/yLBYSiXLqjzPPV31/connections/images/hubspot/hubspot_select_segments.png?fit=max&auto=format&n=yLBYSiXLqjzPPV31&q=85&s=b68418183429aead435ecab674899bb2" alt="Choose HubSpot lists or segments" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="748" height="415" data-path="connections/images/hubspot/hubspot_select_segments.png" />
      </Tab>

      <Tab title="Select deal pipeline(s)">
        Ingest deals from selected pipelines. Only deals in the chosen pipelines will be synced.

        <img src="https://mintcdn.com/qontext/yLBYSiXLqjzPPV31/connections/images/hubspot/hubspot_select_pipeline.png?fit=max&auto=format&n=yLBYSiXLqjzPPV31&q=85&s=6b28b88a8d5fd8559aef8348c6cf4f6a" alt="Select one or more deal pipelines" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="753" height="414" data-path="connections/images/hubspot/hubspot_select_pipeline.png" />
      </Tab>

      <Tab title="Select record type(s)">
        Choose which object types to sync. This controls the breadth of data without picking specific records.

        <img src="https://mintcdn.com/qontext/yLBYSiXLqjzPPV31/connections/images/hubspot/hubspot_select_types.png?fit=max&auto=format&n=yLBYSiXLqjzPPV31&q=85&s=43f604bc72aca2af38ab827272200290" alt="Select record types (contacts, companies, deals, etc.)" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="751" height="457" data-path="connections/images/hubspot/hubspot_select_types.png" />
      </Tab>
    </Tabs>
  </Step>

  <Step title="Set sync frequency">
    Choose how often Qontext should refresh data from HubSpot (e.g. daily, weekly, monthly). More frequent syncs keep the context repository up to date but use more resources.

    <img src="https://mintcdn.com/qontext/Ku7aGfXZDb7X9YW2/connections/images/qontext_sync_frequency.png?fit=max&auto=format&n=Ku7aGfXZDb7X9YW2&q=85&s=8cc495fad125ccc46466e89f34bd6f81" alt="Sync frequency settings" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="1486" height="760" data-path="connections/images/qontext_sync_frequency.png" />
  </Step>

  <Step title="Review and create connection">
    Review your choices (account, filters, frequency), then confirm to create the connection. Qontext will start the initial sync shortly after.

    <img src="https://mintcdn.com/qontext/yLBYSiXLqjzPPV31/connections/images/hubspot/hubspot_review_create.png?fit=max&auto=format&n=yLBYSiXLqjzPPV31&q=85&s=9b1570a19de1b706e32dccb223964e48" alt="Review summary and create connection" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="1516" height="777" data-path="connections/images/hubspot/hubspot_review_create.png" />
  </Step>
</Steps>

***

## HubSpot OAuth scopes

When you create a new connection, you’ll see a consent screen listing the permissions (scopes) Qontext needs; they are read-only. You'll see a section like *("Manage and view your CRM data")* with scopes such as:

```text theme={null}
- View details about contact lists.
- View properties and other details about appointments.
- View properties and other details about carts.
- View details about commerce payments.
- View properties and other details about companies.
- [...]
- View properties and other details about contacts.
- View properties and other details about courses.
- View details about custom objects in the CRM.
- View properties and other details about deals.
- View details about submissions to any of your feedback surveys.
```

Granting these scopes is required for the connection to work. Qontext does not write or delete data in HubSpot.

***

## Sync latency

Qontext preprocesses and structures your HubSpot data before ingesting it into the context repository. The **first sync** can take a while depending on how much data you are syncing (contacts, companies, deals, etc.).

As a guideline, allow **up to 12 hours** after creating the connection for the initial sync to finish.

***

## FAQ

<AccordionGroup>
  <Accordion title="Can I connect multiple HubSpot accounts?">
    Yes. You can connect multiple HubSpot accounts by following the steps above for each connection. Add each account from the **Sources** tab in your workspace.
  </Accordion>

  <Accordion title="How do I manually refresh HubSpot data?">
    Manual refresh for HubSpot connections is available via the **Sources** tab. Navigate to the respective HubSpot connection and open the **Syncs** tab. In the Sync settings, you can select **Resync all data**.

    <img src="https://mintcdn.com/qontext/j3o0tEnncO_MaI30/connections/images/hubspot/hubspot_resync.png?fit=max&auto=format&n=j3o0tEnncO_MaI30&q=85&s=b4759884a1524ec58596f451e37b4fa6" alt="Resync" className="rounded-lg mt-4" style={{ maxWidth: '100%' }} width="2986" height="1844" data-path="connections/images/hubspot/hubspot_resync.png" />
  </Accordion>

  <Accordion title="What happens if I disconnect HubSpot?">
    If you disconnect your HubSpot account from a connected workspace, no new data will be synced. Existing HubSpot data in the context repository will remain available for now. An upcoming update will introduce configurable data retention options upon disconnection. If you need to remove data for compliance or testing reasons, please contact [support@qontext.ai](mailto:support@qontext.ai).
  </Accordion>

  <Accordion title="Is my HubSpot data secure?">
    Absolutely. All HubSpot data processed through Qontext is encrypted in transit and at rest. Qontext only accesses data you explicitly authorize via HubSpot OAuth scopes, ensuring your information remains secure and private.
  </Accordion>

  <Accordion title="Can I limit what HubSpot data Qontext can access?">
    By default, Qontext only ingests the data authorized through HubSpot’s OAuth scopes. Additionally, you can set [filters](#configure-what-to-sync-filters) when creating the HubSpot connection.
  </Accordion>

  <Accordion title="What happens if my HubSpot permissions change?">
    If the connected HubSpot user’s permissions are reduced or revoked, Qontext may lose access to certain data. To maintain uninterrupted syncs, we recommend using a **dedicated HubSpot service account** with stable permissions.
  </Accordion>

  <Accordion title="What should I do if my HubSpot sync fails?">
    Sync failures usually occur due to expired OAuth tokens or insufficient permissions. Try reconnecting HubSpot in your **Sources** tab. If the issue persists, contact our team at [support@qontext.ai](mailto:support@qontext.ai) for faster troubleshooting.
  </Accordion>
</AccordionGroup>
