Hubspot Connector for AI Agents

Give agents tools for secure, real-time access to fetch, search, write, and sync across every system, with replication, entity mapping, and auth built-in.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors

About this Connector

HubSpot is a CRM platform that provides tools for marketing, sales, customer service, and content management. This connector provides access to contacts, companies, deals, tickets, and custom objects for customer relationship management and sales analytics.

CRM

Sales Analytics

Customer Data

crm, sales analytics, customer data

Version Information

Package version

0.15.74

Connector version

0.1.8

SDK commit

5b20f488dec0e8f29410823753106603c23a4b65

Support Open Source

Star us on GitHub to help grow the Airbyte community

Github

Installation & Usage

Get started with the Hubspot connector in minutes

1

Install Package

Using uv or pip

bash

Copy
uv pip install airbyte-agent-hubspot

2

Import

Initialize and use

python

Copy
from airbyte_agent_hubspot import HubspotConnector
from airbyte_agent_hubspot.models import HubspotAuthConfig

connector = HubspotConnector(
    auth_config=HubspotAuthConfig(
        client_id="<Your HubSpot OAuth2 Client ID>",
        client_secret="<Your HubSpot OAuth2 Client Secret>",
        refresh_token="<Your HubSpot OAuth2 Refresh Token>",
        access_token="<Your HubSpot OAuth2 Access Token (optional if refresh_token is provided)>"
    )
)

3

Tool

Add tools to your agent

python

Copy
@agent.tool_plain # assumes you're using Pydantic AI
@HubspotConnector.tool_utils
async def hubspot_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Supported Entities & Actions

Access all your Hubspot data through a unified API

Lorem ipsum

Lorem ipsum

| Entity | Actions |\n|--------|---------|\n| Contacts | [List](./REFERENCE.md#contacts-list), [Get](./REFERENCE.md#contacts-get), [API Search](./REFERENCE.md#contacts-api_search) |\n| Companies | [List](./REFERENCE.md#companies-list), [Get](./REFERENCE.md#companies-get), [API Search](./REFERENCE.md#companies-api_search) |\n| Deals | [List](./REFERENCE.md#deals-list), [Get](./REFERENCE.md#deals-get), [API Search](./REFERENCE.md#deals-api_search) |\n| Tickets | [List](./REFERENCE.md#tickets-list), [Get](./REFERENCE.md#tickets-get), [API Search](./REFERENCE.md#tickets-api_search) |\n| Schemas | [List](./REFERENCE.md#schemas-list), [Get](./REFERENCE.md#schemas-get) |\n| Objects | [List](./REFERENCE.md#objects-list), [Get](./REFERENCE.md#objects-get) |

Example Prompts

The Hubspot connector is optimized to handle prompts like these

Lorem ipsum

Show me all deals from \{company\} this quarter - What are the top 5 most valuable deals in my pipeline right now? - List recent tickets from \{customer\} and analyze their support trends - Search for contacts in the marketing department at \{company\} - Give me an overview of my sales team's deals in the last 30 days - Identify the most active companies in our CRM this month - Compare the number of deals closed by different sales representatives - Find all tickets related to a specific product issue and summarize their status

Why Airbyte for AI Agents?

Built for production AI workloads with enterprise-grade reliability

Agent-Native Design

Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.

Secure Authentication

Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.

Production Ready

Battle-tested connectors with comprehensive error handling, logging, and retry logic.

Open Source

Fully open source under the MIT license. Contribute, customize, and extend freely.

Works with your favorite frameworks

Use the Hubspot connector with any AI agent framework

🦜

LangChain

🦙

LlamaIndex

🤖

CrewAI

AutoGen

🧠

OpenAI Agents SDK

🔮

Claude Agents SDK

Frequently Asked Questions

Didn't find your answer? Please don't hesitate to reach out.

How do I authenticate with Hubspot?

The HubSpot connector supports OAuth2 authentication. You need to provide a client ID, client secret, and refresh token. An access token is optional if a refresh token is provided.

Can I use this connector with any AI agent framework?

The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.

Does this connector support write operations?

No, the HubSpot connector currently focuses on read operations only. It does not support creating, updating, or deleting records. Write support may be added in future versions.

How is this different from the Airbyte data connector?

Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.

Will there be a platform for agent connectors?

The hosted version with secure credential storage through Airbyte Cloud is already available. See the hosted usage section in the documentation for setup instructions.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors