Skip to main content
Raya - Customer Service

Chat Widget Setup

Install and configure the Raya chat widget on your website so she can greet visitors and resolve questions instantly.

5 min readUpdated 2026-02-01

What Is the Chat Widget?

The chat widget is a lightweight snippet you embed on your website. Once live, Raya appears as a chat bubble in the corner of every page. Visitors click to ask questions and Raya responds in real time, drawing from your knowledge base and escalation rules. She handles conversations across 50+ languages, 24/7, with no queue times.

Setup Steps

Follow these five steps to get Raya live on your website. The entire process takes under 5 minutes.

  1. 1

    Create or select a Support employee

    Go to the Dashboard and create a new Support employee (Raya), or select an existing one. This employee is the AI teammate that will power the widget.

  2. 2

    Open Chat/Widget settings

    Navigate to the employee's channel settings and select the Chat/Widget tab. This is where you control appearance, behavior, and allowed domains.

  3. 3

    Configure brand, behavior, and domains

    Set your brand colors, greeting text, welcome message, widget position, and the domains where the widget is allowed to appear. See the configuration table below for all available settings.

  4. 4

    Copy the embed snippet

    Click "Copy Code" to get the JavaScript embed snippet. This is a single script tag you paste into your website.

  5. 5

    Paste before closing body tag

    Paste the snippet just before the closing </body> tag in your website's HTML. Raya goes live immediately. No page reload required for returning visitors.

Widget Configuration

Every aspect of the chat widget is customizable. Use the table below to configure Raya's appearance and behavior.

SettingDescriptionOptions / Default
Widget TypeVisual style of the widget buttonFloating bubble (default), Embedded bar
ThemeLight or dark mode for the chat windowLight (default), Dark
Primary ColorMain brand color for the widget header and buttonsAny hex value (default: #2563eb)
Secondary ColorAccent color for highlights and hover statesAny hex value (default: #60a5fa)
PositionScreen corner where the widget appearsBottom-right (default), Bottom-left
SizeDimensions of the chat window when openSmall, Medium (default), Large
Greeting TextShort text shown on the bubble before the visitor clicksCustom string (e.g., "Need help?")
Welcome MessageFirst message Raya sends when the chat opensCustom string (e.g., "Hi! I'm Raya. How can I help you today?")
Button TextLabel on the chat input submit buttonCustom string (default: "Send")
Header TitleName displayed at the top of the chat windowCustom string (default: "Raya")
Header SubtitleSecondary text under the header titleCustom string (e.g., "Usually replies instantly")
Allowed DomainsDomains where the widget is permitted to loadComma-separated list (e.g., "example.com, app.example.com")
Auto PopupAutomatically open the chat after a delayOn/Off, delay in seconds (default: Off)
Show/Hide RulesConditionally display the widget based on URL path or visitor propertiesURL path patterns, visitor segment filters
Business HoursDefine when the widget shows "online" vs "offline"Time ranges per day, timezone
Offline MessageMessage displayed when outside business hoursCustom string (Raya still responds, but sets expectations)

Widget Limitations

The chat widget requires HTTPS. It will not load on pages served over plain HTTP. Some browser ad-blockers and privacy extensions may block the widget script. If visitors report that the widget is missing, ask them to allowlist your domain in their ad-blocker settings.

Frequently Asked Questions

Can I use the chat widget on multiple websites?
Yes. Add each domain to the Allowed Domains list in widget settings. The same embed snippet works across all of them, and Raya uses the same knowledge base for every domain.
How many credits does each chat response cost?
1 credit covers 10 responses from Raya. A typical support conversation of 4-6 messages consumes less than 1 credit.
Does the widget slow down my website?
No. The widget loads asynchronously after your page content, so it does not block rendering. The script is under 30 KB gzipped.

Related Articles

Still need help?

Contact our team
Chat Widget Setup | Help Center | Teammates.ai