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

الطلبات

Create, view, and manage customer orders with line items, status tracking, cancellation, and fulfillment workflows in SkyLight Chat.

Orders

Track and fulfill customer orders directly within SkyLight Chat. Whether orders come from your AI agent, web chat, API, or Salla integration, they all appear in one unified order management system.


Purpose

The Orders module provides a lightweight order management layer so you can:

  • Create orders — manually or via AI agent conversations.
  • Track status — pending, confirmed, processing, shipped, delivered, cancelled.
  • View line items — products, quantities, prices.
  • Link to contacts — see customer purchase history.
  • Integrate with e-commerce — sync orders from Salla or create via API.
  • Automate notifications — send order confirmations and shipping updates via WhatsApp.

Who can access

RolePermissions
OwnerFull access — create, edit, cancel, delete orders
AdminFull access
MemberView orders; create and update status; cannot delete
ViewerRead-only

Prerequisites

  1. Products defined (optional) — create products in Settings or via API for structured line items.
  2. Contacts available — orders link to contacts for history tracking.
  3. WhatsApp connected (for notifications) — enables order confirmation and shipping alerts.
  4. Salla connected (optional) — syncs e-commerce orders automatically.

Full walkthrough

Creating an order manually

  1. Go to Orders.
  2. Click + Create Order.
  3. Select or create contact:
    • Search existing contacts by name or phone.
    • Or enter new customer details (name, phone, email).
  4. Add line items:
    • Search products by name or SKU.
    • Or enter custom items with name, price, and quantity.
  5. Fill in:
    • Shipping Address (optional).
    • Notes — internal notes for your team.
  6. Click Create Order.

The order is created with Pending status.

Viewing order details

Click any order row to open the detail view:

  • Customer info — linked contact with purchase history shortcut.
  • Line items — expandable product table.
  • Order totals — subtotal, tax (if configured), grand total.
  • Shipping — delivery address and customer notes.
  • Activity — timeline of status changes and internal notes.

Updating order status

  1. Open the order.
  2. Click Update Status.
  3. Select the new status from the dropdown.
  4. Add a note (optional).
  5. Click Save.

Status changes are logged in the activity timeline.

For orders synced from Salla, confirming or cancelling in SkyLight also updates the order in Salla via API. See Salla Integration.

Valid status transitions

FromCan change to
PendingConfirmed, Cancelled
ConfirmedProcessing, Cancelled
ProcessingShipped, Cancelled
ShippedDelivered
Delivered— (final)
Cancelled— (final)

Cancelling an order

  1. Open the order.
  2. Click Cancel Order.
  3. Enter a cancellation reason.
  4. Confirm.

Cancelled orders cannot be reactivated. Stock is automatically restored (if inventory tracking is enabled).

Editing order items

Only Pending orders can have items modified:

  1. Open a pending order.
  2. Click Edit Items.
  3. Add, remove, or adjust quantities.
  4. Click Save Changes.

Once an order is confirmed, items are locked.

Deleting an order

Only Pending or Cancelled orders can be deleted:

  1. Open the order.
  2. Click Delete.
  3. Confirm.

Deleted orders are permanently removed.


Field glossary

FieldDescription
Order IDUnique internal identifier
Contact IDLinked customer contact
Customer NameName of the customer
Customer PhoneE.164 phone number
Customer EmailEmail address
StatusCurrent order status
SubtotalSum of line items before tax/discounts
TotalFinal order amount
CurrencyCurrency code (e.g., SAR, USD)
Shipping AddressDelivery address
NotesInternal order notes
Created BySource: manual, ai_agent, api, web_chat, salla
ItemsArray of line items
Created AtOrder creation timestamp
Updated AtLast modification timestamp

Line item fields

FieldDescription
Product IDLinked product (if from catalog)
Product NameDisplay name
SKUStock keeping unit
QuantityNumber of units
Unit PricePrice per unit
Total PriceQuantity × Unit Price

Statuses and badges

StatusBadge colorMeaning
PendingYellowAwaiting confirmation
ConfirmedBlueOrder accepted, preparing
ProcessingPurpleOrder being fulfilled
ShippedOrangeDispatched for delivery
DeliveredGreenSuccessfully delivered
CancelledRedOrder cancelled

Nested screens

Order detail view

SectionContents
HeaderOrder number, status badge, source badge, dates
CustomerName, phone, email, link to contact profile
ItemsProduct table (name, SKU, qty, price, total)
SummarySubtotal, tax, shipping, grand total
ShippingAddress, delivery notes
ActivityTimeline of events with timestamps
ActionsUpdate Status, Cancel, Delete buttons

Create order modal

StepFields
CustomerSearch/select contact or enter new details
ItemsProduct search, custom item entry, quantity
ShippingAddress textarea
NotesInternal notes textarea
ReviewSummary before creation

Connections to other areas

FeatureHow it connects
ContactsOrders link to contact records; view purchase history
BookingsService orders can be linked to bookings
SallaOrders sync in; status confirm/cancel from SkyLight is pushed back to Salla
AI AgentsAgents can create orders during conversations
Web ChatVisitors can place orders through chat
CampaignsTarget customers based on order history
Webhooksorder.created, order.updated, order.cancelled, order.delivered events
Orders APICreate and manage orders programmatically

Limits and plan behavior

PlanOrders/monthProducts
Starter5020
Pro500100
Business2,000500
EnterpriseUnlimitedUnlimited

Orders created via any source (manual, AI, API, Salla) count toward monthly limits.


Troubleshooting

IssueCauseSolution
Cannot change statusInvalid transitionReview allowed transitions; follow the correct sequence
Order stuck in PendingNo action takenConfirm or cancel the order
Duplicate order createdAPI or AI created twiceEnable duplicate prevention; check for identical orders within 5 minutes
Contact not linkedCustomer phone not in contactsCreate the contact first or let order creation auto-create
Items not editableOrder already confirmedOnly Pending orders allow item edits
Order not syncing from SallaIntegration disconnectedReconnect Salla; click manual sync
WhatsApp notification not sentTemplate not approved or channel disconnectedVerify template status; check WhatsApp connection