> 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/it/configurazione/overleaf-toolkit/integrazione-zotero.md).

# Integrazione Zotero

{% hint style="info" %}
Questa funzionalità è stata inizialmente sviluppata da [davrot](https://github.com/davrot) e [yu-i-i/overleaf-cep](https://github.com/yu-i-i/overleaf-cep), modificata da [ayaka-notes/overleaf-pro](https://github.com/ayaka-notes/overleaf-pro) con OAuth. È stata introdotta dalla v6.2.0 in poi. È ancora in stato beta. Abbiamo bisogno del tuo feedback se riscontri qualsiasi problema.
{% endhint %}

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

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

### Configura l'integrazione Zotero

1. Apri [questo link](https://www.zotero.org/oauth/apps) per creare un client OAuth Zotero (come mostra l'immagine)
2. Scegli **Tipo di applicazione**: **Browser**
3. Imposta l'URL di callback con il tuo `${OVERLEAF_SITE_URL}/user/zotero/oauth/callback`&#x20;
4. Configura il tuo `config/variables.env`&#x20;

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

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

```dotenv
#################
#    Zotero     #
#################
# 'zotero' deve essere in ENABLED_LINKED_FILE_TYPES (impostato in develop/docker-compose.yml)
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url,zotero

# Da un client OAuth di Zotero (registrati su https://www.zotero.org/oauth/apps)
# Tipo di applicazione: Browser 
# URL di callback -> ${OVERLEAF_SITE_URL}/user/zotero/oauth/callback
ZOTERO_CLIENT_ID=
ZOTERO_CLIENT_SECRET=
# Crittografa la chiave API di Zotero in mongo (imposta in dev per evitare di scrivere un file di chiave
# in /var/lib/overleaf/data, che il container web di sviluppo non può creare)
# Come generare: `openssl rand -hex 32`
ZOTERO_CIPHER_PASSWORD=dev-zotero-cipher-password
# Opzionale: instrada le richieste Zotero lato server del modulo (OAuth + API) attraverso
# un proxy HTTP (deve essere raggiungibile dal container web; come github-sync)
# http://10.0.0.1:10808
# (Opzionale) 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/it/configurazione/overleaf-toolkit/integrazione-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.
