{
  "name": "Automate WhatsApp invoice processing with OCR, GPT-4 Mini & Google Services",
  "nodes": [
    {
      "id": "cbd2bf3a-80e9-416b-9fee-12a2747b0907",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        704,
        176
      ]
    },
    {
      "id": "d8d6f532-cdf4-4459-8ee4-924483ceda08",
      "name": "Analyze Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        176
      ]
    },
    {
      "id": "3ed72ac4-daf2-43dc-bd6f-5cac4295bfc2",
      "name": "Download File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1200,
        176
      ]
    },
    {
      "id": "593e8766-75be-4523-8183-e788eaf22cf6",
      "name": "Add Invoice To Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1168,
        432
      ]
    },
    {
      "id": "3ee34650-3693-478d-9432-9a60e72bedae",
      "name": "Update DataBase",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        704,
        432
      ]
    },
    {
      "id": "f3c66131-bb3f-40f1-a4d4-ba29bbb93748",
      "name": "Reply",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1728,
        432
      ]
    },
    {
      "id": "e66b61e6-8101-4cf7-a0f6-35ffb0900939",
      "name": "Original Invoice Retrieval",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        912,
        432
      ]
    },
    {
      "id": "8ac12019-4495-4150-92e0-da27cb7c08b1",
      "name": "Invoice Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1408,
        432
      ]
    },
    {
      "id": "f2e861df-25b7-4cb6-b997-a550cbeee3b0",
      "name": "Parse Text",
      "type": "n8n-nodes-base.code",
      "position": [
        1728,
        176
      ]
    },
    {
      "id": "b4d3c31b-a03e-48e3-9494-a5d0f66730a4",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        704
      ]
    },
    {
      "id": "fdee5820-e117-42e5-884d-3113dce51e1d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        128
      ],
      "parameters": {
        "width": 688,
        "height": 208,
        "content": "## Whatsapp Intake"
      }
    },
    {
      "id": "cb3317e1-d28d-4e16-a9c2-50d9fd30d5f2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        128
      ],
      "parameters": {
        "width": 528,
        "height": 208,
        "content": "## OCR & Parsing"
      }
    },
    {
      "id": "675080f0-1ae0-4467-b57d-54029df9076c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        368
      ],
      "parameters": {
        "width": 528,
        "height": 224,
        "content": "## AI Summary & Reply"
      }
    },
    {
      "id": "64508997-d051-4b79-b57b-f64d3b3af6c4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        656,
        368
      ],
      "parameters": {
        "width": 688,
        "height": 224,
        "content": "## Update & Save Invoice Record"
      }
    },
    {
      "id": "5522c5ad-b60f-471a-9926-cb75942dcd32",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        624
      ],
      "parameters": {
        "width": 208,
        "height": 208,
        "content": "## Chat Model"
      }
    },
    {
      "id": "d5942506-70ea-4c9a-b842-5fcbb228003e",
      "name": "Get Download URL",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        944,
        176
      ]
    },
    {
      "id": "65d1ced6-8806-46d1-a2e5-33d913f3d934",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        128
      ],
      "parameters": {
        "width": 528,
        "height": 864,
        "content": "# 🧾 WhatsApp Invoice Automation\n\n## How it works\nThis workflow automates invoice processing via WhatsApp. When a new invoice image or PDF arrives, it’s automatically downloaded and scanned with OCR to"
      }
    }
  ],
  "connections": {
    "Parse Text": {
      "main": [
        [
          {
            "node": "Update DataBase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Image": {
      "main": [
        [
          {
            "node": "Parse Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Analyze Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Invoice Agent": {
      "main": [
        [
          {
            "node": "Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update DataBase": {
      "main": [
        [
          {
            "node": "Original Invoice Retrieval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Download URL": {
      "main": [
        [
          {
            "node": "Download File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Get Download URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Invoice Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Add Invoice To Drive": {
      "main": [
        [
          {
            "node": "Invoice Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Original Invoice Retrieval": {
      "main": [
        [
          {
            "node": "Add Invoice To Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}