Intelligenter Gmail-Klassifikator: Klassifizierung und Markierung mit OpenAI
Dies ist ein AI Summarization, Multimodal AI-Bereich Automatisierungsworkflow mit 8 Nodes. Hauptsächlich werden Cron, Gmail, LmChatOpenAi, TextClassifier und andere Nodes verwendet. Automatisches Markieren von Gmail-Nachrichten mit benutzerdefinierter GPT-4o-mini-Klassifizierung
- •Google-Konto + Gmail API-Anmeldedaten
- •OpenAI API Key
Verwendete Nodes (8)
Kategorie
{
"id": "MkRETKpIFPWYCRiM",
"meta": {
"instanceId": "3d02c71388317a973647ceedf481a6b7f92941c766cf17f67388ab341d525980",
"templateCredsSetupCompleted": true
},
"name": "Smart Gmail Classifier: Classify & Label with openAI",
"tags": [],
"nodes": [
{
"id": "9038f706-1cf8-4156-9858-969a7bde62e3",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-848,
576
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "h5qIkLzWPJjRPGNc",
"name": "OpenAi account 2"
}
},
"typeVersion": 1.2
},
{
"id": "0ee542ce-85bc-405a-ba04-7a257e8d6f4f",
"name": "Jobmöglichkeit",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
0
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_3116546262966183424"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "ee69125c-46ae-439d-b0b7-c016af1b5df6",
"name": "Bewerbungsstatus",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
192
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_1823036576628176913"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "37f396b6-7327-43db-b4e5-e34756b82a34",
"name": "Sonstiges",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
384
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_4879539884577568757"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "d937e43b-7f05-4eda-bf9e-409a325f6999",
"name": "Anfragen",
"type": "n8n-nodes-base.gmail",
"position": [
-544,
576
],
"webhookId": "5f643023-07de-4b83-a2f7-5f0014a2ec69",
"parameters": {
"labelIds": [
"Label_2255072803109768357"
],
"messageId": "={{ $('Gmail Trigger').item.json.id }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2.1
},
{
"id": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"name": "E-Mail-Klassifizierer",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-944,
288
],
"parameters": {
"options": {
"systemPromptTemplate": "=Please classify the text provided by the user into one of the following categories: {categories}, and use the provided formatting instructions below. Don't explain, and only output the json."
},
"inputText": "={{ $json.text }}",
"categories": {
"categories": [
{
"category": "Job Opportunity",
"description": "Emails that reflects potential jobs matched as per the profile i've shared across various job sites"
},
{
"category": "Application Status",
"description": "Email that updates about any jobs i applied or any updates about the position i interviewed for or the position i didn't get selected"
},
{
"category": "Others",
"description": "The rest of email communication that does not fall under Job Opportunity or Application Status"
},
{
"category": "Enquiries",
"description": "Email that raise enquiry about my details or the work i do or the service i provide."
}
]
}
},
"typeVersion": 1.1
},
{
"id": "1e886235-18c7-4f6e-a744-7a177807e00a",
"name": "Tägliche E-Mail-Prüfung",
"type": "n8n-nodes-base.cron",
"position": [
-1392,
288
],
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 23
}
]
}
},
"typeVersion": 1
},
{
"id": "07c859f1-82ff-4268-bd99-087608931420",
"name": "Neue E-Mails abrufen",
"type": "n8n-nodes-base.gmail",
"position": [
-1168,
288
],
"webhookId": "e76d0a4c-ea02-4ea4-b427-027315c1a846",
"parameters": {
"limit": 10,
"simple": false,
"filters": {
"receivedAfter": "2025-08-10T17:28:41"
},
"options": {},
"operation": "getAll"
},
"credentials": {
"gmailOAuth2": {
"id": "L68pElfU0dElPrnw",
"name": "Gmail account 3"
}
},
"typeVersion": 2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "7aa60bda-b007-4b69-b22a-aac8d578e193",
"connections": {
"eb4f2bf6-4535-4b96-a215-5c99f3f0bb04": {
"main": [
[
{
"node": "0ee542ce-85bc-405a-ba04-7a257e8d6f4f",
"type": "main",
"index": 0
}
],
[
{
"node": "ee69125c-46ae-439d-b0b7-c016af1b5df6",
"type": "main",
"index": 0
}
],
[
{
"node": "37f396b6-7327-43db-b4e5-e34756b82a34",
"type": "main",
"index": 0
}
],
[
{
"node": "d937e43b-7f05-4eda-bf9e-409a325f6999",
"type": "main",
"index": 0
}
]
]
},
"07c859f1-82ff-4268-bd99-087608931420": {
"main": [
[
{
"node": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"type": "main",
"index": 0
}
]
]
},
"1e886235-18c7-4f6e-a744-7a177807e00a": {
"main": [
[
{
"node": "07c859f1-82ff-4268-bd99-087608931420",
"type": "main",
"index": 0
}
]
]
},
"9038f706-1cf8-4156-9858-969a7bde62e3": {
"ai_languageModel": [
[
{
"node": "eb4f2bf6-4535-4b96-a215-5c99f3f0bb04",
"type": "ai_languageModel",
"index": 0
}
]
]
}
}
}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 - KI-Zusammenfassung, Multimodales KI
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
Ashish Kumar Swain
@phoenixHi, I’m Ashish — an automation architect and AI enthusiast helping people work smarter. I build AI-powered workflows that save time, boost productivity, and create real-world impact. Passionate about no-code, startups, and smart systems that scale. Let’s automate success, one workflow at a time! 🚀
Diesen Workflow teilen