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 →
{
"name": "Gmail Reply",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "gmail-reply",
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"authentication": "oAuth2",
"resource": "message",
"operation": "get",
"messageId": "={{ $json.message_id }}",
"options": {}
},
"name": "Get Original Email",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2,
"position": [
450,
300
],
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"authentication": "oAuth2",
"sendTo": "={{ $json.payload.headers.find(h => h.name === 'From').value }}",
"subject": "=Re: {{ $json.payload.headers.find(h => h.name === 'Subject').value }}",
"message": "={{ $('Webhook').item.json.reply_text }}",
"options": {
"threadId": "={{ $json.threadId }}"
}
},
"name": "Send Reply",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2,
"position": [
650,
300
],
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ { status: 'sent', message_id: $json.id, thread_id: $json.threadId } }}"
},
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
850,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Get Original Email",
"type": "main",
"index": 0
}
]
]
},
"Get Original Email": {
"main": [
[
{
"node": "Send Reply",
"type": "main",
"index": 0
}
]
]
},
"Send Reply": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
}
}
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.
gmailOAuth2
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Gmail Reply. Uses gmail. Webhook trigger; 4 nodes.
Source: https://github.com/ankitkr9911/Nexus-Labs/blob/main/n8n-workflows/gmail-reply.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Receive booking requests via webhook with automatic validation, duplicate detection, availability checking, confirmation emails, Google Calendar sync, and Slack notifications.
This template is designed for freelancers, small businesses, and finance teams who need automated invoice management with intelligent payment follow-ups. Perfect for service providers, agencies, or an
Automate short-term trading research by generating high-quality trade ideas using MCP (Market Context Protocol) signals and AI-powered analysis. 📈🤖 This workflow evaluates market context, catalysts, m
A complete, production-ready newsletter automation workflow that validates email addresses, sends personalized welcome emails, and maintains comprehensive logs in Google Sheets. Perfect for marketing
Who’s it for