{
  "name": "Generate employee performance review summaries with GPT-4, Gmail and Sheets",
  "nodes": [
    {
      "id": "f5679924-1ba1-49b2-b98a-a48ec4f83770",
      "name": "Process Employee Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1152,
        240
      ]
    },
    {
      "id": "76459fa7-3cba-4f65-9948-f022768952c0",
      "name": "AI Summary Generator",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1408,
        240
      ]
    },
    {
      "id": "2b2381b7-6b12-4245-bbb7-557c7f5c3f64",
      "name": "Receive Review Data",
      "type": "n8n-nodes-base.webhook",
      "position": [
        912,
        240
      ]
    },
    {
      "id": "4b00cbde-7e41-456a-ae89-107a020a441a",
      "name": "Parse AI Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1744,
        240
      ]
    },
    {
      "id": "4fe253db-456b-403d-b9f7-cf017587cc7e",
      "name": "Generate Review Card HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        240
      ]
    },
    {
      "id": "56077bfe-f3d6-430a-8a2c-931039994e0c",
      "name": "Send Review to Employee",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2528,
        240
      ]
    },
    {
      "id": "97f6e05e-8ec9-44d8-b874-13810b22343f",
      "name": "Download Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2368,
        240
      ]
    },
    {
      "id": "774ae079-daec-45e7-bef7-5291c3a85644",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2768,
        240
      ]
    },
    {
      "id": "c5280bdf-bbd5-4c3b-8cb3-6191097a30a4",
      "name": "Notify HR Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        2944,
        240
      ]
    },
    {
      "id": "abef2c32-c886-4ac6-83d4-cc4d8dca7bf8",
      "name": "Convert HTML to Image",
      "type": "n8n-nodes-htmlcsstoimage.htmlCssToImage",
      "position": [
        2192,
        240
      ]
    },
    {
      "id": "a8883617-c50f-4dfd-b2c5-b9ac26a31cd7",
      "name": "Send Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3104,
        240
      ]
    },
    {
      "id": "5e1444e4-24a8-4c8d-a396-10f88e7a408f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -128
      ],
      "parameters": {
        "width": 448,
        "height": 496,
        "content": "### How it works\nThis workflow automates AI-powered performance reviews. It receives employee data via webhook, processes scores and feedback, uses OpenAI to generate professional summaries, creates a"
      }
    },
    {
      "id": "b3662988-dbf8-4640-b831-2da3b77ae0e5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        144
      ],
      "parameters": {
        "width": 480,
        "height": 224,
        "content": "## Input Collection\nWebhook receives employee performance data including scores, feedback, and review period details."
      }
    },
    {
      "id": "6a03f803-36b9-429e-9cab-cbc2013d89f3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        144
      ],
      "parameters": {
        "width": 560,
        "height": 272,
        "content": "## AI Review Generation\nOpenAI analyzes performance metrics and generates structured summaries with strengths, improvements, and closing statements."
      }
    },
    {
      "id": "2079169f-1550-49fc-bbbe-56a4fe895c75",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1952,
        144
      ],
      "parameters": {
        "width": 720,
        "height": 272,
        "content": "## Formatting & Delivery\nConverts AI summary to HTML, generates image via HTMLCSS to Image API, downloads it, and emails to employee with detailed metrics."
      }
    },
    {
      "id": "c80a3de8-72f7-4137-8747-07fe5fe20314",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2704,
        144
      ],
      "parameters": {
        "width": 608,
        "height": 272,
        "content": "## Workflow Complete\nLogs review to Google Sheets, notifies HR via Slack, and sends webhook response confirming success."
      }
    }
  ],
  "connections": {
    "Download Image": {
      "main": [
        [
          {
            "node": "Send Review to Employee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify HR Team": {
      "main": [
        [
          {
            "node": "Send Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response": {
      "main": [
        [
          {
            "node": "Generate Review Card HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Review Data": {
      "main": [
        [
          {
            "node": "Process Employee Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Summary Generator": {
      "main": [
        [
          {
            "node": "Parse AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "Notify HR Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert HTML to Image": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Employee Data": {
      "main": [
        [
          {
            "node": "AI Summary Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Review to Employee": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Review Card HTML": {
      "main": [
        [
          {
            "node": "Convert HTML to Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}