دليل المنتج
الدردشة الحية
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
| Role | Permissions |
|---|---|
| Owner | Full access — configure settings, embed code, manage sessions |
| Admin | Full access |
| Member | View sessions; reply to chats; cannot change widget settings |
| Viewer | Read-only |
Prerequisites
- Website access — ability to add JavaScript to your site.
- AI agent configured (recommended) — for automated responses.
- Knowledge base populated — gives the AI context to answer questions.
- Team members available (optional) — for human handoff.
Full walkthrough
Configuring widget settings
- Go to Web Chat → Settings.
- 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.
- Set Welcome Message — greeting shown when visitors open the widget.
- Configure Pre-Chat Form (optional):
- Enable/disable.
- Fields: Name, Email, Phone (toggle required/optional).
- Set Business Hours:
- Enable/disable.
- Define hours for each day.
- Set offline message (shown outside hours).
- Assign AI Agent — select which agent profile handles web chat.
- Click Save.
Embedding the widget
- In Settings, scroll to Embed Code.
- 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>
- Paste the snippet before the closing
</body>tag on every page where you want the widget. - Save and deploy your site.
The widget appears in the corner you configured.
Managing chat sessions
Viewing active sessions
- Go to Web Chat → Sessions.
- Filter by Status = Active to see ongoing chats.
- Click a session to open the conversation panel.
Session detail panel
| Section | Contents |
|---|---|
| Conversation | Full message history (visitor and AI/agent) |
| Visitor info | Name, email, phone (from pre-chat form), IP, page URL, referrer |
| Actions | Take Over, Release, End Session |
Taking over from AI
When you want to handle a chat personally:
- Open the session.
- Click Take Over.
- The AI stops responding; you're now in control.
- Type your messages in the input field.
The visitor sees a seamless transition—they don't know who's responding.
Releasing back to AI
- In an active session you've taken over, click Release.
- The AI resumes handling the conversation.
Ending a session
- Click End Session.
- The visitor sees a "Chat ended" message.
- The session moves to Ended status.
Responding to handoff requests
When a visitor asks for a human (e.g., types "speak to a person"):
- The AI recognizes the intent and triggers a handoff request.
- The session moves to
handled_by: pending. - Agents receive a notification (browser, email, or mobile—based on settings).
- 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:
| Metric | Description |
|---|---|
| Total Chats | Number of sessions in the period |
| Engaged Chats | Sessions with at least one visitor message |
| Active Chats | Currently open sessions |
| Avg. Response Time | Average time to first response |
| AI Resolution Rate | Percentage of chats resolved without human handoff |
| Top Pages | Most common pages where chats start |
Filter by date range: Today, This Week, This Month, Custom.
Field glossary
| Field | Description |
|---|---|
| Session ID | Unique session identifier |
| Status | active or ended |
| Handled By | ai, human, or pending |
| Visitor Name | From pre-chat form or detected |
| Visitor Email | From pre-chat form |
| Visitor Phone | From pre-chat form |
| Visitor IP | Client IP address |
| Page URL | Page where chat started |
| Referrer | Referring URL |
| Has Visitor Messages | Whether the visitor sent at least one message |
| Human Requested At | Timestamp when handoff was requested |
| Human Took Over At | Timestamp when agent took over |
| Last Activity At | Most recent message timestamp |
| Created At | Session start timestamp |
Statuses and badges
Session status
| Status | Badge color | Meaning |
|---|---|---|
| Active | Green | Ongoing conversation |
| Ended | Gray | Session closed |
Handled by
| Value | Badge color | Meaning |
|---|---|---|
| AI | Blue | AI agent is responding |
| Human | Purple | Live agent in control |
| Pending | Yellow | Handoff requested, awaiting agent |
Nested screens
Settings tab sections
| Section | Contents |
|---|---|
| Appearance | Color picker, position toggle, logo upload |
| Welcome Message | Text input with preview |
| Pre-Chat Form | Field toggles (name, email, phone), required checkboxes |
| Business Hours | Day-by-day schedule, offline message |
| AI Agent | Dropdown selector |
| Embed Code | Read-only snippet with copy button |
Session detail panel
| Section | Contents |
|---|---|
| Header | Visitor name, status badge, handled_by badge |
| Conversation | Scrollable message history |
| Visitor Info | Collapsible panel with contact details |
| Input | Message composer (visible when handling) |
| Actions | Take Over / Release / End Session buttons |
Analytics tab
| Widget | Contents |
|---|---|
| Volume Chart | Line/bar chart of daily sessions |
| Response Time | Average first-response time |
| AI vs Human | Pie chart of handling distribution |
| Top Pages | Table of URLs with chat counts |
Connections to other areas
| Feature | How it connects |
|---|---|
| Inbox | Web chat sessions appear in the unified inbox |
| AI Agents | AI agent handles web chat responses |
| Knowledge Base | AI uses knowledge base to answer questions |
| Contacts | Visitors can become contacts (with email/phone) |
| Orders | Visitors can place orders through chat |
| Bookings | Visitors can book appointments through chat |
| Salla | Storefront widget uses Web Chat infrastructure |
| Webhooks | web_chat.session_started, web_chat.message_received events |
| Web Chat API | Manage sessions programmatically |
Limits and plan behavior
| Plan | Concurrent sessions | Sessions/month | Pre-chat form |
|---|---|---|---|
| Starter | 5 | 100 | Basic |
| Pro | 20 | 1,000 | Custom fields |
| Business | 50 | 5,000 | Custom fields |
| Enterprise | Unlimited | Unlimited | Custom + integrations |
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Widget not appearing | Embed code missing or blocked | Verify snippet is on the page; check ad blockers |
| Widget shows but no AI response | AI agent not assigned | Assign an agent in Web Chat Settings |
| Pre-chat form not showing | Form disabled | Enable pre-chat form in Settings |
| Handoff notifications not received | Notification settings off | Check team member notification preferences |
| Session marked pending but no agents available | No agents online | Sessions stay pending until someone takes over |
| Visitor messages not appearing | JavaScript error on page | Check browser console for errors |
| Analytics showing incorrect data | Timezone mismatch | Verify account timezone in Settings |
Related articles
- AI Agents — configure the AI that powers web chat
- Knowledge Base — content the AI uses to answer
- Inbox — view web chat alongside other channels
- Salla Integration — storefront widget setup
- Web Chat API — programmatic session management
