# Replace your chat widget

To move your website's chat to Rinhelp, swap your old help desk's chat code for Rinhelp's one line. Your AI agent lists your websites in Rinhelp and gives you the code. You paste it where the old code was.

## When to replace it

Replace it as part of the switch-over, after your AI agent has [imported your past conversations](/articles/7e85f2b0-336d-4774-850a-826951d9585c-import-past-conversations). Until you do, chats keep going to your old help desk.

## Steps

1. **List your websites.** The agent adds every website that showed the old chat widget, so Rinhelp's can appear there. The chat widget only works on websites you list.
2. **Get the code.** The agent gives you the code to paste. You can also copy it under **Settings > Chat widget**, in **Add it to your website**.
3. **Swap it.** On each page that loaded the old chat widget, remove the old help desk's code and paste Rinhelp's in its place.
4. **Check it.** Open one of those pages. Rinhelp's chat button appears in a corner, and the old one is gone.

The agent asks you before it changes your websites list, because it moves where customers reach you.

To change the chat widget's color, greeting and image, open it from your own buttons, or recognize signed-in customers, see [Set up the chat widget](https://docs.rinhelp.com/articles/ea9750a9-598e-439a-a790-c97b0f459446-set-up-the-chat-widget).

## Then catch up

Once email and chat both come to Rinhelp, the agent imports the conversations updated in your old help desk since the import began. See [Import past conversations](/articles/7e85f2b0-336d-4774-850a-826951d9585c-import-past-conversations).

## Good to know

- Rin answers new chats once you've added a knowledge source, such as your website or help center. See [How Rin answers](https://docs.rinhelp.com/articles/e3696d2f-b77d-4324-8ae0-ef0e0e92235e-how-rin-answers).
- If the chat button doesn't appear, check that the website is in the list under **Websites where the chat widget can appear (one per line)**.

Back to [Move to Rinhelp with your AI agent](/articles/5a2a3f45-4e61-4daf-8d23-570a8bfc24a1-move-to-rinhelp-with-your-ai-agent).
