{
  "name": "Telegram fitness bot: Custom workout plans from photo/text using Gemini AI",
  "nodes": [
    {
      "id": "eb7c270b-2ea8-4654-a968-271ecf4c3979",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        784,
        -16
      ]
    },
    {
      "id": "e564af0e-54e8-4b53-817f-f6a9f6f06b83",
      "name": "Workout Guide",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        784,
        -176
      ]
    },
    {
      "id": "d120ef75-2c81-492b-8c1e-99fc1da4598e",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1280,
        352
      ]
    },
    {
      "id": "8914e190-310b-4e79-928b-f4e4b5d94818",
      "name": "Workout Guide thorugh Image",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1280,
        192
      ]
    },
    {
      "id": "1f5d1827-57f3-440f-ad6a-55df4cf3f425",
      "name": "Analyze image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1136,
        192
      ]
    },
    {
      "id": "d09f4a67-cbff-4692-8cdf-e1fe4eeed6d4",
      "name": "Receive a Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        336,
        -16
      ]
    },
    {
      "id": "d56f8d77-4b00-4a6e-93f2-c21b83a8641e",
      "name": "Text Vs Photo",
      "type": "n8n-nodes-base.switch",
      "position": [
        528,
        -16
      ]
    },
    {
      "id": "d870bde6-759b-428e-999d-cd217e223e48",
      "name": "Clean up Workout plane and Make User freindly And Visually appealing",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        -176
      ]
    },
    {
      "id": "cadebb69-e8e2-4f19-a9a4-be6dd2de6e01",
      "name": "Send A Workout Planes",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1328,
        -176
      ]
    },
    {
      "id": "a319dc3d-8ec8-4faf-9653-ab1e39a2759c",
      "name": "Change Mime Type",
      "type": "n8n-nodes-base.code",
      "position": [
        992,
        192
      ]
    },
    {
      "id": "ddac4863-bb5e-4ce6-be03-f834fac83932",
      "name": "Clean up Workout plane and Make User freindly And Visually appealing1",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        192
      ]
    },
    {
      "id": "6bed8c70-0114-405b-8833-ce13077c4962",
      "name": "Send A Workout Planes1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1824,
        192
      ]
    },
    {
      "id": "a89d78c7-ee75-4178-ba3d-979a8b55efa5",
      "name": "Fetch Image Path",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        192
      ]
    },
    {
      "id": "06e10319-907c-4188-9641-b550deba183d",
      "name": "Get a Image",
      "type": "n8n-nodes-base.telegram",
      "position": [
        688,
        192
      ]
    },
    {
      "id": "caeb42f8-56f2-4391-acf4-307cd00aaa40",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        944,
        0
      ]
    },
    {
      "id": "19d4907c-9fd2-4d0c-b9ba-dceb73c2eff9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -464
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Get a Image": {
      "main": [
        [
          {
            "node": "Fetch Image Path",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "Workout Guide thorugh Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Workout Guide",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Workout Guide thorugh Image",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Text Vs Photo": {
      "main": [
        [
          {
            "node": "Workout Guide",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workout Guide": {
      "main": [
        [
          {
            "node": "Clean up Workout plane and Make User freindly And Visually appealing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Change Mime Type": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Image Path": {
      "main": [
        [
          {
            "node": "Change Mime Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive a Message": {
      "main": [
        [
          {
            "node": "Text Vs Photo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Workout Guide thorugh Image",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Workout Guide",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Workout Guide thorugh Image": {
      "main": [
        [
          {
            "node": "Clean up Workout plane and Make User freindly And Visually appealing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Workout plane and Make User freindly And Visually appealing": {
      "main": [
        [
          {
            "node": "Send A Workout Planes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Workout plane and Make User freindly And Visually appealing1": {
      "main": [
        [
          {
            "node": "Send A Workout Planes1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}