Widget SDK

Widget SDK ver 6.0

Tiledesk Widget

Are you interested in the v4 version? Click here.

This guide shows how to get started quickly with the Tiledesk Widget SDK. The Widget SDK gives businesses and developers the flexibility to build and customize a chat experience that meets their design/brand requirements.

1

Basic installation

To chat with your visitors, embed the widget on your site. Copy the following script and insert it in the HTML source between the HEAD tags:

To get your TILEDESK_PROJECT_ID go to the Tiledesk Dashboard and click on the Widget menu.

Tiledesk Dashboard
2

Install with visitor basic information

If you know basic visitor data (e.g., name and email), you can pass that through the tiledeskSettings object to prefill visitor info:

3

Install with custom position

To place the widget on the left or right and adjust margins, set align, marginX, and marginY in tiledeskSettings. Example below shows left alignment with custom margins:

Custom position of the widget

Enabling authenticated visitors in the Chat widget

You can configure the widget to authenticate visitors using the JavaScript API and a JWT token. More info: Widget Authentication

Last updated 2 years ago