This workflow follows the Gmail → Gmail Trigger recipe pattern — see all workflows that pair these two integrations.
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": "gmailAutoResponse",
"nodes": [
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"filters": {}
},
"type": "n8n-nodes-base.gmailTrigger",
"typeVersion": 1.3,
"position": [
0,
0
],
"id": "0e5753cd-952d-4f84-8685-99ebd4c8f296",
"name": "Gmail Trigger",
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"modelId": {
"__rl": true,
"value": "gpt-4o-mini",
"mode": "list",
"cachedResultName": "GPT-4O-MINI"
},
"messages": {
"values": [
{
"content": "=write a reply mail for the below:\nsubject: {{ $json.Subject }}\nfrom: {{ $json.From }}\nContent: {{ $json.snippet }}\n\n"
},
{
"content": "You're a expert in writing professional email \n\n\n# only write the body message no subject\n# Draft the mail in good format:\ngreeting message and then new line messages and then\nfooter.\n\nStrictly use the below format spacing and new line need to be same\n\nexamples:\nHi <name>,\n\n<message content>\n\nThanks & Regards,\nPaarib",
"role": "system"
}
]
},
"options": {
"temperature": 0.7
}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
224,
0
],
"id": "6f10dcb7-6e8f-4dc6-af36-5d3b2151c4ec",
"name": "Message a model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "reply",
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"message": "={{ $json.message.content }}",
"options": {}
},
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
576,
0
],
"id": "d15f89b2-5a80-42c2-ad7b-f9c8f67faf32",
"name": "Reply to a message",
"credentials": {
"gmailOAuth2": {
"name": "<your credential>"
}
}
}
],
"connections": {
"Gmail Trigger": {
"main": [
[
{
"node": "Message a model",
"type": "main",
"index": 0
}
]
]
},
"Message a model": {
"main": [
[
{
"node": "Reply to a message",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "01a5212d-6046-44fd-87ee-0945691b3c65",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "N9gxZxptaTa10jMF",
"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.
gmailOAuth2openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
gmailAutoResponse. Uses gmailTrigger, openAi, gmail. Event-driven trigger; 3 nodes.
Source: https://github.com/paari24/genAI/blob/30bfbd32b1e76049e3795e5e94449ce5c7a2d915/n8n/gmailAutoResponse.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.
Complete AI-powered sales system Automates lead capture, qualification, and follow-up from multiple channels. AI INTELLIGENCE:
An automated quote generation system that monitors your inbox, classifies quote requests using AI, calculates intelligent pricing based on historical data, and provides a professional dashboard for re
This n8n workflow — HRMate — streamlines your entire recruitment process by automatically parsing incoming job applications, evaluating candidate fit using AI, and sending personalized acceptance or r
Overview
Turn email overload into audio insights — automatically.