{
  "name": "SN: Discord notify",
  "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": {
        "webhookUri": "YOUR_DISCORD_WEBHOOK_URL",
        "text": ":tada: Event **{{$json.data.title}}** zakończony! Mutual matche: {{$json.data.mutual_matches_count}}.",
        "options": {}
      },
      "id": "discord-send",
      "name": "Discord: send message",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 1,
      "position": [
        680,
        220
      ]
    }
  ],
  "connections": {
    "Webhook (SpeedNetworking)": {
      "main": [
        [
          {
            "node": "Filtruj event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filtruj event": {
      "main": [
        [
          {
            "node": "Discord: send message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "meta": {
    "templateCreatedBy": "SpeedNetworking Marketplace"
  },
  "id": "speednetworking-template",
  "tags": [
    "speednetworking",
    "event.finished"
  ]
}