{
  "name": "SN: Google Calendar event sync",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "speednetworking",
        "options": {}
      },
      "id": "webhook-trigger",
      "name": "Webhook (SpeedNetworking)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ],
      "webhookId": "speednetworking-trigger"
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.event}}",
              "operation": "equals",
              "value2": "event.finished"
            }
          ]
        }
      },
      "id": "filter-event",
      "name": "Filtruj event",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "operation": "create",
        "calendar": "primary",
        "start": "={{$json.data.starts_at}}",
        "end": "={{$json.data.ends_at}}",
        "additionalFields": {
          "summary": "={{$json.data.title}}",
          "description": "Event SpeedNetworking - {{$json.data.attendees_count}} osób"
        }
      },
      "id": "calendar-create",
      "name": "Google Calendar: create event",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1,
      "position": [
        680,
        220
      ],
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "1",
          "name": "Google account"
        }
      }
    }
  ],
  "connections": {
    "Webhook (SpeedNetworking)": {
      "main": [
        [
          {
            "node": "Filtruj event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filtruj event": {
      "main": [
        [
          {
            "node": "Google Calendar: create event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "meta": {
    "templateCreatedBy": "SpeedNetworking Marketplace"
  },
  "id": "speednetworking-template",
  "tags": [
    "speednetworking",
    "event.finished"
  ]
}