Skip to main content

HubSpot Connector Documentation

Connect your HubSpot to Abacus.AI​

The HubSpot connector uses OAuth 2.0 to securely authenticate with your HubSpot account. No API keys are needed — simply log in to HubSpot and authorize Abacus.AI.

Step 1: Open Connected Services​

  1. In the Abacus.AI interface, click on your profile picture in the top right corner.

    Abacus Profile
  2. Select "Manage Connectors" from the dropdown menu.

    Manage Connectors

Step 2: Add a New HubSpot Connector​

  1. Click on "Add New Connector", then choose "HubSpot" from the list of available services.

    Select HubSpot Service
  2. Enter a name for your connector in the Connector Name field.

  3. Click "Connect HubSpot" to initiate the OAuth flow. You will be redirected to HubSpot's authorization page where you can log in and grant the requested permissions.

    HubSpot OAuth Setup
  4. After authorizing, you will be redirected back to Abacus.AI and your connector will be verified.

Config Only Mode (Advanced)​

If you want to pre-configure the connector without immediately authenticating (for example, to customize OAuth scopes), toggle Config Only to "Yes". This reveals a Scopes selector where you can choose which HubSpot permissions to request.

HubSpot Config Only with Scopes

Available Scopes​

ScopeDescription
oauthRequired base scope for OAuth authentication
crm.objects.contacts.readRead access to contacts
crm.objects.companies.readRead access to companies
crm.objects.deals.readRead access to deals
crm.objects.line_items.readRead access to line items
crm.objects.products.readRead access to products
crm.objects.quotes.readRead access to quotes
crm.objects.owners.readRead access to record owners
crm.schemas.contacts.readRead contact schemas/properties
crm.schemas.companies.readRead company schemas/properties
crm.schemas.deals.readRead deal schemas/properties
crm.schemas.line_items.readRead line item schemas/properties
crm.schemas.quotes.readRead quote schemas/properties
crm.schemas.custom.readRead custom object schemas

All scopes are selected by default. You can remove scopes if you want to restrict access.

How to Use the HubSpot Connector​

Once the HubSpot connector is set up, you can import CRM data into Abacus.AI for analysis and model training.

Creating a Dataset​

  1. Create a new project and select the use case, then go to the Datasets tab and click "Create Dataset".

    Create Dataset
  2. Click on "Create New" and name the dataset.

    Create New Dataset
  3. Choose "Read from External Service" and select your HubSpot connector under "Application Connectors".

    Read from External Service
  4. Configure the dataset import options:

    • HubSpot CRM Object: Select the object type you want to import (e.g., Contacts, Companies, Deals). Both standard and custom objects are listed dynamically from your HubSpot account.
    • Associations (Advanced): Optionally specify associated object types to include (e.g., companies, contacts, deals). Association data will be added as extra columns.
    • Include Archived Records (Advanced): Check this to include records that have been archived in HubSpot.
  5. After configuring the data import options, proceed to upload the dataset.

  6. Once the dataset is uploaded, configure the schema mapping and train models with the data.

    Train Model with Data

Supported CRM Objects​

The HubSpot connector supports importing the following standard CRM objects:

ObjectDescription
ContactsPeople in your CRM (leads, customers, etc.)
CompaniesOrganizations associated with your contacts
DealsSales opportunities and pipeline items
Line ItemsIndividual items within a deal
ProductsItems in your product catalog
QuotesPrice quotes associated with deals

In addition, custom objects defined in your HubSpot account are automatically discovered and available for import.

Exported Data Format​

Each dataset record includes:

  • id — HubSpot record ID
  • createdAt — Record creation timestamp
  • updatedAt — Last modification timestamp
  • archived — Whether the record is archived
  • All selected properties for the object type
  • Association columns (if associations are configured)

Using HubSpot Data​

  • DataLLM Use Case: HubSpot CRM data is ideal for structured data interactions, such as querying contacts, analyzing deal pipelines, generating sales reports, or tracking customer trends.
  • ChatLLM Use Case: HubSpot data is treated as a custom table and cannot be directly used in ChatLLM projects as a document source.
  • Combined Data+ChatLLM Use Case: HubSpot data can be combined with other data sources (documents, emails, etc.) to provide conversational insights alongside structured CRM data.

Troubleshooting​

If you encounter issues:

  1. Invalid connector status: Your OAuth tokens may have expired. Delete the connector and re-authenticate.
  2. Missing objects: Ensure the OAuth scopes include read access for the object type you need.
  3. Empty datasets: Verify that the selected CRM object contains records in your HubSpot account.
  4. Custom objects not showing: Ensure the crm.schemas.custom.read scope is included in your connector configuration.