{
  "openruna_format": "flow-graph-v1",
  "title": "Attachments Gmail to drive and google sheets",
  "slug": "attachments-gmail-to-drive-and-google-sheets",
  "source_filename": "1764_Extractfromfile_HTTP_Automation_Webhook.json",
  "nodes": [
    {
      "id": "Gmail Trigger1",
      "name": "Gmail Trigger1",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "Setup1",
      "name": "Setup1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Upload PDF to Drive1",
      "name": "Upload PDF to Drive1",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Rename file1",
      "name": "Rename file1",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Move to the correct folder1",
      "name": "Move to the correct folder1",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Gmail",
      "name": "Gmail",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Extract from File2",
      "name": "Extract from File2",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Google Drive",
      "name": "Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "OpenAI Model",
      "name": "OpenAI Model",
      "integration": "@n8n/n8n-nodes-langchain.lmOpenAi",
      "kind": "action"
    },
    {
      "id": "Structured Output Parser",
      "name": "Structured Output Parser",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "Append to Reconciliation Sheet",
      "name": "Append to Reconciliation Sheet",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Map Output",
      "name": "Map Output",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Apply Data Extraction Rules",
      "name": "Apply Data Extraction Rules",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "Only invoice mails with attachments",
      "name": "Only invoice mails with attachments",
      "integration": "if",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Setup1",
      "to": "Only invoice mails with attachments"
    },
    {
      "from": "Map Output",
      "to": "Append to Reconciliation Sheet"
    },
    {
      "from": "Google Drive",
      "to": "Extract from File2"
    },
    {
      "from": "Rename file1",
      "to": "Move to the correct folder1"
    },
    {
      "from": "Gmail Trigger1",
      "to": "Setup1"
    },
    {
      "from": "Extract from File2",
      "to": "Apply Data Extraction Rules"
    },
    {
      "from": "Upload PDF to Drive1",
      "to": "Rename file1"
    },
    {
      "from": "Apply Data Extraction Rules",
      "to": "Map Output"
    },
    {
      "from": "Move to the correct folder1",
      "to": "Gmail"
    },
    {
      "from": "Move to the correct folder1",
      "to": "Google Drive"
    },
    {
      "from": "Only invoice mails with attachments",
      "to": "Upload PDF to Drive1"
    },
    {
      "from": "Only invoice mails with attachments",
      "to": "Gmail"
    }
  ]
}