> ## Documentation Index
> Fetch the complete documentation index at: https://chatbase.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot

> Connect HubSpot to Chatbase so your AI agent can create tickets.

## Setup Guide

### Before you start

* A Chatbase account with an agent
* A HubSpot account with permissions to install apps
* A paid Chatbase plan with Integrations enabled

<Steps>
  <Step title="Open your Chatbase agent">
    Go to your Chatbase dashboard and select the agent you want to connect.

    <Frame>
      <img src="https://mintcdn.com/chatbase/2frgIwJWPpj5TPLA/user-guides/integrations/images/hubspot/hubspot-1.png?fit=max&auto=format&n=2frgIwJWPpj5TPLA&q=85&s=09dd2e4337ee67a250a076bad27682bf" alt="Chatbase dashboard showing agents" width="2938" height="1650" data-path="user-guides/integrations/images/hubspot/hubspot-1.png" />
    </Frame>
  </Step>

  <Step title="Connect HubSpot">
    Go to **Settings → Integrations**, find **HubSpot**, and click **Connect**.

    <Frame>
      <img src="https://mintcdn.com/chatbase/2frgIwJWPpj5TPLA/user-guides/integrations/images/hubspot/hubspot-2.png?fit=max&auto=format&n=2frgIwJWPpj5TPLA&q=85&s=884b40748be2829362e24b67ff9925b7" alt="Integrations page with the HubSpot card" width="2938" height="1650" data-path="user-guides/integrations/images/hubspot/hubspot-2.png" />
    </Frame>
  </Step>

  <Step title="Approve the requested scopes">
    You will be redirected to HubSpot. Review the requested permissions and click **Connect app**.

    <Frame>
      <img src="https://mintcdn.com/chatbase/SprxjLUsO_Nw9yoa/user-guides/integrations/images/hubspot/hubspot-3.png?fit=max&auto=format&n=SprxjLUsO_Nw9yoa&q=85&s=6a487a7acc191a2789d51c3ec07e5b20" alt="HubSpot OAuth page" width="2938" height="1566" data-path="user-guides/integrations/images/hubspot/hubspot-3.png" />
    </Frame>
  </Step>

  <Step title="Confirm the connection">
    After approval, you will return to Chatbase and see HubSpot marked as **Connected**.
  </Step>
</Steps>

## Configure the ticket action

Create a ticket action so your agent can open tickets in HubSpot.

<Steps>
  <Step title="Create a ticket action">
    Go to **Actions → Create action → Create ticket**.

    <Frame>
      <img src="https://mintcdn.com/chatbase/SprxjLUsO_Nw9yoa/user-guides/integrations/images/hubspot/hubspot-4.png?fit=max&auto=format&n=SprxjLUsO_Nw9yoa&q=85&s=9087e66d06d4bd58b1056e82cc6152c2" alt="Create ticket action" width="2938" height="1566" data-path="user-guides/integrations/images/hubspot/hubspot-4.png" />
    </Frame>
  </Step>

  <Step title="Select HubSpot">
    Choose **HubSpot** as the ticket platform, then fill in the ticket fields.
  </Step>

  <Step title="Save and test">
    Save the action and run a test conversation to verify a ticket is created in HubSpot.
  </Step>
</Steps>

## Use the integration

Once connected, your agent can create tickets in HubSpot when the action is triggered. You can check out [the action guide here](https://www.chatbase.co/docs/user-guides/chatbot/actions/escalate-to-human).

## Disconnect HubSpot

To disconnect, go to **Settings → Integrations**, find HubSpot, and click **Disconnect**.

## Uninstall the app

To uninstall Chatbase from HubSpot, follow HubSpot's [uninstall guide](https://knowledge.hubspot.com/integrations/connect-apps-to-hubspot#uninstall-an-app).
