Renombrar automáticamente los adjuntos de Gmail y guardarlos en Drive
Este es unAI Summarization, Multimodal AIflujo de automatización del dominio deautomatización que contiene 10 nodos.Utiliza principalmente nodos como Set, Gmail, Merge, GoogleDrive, Agent. Renombrar automáticamente adjuntos de Gmail y guardarlos en Google Drive usando GPT-4o
- •Cuenta de Google y credenciales de API de Gmail
- •Credenciales de API de Google Drive
- •Clave de API de OpenAI
Nodos utilizados (10)
Categoría
{
"name": "AI-Renamed Gmail Attachments to Drive",
"tags": [],
"nodes": [
{
"name": "Disparador programado",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
0
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours"
}
]
}
},
"typeVersion": 1.2,
"id": "Disparador-programado-0"
},
{
"name": "Agente IA",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1120,
124
],
"parameters": {
"text": "=You are an expert content analyser and file naming assistant...\ntext: {{ $json.text }}\ndate: {{ $json.info.CreationDate }}",
"options": {},
"promptType": "define"
},
"typeVersion": 2.2,
"id": "Agente-IA-1"
},
{
"name": "Modelo de chat OpenAI",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1192,
348
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"typeVersion": 1.2,
"id": "Modelo-de-chat-OpenAI-2"
},
{
"name": "Upload file",
"type": "n8n-nodes-base.googleDrive",
"position": [
1696,
0
],
"parameters": {
"name": "={{ $json.output }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "url",
"value": ""
},
"inputDataFieldName": "attachment_1"
},
"typeVersion": 3,
"id": "Upload-file-3"
},
{
"name": "Mark message as read",
"type": "n8n-nodes-base.gmail",
"position": [
1920,
0
],
"parameters": {
"messageId": "={{ $('Set Required Fields').item.json.id }}",
"operation": "markAsRead"
},
"typeVersion": 2.1,
"id": "Mark-message-as-read-4"
},
{
"name": "Fusionar Data for Upload",
"type": "n8n-nodes-base.merge",
"position": [
1472,
0
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineByPosition"
},
"typeVersion": 3.2,
"id": "Fusionar-Data-for-Upload-5"
},
{
"name": "Get Unread Messages with Attachments",
"type": "n8n-nodes-base.gmail",
"position": [
224,
0
],
"parameters": {
"filters": {
"readStatus": "unread"
},
"operation": "getAll"
},
"typeVersion": 2.1,
"id": "Get-Unread-Messages-with-Attachments-6"
},
{
"name": "Establecer Required Fields",
"type": "n8n-nodes-base.set",
"position": [
448,
0
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"name": "id",
"type": "string",
"value": "={{ $json.id }}"
},
{
"name": "threadId",
"type": "string",
"value": "={{ $json.threadId }}"
},
{
"name": "from.value[0].name",
"type": "string",
"value": "={{ $json.from.value[0].name }}"
},
{
"name": "date",
"type": "string",
"value": "={{ $json.date }}"
}
]
}
},
"typeVersion": 3.4,
"id": "Establecer-Required-Fields-7"
},
{
"name": "Download Attachments",
"type": "n8n-nodes-base.gmail",
"position": [
672,
0
],
"parameters": {
"simple": false,
"options": {
"downloadAttachments": true
},
"messageId": "={{ $json.id }}",
"operation": "get"
},
"typeVersion": 2.1,
"id": "Download-Attachments-8"
},
{
"name": "Extract from Attachments",
"type": "n8n-nodes-base.extractFromFile",
"position": [
896,
0
],
"parameters": {
"options": {},
"operation": "pdf",
"binaryPropertyName": "attachment_0"
},
"typeVersion": 1,
"id": "Extract-from-Attachments-9"
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "81cda4d6-8828-4b64-8afe-88b302168717",
"connections": {
"AI Agent": {
"main": [
[
{
"node": "Merge Data for Upload",
"type": "main",
"index": 1
}
]
]
},
"Upload-file-3": {
"main": [
[
{
"node": "Mark-message-as-read-4",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Get-Unread-Messages-with-Attachments-6",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Set Required Fields": {
"main": [
[
{
"node": "Download-Attachments-8",
"type": "main",
"index": 0
}
]
]
},
"Download-Attachments-8": {
"main": [
[
{
"node": "Extract-from-Attachments-9",
"type": "main",
"index": 0
}
]
]
},
"Merge Data for Upload": {
"main": [
[
{
"node": "Upload-file-3",
"type": "main",
"index": 0
}
]
]
},
"Extract-from-Attachments-9": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
],
[
{
"node": "Merge Data for Upload",
"type": "main",
"index": 0
}
]
]
},
"Get-Unread-Messages-with-Attachments-6": {
"main": [
[
{
"node": "Set Required Fields",
"type": "main",
"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
Matt Chong | n8n Creator
@mattxchongAutomation nerd fueled by good coffee, deep curiosity, and clean flows.
Compartir este flujo de trabajo