> 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/id/konfigurasi/overleaf-toolkit/integrasi-zotero.md).

# Integrasi Zotero

{% hint style="info" %}
Fitur ini awalnya dikembangkan oleh [davrot](https://github.com/davrot) dan [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), dimodifikasi oleh [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) dengan OAuth. Fitur ini diperkenalkan mulai v6.2.0 dan seterusnya. Ini masih berstatus beta. Kami membutuhkan masukan Anda jika Anda mengalami masalah apa pun.
{% endhint %}

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

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

### Siapkan Integrasi Zotero

1. Buka [tautan ini](https://www.zotero.org/oauth/apps) untuk membuat klien OAuth Zotero (seperti yang ditunjukkan pada gambar)
2. Pilih **Jenis Aplikasi**: **Peramban**
3. Siapkan URL Callback dengan `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Konfigurasikan `config/variables.env`&#x20;

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

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' harus ada di ENABLED_LINKED_FILE_TYPES (diatur di develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Dari klien OAuth Zotero (daftarkan di https://www.zotero.org/oauth/apps)
# Jenis Aplikasi: Peramban 
# URL Callback -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Mengenkripsi kunci API Zotero di mongo (atur di dev untuk menghindari penulisan file kunci
# ke /var/lib/overleaf/data, yang tidak dapat dibuat oleh container web dev)
# Cara membuat: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Opsional: arahkan permintaan Zotero sisi server dari modul (OAuth + API) melalui
# proxy HTTP (harus dapat dijangkau dari container web; sama seperti github-sync)
# http://10.0.0.1:10808
# (Opsional) 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/id/konfigurasi/overleaf-toolkit/integrasi-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.
