> For the complete documentation index, see [llms.txt](https://docs.athenachat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.athenachat.ai/documentation/documentation-en/integrations/hubspot.md).

# HubSpot

Connecting HubSpot and assigning an agent in Chatflow

Athena integration instructions with a HubSpot account.

## Step 1. Connect in Athena

1. Open [**Channels**](/documentation/documentation-en/channels.md).
2. Click **Add channel**.
3. In the list, select **HubSpot**.
4. Log in to your HubSpot account and allow the connection.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2Fcs80YEbbvF5RWOrdJS0o%2Fhubspot-01.webp?alt=media)

## Step 2. Set up the channel in Athena

After logging in, open the Athena channel settings.

{% hint style="warning" %}
**Important**

The user replying through HubSpot must have the same email as in the Athena profile.
{% endhint %}

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2FBaqZ6vzp346XORiacYNf%2Fhubspot-02.webp?alt=media)

## Step 3. Chatflow in HubSpot

To have the agent conduct conversations, set up Chatflow in HubSpot.

1. In HubSpot, open [**Conversations**](/documentation/documentation-en/features/dialogs.md) (Conversations) → **Chatflows**.
2. Create a new Chatflow (**Create a new Chatflow**) or open an existing one.
3. In the Chatflow settings:
   * **Chatflow type:** **Website** (Website) → **Live chat** (Live chat).
   * **Inbox and language** (Inbox and Language): select an inbox. The language must match the language in Athena.
   * **Welcome message** (Welcome Message): greeting text for website visitors.
   * **Conversation assignment** (Conversation Assignment): in **Automatically assign conversations** (Automatically assign conversations), select **Specific users** (Specific users) and the Athena user — the same email as in step 2.
4. Save the Chatflow settings.

![](https://4126380821-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwirYrs8odJMFan3KqfzY%2Fuploads%2F5kVefg57vUyWeG95JB8D%2Fhubspot-03.webp?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.athenachat.ai/documentation/documentation-en/integrations/hubspot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
