> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyful.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the widget

> Add the Replyful chat widget to your website

Add the Replyful chat widget to your website by including a single script tag.

## Get your embed code

1. Go to your [Replyful dashboard](https://app.replyful.com)
2. Navigate to **Settings** → **Install**
3. Copy your embed code

## Add to your website

Paste the embed code before the closing `</body>` tag on your website:

```html theme={null}
<script>
  // Your Replyful embed code from the dashboard
  "use strict";(()=>{(()=>{let e="YOUR_CHANNEL_ID";...})();})();
</script>
```

The widget will automatically appear in the bottom-right corner of your website.

## Alternative: Add to `<head>`

You can also add the script to your `<head>` section with the `defer` attribute:

```html theme={null}
<head>
  <!-- Other head content -->
  <script defer>
    // Your Replyful embed code
  </script>
</head>
```

## Controlling the widget

After the widget loads, you can control it programmatically:

```javascript theme={null}
// Open the chat widget
replyful('open');

// Close the chat widget
replyful('close');

// Toggle the chat widget
replyful('toggle');
```

## Next steps

<Card title="User identification" icon="user" href="/user-identification">
  Link conversations to logged-in users in your system.
</Card>
