> 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/fr/configuration/overleaf-toolkit/integration-zotero.md).

# Intégration Zotero

{% hint style="info" %}
Cette fonctionnalité a été initialement développée par [davrot](https://github.com/davrot) et [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), modifiée par [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) avec OAuth. Elle est introduite à partir de la v6.2.0 et des versions ultérieures. Elle est encore en bêta. Nous avons besoin de vos retours si vous rencontrez le moindre problème.
{% endhint %}

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

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

### Configurer l'intégration Zotero

1. Ouvrir [ce lien](https://www.zotero.org/oauth/apps) pour créer un client OAuth Zotero (comme l'image le montre)
2. Choisissez **Type d'application**: **Navigateur**
3. Configurez l'URL de rappel avec votre `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Configurez votre `config/variables.env`&#x20;

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

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' doit figurer dans ENABLED_LINKED_FILE_TYPES (défini dans develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Depuis un client OAuth Zotero (inscription sur https://www.zotero.org/oauth/apps)
# Type d'application : Navigateur 
# URL de rappel -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Chiffre la clé API Zotero dans Mongo (à définir en dev pour éviter d'écrire un fichier de clé
# dans /var/lib/overleaf/data, que le conteneur web de développement ne peut pas créer)
# Comment le générer : `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Facultatif : acheminer les requêtes Zotero côté serveur du module (OAuth + API) via
# un proxy HTTP (doit être accessible depuis le conteneur web ; comme github-sync)
# http://10.0.0.1:10808
# (Facultatif) 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/fr/configuration/overleaf-toolkit/integration-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.
