HubSpot

Connect HubSpot

hubspot_connect · Changes data · Markdown

Connects the company's HubSpot through its own private app's token.

Free

This tool costs nothing to call.

An example

Connect our HubSpot.

Your agent callshubspot_connectFree

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{}
What comes back
{
  "link": "https://conecto.chat/api/bots/connect/j3iKX-_VrJz79mY23wu7OMcF4fJJXfs6ko7T6BCnegE",
  "expires_in_minutes": 60,
  "tell_the_owner": "Open this link within the hour, sign in to Conecto and type the HubSpot service key or private app token there. It goes to Conecto only; I never see it.",
  "from_a_terminal": "npx @conecto-chat/cli@latest run hubspot_connect -s token",
  "from_a_terminal_with_curl": "printf %s 'Service key or token: '; read -rs v1; echo; curl -sS -H \"Authorization: Bearer $CONECTO_KEY\" --data-urlencode token@<(printf %s \"$v1\") https://conecto.chat/api/bots/connect/j3iKX-_VrJz79mY23wu7OMcF4fJJXfs6ko7T6BCnegE; unset v1",
  "next": "When the owner types it on the link, account.credential_added (account_events) says so, with what hubspot_connect answered."
}

Use it when

The company keeps its customers in HubSpot and wants the agent to work in them there.

What it does

Connect the company's own HubSpot, which stays the source of truth: the agent finds, reads and changes contacts, companies, deals and tickets there. The company makes a service key in HubSpot (Settings, Integrations, Service Keys) with the CRM scopes the agent may use, or uses a private app's token. Called without token, it answers with a link for the owner, who types it on a Conecto page, so it never passes through the chat (from_a_terminal does the same from a terminal); account.credential_added says when it is connected. The token is checked before anything is kept. On accounts with an owner, changing an existing record waits for the owner's approval by default. Free.

What comes back

Without token: link, a page where the owner or an admin, signed in, types the service key or private app token, with expires_in_minutes, tell_the_owner, from_a_terminal (the CLI), from_a_terminal_with_curl and next. With token: hubspot, connected_at; need_approval, the tools that now wait for the owner. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
tokenstringThe service key or private app token. Never shown again. Leave it out to get the link instead. 10 to 500 characters.

The call

Over MCP, call hubspot_connect on https://api.conecto.chat/mcp/hubspot. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/hubspot_connect \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
vendor_rejected502HubSpot refused the token.Copy the private app's token again.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md