Skip to Content

Put an AI agent on your website

Create an AI agent, give it your knowledge, embed the chat widget on your site and make sure conversations reach your team when a person is needed.

In this guide you put an AI assistant on your website that answers visitors from your own documents and hands the conversation to your team when it should.

You will need: an Owner or Administrator role, a few documents that answer common customer questions (pricing, product, policies), and access to your website's HTML or CMS.

Add your knowledge

  1. Open Data → Knowledge and create a folder called Website assistant.
  2. Upload the documents visitors ask about: product overview, pricing, delivery and returns, opening hours. PDF, Word, text, Markdown, CSV and Excel files all work.
  3. Wait until each document shows Ready.
  4. Use the search box to ask a few real customer questions and check the right passages come back.

Focused documents answer best: one topic per file. See Knowledge base.

Create the agent

  1. Open Engage → Agents and create a new agent.
  2. On General, give it a name visitors will see, such as Ama from Acme, and choose the Chat support type.
  3. On Behavior, write its instructions: who it works for, the tone to use, what it should and should not answer, and when to hand over to a person. For example: "You help visitors to Acme's website. Answer only from the knowledge provided. If someone asks about an order or wants to speak to someone, hand the conversation to the team."
  4. On Knowledge, select the Website assistant folder.
  5. Leave the Luso8 access switches off for now. Turn on Book meetings or Handle tickets later if you want the agent to do those jobs; it always asks the visitor to confirm before acting.

See AI agents for every option.

Create the chat widget

  1. Open Support → Embed bot and create a widget.
  2. Appearance: set your brand colors and the position on the page.
  3. Content: add your logo, a headline and a welcome message, such as "Hi! Ask me anything about Acme."
  4. Agent: pick the agent you just created and make sure the widget is Active.
  5. Security: add your website's domain under Allowed domains, so the widget only loads on your site.

Test it

Use the preview to ask the questions your customers ask most. If an answer is wrong or missing, improve the documents or the instructions, not the question.

Embed it on your site

Copy the embed code and add it before the closing </body> tag on every page:

index.html
<script src="https://luso8.rexplore.ai/api/widget?id=YOUR_WIDGET_ID" async></script>

The embed dialog has ready-made versions for HTML, React, JavaScript and WordPress. See Web chat widget.

Make sure your team sees handoffs

Conversations from the widget appear in Support → Conversations. When the agent hands over, because the visitor asked for a person or it could not help, it pauses itself, saves the reason as an internal note and notifies your team.

  • A teammate replies in the conversation; the AI switch turns off automatically so the agent does not talk over them.
  • Turn the AI back on when you are done, or leave it off and resolve the conversation.

See Handoff to humans.

Next steps

  • Publish help articles in Support → Help center and show them in the widget's Help tab.
  • Turn on Voice notes and spoken replies in the widget's Agent tab so visitors can talk instead of type.
  • Give the agent a phone line with a voice agent.
  • Track how the agent performs in Reports.
Edit on GitHub

Last updated on

On this page