Gmail zu Google Drive E-Mail-Export-Arbeitsablauf
Fortgeschritten
Dies ist ein IT Ops-Bereich Automatisierungsworkflow mit 13 Nodes. Hauptsächlich werden Set, Code, Gmail, GoogleDrive, ConvertToFile und andere Nodes verwendet. Gmail zu Google Drive E-Mail-Export-Workflow
Voraussetzungen
- •Google-Konto + Gmail API-Anmeldedaten
- •Google Drive API-Anmeldedaten
Verwendete Nodes (13)
Kategorie
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
"meta": {
"instanceId": "7d8066d2f56a07000fe7d753d3eeabf0ecdf68413466f30d10afe0906f058427",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "00de0985-997a-4c97-9a4a-d28fae9a9641",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"position": [
380,
0
],
"webhookId": "75613b2e-370c-4ecf-bc04-8170d2f594d4",
"parameters": {
"simple": false,
"filters": {
"sender": "akhilgadiraju@gmail.com"
},
"options": {},
"operation": "getAll",
"returnAll": true
},
"credentials": {
"gmailOAuth2": {
"id": "wqFUFuFpF5eRAp4E",
"name": "Gmail OAuth2 - Akhil"
}
},
"typeVersion": 2.1
},
{
"id": "7b167ae9-5a1d-4bd3-b18e-c1cd8da06559",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
1260,
0
],
"parameters": {
"name": "={{ $now + \"_n8n_export.csv\" }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "root",
"cachedResultName": "/ (Root folder)"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "LxzMJWxwgbnYKUly",
"name": "Google Drive - Akhil"
}
},
"typeVersion": 3
},
{
"id": "522a4ece-e0dc-4639-81d3-2f4a1b9f459e",
"name": "In Datei konvertieren",
"type": "n8n-nodes-base.convertToFile",
"position": [
1040,
0
],
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "f2e29c64-91c7-48b4-8416-eaf98b014596",
"name": "Daten parsen",
"type": "n8n-nodes-base.set",
"position": [
600,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "2b446be8-1d0c-4a61-8896-f0a90f5100ea",
"name": "id",
"type": "string",
"value": "={{ $json.id }}"
},
{
"id": "8263ed23-ae85-4bdc-8c24-fe5fc3f12601",
"name": "subject",
"type": "string",
"value": "={{ $json.subject }}"
},
{
"id": "09ceff74-3064-4103-aa06-f56693d02765",
"name": "message",
"type": "string",
"value": "={{ $json.text }}"
},
{
"id": "6df559f5-d6b4-4fa4-8f7e-7e63a3c27994",
"name": "time",
"type": "string",
"value": "={{ $json.date }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "399c6f2c-b59a-4e44-aba7-b0a65eb61423",
"name": "Workflow starten",
"type": "n8n-nodes-base.manualTrigger",
"position": [
160,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4d245499-f824-4887-85f0-5cd199c2e648",
"name": "Workflow beenden",
"type": "n8n-nodes-base.noOp",
"position": [
1480,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d76bc543-75d6-4c9c-ac84-4b05be377e06",
"name": "Zeitfeld konvertieren",
"type": "n8n-nodes-base.code",
"position": [
820,
0
],
"parameters": {
"jsCode": "return $input.all().map(item => {\n const isoTime = item.json.time;\n\n const date = new Date(isoTime).toLocaleString('en-US', {\n timeZone: 'Asia/Kolkata', // 🔁 Change this to your UAT timezone\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n hour12: true\n });\n\n return {\n json: {\n ...item.json,\n time: date\n }\n };\n});\n"
},
"typeVersion": 2
},
{
"id": "93d5dfcf-c902-4471-9a04-6e7473417bd0",
"name": "Notiz",
"type": "n8n-nodes-base.stickyNote",
"position": [
300,
-120
],
"parameters": {
"width": 280,
"height": 100,
"content": "### Change Sender Email\nUpdate the `sender` field in the Gmail node."
},
"typeVersion": 1
},
{
"id": "97f660ed-281b-4ba9-9656-777b9aea2ef0",
"name": "Notiz1",
"type": "n8n-nodes-base.stickyNote",
"position": [
520,
160
],
"parameters": {
"width": 280,
"height": 100,
"content": "### Add More Email Fields\t\nModify the Set node to include more fields."
},
"typeVersion": 1
},
{
"id": "825055a9-8e4f-4e39-ae2f-729c103568d6",
"name": "Notiz2",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
-100
],
"parameters": {
"height": 80,
"content": "### Change Time Zone\nEdit timeZone in the Code node."
},
"typeVersion": 1
},
{
"id": "3f78a5a8-5cd4-40a0-be5f-d984e952d975",
"name": "Notiz3",
"type": "n8n-nodes-base.stickyNote",
"position": [
920,
160
],
"parameters": {
"width": 300,
"height": 100,
"content": "### Change File Format\nUse a different format in the Convert to File node."
},
"typeVersion": 1
},
{
"id": "ffbf9a23-dc2c-4ebe-986e-2aff8a170b51",
"name": "Notiz4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1160,
-220
],
"parameters": {
"width": 280,
"height": 200,
"content": "### Rename Output File \nAdjust the name in the Google Drive nod\n\n### Change Upload Folder\nSet a different folderId in the Google Drive node."
},
"typeVersion": 1
},
{
"id": "93836b97-81d9-47d4-b8dc-3d856e78090a",
"name": "Notiz5",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
-580
],
"parameters": {
"width": 580,
"height": 200,
"content": "## 🚀 Use Cases\n\n- **Personal Email Archiving**: Back up or export emails from a specific sender (e.g., invoices, reports).\n- **Audit Logs**: Save conversations for compliance.\n- **Team Reports**: Aggregate project emails into a central file store. "
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"00de0985-997a-4c97-9a4a-d28fae9a9641": {
"main": [
[
{
"node": "f2e29c64-91c7-48b4-8416-eaf98b014596",
"type": "main",
"index": 0
}
]
]
},
"f2e29c64-91c7-48b4-8416-eaf98b014596": {
"main": [
[
{
"node": "d76bc543-75d6-4c9c-ac84-4b05be377e06",
"type": "main",
"index": 0
}
]
]
},
"7b167ae9-5a1d-4bd3-b18e-c1cd8da06559": {
"main": [
[
{
"node": "4d245499-f824-4887-85f0-5cd199c2e648",
"type": "main",
"index": 0
}
]
]
},
"399c6f2c-b59a-4e44-aba7-b0a65eb61423": {
"main": [
[
{
"node": "00de0985-997a-4c97-9a4a-d28fae9a9641",
"type": "main",
"index": 0
}
]
]
},
"522a4ece-e0dc-4639-81d3-2f4a1b9f459e": {
"main": [
[
{
"node": "7b167ae9-5a1d-4bd3-b18e-c1cd8da06559",
"type": "main",
"index": 0
}
]
]
},
"d76bc543-75d6-4c9c-ac84-4b05be377e06": {
"main": [
[
{
"node": "522a4ece-e0dc-4639-81d3-2f4a1b9f459e",
"type": "main",
"index": 0
}
]
]
}
}
}Häufig gestellte Fragen
Wie verwende ich diesen Workflow?
Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.
Für welche Szenarien ist dieser Workflow geeignet?
Fortgeschritten - IT-Betrieb
Ist es kostenpflichtig?
Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.
Verwandte Workflows
Gmail-Anhänge zu Google Drive sichern
Gmail-Anhänge zu Google Drive sichern
Code
Gmail
Google Drive
+
Code
Gmail
Google Drive
8 NodesAkhil Varma Gadiraju
IT-Betrieb
KI-gesteuerter Wissensassistent
Ein KI-gesteuerter Wissensassistent, der Google Sheets, OpenAI und Supabase-Vektorsuche nutzt
Set
Code
Gmail
+
Set
Code
Gmail
14 NodesAkhil Varma Gadiraju
Engineering
Batch-Automatisiertes Freigeben von Google-Drive-Dateien und Erstellung direkter Download-Links
Automatisiertes Batch-Sharing von Google-Drive-Dateien mit Erstellung direkter Download-Links
Set
Code
Merge
+
Set
Code
Merge
9 NodesNskha
IT-Betrieb
Meeting-Feedback-Sammlung mit Excel OneDrive-Protokollierung und Outlook-Benachrichtigung
Sammeln von Meeting-Feedback über Formulare, Protokollierung in Excel OneDrive und Senden von Outlook-Benachrichtigungen
If
Set
Code
+
If
Set
Code
13 NodesAkhil Varma Gadiraju
Marketing
Rechnungen und Belege mit Gmail, OpenAI und Google Drive extrahieren und kategorisieren
Rechnungen und Quittungen aus Gmail extrahieren und klassifizieren mit OpenAI und Google Drive
If
Set
Code
+
If
Set
Code
20 NodesTom
Finanzen
Gmail zu Vektoreinbettungen mit PGVector und Ollama
Gmail-Vektoreinbettungen mit PGVector und Ollama
If
Set
Code
+
If
Set
Code
20 NodesAlfonso Corretti
Support
Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes13
Kategorie1
Node-Typen8
Autor
Akhil Varma Gadiraju
@akhilv7Externe Links
Auf n8n.io ansehen →
Diesen Workflow teilen