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, companies, contacts, tickets, owners, and account/deal context. Use when the user asks for HubSpot data or connection status.

How to use this skill

Skill file

HubSpot

Use HubSpot for CRM facts: deal status, amount, stage, owner, forecast,

associated account context, contacts, companies, and tickets.

Analytics' HubSpot actions use its native provider credential or granted

workspace connection. A missing optional HubSpot MCP server does not mean

HubSpot is disconnected. Never send the user to HubSpot MCP setup to answer an

Analytics data question. If availability is unclear, call data-source-status

with key: "hubspot"; when it reports HubSpot configured, run the native

HubSpot action directly.

hubspot-deals is a legacy-named deal analytics shortcut, not the boundary of

the HubSpot integration. If the user asks for any HubSpot object, endpoint,

association, property, filter, batch read/write, or API version that the typed

actions do not expose, inspect the provider catalog/docs and call

provider-api-request with provider: "hubspot".

Actions

deep dive (use run-gong-native-insight for what was said in calls). It

searches matching HubSpot deals, loads associated companies, contacts,

tickets, notes, and emails, then pairs that CRM context with Gong evidence.

NBM fields. For a named customer/deal/account, pass query; do not fetch all

deals first. For a deal cohort, use structured filters such as product,

pipeline, closedStatus, closedDateFrom, and closedDateTo.

deals, and tickets. Use this to enrich a deep dive with company, contact, or

ticket records.

sales metrics.

ones), prefer the metadata cached internally by hubspot-records when the

needed field names are already known. If field discovery needs the properties

endpoint, call provider-api-request (provider hubspot, e.g.

/crm/v3/properties/deals) via provider-api-docs without stageAs.

Property definitions are read-only control metadata, not analysis rows; never

stage them. stageAs writes result rows to staged-dataset storage, which

has a per-user quota and an app-wide limit. Going over either removes the

least recently written datasets (the user's own for the per-user quota, any

user's for the app-wide limit), and a write too large to fit even then fails.

Do not clear existing staged datasets to make room. If a metadata request cannot be

read without staging, narrow the request or return only the required property

names, labels, and types through a read-only path.

API calls when first-class actions are too narrow.

Pipeline Stage Timing — Use Stage-Entry Date Fields

**Always use hs_v2_date_entered_{stageId} for deterministic pipeline-stage

timing**, not keyword or amount heuristics:

the deal first entered that stage. Use this to filter deals that reached a

specific stage within a date window.

searches) have been found to diverge from stage-date filters by ~48% — nearly

half the deals are different. Stage-entry date fields provide verifiable,

auditable results.

To discover stage IDs, call hubspot-pipelines first and read the stageId

fields in the returned pipeline structure.

Example use: to count deals that reached "Qualified Opportunity" stage in Q1:

provider-api-request(
  provider: "hubspot",
  path: "/crm/v3/objects/deals/search",
  method: "POST",
  body: {
    "filterGroups": [{
      "filters": [{
        "propertyName": "hs_v2_date_entered_<stageId>",
        "operator": "BETWEEN",
        "value": "2026-01-01",
        "highValue": "2026-03-31"
      }]
    }],
    "properties": ["dealname", "amount", "hs_v2_date_entered_<stageId>"]
  }
)

Multi-Dimensional Closed-Lost Analysis

Deals are rarely lost for a single reason. When analyzing closed-lost deals:

factor (★), possible factor (~).

Friction, Competitive Loss, Security/Compliance, Wrong Persona/Champion,

Timeline Mismatch, Support/Success Gaps, etc.

may affect multiple deals simultaneously.

multi-dimensional, and flattening to one reason distorts win/loss patterns.

combinations.

Patterns

For account or deal deep dives:

  1. Call data-source-status if you are not sure HubSpot is connected.
  2. Call account-deep-dive with query set to the company, domain, deal, or

opportunity name. Use its associated companies, contacts, tickets, notes, and

emails as the CRM backbone of the answer.

  1. If a specific CRM gap remains, call hubspot-deals or hubspot-records

with bounded filters for that missing object only.

  1. Cite which records you inspected and keep unsupported associations as caveats.

Example:

account-deep-dive(query: "The Knot", days: 180, gongLimit: 10, transcriptLimit: 5)
hubspot-deals(query: "The Knot", limit: 10)
hubspot-records(objectType: "companies", query: "theknot.com", limit: 5)
hubspot-records(objectType: "contacts", query: "theknot.com", limit: 25)

Do not use warehouse copies of HubSpot as a substitute unless the user asks for

the warehouse data or the live HubSpot action is unavailable and the user chooses

that fallback.

For deal cohorts:

  1. Translate the cohort definition into structured hubspot-deals filters.

Example: "new business deals where products field is Publish, closed won in

the last 12 months" means product: "Publish", pipeline: "New Business",

closedStatus: "won", and explicit close-date bounds.

  1. Do not use query for property-specific filters. query: "Publish" is a

broad HubSpot search across deal text and can include unrelated deals.

  1. Report the cohort count, filters, and date window before synthesizing. If the

count looks too low, inspect deal property metadata

(/crm/v3/properties/deals) or use stage-entry date fields via

provider-api-request.

  1. When pairing a cohort with Gong, use returned deal/company/contact evidence

to run bounded Gong follow-ups and state Gong coverage separately from the

HubSpot cohort size.

If hubspot-deals still cannot express the needed HubSpot query, do not stop

or approximate. Call provider-api-catalog(provider: "hubspot"), fetch the

HubSpot docs/spec with provider-api-docs if needed, then call

provider-api-request(provider: "hubspot", ...) with the exact CRM endpoint,

filters, properties, associations, and pagination body.

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.