Quickstart
Create a bot, train it on your website, and put it on a page.
Create a bot
From the Relay dashboard, create a bot and give it a name. It starts with no knowledge, so it cannot answer anything yet.
Crawl your site
Add your website as a knowledge source and start a crawl. Relay fetches pages, extracts the text, chunks it, and embeds it. Crawling runs in the background, larger sites take a few minutes.
There is a page cap per crawl, so point it at the section that answers questions rather than the whole domain if the domain is large.
Fill the gaps
Upload PDFs and documents for anything not on the site, and write FAQ pairs for the questions you already know get asked. See knowledge sources.
Embed the widget
Copy the script tag from the bot's page and paste it into your site's HTML. It mounts into a Shadow DOM, so it cannot inherit or break your styles.
See embed the widget for the attributes and variants.
Watch the inbox
Conversations appear live. When Relay hands one over, an agent can reply from the same thread and the visitor never repeats themselves.
Restrict who can embed it
Before going live, set the allowed domains for the bot. Without that, the script works from any origin that copies it.