New Salla order alerts on Telegram

Get a Telegram message with the items, total and city for every Salla order.

Easy Saves ~2 hours/month MENA & local appsBy Flowngn team

Works with n8n · Make · Zapier

How it works

Trigger: Webhook — Salla order.created event
  1. Receive the new order event from Salla.
  2. Send the order number, items, total, payment method and city to Telegram.

Diagram

Salla orderWebhook{ }Read Salla orderCodeTNotify on TelegramTelegram
Trigger App Code

Code

JavaScript used in the Code step — already included in the template below.

Read Salla order · Code node
// Mode: Run Once for Each Item
// Salla order webhook → clean fields.
// Run one test order first and check the field names in the webhook data.
const body = $json.body || {};
const o = body.data || {};
const c = o.customer || {};

return {
  json: {
    event: body.event,
    order_id: o.reference_id || o.id,
    customer_name: [c.first_name, c.last_name].filter(Boolean).join(" "),
    phone: `${c.mobile_code || ""}${c.mobile || ""}`.replace(/[^0-9]/g, ""),
    email: c.email || "",
    total: o.amounts?.total?.amount ?? o.total?.amount ?? "",
    currency: o.amounts?.total?.currency ?? o.currency ?? "",
    payment_method: o.payment_method || "",
    city: o.shipping?.address?.city || c.city || "",
    items: (o.items || []).map((i) => `${i.quantity}× ${i.name}`).join("، "),
    date: o.date?.date || body.created_at || "",
  },
};

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.

Workflow JSON
Show code (99 lines)
{
  "name": "New Salla order alerts on Telegram (Flowngn)",
  "nodes": [
    {
      "parameters": {
        "content": "## New Salla order alerts on Telegram\nGet a Telegram message with the items, total and city for every Salla order.\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-9194a3a0da24",
      "name": "Setup notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -420,
        -60
      ]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "salla-orders-alert",
        "options": {}
      },
      "id": "4582ffa0-b14a-4d3f-a4ae-9194a3a0da24",
      "name": "Salla order",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "4582ffa0-b14a-4d3f-a4ae-9194a3a0da24"
    },
    {
      "parameters": {
        "jsCode": "// Mode: Run Once for Each Item\n// Salla order webhook → clean fields.\n// Run one test order first and check the field names in the webhook data.\nconst body = $json.body || {};\nconst o = body.data || {};\nconst c = o.customer || {};\n\nreturn {\n  json: {\n    event: body.event,\n    order_id: o.reference_id || o.id,\n    customer_name: [c.first_name, c.last_name].filter(Boolean).join(\" \"),\n    phone: `${c.mobile_code || \"\"}${c.mobile || \"\"}`.replace(/[^0-9]/g, \"\"),\n    email: c.email || \"\",\n    total: o.amounts?.total?.amount ?? o.total?.amount ?? \"\",\n    currency: o.amounts?.total?.currency ?? o.currency ?? \"\",\n    payment_method: o.payment_method || \"\",\n    city: o.shipping?.address?.city || c.city || \"\",\n    items: (o.items || []).map((i) => `${i.quantity}× ${i.name}`).join(\"، \"),\n    date: o.date?.date || body.created_at || \"\",\n  },\n};",
        "mode": "runOnceForEachItem"
      },
      "id": "4582ffa0-b14a-4d3f-a4ae-9194a3a0da24",
      "name": "Read Salla order",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        300,
        0
      ]
    },
    {
      "parameters": {
        "chatId": "YOUR_CHAT_ID",
        "text": "=🛍️ طلب جديد #{{ $json.order_id }} — {{ $json.total }} {{ $json.currency }}\n{{ $json.items }}\n👤 {{ $json.customer_name }} · 📍 {{ $json.city || '—' }}\n💳 {{ $json.payment_method }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "id": "4582ffa0-b14a-4d3f-a4ae-9194a3a0da24",
      "name": "Notify on Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        600,
        0
      ]
    }
  ],
  "connections": {
    "Salla order": {
      "main": [
        [
          {
            "node": "Read Salla order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Salla order": {
      "main": [
        [
          {
            "node": "Notify on Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}

Open in the playground to edit →

Tips

  • Send to a Telegram group so your whole team sees new orders.

Related flows