> 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/vi/cau-hinh/overleaf-toolkit/tich-hop-zotero.md).

# Tích hợp Zotero

{% hint style="info" %}
Tính năng này ban đầu được phát triển bởi [davrot](https://github.com/davrot) và [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), được chỉnh sửa bởi [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) với OAuth. Nó được giới thiệu từ v6.2.0 trở đi. Nó vẫn đang ở trạng thái beta. Chúng tôi cần phản hồi của bạn nếu bạn gặp bất kỳ vấn đề nào.
{% endhint %}

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

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

### Thiết lập tích hợp Zotero

1. Mở [liên kết này](https://www.zotero.org/oauth/apps) để tạo một ứng dụng khách Zotero OAuth (như hình minh họa)
2. Chọn **Loại ứng dụng**: **Trình duyệt**
3. Thiết lập URL callback với `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Cấu hình `config/variables.env`&#x20;

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

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' phải nằm trong ENABLED_LINKED_FILE_TYPES (thiết lập trong develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Từ một ứng dụng khách Zotero OAuth (đăng ký tại https://www.zotero.org/oauth/apps)
# Loại ứng dụng: Trình duyệt 
# URL callback -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Mã hóa khóa API Zotero trong mongo (thiết lập trong dev để tránh ghi một tệp khóa
# vào /var/lib/overleaf/data, mà container web dev không thể tạo)
# Cách tạo: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Tùy chọn: định tuyến các yêu cầu Zotero phía máy chủ của module (OAuth + API) qua
# một proxy HTTP (phải truy cập được từ container web; giống github-sync)
# http://10.0.0.1:10808
# (Tùy chọn) 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/vi/cau-hinh/overleaf-toolkit/tich-hop-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.
