{
  "name": "Automate employee recognition with Slack, Sheets, Gmail & optional GPT-4",
  "nodes": [
    {
      "id": "ac6a4d39-86ab-4325-810f-50910cb09d40",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        160,
        272
      ]
    },
    {
      "id": "3685995a-dacf-4395-b0a8-3154189bb234",
      "name": "New Row Added",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -48,
        0
      ]
    },
    {
      "id": "f6cc7e9c-e5b1-4c38-9424-95bb34138328",
      "name": "Format Employee Data",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        0
      ]
    },
    {
      "id": "dfa27ba6-112e-45cc-8167-c54635a42cda",
      "name": "Generate Personalized Message",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        416,
        0
      ]
    },
    {
      "id": "20a36671-cd34-42c1-982d-3d4c69370768",
      "name": "Post Message to #general",
      "type": "n8n-nodes-base.slack",
      "position": [
        768,
        0
      ]
    },
    {
      "id": "b844e4af-e142-4caa-a1c5-9eeb477a3add",
      "name": "Update Row (Status)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        976,
        0
      ]
    },
    {
      "id": "cd49e9b2-635e-46ad-aacf-f91d01eeeac8",
      "name": "Send Thank You Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1184,
        0
      ]
    },
    {
      "id": "3eb68a1d-4d46-4fa6-9486-4b53ca04dcb9",
      "name": "Notify HR privately",
      "type": "n8n-nodes-base.slack",
      "position": [
        1392,
        0
      ]
    },
    {
      "id": "8290462d-2504-4be0-8bd9-a069ccb6067f",
      "name": "Check if Email Sent Successfully",
      "type": "n8n-nodes-base.if",
      "position": [
        1600,
        0
      ]
    },
    {
      "id": "7f7481b6-b7a7-43e7-a22d-99fdbb7d2dec",
      "name": "Alert HR if Email Fails",
      "type": "n8n-nodes-base.slack",
      "position": [
        1808,
        144
      ]
    },
    {
      "id": "9fb98a56-a9ab-4d6b-8d59-a1f6fe2ab937",
      "name": "Update Row (Email Status)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1808,
        -160
      ]
    },
    {
      "id": "810f8d54-e39d-4cc0-85e4-8171f486bc07",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        256
      ],
      "parameters": {
        "width": 1136,
        "height": 944,
        "content": "# Employee Recognition Bot\n\n## Problem\n\nManually recognizing employees is inconsistent. HR often forgets to announce wins, send thank-you emails, or update sheets — hurting morale and culture.\n\n## Sol"
      }
    },
    {
      "id": "ed928903-f6dc-4dcf-bee2-a197fa5f7450",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -96
      ],
      "parameters": {
        "width": null,
        "height": 320,
        "content": "## Trigger"
      }
    },
    {
      "id": "98d256e2-aa52-4d31-ae6a-d76df030a708",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        -96
      ],
      "parameters": {
        "width": 560,
        "height": 320,
        "content": "## Message Generator"
      }
    },
    {
      "id": "9752768e-604e-43cb-8e36-2b51fedfc70e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -96
      ],
      "parameters": {
        "width": 816,
        "height": 320,
        "content": "## Notify"
      }
    },
    {
      "id": "88245e07-15be-4321-a8bc-a0701561a992",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        -208
      ],
      "parameters": {
        "width": 496,
        "height": 544,
        "content": "## Logging\n"
      }
    }
  ],
  "connections": {
    "New Row Added": {
      "main": [
        [
          {
            "node": "Format Employee Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Personalized Message",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Notify HR privately": {
      "main": [
        [
          {
            "node": "Check if Email Sent Successfully",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Row (Status)": {
      "main": [
        [
          {
            "node": "Send Thank You Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Employee Data": {
      "main": [
        [
          {
            "node": "Generate Personalized Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Thank You Email": {
      "main": [
        [
          {
            "node": "Notify HR privately",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Message to #general": {
      "main": [
        [
          {
            "node": "Update Row (Status)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Personalized Message": {
      "main": [
        [
          {
            "node": "Post Message to #general",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Email Sent Successfully": {
      "main": [
        [
          {
            "node": "Update Row (Email Status)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert HR if Email Fails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}