AutomationFlowsEmail & Gmail › Email Send Reply API

Email Send Reply API

Email Send Reply API. Uses gmail. Webhook trigger; 4 nodes.

Webhook trigger★★★★☆ complexity4 nodesGmail
Email & Gmail 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": "Email Send Reply API",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "url": "",
        "path": "/api/send-reply",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        0
      ],
      "id": "e91bfea2-ceaf-430f-a12f-d21311175602",
      "name": "Webhook"
    },
    {
      "parameters": {
        "jsCode": "// Validation des donn\u00e9es de r\u00e9ponse email\nconst requestBody = $json.body;\n\n// V\u00e9rifier champs obligatoires\nif (!requestBody.to || !requestBody.subject || !requestBody.message) {\n  return [{\n    json: {\n      error: true,\n      message: \"Champs manquants: to, subject et message sont requis\",\n      received: requestBody\n    }\n  }];\n}\n\n// Validation email basique\nconst emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\nif (!emailRegex.test(requestBody.to)) {\n  return [{\n    json: {\n      error: true,\n      message: \"Adresse email invalide\"\n    }\n  }];\n}\n\n// Retourner donn\u00e9es valid\u00e9es\nreturn [{\n  json: {\n    to: requestBody.to,\n    subject: requestBody.subject,\n    message: requestBody.message,\n    validatedAt: new Date().toISOString()\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        208,
        0
      ],
      "id": "e7251bc6-d44d-4cc4-bfe2-57f4c44cf41b",
      "name": "Code in JavaScript"
    },
    {
      "parameters": {
        "sendTo": "={{ $json.to }}",
        "subject": "={{ $json.subject }}",
        "message": "={{ $json.message }}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        416,
        0
      ],
      "id": "1ff79ccf-9207-48dc-902b-c775494b12e9",
      "name": "Send a message",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "{{ JSON.stringify({\n  success: true,\n  message: \"Email envoy\u00e9 avec succ\u00e8s\",\n  data: $json\n}, null, 2) }}",
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        624,
        0
      ],
      "id": "197d888f-e546-4c8f-b1f0-4782aaf40535",
      "name": "Respond to Webhook"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner"
  },
  "versionId": "a8d8c09d-b693-49e0-9ae6-c8c40b3b9539",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "ofycxrnFAf7GdEDq",
  "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

Email Send Reply API. Uses gmail. Webhook trigger; 4 nodes.

Source: https://github.com/devakowakou/n8n-email-workflow/blob/01e7bc6edffc44aee64258baece86b31e68d56a0/n8n-workflows/send-reply-workflow.json — original creator credit. Request a take-down →

More Email & Gmail workflows → · Browse all categories →

Related workflows

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

Email & Gmail

Automate WhatsApp communication for recruitment agencies with an interactive, structured customer experience. This workflow handles pricing inquiries, request submissions, tracking, complaints, and hu

HTTP Request, Google Sheets, Gmail +1
Email & Gmail

Code. Uses googleSheets, gmail, supabase, stickyNote. Webhook trigger; 51 nodes.

Google Sheets, Gmail, Supabase +1
Email & Gmail

This template turns Podium's conversation inbox into a full sales CRM with a custom funnel, AI message classification, automated drip follow-ups, daily admin reports, and a live Kanban dashboard. Six

HTTP Request, Google Sheets, Gmail
Email & Gmail

Suspicious_login_detection. Uses postgres, httpRequest, noOp, html. Webhook trigger; 43 nodes.

Postgres, HTTP Request, Gmail +1
Email & Gmail

This n8n workflow is designed for security monitoring and incident response when suspicious login events are detected. It can be initiated either manually from within the n8n UI for testing or automat

Postgres, HTTP Request, Gmail +1