Back to Catalog

N8N contact form workflow

Akhil Varma GadirajuAkhil Varma Gadiraju
3541 views
2/3/2026
Official Page

📬 N8N Contact Form Workflow: Capture, Notify via Email, and Redirect with Confirmation/Error Handling

This n8n workflow facilitates contact form submissions through a customizable form that sends an email notification to support and redirects users based on the submission outcome. It is ideal for embedding a functional "Contact Us" form on websites with automated email notifications.


✨ Features

  • Collects first name, last name, email, company name, and a message
  • Sends formatted email notification to the support team
  • Displays success or error confirmation to the user
  • Customizable UI and form behavior
  • Error fallback handling with user-friendly feedback

🧩 Nodes Overview

1. On form submission (Trigger)

  • Type: formTrigger
  • Displays the contact form to users and triggers the workflow on submission.

2. Send Email to Support

  • Type: emailSend
  • Sends an HTML email to a support address with the form details.
  • Uses an SMTP credential for sending.

3. If Email Sent

  • Type: if
  • Checks if the email was sent successfully using the existence of messageId.

4. Confirmation Form

  • Type: form
  • Displays a “Thank You” HTML message after a successful submission.

5. Redirect Form

  • Type: form
  • Redirects the user to a specified URL (e.g., LinkedIn profile).

6. Form (Error)

  • Type: form
  • Displays an error message if email delivery fails.

7. NoOp Nodes

  • End (Success) and End (Error) to mark flow terminations cleanly.

⚙️ Customization Options

  • Change the form fields, title, or descriptions in the formTrigger node.
  • Update the email body or subject in the emailSend node.
  • Redirect to a different URL by editing the Redirect Form node.
  • Modify success and error UI with HTML content in the Confirmation Form and Form.

🧠 Use Cases

  • Website "Contact Us" form integration
  • Lead generation forms for businesses
  • Customer service inquiry collection
  • Feedback or support ticket system

🚀 How to Use

  1. Import this workflow into your n8n instance.
  2. Configure SMTP credentials for the emailSend node.
  3. Publish the formTrigger endpoint (e.g., /contact-us) publicly or embed in your website.
  4. Test submission and confirm email delivery and redirects.

🔐 Notes

  • Ensure SMTP credentials are correctly configured in n8n.
  • Make sure your n8n webhook URLs are reachable from your website or frontend.

Made with ❤️ using n8n by Akhil.

n8n Contact Form Workflow

This n8n workflow provides a basic framework for handling contact form submissions. It demonstrates how to capture form data, apply conditional logic, and send an email notification.

What it does

This workflow simplifies the process of receiving and responding to contact form submissions by:

  1. Triggering on Form Submission: It listens for submissions from an n8n-generated form.
  2. Conditional Processing: It uses an "If" node to introduce conditional logic, allowing different actions based on form data (though the specific condition is not defined in the provided JSON).
  3. Sending Email: If the condition in the "If" node evaluates to true, it sends an email.
  4. No Operation (Placeholder): If the condition evaluates to false, it proceeds to a "No Operation" node, which acts as a placeholder for additional logic or simply ends that branch of the workflow.

Prerequisites/Requirements

  • n8n Instance: A running n8n instance to host and execute the workflow.
  • SMTP Credentials: Configured SMTP credentials within n8n for the "Send Email" node to function correctly.

