This workflow follows the Agent → Gmail 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": "Jane Riveros \u2014 Flujo 05 \u00b7 Facturas sin tipeo",
"nodes": [
{
"id": "de429408-0444-445c-81f8-41159f9775b8",
"name": "C\u00d3MO CONFIGURAR",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
512,
384
],
"parameters": {
"content": "## Flujo 05 \u00b7 Facturas sin tipeo\n**Qu\u00e9 hace:** cuando llega una factura PDF a tu correo, se lee sola, la IA extrae los datos (emisor, RUT, montos, IVA), se guardan en tu planilla contable y tu contador recibe aviso. Cero digitaci\u00f3n, cero errores de tipeo.\n\n**Configuraci\u00f3n (\u224825 min):**\n1. **Gmail Trigger** \u2014 conecta tu correo. El filtro ya busca adjuntos PDF con \"factura\"; aj\u00fastalo a tu realidad.\n2. **Modelo IA** \u2014 conecta tu API key de OpenAI.\n3. **Google Sheets** \u2014 conecta y elige tu planilla contable (columnas: emisor, RUT, fecha, n\u00famero, neto, IVA, total).\n4. **Aviso al contador** \u2014 cambia el correo del destinatario.\n5. Activa el workflow.\n\n**Te devuelve:** horas de digitaci\u00f3n + menos multas por errores.\n\n\u2014 Jane Riveros \u00b7 janeriveros.com",
"width": 460,
"height": 480
}
},
{
"id": "b9b42a0c-20dd-45c9-a534-0adfd272d9e4",
"name": "Llega factura al correo",
"type": "n8n-nodes-base.gmailTrigger",
"typeVersion": 1.2,
"position": [
0,
112
],
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"simple": false,
"filters": {
"q": "has:attachment filename:pdf factura"
},
"options": {
"downloadAttachments": true
}
}
},
{
"id": "8ac65888-0884-453c-9845-6574699eb2da",
"name": "Leer PDF",
"type": "n8n-nodes-base.extractFromFile",
"typeVersion": 1,
"position": [
224,
112
],
"parameters": {
"operation": "pdf",
"binaryPropertyName": "attachment_0"
}
},
{
"id": "8bb30d51-0b14-4cef-9451-7c908ef4bade",
"name": "Extraer datos de la factura",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
448,
112
],
"parameters": {
"promptType": "define",
"text": "={{ \"Texto de la factura:\\n\" + $json.text }}",
"options": {
"systemMessage": "Extrae de la factura: emisor, RUT, fecha, numero_factura, neto, iva, total. Responde SOLO un JSON plano con esas claves."
}
}
},
{
"id": "cbaf3e37-cee4-45b1-9c70-ab2e1e2cdecf",
"name": "Modelo IA (OpenAI)",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
528,
336
],
"parameters": {}
},
{
"id": "7783bfe8-2515-4564-bcd8-416dab8f08de",
"name": "Guardar en planilla contable",
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
800,
112
],
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"mode": "list",
"value": ""
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": ""
},
"columns": {
"mappingMode": "autoMapInputData",
"value": {}
},
"options": {}
}
},
{
"id": "5c2990a7-0549-46b3-a83b-fedd596a4a46",
"name": "Aviso al contador",
"type": "n8n-nodes-base.gmail",
"typeVersion": 2.1,
"position": [
1024,
112
],
"parameters": {
"resource": "message",
"operation": "send",
"sendTo": "contador@tu-pyme.cl",
"subject": "Nueva factura registrada autom\u00e1ticamente",
"message": "={{ \"Se registr\u00f3 una nueva factura en la planilla contable:\\n\\n\" + $(\"Extraer datos de la factura\").item.json.output }}",
"options": {}
}
}
],
"connections": {
"Llega factura al correo": {
"main": [
[
{
"node": "Leer PDF",
"type": "main",
"index": 0
}
]
]
},
"Leer PDF": {
"main": [
[
{
"node": "Extraer datos de la factura",
"type": "main",
"index": 0
}
]
]
},
"Extraer datos de la factura": {
"main": [
[
{
"node": "Guardar en planilla contable",
"type": "main",
"index": 0
}
]
]
},
"Modelo IA (OpenAI)": {
"ai_languageModel": [
[
{
"node": "Extraer datos de la factura",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Guardar en planilla contable": {
"main": [
[
{
"node": "Aviso al contador",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"availableInMCP": true
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Jane Riveros — Flujo 05 · Facturas sin tipeo. Uses gmailTrigger, agent, lmChatOpenAi, googleSheets. Event-driven trigger; 7 nodes.
Source: https://github.com/testaiprojects1-sketch/janeriveros-website/blob/729a8f99b3a6bfd5307b5f1814b43e25abcb3ca1/public/n8nflujos/jane-riveros-flujo-05.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.
Inbox Guardian. Uses gmailTrigger, lmChatOpenAi, agent, textClassifier. Event-driven trigger; 66 nodes.
This workflow is for hotel managers, travel agencies, and hospitality teams who receive booking requests via email. It eliminates the need for manual data entry by automatically parsing emails and att
Enterprise-grade resume screening automation built for production environments. This workflow combines intelligent AI analysis with comprehensive error handling to ensure reliable processing of candid
This workflow generates LinkedIn post ideas and drafts with OpenAI, routes approvals through Gmail replies, tracks each content cycle in Google Sheets, and publishes the selected draft to LinkedIn as
AI Agents Vs AI Workflow. Uses lmChatOpenAi, gmailTrigger, gmail, gmailTool. Event-driven trigger; 30 nodes.