# Webchat Plugins Installation

**Cognigy Support**

March 4, 2021

In order to install a Webchat Plugin, we provide two different ways:

- Install in Cognigy.AI
- Install on webpage

# Install in Cognigy.AI

There are two steps to do in order to use one of the released Webchat Plugins.

## Copy Webchat Plugin File (URL)

1. Open the [Webchat Plugins Overview](https://support.cognigy.com/hc/en-us/articles/360019600399) page
2. Copy the link address of the wanted Webchat Plugin:

_One can copy the link address of the **Download** button by right-clicking on it and then click **Copy Link Address** in the menu that will be opened by the web browser._

## Paste Webchat Plugin File (URL)

1. Login to Cognigy.AI
2. Navigate to `Endpoints`:

3. Create a new Webchat Endpoint or use an existing one
4. Scroll down and click on `Webchat Configuration` and paste the copied URL:

# Install on webpage

Since the Cognigy Webchat is already embedded in a specific website, the **Webchat Plugin (Bundle) JavaScript File** can be imported inside the `index.html`.

## Download Webchat Plugin File

1. Open the [Webchat Plugins Overview](https://support.cognigy.com/hc/en-us/articles/360019600399) page
2. Click on **Download** for the wanted Webchat Plugin:

## Import Webchat Plugin File

1. Open the `index.html` file of the webpage. It is the same `index.html` file where the Cognigy Webchat is embedded.
2. Add the HTML import statement to the code:

```
<script src="./path-to/rating.webchat-plugin.js"></script>
```

_Please make sure that you first import the Cognigy Webchat Widget and then the Cognigy Webchat Plugin that should be used. Please find more information about [embedding the WebchatWidget to a webpage here](https://github.com/Cognigy/WebchatWidget/blob/master/docs/embedding.md)._
