Clasificador inteligente de Gmail: Clasificar y etiquetar con OpenAI
Este es unAI Summarization, Multimodal AIflujo de automatización del dominio deautomatización que contiene 8 nodos.Utiliza principalmente nodos como Cron, Gmail, LmChatOpenAi, TextClassifier. Usar GPT-4o-mini con clasificación personalizada para etiquetar automáticamente mensajes de Gmail
- •Cuenta de Google y credenciales de API de Gmail
- •Clave de API de OpenAI
Nodos utilizados (8)
Categoría
{
"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": "Oportunidad Laboral",
"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": "Estado de Solicitud",
"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": "Otros",
"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": "Consultas",
"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": "Clasificador de Correos",
"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": "Verificación Diaria de Correos",
"type": "n8n-nodes-base.cron",
"position": [
-1392,
288
],
"parameters": {
"triggerTimes": {
"item": [
{
"hour": 23
}
]
}
},
"typeVersion": 1
},
{
"id": "07c859f1-82ff-4268-bd99-087608931420",
"name": "Obtener Correos Nuevos",
"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
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio - Resumen de IA, IA Multimodal
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
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! 🚀
Compartir este flujo de trabajo