Skip to main content

Set up your public chatbot

The public chatbot is an embeddable chat widget that you can integrate into your website. This guide walks you through the complete setup process.

Step 1: Enable public access

Before embedding your chatbot, configure your agent’s public settings.
1

Open agent settings

Navigate to your agent and access the Settings section.
Agent settings panel
2

Enable public access

In the settings panel, locate and toggle on the Public Access option to make your agent available for embedding.
Public access toggle
3

Add your domain

Enter the domain where you’ll be embedding the chatbot. This should be your website’s URL (for example, docs.yourcompany.com). This ensures the chatbot only loads on authorized domains. You can use http://localhost:port for testing purposes.
Domain allowlist configuration
4

Save and copy your Agent Key

Press Save URL to confirm your settings. You’ll see your Agent Key displayed, copy this key — you’ll need it in the next step to embed the chatbot on your website.

Step 2: Embed the widget

Add the Artaios chatbot to your website using the following code.

Add the container element

Add this container to your HTML

Load and initialize the script

Add this script after the container element:
Replace YOUR_AGENT_KEY with the Agent Key you copied from the agent settings.
When the page loads, you see the chatbot launcher button and you can open a conversation.

Widget types

Artaios supports three display modes:

Floating Button

A collapsible chat widget that appears as a button in the bottom corner of your page (position configurable). Users click to expand the chat interface.
Floating button widget collapsed in bottom left corner

In-Place

The chat interface is rendered directly in the page, always visible and expanded. Ideal for dedicated support pages or embedded chat sections.
In-place widget rendered opened in the center

Modal

A centered overlay dialog that opens from a launcher button. The chat appears over a semi-transparent backdrop (clicking the backdrop closes it). On mobile screens (<600px), the modal goes full-screen.
Set the display mode using the type property in your configuration (see Technical configuration below).

Step 3: Configure your chatbot (optional)

You can customize the chatbot’s appearance and behavior by passing additional parameters to window.artaios.initialize().

Configuration reference

The initialize function accepts an ArtaiosOptions object organized into the following categories:

Technical

Core technical configuration for the chatbot widget:

Content

Content and messaging configuration:
Images
The images object allows you to customize branding:

Styling / Theming

Visual appearance and styling configuration:
Theme
The theme object allows you to customize colors and appearance:

Audio

Audio features are only available if you have subscribed to the appropriate tier and saved an ElevenLabs API key in the platform settings.
Audio input/output configuration:
Voice configuration
The voiceConfig object configures audio output voice settings (requires enableAudio: true):

User identification

Pass a userToken (a JWT with a sub claim) to enable chat history persistence across sessions. Without a token, each page load starts a fresh conversation. You can update the token after initialization — for example, after a user logs in:
This updates the active WebSocket connection without reinitializing the widget.

Configuration examples

Minimal setup

Just the essentials:

Customer support bot

With hint questions and feedback:

Fully customized with theming

Complete customization with branding and theme:
Open the chat as a centered overlay:

With audio capabilities

Enable voice interaction:

Troubleshooting

  • Launcher does not appear: Confirm you added the container element and that elementId matches the container id.
  • Loads locally but not in production: Verify your production domain is allowlisted in agent settings.
  • Console shows a script error: Confirm the scriptElement.src URL is reachable from your site.
  • Agent Key error: Ensure you copied the full Agent Key without extra spaces or characters.

Next steps

  • Monitor performance: Review agent analytics to see how visitors use the chatbot.
  • Test thoroughly: Verify the widget works across devices and browsers.
  • Iterate on configuration: Tune welcome text, theme, and launcher placement based on user feedback.
  • Collect user feedback: Use the feedback feature to continuously improve responses.
Want to connect via WebSocket to build your own frontend? Drop us a message at lorenz.stirnweis@arttacsolutions.de.