> For the complete documentation index, see [llms.txt](https://docs.sizebay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sizebay.com/virtual-try-on/service-implementation-script.md).

# Service Implementation (Script)

{% hint style="danger" %}
**DO NOT MODIFY THE PRESCRIPT AND ITS CONTENTS.** It's also advised to **NOT CREATE AN IMPLEMENTATION WITHOUT SIZEBAY'S CONSENT. Both scenarios are considered by Sizebay as extraofficial and WE WILL NOT TAKE RESPONSABILITY FOR SUCH.** If there's a necessity to alter our script or anything that might be not working properly, please contact our support team at <support@sizebay.com>.
{% endhint %}

### 1. Create an anchor element on your product page.

You must include the container element that will display the button for the VTR on your product detailed page. You should place the element in the position **where you want the button to be displayed**.

The excerpt below is an example of how this container could be included. Note the id attribute that was defined in it: your button must contain a valid id attribute. **This id will be used later when we are running the plugin's script.**

```html
<div id="sizebay-vtr-container"></div>
```

### 2. Including Sizebay HTML script

We will now import the plugin script into your HTML. This snippet can be included in the header (**\<head>**) or at the end of the HTML body (before **\</body>**).&#x20;

Be in mind that in order to properly inject the plugin script, **Sizebay will provide you with all the required info** (e.g tenantId, the URL paths, etc).

{% hint style="danger" %}
The code below is an **example and should not be injected into your website**, as it serves only for **instructional reasons**. In order to get the correct URL, contact **<support@sizebay.com>** so we can guide you through the process.
{% endhint %}

```html
<script
    defer
    id="sizebay-vtr"
    src="https://static.sizebay.technology/YOUR_TENANT_ID/to_prescript.js">
</script>
```


---

# 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://docs.sizebay.com/virtual-try-on/service-implementation-script.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.
