SkyLight Chat
دليل المنتج

الدردشة الحية

Configure, embed, and manage the SkyLight Chat web widget for live chat on your website, including AI handoff, analytics, and session management.

Web Chat

Add a live chat widget to your website and engage visitors in real time. Web Chat sessions are handled by your AI agent, with seamless handoff to human agents when needed.


Purpose

The Web Chat widget brings conversational support to your website:

  • Instant engagement — visitors start chatting without leaving your site.
  • AI-powered responses — your AI agent answers questions using the knowledge base.
  • Human handoff — escalate to live agents when the AI can't resolve an issue.
  • Unified inbox — web chat conversations appear alongside WhatsApp and Telegram.
  • Analytics — track chat volume, engagement rates, and agent performance.
  • Customization — match the widget to your brand colors and style.

Who can access

RolePermissions
OwnerFull access — configure settings, embed code, manage sessions
AdminFull access
MemberView sessions; reply to chats; cannot change widget settings
ViewerRead-only

Prerequisites

  1. Website access — ability to add JavaScript to your site.
  2. AI agent configured (recommended) — for automated responses.
  3. Knowledge base populated — gives the AI context to answer questions.
  4. Team members available (optional) — for human handoff.

Full walkthrough

Configuring widget settings

  1. Go to Web Chat → Settings.
  2. Configure Appearance:
    • Primary Color — brand color for the widget (hex picker).
    • Position — bottom-left or bottom-right.
    • Logo — upload your logo (displayed in the chat header).
    • Launcher Icon — chat bubble style.
  3. Set Welcome Message — greeting shown when visitors open the widget.
  4. Configure Pre-Chat Form (optional):
    • Enable/disable.
    • Fields: Name, Email, Phone (toggle required/optional).
  5. Set Business Hours:
    • Enable/disable.
    • Define hours for each day.
    • Set offline message (shown outside hours).
  6. Assign AI Agent — select which agent profile handles web chat.
  7. Click Save.

Embedding the widget

  1. In Settings, scroll to Embed Code.
  2. Copy the JavaScript snippet:
<script>
  (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'skylightchat.start':
  new Date().getTime(),event:'skylightchat.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s);j.async=true;j.src=
  'https://widget.skylightchat.com/v1/chat.js?id='+i;f.parentNode.insertBefore(j,f);
  })(window,document,'script','slcLayer','YOUR_WIDGET_ID');
</script>
  1. Paste the snippet before the closing </body> tag on every page where you want the widget.
  2. Save and deploy your site.

The widget appears in the corner you configured.

Managing chat sessions

Viewing active sessions

  1. Go to Web Chat → Sessions.
  2. Filter by Status = Active to see ongoing chats.
  3. Click a session to open the conversation panel.

Session detail panel

SectionContents
ConversationFull message history (visitor and AI/agent)
Visitor infoName, email, phone (from pre-chat form), IP, page URL, referrer
ActionsTake Over, Release, End Session

Taking over from AI

When you want to handle a chat personally:

  1. Open the session.
  2. Click Take Over.
  3. The AI stops responding; you're now in control.
  4. Type your messages in the input field.

The visitor sees a seamless transition—they don't know who's responding.

Releasing back to AI

  1. In an active session you've taken over, click Release.
  2. The AI resumes handling the conversation.

Ending a session

  1. Click End Session.
  2. The visitor sees a "Chat ended" message.
  3. The session moves to Ended status.

Responding to handoff requests

When a visitor asks for a human (e.g., types "speak to a person"):

  1. The AI recognizes the intent and triggers a handoff request.
  2. The session moves to handled_by: pending.
  3. Agents receive a notification (browser, email, or mobile—based on settings).
  4. An agent opens the session and clicks Take Over.

Configure handoff triggers in your AI agent's instructions.

Viewing analytics

Go to Web Chat → Analytics to see:

MetricDescription
Total ChatsNumber of sessions in the period
Engaged ChatsSessions with at least one visitor message
Active ChatsCurrently open sessions
Avg. Response TimeAverage time to first response
AI Resolution RatePercentage of chats resolved without human handoff
Top PagesMost common pages where chats start

Filter by date range: Today, This Week, This Month, Custom.


Field glossary

FieldDescription
Session IDUnique session identifier
Statusactive or ended
Handled Byai, human, or pending
Visitor NameFrom pre-chat form or detected
Visitor EmailFrom pre-chat form
Visitor PhoneFrom pre-chat form
Visitor IPClient IP address
Page URLPage where chat started
ReferrerReferring URL
Has Visitor MessagesWhether the visitor sent at least one message
Human Requested AtTimestamp when handoff was requested
Human Took Over AtTimestamp when agent took over
Last Activity AtMost recent message timestamp
Created AtSession start timestamp

Statuses and badges

Session status

StatusBadge colorMeaning
ActiveGreenOngoing conversation
EndedGraySession closed

Handled by

ValueBadge colorMeaning
AIBlueAI agent is responding
HumanPurpleLive agent in control
PendingYellowHandoff requested, awaiting agent

Nested screens

Settings tab sections

SectionContents
AppearanceColor picker, position toggle, logo upload
Welcome MessageText input with preview
Pre-Chat FormField toggles (name, email, phone), required checkboxes
Business HoursDay-by-day schedule, offline message
AI AgentDropdown selector
Embed CodeRead-only snippet with copy button

Session detail panel

SectionContents
HeaderVisitor name, status badge, handled_by badge
ConversationScrollable message history
Visitor InfoCollapsible panel with contact details
InputMessage composer (visible when handling)
ActionsTake Over / Release / End Session buttons

Analytics tab

WidgetContents
Volume ChartLine/bar chart of daily sessions
Response TimeAverage first-response time
AI vs HumanPie chart of handling distribution
Top PagesTable of URLs with chat counts

Connections to other areas

FeatureHow it connects
InboxWeb chat sessions appear in the unified inbox
AI AgentsAI agent handles web chat responses
Knowledge BaseAI uses knowledge base to answer questions
ContactsVisitors can become contacts (with email/phone)
OrdersVisitors can place orders through chat
BookingsVisitors can book appointments through chat
SallaStorefront widget uses Web Chat infrastructure
Webhooksweb_chat.session_started, web_chat.message_received events
Web Chat APIManage sessions programmatically

Limits and plan behavior

PlanConcurrent sessionsSessions/monthPre-chat form
Starter5100Basic
Pro201,000Custom fields
Business505,000Custom fields
EnterpriseUnlimitedUnlimitedCustom + integrations

Troubleshooting

IssueCauseSolution
Widget not appearingEmbed code missing or blockedVerify snippet is on the page; check ad blockers
Widget shows but no AI responseAI agent not assignedAssign an agent in Web Chat Settings
Pre-chat form not showingForm disabledEnable pre-chat form in Settings
Handoff notifications not receivedNotification settings offCheck team member notification preferences
Session marked pending but no agents availableNo agents onlineSessions stay pending until someone takes over
Visitor messages not appearingJavaScript error on pageCheck browser console for errors
Analytics showing incorrect dataTimezone mismatchVerify account timezone in Settings