{
  "name": "Extract invoice data from Slack PDFs to Google Sheets with GPT-4o",
  "nodes": [
    {
      "id": "421fef2b-90cb-496d-8dd4-b613e10e9fe8",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        528,
        0
      ]
    },
    {
      "id": "1f16c6d5-fc5a-4ff6-b77b-f3bcc60040fc",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        752,
        0
      ]
    },
    {
      "id": "00111f6b-fd0b-49d9-80f6-3f0ca060de18",
      "name": "Structure Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        312,
        224
      ]
    },
    {
      "id": "492e5b93-bde0-4335-843e-0f63ba151b53",
      "name": "AI model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        184,
        224
      ]
    },
    {
      "id": "abc9bc40-d167-41e7-921b-1e5d8afd6810",
      "name": "Receive invoice pdf",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -496,
        0
      ]
    },
    {
      "id": "1be006ae-9577-413f-be7d-3b3c82945b7b",
      "name": "Fetch the pdf",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -272,
        0
      ]
    },
    {
      "id": "e4b2917c-dd4b-47f9-a16d-3b234b548f0d",
      "name": "Extract information from pdf",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -48,
        0
      ]
    },
    {
      "id": "b75eb6e0-6daa-436f-a415-1c86a455cc0e",
      "name": "Extract invoice information",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        176,
        0
      ]
    },
    {
      "id": "54cacdd2-806a-40d5-9e3a-986b9d042dfc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        -144
      ],
      "parameters": {
        "width": 464,
        "height": 1024,
        "content": "## How it works\n1. Receive invoice in Slack – When a PDF invoice is uploaded to a designated Slack channel, the workflow is triggered.\n2. Fetch the PDF – The file is downloaded automatically for proce"
      }
    },
    {
      "id": "cbb83217-4629-4870-8340-5d65ac37f3b0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        -352
      ],
      "parameters": {
        "width": 576,
        "height": 272,
        "content": "## Workflow\nAutomate Invoice Extraction from Slack to Google Sheets with GPT Model\n\n## Introduction\nManaging invoices manually can be time-consuming and error-prone. This workflow automates the proces"
      }
    }
  ],
  "connections": {
    "AI model": {
      "ai_languageModel": [
        [
          {
            "node": "Extract invoice information",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch the pdf": {
      "main": [
        [
          {
            "node": "Extract information from pdf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        []
      ]
    },
    "Structure Output": {
      "ai_outputParser": [
        [
          {
            "node": "Extract invoice information",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive invoice pdf": {
      "main": [
        [
          {
            "node": "Fetch the pdf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract invoice information": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract information from pdf": {
      "main": [
        [
          {
            "node": "Extract invoice information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}