> 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="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FeGJv1BqQ1SBlD3VkanJ9%2F1ua0ov-image.png?alt=media&amp;token=d55643a3-15d9-4a17-800f-be77de24fd44" 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="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FAMQQQ5eczjRAHXX3UdL1%2F1ua0nx-image.png?alt=media&amp;token=0d75147a-0e98-479f-8439-9d6b1e70b03a" 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="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FMYXT7x1R3uWqfT80iDTX%2F150335525-82522197-a77a-4649-a3a9-80e91c198898%20(3).gif?alt=media&amp;token=0ac93742-4323-43a0-b2dd-bc2b426f8b2a" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.tiledesk.com/manage-your-workspace/install-widget-on-your-website.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
