Automated Web Contact Form Submission Processor - n8n Workflow

Use this n8n workflow to capture contact form submissions using the native Form Trigger, send instant email notifications to your support team, and handle custom success or error redirects for the user experience.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Small Businesses and Startups: Who need a reliable, self-hosted solution for managing website contact inquiries without external form services.
Developers and Automation Engineers: Seeking robust n8n templates for handling webhooks and email communication.
Marketing Teams: Who require instant notification of new leads generated via an n8n node setup.
n8n Users: Looking for examples of complex conditional logic (If n8n node) combined with native forms.

Overview

Managing website contact forms efficiently is crucial for lead response time. This n8n workflow provides a complete, backend solution using native n8n features. It bypasses the need for costly third-party form builders by utilizing the powerful Form Trigger n8n node to capture all necessary lead details (First Name, Last Name, Email, Company, Message).

Upon submission, the system immediately sends a comprehensive, HTML-formatted notification email to your internal team. Crucially, the n8n workflow then uses conditional logic to confirm email delivery. If successful, the user sees a confirmation page and is redirected to a success URL. If the notification fails (e.g., due to temporary SMTP issues), the user is presented with a clear error message, ensuring a professional user experience regardless of backend hiccups. This robust n8n templates structure ensures every lead is managed and actioned reliably.

How it Works

This automation initiates with a built-in n8n trigger and follows a clear, multi-step process:


  1. Form Submission Trigger: The process starts when a user submits data through the custom On form submission (Form Trigger n8n node). This node is configured with required fields like Name, Email, and Message.

  2. Internal Notification: The data is immediately passed to the Send Email to Support n8n node, which uses your configured SMTP credentials to send a detailed HTML email containing all submission data to the designated support inbox.

  3. Conditional Check: The If Email Sent n8n node evaluates the success of the previous step by checking for the existence of the messageId field. This determines the subsequent flow.

  4. Success Path: If the email notification was successfully sent, the user is directed to the Confirmation Form n8n node, which displays a friendly 'Thank You' message with custom HTML content. This form includes a button that, when clicked, triggers the Redirect Form n8n node, sending the user to a predefined success URL (e.g., a LinkedIn profile or homepage).

  5. Failure Path: If the Send Email to Support n8n node failed for any reason, the flow is diverted to the error path, presenting the user with a generic 'Oops! Something Went Wrong' message via the dedicated Form n8n node, ensuring the user doesn't wait indefinitely for a response.

Installation Guide

To deploy this n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON code and import it directly into your n8n instance.

  2. Setup Credentials: Locate the Send Email to Support n8n node. You must connect your SMTP service credentials here. Replace the placeholder credentials with your actual SMTP account credentials.

  3. Configure Recipient Email: In the Send Email to Support n8n node, update the To Email parameter ([email protected]) to your actual support or sales team inbox.

  4. Customize Form: Select the On form submission n8n trigger node to customize the form title, description, and fields to match your website's requirements.

  5. Set Success Redirect: In the Redirect Form n8n node, update the Redirect URL parameter (https://www.linkedin.com/in/akhilv7/) to point to your desired landing page after a successful submission.

  6. Activate: Save the n8n workflow and toggle it to 'Active' to start accepting submissions immediately via the unique form URL generated by the n8n trigger.

Node Details

On form submission (Form Trigger n8n node): This is the initial n8n trigger. It generates a public web form URL. Key configurations include setting required fields (First Name, Last Name, Email, Message) and setting the form path to /contact-us.
Send Email to Support (EmailSend n8n node): The core action. It sends a rich, dynamic HTML email notification. Key configurations involve using expressions to pull form data into the email subject and body, and setting the recipient and sender emails. Credentials must be linked via SMTP.
If Email Sent (If n8n node): A crucial flow control n8n node. It checks if {{ $json.messageId }} exists. If true (success), it continues down the first branch; if false (failure), it goes down the second branch.
Confirmation Form (Form n8n node): Used for the successful flow path. It displays a custom HTML confirmation message to the user after the internal email has been sent.
Redirect Form (Form n8n node): Follows the confirmation form. Configured to perform an operation type of redirect, sending the user to the specified external URL upon clicking the submission button.
Form (n8n node - Error Path): Used for the failed flow path. Configured to display a static error message (e.g., 'Oops! Something Went Wrong'), providing feedback when the internal email notification failed.

Related n8n Workflows

Free

Nodes: 6 Nodes
Updated: December 26 2025
View all

Featured*