Setup/Usage

  1. Import the Workflow: Import the provided JSON into your n8n instance.
  2. Configure the Form Trigger:
    • Open the "On form submission" node.
    • Define the fields for your contact form (e.g., Name, Email, Message).
    • Save the form to generate its public URL.
  3. Configure the 'If' Node:
    • Open the "If" node.
    • Define your desired condition based on the data submitted through the form (e.g., check if a specific field contains certain text, or if a value is above/below a threshold).
  4. Configure the 'Send Email' Node:
    • Open the "Send Email" node.
    • Select your SMTP credential.
    • Configure the recipient email address, subject, and body using data from the form submission (e.g., {{ $json.email }} for the sender's email, {{ $json.message }} for the message body).
  5. Activate the Workflow: Once configured, activate the workflow.
  6. Test: Submit your n8n form to test the workflow. Observe the execution to ensure emails are sent and conditions are met as expected.

The "No Operation, do nothing" node can be replaced with other nodes to handle alternative scenarios (e.g., log the submission to a spreadsheet, send a different notification, or respond with a different message).

Related Templates

Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4

💥 Viral TikTok Video Machine: Auto-Create Videos with Your AI Avatar --- 🎯 Who is this for? This workflow is for content creators, marketers, and agencies who want to use Veed.io’s AI avatar technology to produce short, engaging TikTok videos automatically. It’s ideal for creators who want to appear on camera without recording themselves, and for teams managing multiple brands who need to generate videos at scale. --- ⚙️ What problem this workflow solves Manually creating videos for TikTok can take hours — finding trends, writing scripts, recording, and editing. By combining Veed.io, ElevenLabs, and GPT-4, this workflow transforms a simple Telegram input into a ready-to-post TikTok video featuring your AI avatar powered by Veed.io — speaking naturally with your cloned voice. --- 🚀 What this workflow does This automation links Veed.io’s video-generation API with multiple AI tools: Analyzes TikTok trends via Perplexity AI Writes a 10-second viral script using GPT-4 Generates your voiceover via ElevenLabs Uses Veed.io (Fabric 1.0 via FAL.ai) to animate your avatar and sync the lips to the voice Creates an engaging caption + hashtags for TikTok virality Publishes the video automatically via Blotato TikTok API Logs all results to Google Sheets for tracking --- 🧩 Setup Telegram Bot Create your bot via @BotFather Configure it as the trigger for sending your photo and theme Connect Veed.io Create an account on Veed.io Get your FAL.ai API key (Veed Fabric 1.0 model) Use HTTPS image/audio URLs compatible with Veed Fabric Other APIs Add Perplexity, ElevenLabs, and Blotato TikTok keys Connect your Google Sheet for logging results --- 🛠️ How to customize this workflow Change your Avatar: Upload a new image through Telegram, and Veed.io will generate a new talking version automatically. Modify the Script Style: Adjust the GPT prompt for tone (educational, funny, storytelling). Adjust Voice Tone: Tweak ElevenLabs stability and similarity settings. Expand Platforms: Add Instagram, YouTube Shorts, or X (Twitter) posting nodes. Track Performance: Customize your Google Sheet to measure your most successful Veed.io-based videos. --- 🧠 Expected Outcome In just a few seconds after sending your photo and theme, this workflow — powered by Veed.io — creates a fully automated TikTok video featuring your AI avatar with natural lip-sync and voice. The result is a continuous stream of viral short videos, made without cameras, editing, or effort. --- ✅ Import the JSON file in n8n, add your API keys (including Veed.io via FAL.ai), and start generating viral TikTok videos starring your AI avatar today! 🎥 Watch This Tutorial --- 📄 Documentation: Notion Guide Need help customizing? Contact me for consulting and support : Linkedin / Youtube

Dr. FirasBy Dr. Firas
39510

Track competitor SEO keywords with Decodo + GPT-4.1-mini + Google Sheets

This workflow automates competitor keyword research using OpenAI LLM and Decodo for intelligent web scraping. Who this is for SEO specialists, content strategists, and growth marketers who want to automate keyword research and competitive intelligence. Marketing analysts managing multiple clients or websites who need consistent SEO tracking without manual data pulls. Agencies or automation engineers using Google Sheets as an SEO data dashboard for keyword monitoring and reporting. What problem this workflow solves Tracking competitor keywords manually is slow and inconsistent. Most SEO tools provide limited API access or lack contextual keyword analysis. This workflow solves that by: Automatically scraping any competitor’s webpage with Decodo. Using OpenAI GPT-4.1-mini to interpret keyword intent, density, and semantic focus. Storing structured keyword insights directly in Google Sheets for ongoing tracking and trend analysis. What this workflow does Trigger — Manually start the workflow or schedule it to run periodically. Input Setup — Define the website URL and target country (e.g., https://dev.to, france). Data Scraping (Decodo) — Fetch competitor web content and metadata. Keyword Analysis (OpenAI GPT-4.1-mini) Extract primary and secondary keywords. Identify focus topics and semantic entities. Generate a keyword density summary and SEO strength score. Recommend optimization and internal linking opportunities. Data Structuring — Clean and convert GPT output into JSON format. Data Storage (Google Sheets) — Append structured keyword data to a Google Sheet for long-term tracking. Setup Prerequisites If you are new to Decode, please signup on this link visit.decodo.com n8n account with workflow editor access Decodo API credentials OpenAI API key Google Sheets account connected via OAuth2 Make sure to install the Decodo Community node. Create a Google Sheet Add columns for: primarykeywords, seostrengthscore, keyworddensity_summary, etc. Share with your n8n Google account. Connect Credentials Add credentials for: Decodo API credentials - You need to register, login and obtain the Basic Authentication Token via Decodo Dashboard OpenAI API (for GPT-4o-mini) Google Sheets OAuth2 Configure Input Fields Edit the “Set Input Fields” node to set your target site and region. Run the Workflow Click Execute Workflow in n8n. View structured results in your connected Google Sheet. How to customize this workflow Track Multiple Competitors → Use a Google Sheet or CSV list of URLs; loop through them using the Split In Batches node. Add Language Detection → Add a Gemini or GPT node before keyword analysis to detect content language and adjust prompts. Enhance the SEO Report → Expand the GPT prompt to include backlink insights, metadata optimization, or readability checks. Integrate Visualization → Connect your Google Sheet to Looker Studio for SEO performance dashboards. Schedule Auto-Runs → Use the Cron Node to run weekly or monthly for competitor keyword refreshes. Summary This workflow automates competitor keyword research using: Decodo for intelligent web scraping OpenAI GPT-4.1-mini for keyword and SEO analysis Google Sheets for live tracking and reporting It’s a complete AI-powered SEO intelligence pipeline ideal for teams that want actionable insights on keyword gaps, optimization opportunities, and content focus trends, without relying on expensive SEO SaaS tools.

Ranjan DailataBy Ranjan Dailata
161

Two-way property repair management system with Google Sheets & Drive

This workflow automates the repair request process between tenants and building managers, keeping all updates organized in a single spreadsheet. It is composed of two coordinated workflows, as two separate triggers are required — one for new repair submissions and another for repair updates. A Unique Unit ID that corresponds to individual units is attributed to each request, and timestamps are used to coordinate repair updates with specific requests. General use cases include: Property managers who manage multiple buildings or units. Building owners looking to centralize tenant repair communication. Automation builders who want to learn multi-trigger workflow design in n8n. --- ⚙️ How It Works Workflow 1 – New Repair Requests Behind the Scenes: A tenant fills out a Google Form (“Repair Request Form”), which automatically adds a new row to a linked Google Sheet. Steps: Trigger: Google Sheets rowAdded – runs when a new form entry appears. Extract & Format: Collects all relevant form data (address, unit, urgency, contacts). Generate Unit ID: Creates a standardized identifier (e.g., BUILDING-UNIT) for tracking. Email Notification: Sends the building manager a formatted email summarizing the repair details and including a link to a Repair Update Form (which activates Workflow 2). --- Workflow 2 – Repair Updates Behind the Scenes:\ Triggered when the building manager submits a follow-up form (“Repair Update Form”). Steps: Lookup by UUID: Uses the Unit ID from Workflow 1 to find the existing row in the Google Sheet. Conditional Logic: If photos are uploaded: Saves each image to a Google Drive folder, renames files consistently, and adds URLs to the sheet. If no photos: Skips the upload step and processes textual updates only. Merge & Update: Combines new data with existing repair info in the same spreadsheet row — enabling a full repair history in one place. --- 🧩 Requirements Google Account (for Forms, Sheets, and Drive) Gmail/email node connected for sending notifications n8n credentials configured for Google API access --- ⚡ Setup Instructions (see more detail in workflow) Import both workflows into n8n, then copy one into a second workflow. Change manual trigger in workflow 2 to a n8n Form node. Connect Google credentials to all nodes. Update spreadsheet and folder IDs in the corresponding nodes. Customize email text, sender name, and form links for your organization. Test each workflow with a sample repair request and a repair update submission. --- 🛠️ Customization Ideas Add Slack or Telegram notifications for urgent repairs. Auto-create folders per building or unit for photo uploads. Generate monthly repair summaries using Google Sheets triggers. Add an AI node to create summaries/extract relevant repair data from repair request that include long submissions.

Matt@VeraisonLabsBy Matt@VeraisonLabs
208