---
title: Install the chat widget
description: Add the widget to your site with one script tag.
sidebar:
  order: 1
---

The widget loads from `widget.rinhelp.com`. You install it by adding one script tag to your site.

## Install it

1. Open `Widget` in the Rinhelp workspace.
2. Select `Install on your site`.
3. Select `Copy snippet`.
4. Paste the snippet before the closing `</body>` tag on every page where visitors should get help.
5. Publish your site and open one of those pages in a private browser window.

The snippet looks like this. Keep your workspace's publishable key in place of the placeholder.

```html
<script src="https://widget.rinhelp.com/widget.js?key=rhpk_YOUR_PUBLISHABLE_KEY" async></script>
```

The key tells Rinhelp which workspace the widget belongs to. It is safe to include on your website. Never put a private access token in the script tag.

## Confirm it works

Open your website and select the chat button. Ask a question covered by your [help pages](/docs/help-pages), then open the source link in the answer. To test a reply from your team, ask for a person, then select `Talk to a human`, submit the requested email and note, and find the resulting `Waiting` chat in the [shared inbox](/docs/inbox/reply).

If the chat button does not appear, confirm that the whole script tag is present, the URL still contains `key=`, and your browser can reach `widget.rinhelp.com`. If the widget appears but cannot answer, test the same question in the [widget preview](/docs/widget/test-answers).
