> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/manage-your-workspace/install-widget-on-your-website.md).

# Install widget on your website

### Installation <a href="#installation" id="installation"></a>

To chat with your visitors embed the widget on your site following steps: &#x20;

1. **Locate the javascript code**\
   You can  find your unique Tiledesk javascript code on your Tiledesk Dashboard by heading over to the **Settings > Widget > Add chat to your website**

<figure><img src="/files/FFkD1UqD78YFLcicQU20" alt=""><figcaption></figcaption></figure>

1. **Copy the Javascript code**

```
  <script type="application/javascript">
      window.tiledeskSettings= 
      {
          projectid: "5f47e834c85eca0012c97888"
      };
      (function(d, s, id) { 
          var w=window; var d=document; var i=function(){i.c(arguments);};
          i.q=[]; i.c=function(args){i.q.push(args);}; w.Tiledesk=i;                    
          var js, fjs=d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js=d.createElement(s); 
          js.id=id; js.async=true; js.src="https://widget.tiledesk.com/v5/launch.js";
          fjs.parentNode.insertBefore(js, fjs);
      }(document,'script','tiledesk-jssdk'));
  </script>
```

Copy the above javascript under the  *With javascript code* section.\
Example is provided below:&#x20;

<figure><img src="/files/Z7XtGcYvfRd28Bqgcr9K" alt=""><figcaption></figcaption></figure>

**3. Open your website's HTML page**\
Access the page on which your website is hosted with the tool allowing you to modify the files or log in to your respective platform Dashboard.\
&#x20;

**4. Paste the javascript code**\
Paste the javascript code in the HTML source page between the  \`\<head><\head>\`  tags.\
&#x20;

**5. Save changes**\
Save the changes, and that's it! Now, check your website and enjoy Tiledesk widget  🚀\
&#x20;

**6. Check your website**\
Go to your website  and check if you can see the Tiledesk widget

<figure><img src="/files/LIZhbuFGslfTxFtMdE9J" alt=""><figcaption></figcaption></figure>


---

# 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://guide.tiledesk.com/manage-your-workspace/install-widget-on-your-website.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.
