Salla order status updates on WhatsApp
When an order's status changes in Salla, the customer gets a WhatsApp update in Arabic with the tracking link.
How it works
- Receive the status update from Salla.
- Turn the status into a short Arabic sentence.
- Send the customer a WhatsApp template with the order number, status and tracking link.
Diagram
Code
JavaScript used in the Code step — already included in the template below.
// Mode: Run Once for Each Item
// Salla order.status.updated webhook → customer phone + an Arabic status line.
// Status slugs differ between stores; run a test and adjust the list below.
const body = $json.body || {};
const o = body.data?.order || body.data || {};
const c = o.customer || {};
const slug = String(body.data?.status?.slug || o.status?.slug || "").toLowerCase();
const STATUS = {
in_progress: "جاري تجهيز طلبك",
completed: "تم تجهيز طلبك",
delivering: "طلبك في الطريق إليك",
delivered: "تم توصيل طلبك",
canceled: "تم إلغاء طلبك",
};
return {
json: {
order_id: o.reference_id || o.id,
name: c.first_name || "",
phone: `${c.mobile_code || ""}${c.mobile || ""}`.replace(/[^0-9]/g, ""),
status: STATUS[slug] || "",
tracking: o.shipping?.tracking_link || o.shipments?.[0]?.tracking_link || "-",
},
};Build it
Pick your tool — same automation, step by step.
Copy and paste straight into an n8n canvas (Ctrl+V), or download and use Import from File. Then connect your own credentials and replace every YOUR_… placeholder.
Show code (169 lines)
{
"name": "Salla order status updates on WhatsApp (Flowngn)",
"nodes": [
{
"parameters": {
"content": "## Salla order status updates on WhatsApp\nWhen an order's status changes in Salla, the customer gets a WhatsApp update in Arabic with the tracking link.\n\n**Setup**\n1. Open each node and connect your own credentials.\n2. Replace every YOUR_… placeholder.\n3. Test once, then activate.\n\nFree template from Flowngn",
"height": 260,
"width": 340
},
"id": "4582ffa0-b14a-4d3f-a4ae-9194a533337e",
"name": "Setup notes",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-420,
-60
]
},
{
"parameters": {
"httpMethod": "POST",
"path": "salla-status",
"options": {}
},
"id": "4582ffa0-b14a-4d3f-a4ae-9194a533337e",
"name": "Salla status update",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
0,
0
],
"webhookId": "4582ffa0-b14a-4d3f-a4ae-9194a533337e"
},
{
"parameters": {
"jsCode": "// Mode: Run Once for Each Item\n// Salla order.status.updated webhook → customer phone + an Arabic status line.\n// Status slugs differ between stores; run a test and adjust the list below.\nconst body = $json.body || {};\nconst o = body.data?.order || body.data || {};\nconst c = o.customer || {};\nconst slug = String(body.data?.status?.slug || o.status?.slug || \"\").toLowerCase();\n\nconst STATUS = {\n in_progress: \"جاري تجهيز طلبك\",\n completed: \"تم تجهيز طلبك\",\n delivering: \"طلبك في الطريق إليك\",\n delivered: \"تم توصيل طلبك\",\n canceled: \"تم إلغاء طلبك\",\n};\n\nreturn {\n json: {\n order_id: o.reference_id || o.id,\n name: c.first_name || \"\",\n phone: `${c.mobile_code || \"\"}${c.mobile || \"\"}`.replace(/[^0-9]/g, \"\"),\n status: STATUS[slug] || \"\",\n tracking: o.shipping?.tracking_link || o.shipments?.[0]?.tracking_link || \"-\",\n },\n};",
"mode": "runOnceForEachItem"
},
"id": "4582ffa0-b14a-4d3f-a4ae-9194a533337e",
"name": "Read status",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
300,
0
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "loose"
},
"conditions": [
{
"id": "c1",
"leftValue": "={{ $json.status !== '' && $json.phone.length >= 10 }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"id": "4582ffa0-b14a-4d3f-a4ae-9194a533337e",
"name": "Status to share?",
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
600,
0
]
},
{
"parameters": {
"operation": "sendTemplate",
"phoneNumberId": "YOUR_PHONE_NUMBER_ID",
"recipientPhoneNumber": "={{ $json.phone }}",
"template": "YOUR_ORDER_STATUS_TEMPLATE|ar",
"components": {
"component": [
{
"type": "body",
"bodyParameters": {
"parameter": [
{
"type": "text",
"text": "={{ $json.name || 'عميلنا العزيز' }}"
},
{
"type": "text",
"text": "={{ $json.order_id }}"
},
{
"type": "text",
"text": "={{ $json.status }}"
},
{
"type": "text",
"text": "={{ $json.tracking }}"
}
]
}
}
]
}
},
"id": "4582ffa0-b14a-4d3f-a4ae-9194a533337e",
"name": "Send status update",
"type": "n8n-nodes-base.whatsApp",
"typeVersion": 1,
"position": [
900,
0
]
}
],
"connections": {
"Salla status update": {
"main": [
[
{
"node": "Read status",
"type": "main",
"index": 0
}
]
]
},
"Read status": {
"main": [
[
{
"node": "Status to share?",
"type": "main",
"index": 0
}
]
]
},
"Status to share?": {
"main": [
[
{
"node": "Send status update",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": false
},
"tags": []
}In Make, create a new scenario and add these modules in order:
- Webhooks › Custom webhook
- Tools › Set variable / Iterator + Array aggregator (same logic as the Code step)
- Filter on the next route: “Status to share?”
- If yesWhatsApp Business Cloud › Send a Template Message
- Every module run uses Make operations — the free plan includes a monthly quota.
- Make's built-in functions (map, sum, formatDate…) can replace most Code steps; for complex logic use a code module.
- Module and step names can differ slightly as Make and Zapier update their apps.
In Zapier, create a new Zap and add these steps in order:
- Webhooks by Zapier — Catch Hook
- Code by Zapier — Run JavaScript (paste the code from the Code section)
- Filter by Zapier: “Status to share?”
- If yesWhatsApp — Send Template Message
- Zaps with more than two steps need a paid Zapier plan.
- Webhooks, Filters/Paths and Code by Zapier are premium features on some Zapier plans.
- Code by Zapier runs JavaScript: reuse the code shown above, reading inputs from inputData instead of $json.
- Module and step names can differ slightly as Make and Zapier update their apps.
Tips
- Run a test order through each status and check the slugs your store sends.
Related flows
WhatsApp order confirmation for Salla
Customers of your Salla store get a WhatsApp message the moment they order.
Confirm cash-on-delivery orders on WhatsApp
Ask COD customers to confirm their order on WhatsApp before you ship — fewer fake orders.
Salla abandoned cart reminders on WhatsApp
When a Salla cart is abandoned, send the customer a friendly WhatsApp reminder with a link back to their cart.