> For the complete documentation index, see [llms.txt](https://docs.leadconverter.su/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.leadconverter.su/integracii/chatgpt/podklyuchaem-chatgpt-s-ispolzovaniem-sobstvennogo-tokena.md).

# Подключаем ChatGPT с использованием собственного токена

1. Переходим на сайт [OpenAI.](https://openai.com/)

{% hint style="warning" %}
В отдельных регионах OpenAI **ограничивает доступ к своим сервисам**, поэтому следующие шаги могут быть недоступны. Это ограничение связано с политикой OpenAI и **не зависит от нашей платформы.**

Если у вас нет зарубежной карты, **рекомендуем использовать токен по умолчанию**. Подробная инструкция **по подключению ChatGPT с помощью токена от LeadConverter** приведена в предыдущем разделе статьи.
{% endhint %}

{% embed url="<https://docs.leadconverter.su/new_page/materialy/chatgpt#podklyuchaem-chatgpt-s-ispolzovaniem-tokena-ot-leadconverter>" %}

2. В правом верхнем углу нажмите на кнопку **«Log in».**

<figure><img src="/files/breWTE6MZRQaAcjXqQ3g" alt=""><figcaption></figcaption></figure>

3. В раскрывающемся списке выберите пункт **«API Platform».**

<figure><img src="/files/9iq1xQGdp7knpihPQwt0" alt=""><figcaption></figcaption></figure>

4. Войдите в свой аккаунт.&#x20;

<figure><img src="/files/ErPqlPokB7Z5OhLubfSD" alt=""><figcaption></figcaption></figure>

5. Нажмите на иконку аватара в правом верхнем углу и выберите пункт ***«Your profile»***

<figure><img src="/files/7sYUnObuANL6s97tK9vM" alt=""><figcaption></figcaption></figure>

6. В левом боковом меню откройте вкладку **«API keys».**

<figure><img src="/files/3EvH76vyPzBrCgY8fOsl" alt=""><figcaption></figcaption></figure>

7. В правом верхнем углу нажмите на кнопку **«+ Create new secret key».**

<figure><img src="/files/XEKGU85mv0OX3qKuBlCs" alt=""><figcaption></figcaption></figure>

8. Укажите название нового ключа в поле **«Name».** Оно может быть любым.

<figure><img src="/files/TC7zK5XhvICKHx2kIlI1" alt=""><figcaption></figcaption></figure>

9. В поле **«Project»** выберите тип **«Default project».**

<figure><img src="/files/YHcJyvNz40iCg6J7bN70" alt=""><figcaption></figcaption></figure>

10. Нажмите на кнопку **«Create secret key».**

<figure><img src="/files/osrRXzLDONgrX1laS4Kf" alt=""><figcaption></figcaption></figure>

11. Отлично! API ключ для подключения создан. Скопируйте его и нажмите на кнопку **«Done».**

<figure><img src="/files/0zrYSq5NkqmwwvL3o3az" alt=""><figcaption></figcaption></figure>

12. **Переходите** в свою кампанию в [LeadConverter](https://leadconverter.ru/?utm_source=doc\&utm_medium=article\&utm_campaign=chatgpt).
13. В разделе **«Настройки»** откройте вкладку **«Интеграции».**

<figure><img src="/files/S3k8sFROWSglQNiDXaWs" alt=""><figcaption></figcaption></figure>

14. Выберите интеграцию с **ChatGPT.**

<figure><img src="/files/PNDdnsp5vuHQn29ubdwm" alt=""><figcaption></figcaption></figure>

15. В появившемся окне включите опцию **«Использовать собственный API токен»** и вставьте ранее скопированный токен

<figure><img src="/files/i8u7eUC4QGAf4ynDfcG6" alt=""><figcaption></figcaption></figure>

16. Нажмите на кнопку **«Подключить».**

<figure><img src="/files/7fPwwL1Fi9ThveYt9ZnU" alt=""><figcaption></figcaption></figure>

**Токен успешно подключен к платформе**. Переходим к более подробной настройке интеграции.

{% hint style="warning" %}
Если при подключении токена возникает ошибка, вероятно, он был **скопирован некорректно.**
{% endhint %}

<figure><img src="/files/ug0b1LDUxOmDxjLazl07" alt=""><figcaption></figcaption></figure>

В **следующей инструкции** мы подробно разберем, как **заполнить поля в интеграции** для корректной работы.

{% content-ref url="/pages/7QfqkB5rxRJcPNBcKpSH" %}
[Заполняем поля в интеграции данными](/integracii/chatgpt/zapolnyaem-polya-v-integracii-dannymi.md)
{% endcontent-ref %}

{% hint style="success" %}
Остались вопросы? Задайте их в нашу техподдержку!

Мы всегда рады помочь ☺️👇
{% endhint %}

{% content-ref url="/pages/-MasAPNcg291uNezFqb4" %}
[Как задать вопрос в поддержку?](/kak-zadat-vopros-v-podderzhku.md)
{% endcontent-ref %}


---

# 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.leadconverter.su/integracii/chatgpt/podklyuchaem-chatgpt-s-ispolzovaniem-sobstvennogo-tokena.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.
