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

# Connect HubSpot

> Connect HubSpot and SmartAlex can do two things, separately or together:

Connect HubSpot and SmartAlex can do two things, separately or together:

| Option | What it does |
| - | - |
| **Use during calls** | "Your agent looks up a customer in HubSpot while it is talking to them." It answers with their real details. |
| **Import contacts** | Brings your HubSpot contacts into SmartAlex, so your agents can call them in a campaign. |

## What you need

| You need | Details |
| - | - |
| A HubSpot account | And a HubSpot login that can connect apps. |
| Your SmartAlex role | Permission to connect a CRM. If you see "You do not have permission to connect a CRM. Ask an administrator.", ask your workspace owner. |
| Time | About five minutes. |

## 1. Open HubSpot in SmartAlex

1. Open **Agent Settings**, then **Connectors**.
2. On **Browse**, find **HubSpot** ("Import your contacts, and read customer info live
   on a call.") and open it. The page says: "Use your CRM during calls, import
   contacts, or both."

## 2. Use during calls

1. Next to **Use during calls**, click **Set up**.
2. Read **Before you connect**. It tells you what HubSpot will show:
   * Sign in to HubSpot and pick the account you want to connect.
   * Choose what SmartAlex can access. Click **View-only** at the top right: everything
     the agent needs to read your CRM, and nothing more.
   * HubSpot then warns that SmartAlex is unverified and asks you to type "I accept
     the risk". This shows for every app not listed on HubSpot's public marketplace.
     Before you continue, check the redirect domain reads `api.getsmartalex.com`.
3. Connect and finish the steps in HubSpot.
4. Back in SmartAlex, pick the tools this agent may use, then click **Save tools**. You
   see that the tools are saved: "Applies on the next call."

### The tools

| Tool | What the agent can do |
| - | - |
| **Find a contact** | Find a contact, company, deal or ticket by name, email or phone. |
| **Open a record** | Open a record it has already found. |
| **Ask a question of the CRM** | Ask a more precise question across one type of record. |
| **Find a field** | Find which fields exist on a record. |
| **Find an owner** | Find the right owner by name, to route or refer to them. |
| **Update a record** | Change a record. Marked **Changes data**. |

Two ready-made sets switch on a group in one go:

* **Look up callers**: "The agent can find a caller and read their record."
* **Look up and update**: "Everything above, plus updating the record after the call."

The agent reads contacts, companies, deals, tickets and past calls, emails and notes. It
can never delete anything. **Update a record** needs write access in HubSpot: if you
connected with **View-only**, leave it off.

Tools are switched on per agent. An agent can have up to 20 tools on in total, counting
every connector.

## 3. Import contacts

1. Next to **Import contacts**, click **Connect**, sign in to HubSpot and pick the
   account. If you would rather not sign in, click **Use a private app token instead**,
   paste your HubSpot private app access token and click **Connect with token**.
2. The import starts: "Importing your HubSpot contacts...". You see how many are done so
   far.
3. When it finishes, the page shows when they were **Last imported**.

The import brings in contacts only. Imported people appear in **Contacts**, ready for a
campaign. See [Run a calling campaign](https://docs.getsmartalex.com/how-to/run-a-campaign.md).

## Disconnect

At the top of the HubSpot page, click **Disconnect**. You see "HubSpot disconnected". To stop an agent using HubSpot during calls, switch its HubSpot tools off
and save.

## If it does not work

| What you see | What to do |
| - | - |
| "You cancelled the HubSpot sign-in." | Click **Connect** again and finish the steps in HubSpot. |
| "HubSpot could not complete the connection. Try again." | Try again. Check you typed "I accept the risk" exactly and the redirect domain reads `api.getsmartalex.com`. |
| **Needs reconnecting** | HubSpot stopped accepting the connection. Click **Reconnect**. |
| "You do not have permission to connect a CRM. Ask an administrator." | Ask your workspace owner to connect it, or to give you the permission. |
| The agent cannot change a record | Turn on **Update a record**, and check you did not connect with **View-only**. |
| "This agent is using all 20 tool slots." | Turn another tool off to make room. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.