# Installation

## **Step 1: Install the widget script**&#x20;

Add the following code to your `<head>` tag on every page where you want to use the widget.

{% code fullWidth="false" %}

```tsx
<script>
    !function(e,t,n,s,a,c){e.AvestWidgetObject=s,e[s]=e[s]||function(){(e[s].q=e[s].q||[]).push(arguments)},e[s].l=1*Date.now(),a=t.createElement(n),c=t.getElementsByTagName(n)[0],a.async=!0,a.src="https://widget.avest.fr/widget.js",a.type="module",c?.parentNode?.insertBefore(a,c)}(window,document,"script","_aw");

    _aw('init', {
        // This is your leadgen app URL (eg. xxx.data-immo.com)
        appUrl: 'YOUR_APP_URL',
        // Possible values : 'bottom-right', 'bottom-left', 'bottom-center', 'top-right', 'top-left', 'top-center'
        placement: 'bottom-right'
    })
</script>
```

{% endcode %}

## Step 2: Replace `YOUR_APP_URL`

Replace `YOUR_APP_URL` with your leadgen app URL. If you don't have an app URL, please contact your account manager.

## Step 3: Enjoy

That's it! You've successfully integrated the Avest widget into your website. Start enjoying its features and enhance user experience.


---

# 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://widget-docs.avest.fr/installation.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.
