> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/uk/konfiguraciya/overleaf-toolkit/integraciya-zotero.md).

# Інтеграція Zotero

{% hint style="info" %}
Цю функцію спочатку розробили [davrot](https://github.com/davrot) та [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), змінено [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) з OAuth. Вона доступна починаючи з v6.2.0 і пізніших версій. Вона все ще має статус beta. Нам потрібен ваш відгук, якщо у вас виникнуть будь-які проблеми.
{% endhint %}

<div data-with-frame="true"><figure><img src="/files/bb28ba960685e92600698f554344a076e8a1f68a" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="/files/e091ae48773d01fe1484e3dfc8e1de02d9d7669a" alt=""><figcaption></figcaption></figure></div>

### Налаштування інтеграції Zotero

1. Відкрийте [це посилання](https://www.zotero.org/oauth/apps) щоб створити клієнт Zotero OAuth (як показано на зображенні)
2. Виберіть **Тип застосунку**: **Браузер**
3. Налаштуйте URL зворотного виклику з вашим `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Налаштуйте ваш `config/variables.env`&#x20;

<figure><img src="/files/7667e0c32546c75b1fb565adbb421c078df76541" alt="" width="375"><figcaption></figcaption></figure>

{% code title="config/variables.env" %}

```dotenv
#################
#    Zotero     #
#################
# 'zotero' має бути в ENABLED_LINKED_FILE_TYPES (встановлюється в develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# З клієнта Zotero OAuth (зареєструйтеся на https://www.zotero.org/oauth/apps)
# Тип застосунку: Браузер 
# URL зворотного виклику -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Шифрує ключ API Zotero в Mongo (встановіть у dev, щоб уникнути запису файла ключа
# до /var/lib/overleaf/data, який dev web container не може створити)
# Як згенерувати: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Необов'язково: спрямовуйте серверні запити Zotero модуля (OAuth + API) через
# HTTP-проксі (має бути доступний з вебконтейнера; так само як github-sync)
# http://10.0.0.1:10808
# (Необов'язково) ZOTERO_PROXY_URL=
```

{% endcode %}


---

# 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://overleaf-pro.ayaka.space/on-premises/uk/konfiguraciya/overleaf-toolkit/integraciya-zotero.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.
