AutomationFlowsGeneral › Contact Form to Email via Webhook

Contact Form to Email via Webhook

Original n8n title: Contact Form

contact-form. Uses emailSend. Webhook trigger; 4 nodes.

Webhook trigger★★★★☆ complexity4 nodesEmail Send
General Trigger: Webhook Nodes: 4 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "Contact-Form",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "=form",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "id": "5a434ed3-71ef-4b58-8417-0416949c6085",
      "name": "Webhook"
    },
    {
      "parameters": {
        "operation": "create",
        "base": {
          "__rl": true,
          "value": "apped4mT1HPaAIL4h",
          "mode": "list",
          "cachedResultName": "Embudo - Cognitiveds",
          "cachedResultUrl": "https://airtable.com/apped4mT1HPaAIL4h"
        },
        "table": {
          "__rl": true,
          "value": "tblkfOmRxEE2VLBHX",
          "mode": "list",
          "cachedResultName": "Leads-Formulario",
          "cachedResultUrl": "https://airtable.com/apped4mT1HPaAIL4h/tblkfOmRxEE2VLBHX"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Cliente": "={{ $json.body.name }}",
            "Empresa": "={{ $json.body.company }}",
            "Correo": "={{ $json.body.email }}",
            "Presupuesto": "={{ $json.body.budget }}",
            "Contexto": "={{ $json.body.message }}",
            "Sitio Web o Red Social": "={{ $json.body.website }}",
            "Tel\u00e9fono": "={{ $json.body.phoneNumber }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Cliente",
              "displayName": "Cliente",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "Empresa",
              "displayName": "Empresa",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "Correo",
              "displayName": "Correo",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "Presupuesto",
              "displayName": "Presupuesto",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "options",
              "options": [
                {
                  "name": "B\u00e1sico (500 - 1.500 USD)",
                  "value": "B\u00e1sico (500 - 1.500 USD)"
                },
                {
                  "name": "Est\u00e1ndar (1.500 - 3.000 USD)",
                  "value": "Est\u00e1ndar (1.500 - 3.000 USD)"
                },
                {
                  "name": "Premium (3.000 - 5.000 USD)",
                  "value": "Premium (3.000 - 5.000 USD)"
                },
                {
                  "name": "Empresarial (5.000+ USD)",
                  "value": "Empresarial (5.000+ USD)"
                }
              ],
              "readOnly": false,
              "removed": false
            },
            {
              "id": "Contexto",
              "displayName": "Contexto",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "Creada",
              "displayName": "Creada",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": true,
              "removed": false
            },
            {
              "id": "Sitio Web o Red Social",
              "displayName": "Sitio Web o Red Social",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            },
            {
              "id": "Tel\u00e9fono",
              "displayName": "Tel\u00e9fono",
              "required": false,
              "defaultMatch": false,
              "canBeUsedToMatch": true,
              "display": true,
              "type": "string",
              "readOnly": false,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 2.1,
      "position": [
        240,
        0
      ],
      "id": "41f991a2-5c71-48eb-a389-41a4b5409f4d",
      "name": "Airtable",
      "credentials": {
        "airtableTokenApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=nombre: {{ $('Webhook').item.json.body.name }}\ncompa\u00f1\u00eda: {{ $('Webhook').item.json.body.company }}\nemail: {{ $('Webhook').item.json.body.email }}\npresupuesto: {{ $('Webhook').item.json.body.budget }}\nContexto: {{ $('Webhook').item.json.body.message }}\ntimestamp: {{ $('Webhook').item.json.body.timestamp }}",
        "options": {
          "systemMessage": "Eres LEVY, el agente de atenci\u00f3n al cliente en nuestra Agencia de Automatizaci\u00f3n con IA llamada \"Cognitive Data Solutions\"\n\nEst\u00e1s dentro de un flujo de trabajo. Los datos que has recibido por parte del usuario son porque este ha llenado nuestro formulario en nuestro sitio web.\n\nTu deber es enviar un correo ultrapersonalizado, siendo lo m\u00e1s amable posible. \n\nLa intenci\u00f3n del correo es:\n\n* Predicar con el ejemplo\n* Nutrir al usuario tan pronto posible\n* Hac\u00e9rle saber que hemos recibido su intenci\u00f3n de trabajar con nosotros, y que un personal de ventas se pondr\u00e1 en contacto por WhatsApp tan pronto posible\n\nAseg\u00farate de ser super amable, profesional y alguno que otro cumplido en los datos que puedas recopilar del usuario para hacerlo sentir escuchado.\n\nNota: \n* Genera el cuerpo del correo en **formato HTML sin encerrar en bloque de c\u00f3digo**, solo el contenido renderizable para correo electr\u00f3nico.\n* Incluye un saludo profesional con el nombre, un body y una despedida con tu nombre y \"Cognitive Data Solutions\"\n* Los correos deben ser siempre menores de 100 palabras y 3 parr\u00e1fos"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.9,
      "position": [
        700,
        -40
      ],
      "id": "7cbd3a50-b8b6-40ed-af4a-ce3515155c42",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4.1-mini",
          "mode": "list",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {
          "temperature": 0.1
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        700,
        200
      ],
      "id": "21e58d92-e7a7-4c39-8938-24b5781a435f",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "={{ $('Webhook').item.json.body.email }}",
        "subject": "re: Cognitive Data Solutions",
        "message": "={{ $json.output }}",
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        1040,
        -20
      ],
      "id": "b7289f33-4f7a-4db1-9ee3-9c42cad48fa9",
      "name": "Gmail1",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "C08N3ADAAHK",
          "mode": "list",
          "cachedResultName": "cognitiveds"
        },
        "text": "=Ha llegado un nuevo Lead! \ud83e\uddbe\ud83d\udd25\n{{ $json.fields.Cliente }}, del negocio \"\"{{ $json.fields.Empresa }}\"\", con presupuesto: {{ $json.fields.Presupuesto }}, ha dejado la siguiente solicitud:\n\n\"{{ $json.fields.Contexto }}\"",
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        460,
        -40
      ],
      "id": "6ebf51a0-c00e-4c63-8647-f606f6aa27fc",
      "name": "Slack",
      "credentials": {
        "slackOAuth2Api": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable": {
      "main": [
        [
          {
            "node": "Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Gmail1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7ca134bb-3a8e-4d1c-8950-22e0ea5e9c17",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "aILRsfOGNHfYLttx",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

contact-form. Uses emailSend. Webhook trigger; 4 nodes.

Source: https://github.com/DerTrolli/cleanfix-website/blob/0c7b3e830250c1ee8514136b6f23e6baa7275517/n8n-workflows/contact-form.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

This workflow automates flight price comparison across multiple booking platforms (Kayak, Skyscanner, Expedia, Google Flights). It accepts natural language queries, extracts flight details using NLP,

Ssh, Email Send
General

Automate the tracking of customer subscription expiry dates, create renewal tasks in ClickUp, and dispatch friendly email reminders before the due date. The workflow listens for incoming subscription

Email Send
General

[NooviChat] Onboarding Pós-Pagamento (Exp 6). Uses emailSend. Webhook trigger; 11 nodes.

Email Send
General

This automated n8n workflow processes student applications on a scheduled basis, validates data, updates databases, and sends welcome communications to students and guardians.

Microsoft Excel, Email Send
General

EuQuero - PIX Payment Confirmation. Uses emailSend. Webhook trigger; 8 nodes.

Email Send