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

# HubSpot

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

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

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

1. Откройте [**Каналы**](/documentation/ru/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 откройте [**Диалоги**](/documentation/ru/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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.athenachat.ai/documentation/ru/integracii/hubspot.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
