Open teamSelf

The support widget

The widget is a chat button in the bottom right corner of your site. A customer opens it, writes, and reads your reply in the same place. The conversation lands in the product's Inbox with the channel Widget.

What the customer sees#

A new conversation starts with a choice: Ask a question, Report a bug or Share feedback. The type stays with the conversation and shows in the header.

Under each AI answer the customer sees Did this help? and can vote once, changing the vote later. QA reads conversations with a "not helpful" vote first.

A customer can attach up to three files of 10 MB each: images, PDF, text, CSV or ZIP.

A bug report also carries the page address (without the query string), the product version, the browser and the viewport. The customer sees one line saying so above the box.

The widget follows the light or dark theme of your page and takes its accent colour and typeface from it. It speaks English or Ukrainian.

Adding it to your site#

The installation owner registers your product and the addresses your site is served from. Then you add one tag:

<script src="https://teamself.exocriador.dev/w/v1.js" data-product="your-product-id" async></script>

The script places the launcher, sets its look and handles everything else. Options go on the same tag as data- attributes:

AttributeMeaning
data-productRequired. Your product id.
data-titleHeader title. Defaults to the product name.
data-langen or uk. Defaults to the browser language.
data-themelight, dark or auto, used when the page shows no theme.
data-pathtrue sends the page path with each message.
data-sectionThe part of your product the customer is in.
data-opentrue opens the widget on load.

Who is writing#

The widget can tell who the customer is, so the conversation follows them across devices.

  • Signed-in customers. Your server signs a short token for the customer's id, name and email, and the widget sends it. Use data-token-url with a same-origin path that returns { "token": "…" }, or data-token for a server-rendered page. The token is signed with a secret the installation owner gives you. Keep it on your server.
  • Exo accounts. On a product under exocriador.dev that uses sign-in with an exo account, add data-auth="exo". The widget recognises the signed-in person without a token.
  • Visitors. Without either, the widget asks for an email address. A product can instead require sign-in; then the widget shows "Sign in to write to support".

A token can carry the customer's level (member, admin or owner), which decides which audience sections of the Knowledge base the AI may use.

Controlling it from your page#

The script adds window.TeamSelf with open(), close() and toggle(), for a Help menu item of your own. refresh() rereads the token after a sign-in or sign-out, and setContext({ section, path, title }) tells the widget where a single-page app has moved to.