← All Articles

HubSpot Integration Setup

integrations beginner integrations hubspot crm oauth

SecureAI can connect to your HubSpot CRM to pull customer data, vehicle history, and service records into your AI conversations. This guide covers how to set up the OAuth connection, what data SecureAI can access, and practical use cases for automotive aftermarket shops.

Prerequisites

Before setting up the HubSpot integration, you need:

Setting Up the OAuth Connection

SecureAI uses OAuth 2.0 to connect to HubSpot. This means SecureAI never stores your HubSpot password -- it uses a revocable access token instead.

Step 1: Open Integration Settings

  1. Log in to SecureAI as an administrator.
  2. Navigate to Admin Panel > Integrations > CRM Connections.
  3. Click Add Connection and select HubSpot from the list.

Step 2: Authorize SecureAI in HubSpot

  1. Click Connect to HubSpot. You will be redirected to HubSpot's authorization page.
  2. Sign in to your HubSpot account if prompted.
  3. Review the permissions SecureAI is requesting (see "Data Access Scopes" below).
  4. Click Grant Access.
  5. You will be redirected back to SecureAI with a confirmation message.

Step 3: Verify the Connection

After authorization, the Integrations page should show HubSpot as Connected with a green status indicator. You can verify by clicking Test Connection -- SecureAI will attempt to read a sample contact record and confirm the API is responding.

If the connection test fails:

Revoking Access

To disconnect SecureAI from HubSpot:

  1. In SecureAI: Admin Panel > Integrations > CRM Connections > HubSpot > Disconnect.
  2. In HubSpot: Settings > Account Setup > Integrations > Connected Apps -- find SecureAI and click Uninstall. This revokes the OAuth token from the HubSpot side.

Always revoke from both sides to ensure a clean disconnection.

Data Access Scopes

When you authorize the connection, SecureAI requests access to the following HubSpot data:

Scope What SecureAI Can Read What SecureAI Cannot Do
Contacts Names, emails, phone numbers, company associations Create, edit, or delete contacts
Companies Company names, domains, industry, associated contacts Modify company records
Deals Deal names, stages, amounts, associated contacts and companies Create or modify deals
Custom Properties Any custom contact or company properties you have defined Change property definitions
Notes and Activities Activity timeline, logged calls, emails, notes on records Create activities or send emails

SecureAI has read-only access. It cannot modify, create, or delete any records in your HubSpot account. This is enforced at the OAuth scope level -- even if a bug existed in SecureAI, the HubSpot API would reject any write attempts.

Custom Property Access

If your shop uses custom HubSpot properties (e.g., "Vehicle VIN", "Fleet Size", "Preferred Parts Brand"), SecureAI can read these automatically. No additional configuration is needed -- custom properties are included in the Contacts and Companies scopes.

Use Cases for Automotive Aftermarket

Customer Lookup During Chat

When a customer calls or messages with a parts question, you can pull their HubSpot record directly into the SecureAI conversation.

Prompt:

Look up the HubSpot contact for john.smith@abcfleet.com.
What vehicles do we have on file for this customer?

SecureAI returns the contact record, associated company, and any vehicle-related custom properties. You can then ask follow-up questions with that context already loaded.

Service History Context

If your shop logs service activities in HubSpot, SecureAI can pull that history to inform parts recommendations.

Prompt:

Pull the activity history for ABC Fleet Management in HubSpot.
Based on their recent service records, what recurring parts
needs should I anticipate for their next visit?

SecureAI reads the activity timeline and uses the context to make informed suggestions rather than generic recommendations.

Deal-Based Parts Preparation

For shops that track jobs as HubSpot deals, SecureAI can read the deal details to prepare parts lists.

Prompt:

Look up deal "Fleet Brake Service - ABC Fleet" in HubSpot.
What vehicles are associated with this deal? Generate a
parts list for front brake service on each vehicle.

Bulk Customer Outreach Preparation

Use SecureAI to analyze your HubSpot contact list for service opportunities.

Prompt:

From our HubSpot contacts, which customers have vehicles
with more than 60,000 miles that haven't had a service
activity logged in the last 6 months? Summarize as a
list I can use for a service reminder campaign.

SecureAI reads the relevant contact properties and activity data, then returns a filtered summary. You still build and send the campaign in HubSpot or your email tool -- SecureAI just does the analysis.

Data Privacy and Security

What Data Leaves HubSpot

When SecureAI queries HubSpot, the API returns only the specific records and fields requested. Data flows from HubSpot to SecureAI over an encrypted HTTPS connection.

Data Retention

SecureAI does not store HubSpot data permanently. CRM data pulled during a conversation is:

Access Control

Only SecureAI users with the CRM Integration permission can query HubSpot data in their conversations. Administrators can assign this permission per user or per role in Admin Panel > User Management > Permissions.

Users without this permission will see a "CRM access not enabled" message if they attempt a HubSpot query.

Audit Trail

All HubSpot data queries are logged in the SecureAI audit log with:

Administrators can review CRM query activity in Admin Panel > Audit Log > Filter by: CRM Queries.

Troubleshooting

"Connection expired" Error

HubSpot OAuth tokens expire periodically. SecureAI automatically refreshes tokens, but if you see this error:

  1. Go to Admin Panel > Integrations > HubSpot.
  2. Click Reconnect. You will be redirected to HubSpot to re-authorize.
  3. This is a re-authorization, not a new setup -- your configuration is preserved.

"Insufficient permissions" on Specific Queries

If SecureAI can connect but fails on certain queries (e.g., reading deals), the HubSpot user who authorized the connection may not have access to that data in HubSpot. HubSpot enforces its own permissions on top of the OAuth scopes.

Fix: Have a HubSpot Super Admin re-authorize the connection, or adjust the authorizing user's HubSpot permissions.

Slow Query Responses

Large HubSpot accounts (10,000+ contacts) may see slower responses on broad queries. To improve performance:

Data Not Appearing in SecureAI

If recently added HubSpot records do not appear in SecureAI queries:

Current Limitations

Related Topics