{
  "name": "Log workouts and get AI fitness analysis with a form, Google Gemini, Sheets, Slack, and Gmail",
  "nodes": [
    {
      "id": "bb25e4a1-cf34-4693-ae7c-0108c653ee59",
      "name": "Workout Log Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -160,
        64
      ]
    },
    {
      "id": "984a6b52-88ac-45b3-8609-304ed0d4f1a8",
      "name": "Analyze Workout with AI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        48,
        64
      ]
    },
    {
      "id": "3650268d-d219-45fc-8827-6792434af319",
      "name": "Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        48,
        240
      ]
    },
    {
      "id": "025dc1e0-f596-4ba8-be6f-142d8fec46bd",
      "name": "Parse AI Results",
      "type": "n8n-nodes-base.code",
      "position": [
        336,
        64
      ]
    },
    {
      "id": "270c9b77-67cc-454f-8d0e-2e09ac26d2e5",
      "name": "Save to Workout Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        528,
        64
      ]
    },
    {
      "id": "3f66044c-56ed-4f63-8a0f-c9e92db2ba81",
      "name": "Build Summary Message",
      "type": "n8n-nodes-base.code",
      "position": [
        736,
        64
      ]
    },
    {
      "id": "2c5f57f2-42cd-454b-a531-5d4128706d61",
      "name": "Notify on Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1008,
        -16
      ]
    },
    {
      "id": "39af1065-74b1-44e2-86ca-1aa0de152996",
      "name": "Email Summary",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1008,
        176
      ]
    },
    {
      "id": "5594375b-55f7-43b5-b1ec-15856306f6ab",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -160
      ],
      "parameters": {
        "width": 400,
        "height": 660,
        "content": "## Workout tracker with AI analysis\nLog your workouts through a simple form and get instant AI-powered feedback on calories burned, muscles worked, and what to train next.\n\n### How it works\n1. Fill in"
      }
    },
    {
      "id": "38b42b53-004a-4ebb-9144-03881b6e7108",
      "name": "Input and AI Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -160
      ],
      "parameters": {
        "width": 664,
        "height": 540,
        "content": "## Log & analyze\nThe form captures your workout in plain text. Gemini breaks it down into individual exercises with muscle groups, sets, reps, and calorie estimates."
      }
    },
    {
      "id": "6bdc7dff-2cc5-445c-a00c-fcaf3e06cbce",
      "name": "Process and Save Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -160
      ],
      "parameters": {
        "width": 428,
        "height": 540,
        "content": "## Validate & save\nThe code node cleans the AI output and builds a structured record. Everything gets appended to your Google Sheet as a training log."
      }
    },
    {
      "id": "0259d68f-a980-4138-879e-7849e2a4dfe6",
      "name": "Notify Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        -160
      ],
      "parameters": {
        "width": 280,
        "height": 540,
        "content": "## Notifications\nSlack for quick confirmation, email with a full breakdown including tips and next workout suggestion."
      }
    }
  ],
  "connections": {
    "Google Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze Workout with AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Results": {
      "main": [
        [
          {
            "node": "Save to Workout Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workout Log Form": {
      "main": [
        [
          {
            "node": "Analyze Workout with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Summary Message": {
      "main": [
        [
          {
            "node": "Notify on Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Email Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Workout Sheet": {
      "main": [
        [
          {
            "node": "Build Summary Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Workout with AI": {
      "main": [
        [
          {
            "node": "Parse AI Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}