Pular para o conteúdo
All guides

This guide is available in English only for now.

Getting started · 02

Install the widget on your site

Style the chat widget in the dashboard, then add one script tag to your website.

Once your agent has knowledge, put it in front of visitors.

1. Set it up in the dashboard

Choose the widget colors, the welcome message, and a few suggested questions. Suggested questions work best when they match what visitors ask most often.

2. Add the script

Copy the snippet from the dashboard and paste it into your site, just before the closing </body> tag. It looks like this:

<script
  src="https://widget.betteragentai.com/widget.js"
  data-agent-id="your-agent-id"
></script>

The widget works on any website that lets you add custom code, including most site builders.

3. Check it

Open your site in a private window and ask a question you know the answer to. If the widget doesn’t appear, make sure the snippet was saved and published, and that the agent ID matches the one in the dashboard.

Optional

  • Lead capture (paid plans) asks visitors for contact details, with your own consent text.
  • Paid plans can remove the Better Agent badge.