Chat widget: install it on your website

The Vensel chat widget puts a chat on your website. Visitors talk to your AI agent, and when it hands off, to your team; every chat arrives in your inbox as a web session. This article shows how to install the widget, choose what it can do, and set up its home screen. It is for admins and the developer who edits your website.

Install the widget

  1. Go to Channels › Web. The page is titled Vensel widget.
  2. Under Installation, click Copy installation snippet.
  3. Paste the snippet before the closing </body> tag of every page where the chat should appear.
  4. Open your website and click the chat button to check it works. Your message and the AI's reply appear in the Inbox.

The snippet already contains your Widget token. You can also copy the token on its own with Copy widget token, for example to use the React component of the widget package.

The snippet looks like this:

<script src="https://…/widget/script.js" defer></script> followed by a short script that calls initVensel({ token: '…', initialMessages: ['Hi, how can I help?'] }). Change the greeting in initialMessages to your own.

Choose how replies appear

In How replies appear:

  • Type out replies live: words appear as the AI writes them.
  • Tool use: what customers see while the AI uses a tool: Hidden, Status only or Full details.
  • Show thinking: customers can open the AI's thinking.

Changes save at once and apply to the live widget.

Turn features on or off

In Features, switch on what the widget may do:

  • Voice dictation: the customer speaks, checks the text and sends it.
  • File uploads: customers attach files and images.
  • Rich replies: replies can include cards, tables and forms.
  • Page reading: the AI reads the page the customer has open.
  • Page pointing: the AI highlights the button or field to use next.
  • Page actions: the AI clicks, types and picks options for the customer, and asks before anything that can't be undone.
  • Answer choices: questions come with answers to tap.

Features with a lock are Available on request; click Contact us to ask for them.

Preview

The Preview on the right shows the widget on a demo page with your current settings. Use Reload preview after a change, or Enter fullscreen. Companion mode affects the preview only.

Add a home screen with help articles

  1. Go to Settings › Channels and phone › Widget.
  2. Turn on Home screen. It adds Articles and Chat tabs, so customers can search your help center and see their earlier chats.
  3. Pick a Help center.
  4. In Opens on, choose the tab customers see first.

Share session details with the widget

On the same page, Whitelisted session attributes chooses which session custom attributes the widget may read. Click Add keys and pick or type a key.

Good to know

  • Older widget versions may not support every feature.
  • To tell the AI who a signed-in visitor is, your website can pass their name and email to the widget, or a verified token created by your server with a Vensel API key.
  • Whether the AI answers web chats, and how much of them, is set in Settings › AI agent › Autopilot under Web.
  • To stop the AI answering certain visitors, add their IP address or range in Blocked IPs on the Autopilot page.
  • You need permission to read channel settings to see this page.

Related