تكامل سلة
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_urlfor 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
| Role | Permissions |
|---|---|
| Owner | Full access — connect, disconnect, configure sync, manage widget |
| Admin | Full access |
| Member | View synced data; cannot change integration settings |
| Viewer | Read-only |
Prerequisites
- Active Salla store — you must have a Salla merchant account.
- SkyLight Chat app installed on Salla — install from the Salla App Store.
- WhatsApp channel connected — required for cart recovery and order notifications.
- WhatsApp connected — for abandoned cart recovery messages.
Full walkthrough
Generating the connection code
- In SkyLight Chat, go to Integrations → Salla.
- Click Generate Connection Code.
- Copy the code (e.g.,
SC-A1B2C3D4).
Connecting in Salla
- Log in to your Salla Dashboard.
- Go to Settings → Apps & Integrations.
- Find SkyLight Chat and click Install (or open if already installed).
- Paste the connection code into the designated field.
- Click Connect.
- Return to SkyLight Chat; the status should now show Connected.
Configuring sync settings
- Open the Sync Settings tab.
- Toggle:
- Orders Sync — imports new and updated orders.
- Contacts Sync — creates contacts from Salla customers.
- Abandoned Cart Recovery — enables cart reminders.
- Select Sync Frequency:
- Real-time (webhook-driven)
- Every 5 minutes
- Every 15 minutes
- Hourly
- Click Save.
Setting up abandoned cart recovery
- Go to the Abandoned Cart tab.
- Write the recovery message using cart variables (see glossary below).
- Set the Delay — minutes to wait after a cart is abandoned before sending (e.g., 30, 60, 120).
- Map variables using the available placeholders:
| Variable | Description | Example output |
|---|---|---|
{name} | Customer's first name | Sara |
{total} | Cart total amount | 299.00 |
{currency} | Store currency code | SAR |
{checkout_url} | Direct link to resume checkout | https://store.salla.sa/cart/abc123 |
{items} | Comma-separated product names | Blue T-Shirt, Running Shoes |
{store_name} | Your Salla store name | Nakheel Fashion |
- Preview the message to verify variable placement.
- Click Save & Activate.
Enabling the storefront widget
- Open the Widget tab.
- Toggle Enable Widget to ON.
- Customize:
- Position — bottom-left or bottom-right.
- Primary Color — match your brand (hex picker).
- Welcome Message — greeting displayed when widget opens.
- Copy the Embed Code snippet.
- In your Salla theme, paste the snippet before the closing
</body>tag. - 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:
- Open the order in SkyLight Chat (or call
PUT /api/v1/orders/{id}/POST /api/v1/orders/{id}/cancel). - Confirm, cancel, or move to the next allowed status.
- SkyLight pushes the matching status to Salla (
POST …/orders/{salla_id}/status), then updates the local order. - Later Salla webhooks / sync keep both sides aligned.
| SkyLight status | Sent to Salla (slug) |
|---|---|
| Confirmed / Processing | in_progress |
| Shipped | shipped |
| Delivered | delivered |
| Cancelled | canceled |
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
- Go to Integrations → Salla.
- Click Disconnect.
- Confirm the dialog.
Disconnecting stops all syncs and disables the widget. Historical data remains in SkyLight Chat.
Field glossary
| Field | Description |
|---|---|
| Connection Code | Unique code linking SkyLight Chat to your Salla app |
| Store Name | Salla store display name |
| Orders Sync | Toggle to import orders |
| Contacts Sync | Toggle to create contacts from customers |
| Abandoned Cart Recovery | Toggle to send cart reminders |
| Sync Frequency | How often data pulls occur |
| Delay | Minutes before abandoned cart message is sent |
| Widget Embed Code | JavaScript snippet for your storefront |
Statuses and badges
| Status | Badge color | Meaning |
|---|---|---|
| Connected | Green | Integration active |
| Disconnected | Gray | Not linked |
| Syncing | Blue | Data transfer in progress |
| Error | Red | Sync failed; check logs |
Order sync statuses
| Status | Meaning |
|---|---|
| Pending | Order awaiting processing |
| Confirmed | Order confirmed by store |
| Processing | Order being prepared |
| Shipped | Order dispatched |
| Delivered | Order completed |
| Cancelled | Order cancelled |
Nested screens
Abandoned Cart tab
| Section | Contents |
|---|---|
| Recovery message | Text area with cart variables |
| Delay input | Minutes (numeric) |
| Variable mapping | Shows available placeholders and contact fields |
| Preview | Live preview of the message with sample data |
| Activate toggle | On/Off for cart recovery |
Widget tab
| Section | Contents |
|---|---|
| Enable toggle | On/Off |
| Position | Radio buttons (left/right) |
| Color picker | Hex or visual selector |
| Welcome message | Text input |
| Embed code | Read-only snippet with copy button |
Activity log
| Column | Description |
|---|---|
| Timestamp | When the event occurred |
| Event type | Order synced, Contact created, Cart abandoned, etc. |
| Details | Order ID, contact name, or cart ID |
| Status | Success, Failed |
Connections to other areas
| Feature | How it connects |
|---|---|
| Orders | Synced Salla orders appear in the Orders module |
| Contacts | Salla customers become contacts automatically |
| Campaigns | Target Salla customers with broadcast campaigns |
| Web Chat | Storefront widget uses Web Chat infrastructure |
| Webhooks | order.created, order.updated events include Salla orders |
Limits and plan behavior
| Plan | Salla integration | Abandoned cart messages/month |
|---|---|---|
| Starter | Not included | — |
| Pro | Included | 500 |
| Business | Included | 2,000 |
| Enterprise | Included | Unlimited |
Order and contact sync counts against your plan's respective limits.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Connection code invalid | Code expired or already used | Generate a new code in SkyLight Chat |
| Orders not syncing | Sync toggle off or webhook misconfigured | Verify sync is enabled; click Sync Now |
| Cart recovery messages not sending | WhatsApp disconnected or recovery disabled | Enable recovery; reconnect WhatsApp |
| Widget not appearing | Embed code missing or theme cache | Clear theme cache; verify snippet placement |
| Variables showing as placeholders | Incorrect variable syntax | Use exact format: {name}, {total}, etc. |
| Duplicate contacts | Customer already exists with same phone | Contacts are unified by phone; duplicates are skipped |
Related articles
- Orders — manage and fulfill orders
- WhatsApp Contacts — view synced Salla customers
- Web Chat — configure the storefront widget
الطلبات
Create, view, and manage customer orders with line items, status tracking, cancellation, and fulfillment workflows in SkyLight Chat.
الإعدادات
Configure general account settings, manage media, generate API keys, set up webhooks, control domain whitelisting, and handle support tickets in SkyLight Chat.
