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

تكامل سلة

Connect your Salla store to SkyLight Chat for order sync, abandoned cart recovery, storefront chat widget, and automated WhatsApp notifications.

Salla Integration

Bridge your Salla e-commerce store with SkyLight Chat to automate customer communication, recover abandoned carts, and provide real-time support via WhatsApp and web chat.


Purpose

The Salla integration syncs your store data into SkyLight Chat so you can:

  • Sync products — store catalog lands in a product catalog knowledge base with prices, stock, images, and purchase_url for each item (also exposed on the Knowledge Base API).
  • Sync orders — import order details, status, and customer info into SkyLight Chat.
  • Push status changes to Salla — confirm, cancel, or advance fulfillment from SkyLight Chat (or the Orders API); changes are sent to Salla via API, then saved locally.
  • Recover abandoned carts — send WhatsApp reminders with cart contents and checkout links.
  • Embed a storefront widget — add live chat to your Salla store.
  • Automate notifications — order confirmations, shipping updates, and delivery alerts.
  • Enrich contacts — automatically create or update contacts from Salla customers.

Who can access

RolePermissions
OwnerFull access — connect, disconnect, configure sync, manage widget
AdminFull access
MemberView synced data; cannot change integration settings
ViewerRead-only

Prerequisites

  1. Active Salla store — you must have a Salla merchant account.
  2. SkyLight Chat app installed on Salla — install from the Salla App Store.
  3. WhatsApp channel connected — required for cart recovery and order notifications.
  4. WhatsApp connected — for abandoned cart recovery messages.

Full walkthrough

Generating the connection code

  1. In SkyLight Chat, go to Integrations → Salla.
  2. Click Generate Connection Code.
  3. Copy the code (e.g., SC-A1B2C3D4).

Connecting in Salla

  1. Log in to your Salla Dashboard.
  2. Go to Settings → Apps & Integrations.
  3. Find SkyLight Chat and click Install (or open if already installed).
  4. Paste the connection code into the designated field.
  5. Click Connect.
  6. Return to SkyLight Chat; the status should now show Connected.

Configuring sync settings

  1. Open the Sync Settings tab.
  2. Toggle:
    • Orders Sync — imports new and updated orders.
    • Contacts Sync — creates contacts from Salla customers.
    • Abandoned Cart Recovery — enables cart reminders.
  3. Select Sync Frequency:
    • Real-time (webhook-driven)
    • Every 5 minutes
    • Every 15 minutes
    • Hourly
  4. Click Save.

Setting up abandoned cart recovery

  1. Go to the Abandoned Cart tab.
  2. Write the recovery message using cart variables (see glossary below).
  3. Set the Delay — minutes to wait after a cart is abandoned before sending (e.g., 30, 60, 120).
  4. Map variables using the available placeholders:
VariableDescriptionExample output
{name}Customer's first nameSara
{total}Cart total amount299.00
{currency}Store currency codeSAR
{checkout_url}Direct link to resume checkouthttps://store.salla.sa/cart/abc123
{items}Comma-separated product namesBlue T-Shirt, Running Shoes
{store_name}Your Salla store nameNakheel Fashion
  1. Preview the message to verify variable placement.
  2. Click Save & Activate.

Enabling the storefront widget

  1. Open the Widget tab.
  2. Toggle Enable Widget to ON.
  3. Customize:
    • Position — bottom-left or bottom-right.
    • Primary Color — match your brand (hex picker).
    • Welcome Message — greeting displayed when widget opens.
  4. Copy the Embed Code snippet.
  5. In your Salla theme, paste the snippet before the closing </body> tag.
  6. Save and publish your theme.

The widget now appears on your storefront, letting visitors chat via WhatsApp or web chat.

Viewing synced orders

Synced orders appear under Orders in SkyLight Chat. Each order shows:

  • Customer name and contact link
  • Order number and status
  • Line items with quantities and prices
  • Shipping address
  • Created and updated timestamps
  • Source badge Salla (created_by = salla)

