{
  "name": "Formularz WWW → e-mail",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "formularz-kontakt",
        "responseMode": "responseNode",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "hp",
              "leftValue": "={{ $json.body.firma_www || '' }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "empty"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "name": "Honeypot pusty?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "fromEmail": "n8n@twojafirma.pl",
        "toEmail": "kontakt@twojafirma.pl",
        "subject": "=Nowa wiadomość ze strony od {{ $json.body.imie }}",
        "emailFormat": "text",
        "text": "=Od: {{ $json.body.imie }} <{{ $json.body.email }}>\n\n{{ $json.body.wiadomosc }}",
        "options": {}
      },
      "name": "Wyślij e-mail",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        480,
        -80
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ { ok: true } }}",
        "options": {}
      },
      "name": "Odpowiedz 200",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        720,
        0
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Honeypot pusty?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Honeypot pusty?": {
      "main": [
        [
          {
            "node": "Wyślij e-mail",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Odpowiedz 200",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wyślij e-mail": {
      "main": [
        [
          {
            "node": "Odpowiedz 200",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "timezone": "Europe/Warsaw"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "agentflow.pl/n8n/szablony"
  },
  "pinData": {}
}