Hubspot

From BuilderIO/agent-native · View interactive version

Hubspot is an AI agent skill from the GitHub repository BuilderIO/agent-native. Query HubSpot CRM for deals, contacts, companies, and sales metrics. Use this skill when the user asks about sales pipeline, deal status, or customer CRM data.

How to use this skill

Skill file

HubSpot CRM Integration

Connection

HUBSPOT_ACCESS_TOKEN

HUBSPOT_ACCESS_TOKEN legacy

Server Lib

Exported Functions

| Function | Description |

| ------------------------------------------------ | ------------------------------------ |

| getDealPipelines() | All deal pipelines with stages |

| getVisiblePipelines(pipelines) | Filter to visible pipelines |

| getMetricsPipelines(pipelines) | Filter to metrics-relevant pipelines |

| getDealProperties() | HubSpot deal property metadata |

| getAllDeals(extraProperties?) | All deals (paginated, up to ~10k) |

| getDealOwners() | HubSpot owner id → owner name map |

| computeSalesMetrics(deals, pipelines, filter?) | Compute won/lost/pipeline metrics |

Script Usage

# Search deals for a named account/deal
pnpm action hubspot-deals --query="Example Corp" --limit=10 --properties=dealname,amount,dealstage

# Structured cohort: products field = Publish, closed-won New Business deals
pnpm action hubspot-deals --product=Publish --pipeline="New Business" --closedStatus=won --closedDateFrom=2025-06-01 --closedDateTo=2026-06-01

# List deals
pnpm action hubspot-deals --properties=dealname,amount,dealstage

# Find custom fields before requesting them
pnpm action hubspot-deal-properties --search=nbm

Key Patterns & Gotchas

HubSpot Company Properties (BigQuery staging table)

Table: your-project-id.dbt_staging.hubspot_companies

Cross-Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.