Confirming or cancelling Salla orders from SkyLight

Status changes for Salla-sourced orders are two-way:

  1. Open the order in SkyLight Chat (or call PUT /api/v1/orders/{id} / POST /api/v1/orders/{id}/cancel).
  2. Confirm, cancel, or move to the next allowed status.
  3. SkyLight pushes the matching status to Salla (POST …/orders/{salla_id}/status), then updates the local order.
  4. Later Salla webhooks / sync keep both sides aligned.
SkyLight statusSent to Salla (slug)
Confirmed / Processingin_progress
Shippedshipped
Delivereddelivered
Cancelledcanceled

Requires an active Salla connection with orders.read_write. Item edits on Salla orders remain Salla-only (not pushed from SkyLight).

Manual sync

Click Sync Now in the Sync Settings tab to trigger an immediate pull of orders and contacts.

Disconnecting Salla

  1. Go to Integrations → Salla.
  2. Click Disconnect.
  3. Confirm the dialog.

Disconnecting stops all syncs and disables the widget. Historical data remains in SkyLight Chat.


Field glossary

FieldDescription
Connection CodeUnique code linking SkyLight Chat to your Salla app
Store NameSalla store display name
Orders SyncToggle to import orders
Contacts SyncToggle to create contacts from customers
Abandoned Cart RecoveryToggle to send cart reminders
Sync FrequencyHow often data pulls occur
DelayMinutes before abandoned cart message is sent
Widget Embed CodeJavaScript snippet for your storefront

Statuses and badges

StatusBadge colorMeaning
ConnectedGreenIntegration active
DisconnectedGrayNot linked
SyncingBlueData transfer in progress
ErrorRedSync failed; check logs

Order sync statuses

StatusMeaning
PendingOrder awaiting processing
ConfirmedOrder confirmed by store
ProcessingOrder being prepared
ShippedOrder dispatched
DeliveredOrder completed
CancelledOrder cancelled

Nested screens

Abandoned Cart tab

SectionContents
Recovery messageText area with cart variables
Delay inputMinutes (numeric)
Variable mappingShows available placeholders and contact fields
PreviewLive preview of the message with sample data
Activate toggleOn/Off for cart recovery

Widget tab

SectionContents
Enable toggleOn/Off
PositionRadio buttons (left/right)
Color pickerHex or visual selector
Welcome messageText input
Embed codeRead-only snippet with copy button

Activity log

ColumnDescription
TimestampWhen the event occurred
Event typeOrder synced, Contact created, Cart abandoned, etc.
DetailsOrder ID, contact name, or cart ID
StatusSuccess, Failed

Connections to other areas

FeatureHow it connects
OrdersSynced Salla orders appear in the Orders module
ContactsSalla customers become contacts automatically
CampaignsTarget Salla customers with broadcast campaigns
Web ChatStorefront widget uses Web Chat infrastructure
Webhooksorder.created, order.updated events include Salla orders

Limits and plan behavior

PlanSalla integrationAbandoned cart messages/month
StarterNot included
ProIncluded500
BusinessIncluded2,000
EnterpriseIncludedUnlimited

Order and contact sync counts against your plan's respective limits.


Troubleshooting

IssueCauseSolution
Connection code invalidCode expired or already usedGenerate a new code in SkyLight Chat
Orders not syncingSync toggle off or webhook misconfiguredVerify sync is enabled; click Sync Now
Cart recovery messages not sendingWhatsApp disconnected or recovery disabledEnable recovery; reconnect WhatsApp
Widget not appearingEmbed code missing or theme cacheClear theme cache; verify snippet placement
Variables showing as placeholdersIncorrect variable syntaxUse exact format: {name}, {total}, etc.
Duplicate contactsCustomer already exists with same phoneContacts are unified by phone; duplicates are skipped