{
  "name": "Generate Daily E-Commerce Order Reports with Supabase, GPT-4.1 and Gmail",
  "nodes": [
    {
      "id": "e9e241a2-3963-4bc0-bcd8-3651840648ed",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        660,
        -60
      ]
    },
    {
      "id": "4dbac482-9efb-4e1f-a729-de640ecccb08",
      "name": "Get Orders",
      "type": "n8n-nodes-base.supabaseTool",
      "position": [
        520,
        220
      ]
    },
    {
      "id": "010dfe87-420b-4d6f-89f0-23c58aa6dbe3",
      "name": "Get Order Items",
      "type": "n8n-nodes-base.supabaseTool",
      "position": [
        680,
        220
      ]
    },
    {
      "id": "88f69e97-dc76-4a4e-ab61-e52cf77dac35",
      "name": "Get Clients",
      "type": "n8n-nodes-base.supabaseTool",
      "position": [
        800,
        220
      ]
    },
    {
      "id": "da6ec445-0035-4c74-9adb-6d63dc428f05",
      "name": "Get Products",
      "type": "n8n-nodes-base.supabaseTool",
      "position": [
        920,
        220
      ]
    },
    {
      "id": "2201f0c1-5abb-4a46-8aea-2ed5ea2ef220",
      "name": "Send Gmail Summary",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1100,
        220
      ]
    },
    {
      "id": "12ba20e4-f768-4789-84cf-c9d2a746ca51",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        320,
        220
      ]
    },
    {
      "id": "2039bf49-833f-4d01-b415-594c4ab926a1",
      "name": "Daily 8am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        180,
        -60
      ]
    },
    {
      "id": "ab399397-d687-48c5-81f0-99fed12c9c1d",
      "name": "Set Sender Email",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        -60
      ]
    },
    {
      "id": "3565c51b-6cce-48aa-be41-4f9d0c40c40e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -200
      ],
      "parameters": {
        "width": 640,
        "height": 300,
        "content": "## Notes\n- Connect to your Supabase account to pull data from tables\n- Update the sender email\n- Customize the AI agent prompt to fit the use case"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        []
      ]
    },
    "Daily 8am": {
      "main": [
        [
          {
            "node": "Set Sender Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Orders": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Clients": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Products": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Order Items": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set Sender Email": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Gmail Summary": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}