> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/on-premises/de/konfiguration/overleaf-toolkit/zotero-integration.md).

# Zotero-Integration

{% hint style="info" %}
Diese Funktion wurde ursprünglich entwickelt von [davrot](https://github.com/davrot) und [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), geändert von [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) mit OAuth. Sie wurde ab v6.2.0 und später eingeführt. Sie befindet sich noch im Beta-Status. Wir brauchen Ihr Feedback, falls Sie irgendwelche Probleme haben.
{% endhint %}

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

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

### Zotero-Integration einrichten

1. Öffnen [diesen Link](https://www.zotero.org/oauth/apps) um einen Zotero-OAuth-Client zu erstellen (wie das Bild zeigt)
2. Wählen Sie **Anwendungstyp**: **Browser**
3. Richten Sie die Callback-URL mit Ihrem `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`
4. Konfigurieren Sie Ihre `config/variables.env`

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

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' muss in ENABLED_LINKED_FILE_TYPES enthalten sein (gesetzt in develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Von einem Zotero-OAuth-Client (registrieren unter https://www.zotero.org/oauth/apps)
# Anwendungstyp: Browser 
# Callback-URL -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Verschlüsselt den Zotero-API-Schlüssel in Mongo (in der Entwicklung setzen, um das Schreiben einer Key-Datei zu vermeiden
# nach /var/lib/overleaf/data zu vermeiden, das der Dev-Web-Container nicht erstellen kann)
# So wird es erzeugt: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Optional: Leite die serverseitigen Zotero-Anfragen des Moduls (OAuth + API) über
# einen HTTP-Proxy um (muss vom Web-Container aus erreichbar sein; wie bei github-sync)
# http://10.0.0.1:10808
# (Optional) 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://ayakaleaf-pro.ayaka.space/on-premises/de/konfiguration/overleaf-toolkit/zotero-integration.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.
