{
  "name": "Guida - Form del sito a Slack",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "form-a-slack",
        "options": {}
      },
      "id": "webhook1",
      "name": "Form inviato",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [0, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "YOUR_SLACK_WEBHOOK_URL",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ text: `Nuovo contatto dal sito:\\nNome: ${$json.body.nome || $json.body.name || '-'}\\nEmail: ${$json.body.email || '-'}\\nMessaggio: ${$json.body.messaggio || $json.body.message || '-'}` }) }}",
        "options": {}
      },
      "id": "http1",
      "name": "Notifica su Slack",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [220, 0]
    },
    {
      "parameters": {
        "respondWith": "text",
        "responseBody": "Grazie, ti risponderemo presto."
      },
      "id": "respond1",
      "name": "Rispondi al form",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [440, 0]
    }
  ],
  "connections": {
    "Form inviato": { "main": [[{ "node": "Notifica su Slack", "type": "main", "index": 0 }]] },
    "Notifica su Slack": { "main": [[{ "node": "Rispondi al form", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" }
}
