{
  "name": "Flujo 4 de Video 6",
  "nodes": [
    {
      "parameters": {
        "content": "Lee gmail, descarga un pdf, depura el texto, y por ultimo lo sube a un drive",
        "height": 193.3931762742136,
        "width": 275.54757474351743
      },
      "id": "dac54ab4-7d46-4123-9cf1-fe179c79b902",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        140,
        -100
      ]
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "simple": false,
        "filters": {},
        "options": {
          "downloadAttachments": true
        }
      },
      "id": "01a04d70-8f48-4452-a624-71b15cb1a80b",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.1,
      "position": [
        160,
        140
      ],
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "pdf",
        "binaryPropertyName": "attachment_0",
        "options": {}
      },
      "id": "d39ddf90-1543-4a90-b1db-565e1561f489",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [
        340,
        320
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "language": "python",
        "pythonCode": "# Reemplaza los saltos de l\u00ednea '\\n' por espacios en el campo 'text'\n_input.item.json['texto_corregido'] = _input.item.json['text'].replace('\\n', ' ')\n\n# Retorna el item modificado\nreturn _input.item\n\n"
      },
      "id": "bfcb0265-ed20-4aa6-82b2-4aec209c1880",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        520,
        140
      ]
    },
    {
      "parameters": {
        "folderId": "11yLUbfYsYCPMTXYFFlZhboFTEPZf6X_R",
        "title": "GmailToDoc"
      },
      "id": "8d91cec5-80b7-48eb-be1f-a3c65f6dc969",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        660,
        320
      ],
      "credentials": {
        "googleDocsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentURL": "={{ $json.id }}",
        "actionsUi": {
          "actionFields": [
            {
              "action": "insert",
              "text": "={{ $('Code').item.json.texto_corregido }}"
            }
          ]
        }
      },
      "id": "f1fc77bf-22c2-43b8-97d4-c9bf8b9c1d20",
      "name": "Google Docs1",
      "type": "n8n-nodes-base.googleDocs",
      "typeVersion": 2,
      "position": [
        820,
        140
      ],
      "credentials": {
        "googleDocsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Google Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Docs": {
      "main": [
        [
          {
            "node": "Google Docs1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e28af3af-cb33-4c1e-980d-38a27594d093",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "xbGXM0idHNxNmACF",
  "tags": []
}