---
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 identifies your workspace in browser code. It is designed to be public. Do not 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/knowledge-base/add-your-site), 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/shared-inbox/quick-tour).

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/chat-widget/playground).
