> 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/integracii/hubspot.md).

# HubSpot

Подключение HubSpot и назначение агента в Chatflow

Инструкция по интеграции Афины с аккаунтом HubSpot.

## Шаг 1. Подключение в Афине

1. Откройте [**Каналы**](/kanaly.md).
2. Нажмите **Добавить канал**.
3. В списке выберите **HubSpot**.
4. Войдите в аккаунт HubSpot и разрешите подключение.

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

## Шаг 2. Настройка канала в Афине

После входа откройте настройки канала Афины.

{% hint style="warning" %}
**Важно**

У пользователя, который отвечает через HubSpot, должен быть тот же email, что в профиле Афины.
{% endhint %}

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

## Шаг 3. Chatflow в HubSpot

Чтобы агент вёл диалоги, настройте Chatflow в HubSpot.

1. В HubSpot откройте [**Диалоги**](/funkcional/dialogi.md) (Conversations) → **Chatflows**.
2. Создайте новый Chatflow (**Create a new Chatflow**) или откройте существующий.
3. В настройках Chatflow:
   * **Тип Chatflow:** **Веб-сайт** (Website) → **Живой чат** (Live chat).
   * **Входящие и язык** (Inbox and Language): выберите ящик. Язык должен совпадать с языком в Афине.
   * **Приветственное сообщение** (Welcome Message): текст приветствия для посетителей сайта.
   * **Назначение диалогов** (Conversation Assignment): в **Автоматически назначать диалоги** (Automatically assign conversations) выберите **Конкретные пользователи** (Specific users) и пользователя Афины — тот же email, что на шаге 2.
4. Сохраните настройки Chatflow.

![](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/integracii/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.
