{
  "name": "M08 - First Webhook Greeting",
  "nodes": [
    {
      "id": "6d33f66e-3a95-4583-adda-8178ccc8fdfc",
      "parameters": {
        "httpMethod": "POST",
        "path": "hello-n8n",
        "responseMode": "responseNode"
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        240,
        300
      ],
      "webhookId": "6008f8ec-3565-4657-a416-084ea8628cfc"
    },
    {
      "id": "2c1d845b-f5b3-4d79-a351-68a060a7120a",
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "name": "record_id",
              "value": "={{ $json.body.record_id }}",
              "type": "string"
            },
            {
              "name": "greeting",
              "value": "={{ \"مرحبًا \" + ($json.body.name || \"متدرب\") }}",
              "type": "string"
            }
          ]
        }
      },
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        480,
        300
      ]
    },
    {
      "id": "2329a497-779b-4fe4-a667-c085f7a23dcd",
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json }}"
      },
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        720,
        300
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "n8n-learning-hub"
  }
}