# 1.2 Installation in {{roam/js}}

You can install the extension by adding a single `{{[[roam/js]]}}` block to your graph :

```javascript
// To install the extension, simply add the code below :
var s = document.createElement("script");
s.src = "https://cdn.jsdelivr.net/npm/@alixlahuec/zotero-roam@0.6";
s.id = "zotero-roam";
s.type = "text/javascript";
document.getElementsByTagName("body")[0].appendChild(s);
```

Next, you'll need to specify a few settings to get the extension running ; that's where your **API key** and **user ID** (from Step 1.1) will come into play !

{% hint style="info" %}
The code above loads the extension's scripts into your Roam graph, but it will not do anything unless you add some settings. Keep going to [1.3 Basic Setup](/zotero-roam/v0.6/getting-started/api.md) for that!
{% endhint %}

![Make sure to indent the extension's code under the {{\[\[roam/js\]\]}} block.](/files/-Ml0oZ8cqcrq9wmKvfyD)


---

# Agent Instructions: 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:

```
GET https://alix-lahuec.gitbook.io/zotero-roam/v0.6/getting-started/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
