# Website widget

## Use your twise as a better looking chat bot alternative

You can now add a widget to your website that will open in an overlay:

<figure><img src="https://504774108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkCqnW3GitKwHUcLhcyP5%2Fuploads%2Fwkk2BpzZLh1WtwFZEEmM%2FTwise%20_%20human-like%20AI%20for%20customer%20engagement.gif?alt=media&#x26;token=1f0a8cdb-e9d4-4747-88bf-22e1edd7315e" alt=""><figcaption></figcaption></figure>

### Welcome message for the widget

You can configure a welcome message that will appear next to the widget upon load. This message can be changed to anything you like.&#x20;

Use the text \[YOUR TWISE NAME] to insert the name of the twise automatically.&#x20;

You can change the colors of the text and the background as well.

<figure><img src="https://504774108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkCqnW3GitKwHUcLhcyP5%2Fuploads%2FK0tyKIkTxumOVdNCHqVU%2Fimage.png?alt=media&#x26;token=47d29038-122f-4766-8fff-ce4596959b91" alt=""><figcaption></figcaption></figure>

### Widget customisation

You can change the width and height of the actual overlay that opens when someone click the widget.

That is done by updating the actual code:

```
    var WIDTH = "1600px";
    var HEIGHT = "900px";
```

### Alert user to speak to the widget

The widget can be set to alert the user by changing the page title. This is a common practise for chatbots but can also be a distraction.

![](https://504774108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkCqnW3GitKwHUcLhcyP5%2Fuploads%2FFCH1u7Y6UegNuUgI4nRF%2Fimage.png?alt=media\&token=54ce7245-b2f4-4162-a20c-e08c6b0a9f8a)&#x20;

### How to install the widget

To be able to add the widget to your website you will need to be able to have acces to the code.&#x20;

We offer a javascript code that needs to be added inside the \<head> tag of the entire site or on the specific pages where you want the widet to appear.&#x20;

The code can be found under SHARING in the admin and then under Install Twise Widget:

<figure><img src="https://504774108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkCqnW3GitKwHUcLhcyP5%2Fuploads%2FiWHw8kDzbUq9Lnvm1bEm%2Fimage.png?alt=media&#x26;token=965f9f68-e505-4d3a-a1c8-7407fa673480" alt=""><figcaption></figcaption></figure>

### Use any link or button on your site to open the widget

Assuming you have access to the code of your site, and know a little code, you can show the widget through a click on any button or link on your page.&#x20;

**Activate Hide avatar:**

<figure><img src="https://504774108-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkCqnW3GitKwHUcLhcyP5%2Fuploads%2Fynwy1tGxry7FpmsQoWyB%2Fimage.png?alt=media&#x26;token=ec415f45-31dd-45a6-9a08-d363ff24cdcd" alt=""><figcaption></figcaption></figure>

Add this attribute to any HTML element where you want to activate the Twise widget. For instance, add `<button data-twise>Open Twise</button>` to a button element to enable users to open the widget directly through this button.
