{
  "name": "rrule.net Schedule Trigger",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "rrule-net-schedule",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "44e62f1d-09f9-4f4c-a78e-4024d7642fc6",
      "name": "rrule.net schedule webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -520,
        0
      ],
      "webhookId": "rrule-net-schedule"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "schedule-id",
              "name": "schedule_id",
              "type": "string",
              "value": "={{ $json.body.schedule_id }}"
            },
            {
              "id": "schedule-name",
              "name": "schedule_name",
              "type": "string",
              "value": "={{ $json.body.schedule_name }}"
            },
            {
              "id": "execution-id",
              "name": "execution_id",
              "type": "string",
              "value": "={{ $json.body.execution_id }}"
            },
            {
              "id": "scheduled-for",
              "name": "scheduled_for",
              "type": "string",
              "value": "={{ $json.body.scheduled_for }}"
            },
            {
              "id": "executed-at",
              "name": "executed_at",
              "type": "string",
              "value": "={{ $json.body.executed_at }}"
            },
            {
              "id": "timezone",
              "name": "timezone",
              "type": "string",
              "value": "={{ $json.body.timezone }}"
            },
            {
              "id": "input-type",
              "name": "input_type",
              "type": "string",
              "value": "={{ $json.body.input.type }}"
            },
            {
              "id": "input-value",
              "name": "input_value",
              "type": "string",
              "value": "={{ $json.body.input.value }}"
            },
            {
              "id": "raw-payload",
              "name": "raw_payload",
              "type": "object",
              "value": "={{ $json.body }}"
            }
          ]
        },
        "options": {}
      },
      "id": "a52f26d4-60b6-46ad-934f-577f5507d7f2",
      "name": "Normalize rrule.net payload",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -260,
        0
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { ok: true, source: 'rrule.net', schedule_id: $json.schedule_id, schedule_name: $json.schedule_name, execution_id: $json.execution_id } }}",
        "options": {
          "responseCode": 200
        }
      },
      "id": "fbfe29b5-26db-48d4-9b5b-6c4705ceb1e9",
      "name": "Acknowledge rrule.net",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "content": "Add your workflow actions after \"Normalize rrule.net payload\". Keep \"Acknowledge rrule.net\" connected so rrule.net receives a fast 200 response.",
        "height": 180,
        "width": 360
      },
      "id": "9703c97e-78ae-4d3e-8743-623c1666efa7",
      "name": "How to use this template",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -260,
        -260
      ]
    }
  ],
  "pinData": {},
  "connections": {
    "rrule.net schedule webhook": {
      "main": [
        [
          {
            "node": "Normalize rrule.net payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize rrule.net payload": {
      "main": [
        [
          {
            "node": "Acknowledge rrule.net",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3b4c1ca3-51ea-4c84-bca1-a5ef790c376c",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": []
}
