{
  "name": "Create an AI image remix and design bot for Telegram with BrowserAct and Gemini",
  "nodes": [
    {
      "id": "8fe24da5-c61a-4c72-a446-e0fd9f13560b",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1056,
        784
      ]
    },
    {
      "id": "5802722b-7f5d-4213-abbf-22af4c074bec",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1040,
        2000
      ]
    },
    {
      "id": "6d38e1b4-637b-4ec3-8af1-0dad09ef00bd",
      "name": "Notify User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1744,
        1440
      ]
    },
    {
      "id": "327eb8b2-7d94-41cf-8ccb-edfb422876a6",
      "name": "Validate user input",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        880,
        1792
      ]
    },
    {
      "id": "a3ca43ac-c7b5-4e1e-b634-4c3fb73ed47b",
      "name": "Notify User2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        384,
        448
      ]
    },
    {
      "id": "77d1ab53-6f97-436b-b81e-a29c48a30542",
      "name": "Set user State",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        160,
        624
      ]
    },
    {
      "id": "a99c1ec2-ecd2-429b-96cb-c82fb9db69af",
      "name": "Set user State1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        592,
        1792
      ]
    },
    {
      "id": "ba2b8106-d31c-474e-8ede-317beee8a229",
      "name": "Set user State2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        560,
        2528
      ]
    },
    {
      "id": "9db5c847-d010-4662-b36f-45304b9ca489",
      "name": "Set user State3",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        592,
        80
      ]
    },
    {
      "id": "52cd5353-e38a-457e-bf8c-31e581b90595",
      "name": "Set user State4",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        592,
        -112
      ]
    },
    {
      "id": "2d248409-ca44-4fd8-9e28-7a7380280a82",
      "name": "Set user State5",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2688,
        1072
      ]
    },
    {
      "id": "ff0b6a4f-0a02-4153-95f9-a3de1f00caab",
      "name": "Structured Output Parser4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        816,
        1424
      ]
    },
    {
      "id": "88aaa1e8-8cb7-439d-bb12-23e9ba2ceb6c",
      "name": "Get Prompt",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        512,
        1216
      ]
    },
    {
      "id": "5ee9edac-48ae-4029-a863-9649e4040e63",
      "name": "Get Description",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        784,
        912
      ]
    },
    {
      "id": "974a654d-e088-40d1-adaa-0b5ee4855e16",
      "name": "Analyze the Chosen image",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        720,
        1216
      ]
    },
    {
      "id": "7339ae4f-a418-4dc6-aff6-2630f318276d",
      "name": "Generate Image From PromptHero",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1088,
        1216
      ]
    },
    {
      "id": "4cae6e67-7958-4990-847a-f5e0364872f2",
      "name": "Generate Image From UserData",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1088,
        912
      ]
    },
    {
      "id": "f072d5c5-5f2a-40f1-badf-d041330de268",
      "name": "OpenRouter",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1344,
        2720
      ]
    },
    {
      "id": "0edea536-14bb-42b0-b355-4ab666e75c3d",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1440,
        2720
      ]
    },
    {
      "id": "e0bf0206-ce12-47ba-9f31-9ccbff0491d2",
      "name": "Clear UserData",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1056,
        2528
      ]
    },
    {
      "id": "07c502d9-440c-4ad3-99c6-1ca20b293909",
      "name": "Google Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        880,
        2016
      ]
    },
    {
      "id": "7820afee-e792-4160-a313-595f7fda7076",
      "name": "Ask for changes - HeroPrompt",
      "type": "n8n-nodes-base.telegram",
      "position": [
        160,
        -112
      ]
    },
    {
      "id": "55c38cd5-bb27-4ed0-8044-94ce8f6ee60e",
      "name": "Ask for changes - Custom image",
      "type": "n8n-nodes-base.telegram",
      "position": [
        160,
        80
      ]
    },
    {
      "id": "75390f65-4dbf-4ab9-9fb9-b33d7127c85d",
      "name": "Google Gemini2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1088,
        1440
      ]
    },
    {
      "id": "6144c36a-eacb-41db-8f85-fcbb607b04a3",
      "name": "Structured Output1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1184,
        1088
      ]
    },
    {
      "id": "b8d0a6ce-2b29-460d-81a6-79ff6a565213",
      "name": "Structured Output2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1184,
        1424
      ]
    },
    {
      "id": "36842e92-540d-41cc-be96-de4db5a38ba3",
      "name": "OpenRouter1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        720,
        1440
      ]
    },
    {
      "id": "29b55dd6-42b8-4ef6-ab8a-2f88b8bee10e",
      "name": "Sticky Note - Intro",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        16
      ],
      "parameters": {
        "width": 500,
        "height": 706,
        "content": "## Try It Out!\n### AI Image Remix & Design Bot\nThis advanced bot acts as your personal AI Art Director. It can chat, find inspiration from PromptHero, or completely \"remix\" images you upload using hig"
      }
    },
    {
      "id": "4cc216b5-975c-4450-9331-a961c1206dac",
      "name": "Sticky Note - Gateway",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        592
      ],
      "parameters": {
        "width": 608,
        "height": 140,
        "content": "### 🚦 Step 1: The Traffic Controller\n\nThis is the entry point of the bot. Before any AI touches the data, we must strictly separate the type of interaction. Is the user sending a brand new text messag"
      }
    },
    {
      "id": "eaef9635-82bf-4fbb-8427-5e044db3d71f",
      "name": "Sticky Note - Interaction",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        320
      ],
      "parameters": {
        "width": 768,
        "height": 108,
        "content": "### 🕹️ Step 2: Interactive State Logic\n\nWhen a user clicks a button like \"Regenerate\" or \"Next\", this section handles the logic. It reads the specific data payload from the button click to decide the "
      }
    },
    {
      "id": "77ade985-3af7-4331-a8ce-6ca5fea543d3",
      "name": "Sticky Note - State",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -272
      ],
      "parameters": {
        "width": 782,
        "height": 136,
        "content": "### 💾 Step 3: Session State Management\n\nThis workflow is \"stateful,\" meaning it remembers where the user is in the process \n\n* **Set user State (1-5):** These nodes update the `UserState` column in yo"
      }
    },
    {
      "id": "0fa424ce-19e9-4f8a-a714-43251f31df43",
      "name": "Sticky Note - Intent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        2128
      ],
      "parameters": {
        "width": 992,
        "height": 124,
        "content": "### 🧠 Step 4: Intent Classification\n\nIf the user sends a text message, we need to know *why*. This AI Agent reads the text and categorizes it. It distinguishes between a user asking for \"Inspiration\" "
      }
    },
    {
      "id": "8c669e90-ebfd-4d4b-ac30-7d1cf1dce00b",
      "name": "Sticky Note - Chat",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        1888
      ],
      "parameters": {
        "width": 862,
        "height": 116,
        "content": "### 💬 Step 5: Conversational AI\n\nThis branch handles pure conversation. If the user isn't asking for an image, we don't want to waste resources triggering complex automations. This agent simply chats "
      }
    },
    {
      "id": "c23eb5d6-b750-46db-9996-83cce418a36a",
      "name": "Sticky Note - BrowserAct",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        1472
      ],
      "parameters": {
        "width": 1010,
        "height": 128,
        "content": "### 🌍 Step 6: The Inspiration Engine\n\nWhen the user asks for ideas (Start), we connect to the outside world. **BrowserAct** scrapes trending prompts (e.g., from PromptHero), and we save them to our da"
      }
    },
    {
      "id": "d9768031-b763-4538-9f41-c08768d0dbfe",
      "name": "Sticky Note - Forensics",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        2416
      ],
      "parameters": {
        "width": 1520,
        "height": 96,
        "content": "### 👁️ Step 7: Visual Forensics Lab\n\nIf the user uploads a photo, we need to \"see\" it. This specialized AI Agent doesn't just look; it performs a deep forensic analysis, describing lighting, compositi"
      }
    },
    {
      "id": "0032925a-cfaa-4db0-b602-ddd5c0b532c0",
      "name": "Sticky Note - Creation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        784
      ],
      "parameters": {
        "width": 1106,
        "height": 116,
        "content": "### 🎨 Step 8: Master Prompt Engineering\n\nThis is the creative core. Depending on the source (a Scraped Prompt or a User Photo), one of these Agents takes over. They apply the **\"Rule of Multiplication"
      }
    },
    {
      "id": "be488881-31a5-4a52-81c5-a5efb1ef83e5",
      "name": "Sticky Note - Production",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        912
      ],
      "parameters": {
        "width": 896,
        "height": 108,
        "content": "### 🖼️ Step 9: Production & Delivery\n\nThe final phase where the art is rendered and delivered. Note the use of an Inline Keyboard, allowing the user to provide immediate feedback or request changes.\n"
      }
    },
    {
      "id": "20f29ba9-23c8-43cf-b777-259c56ae15a3",
      "name": "Update Current Image",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        640,
        448
      ]
    },
    {
      "id": "4f6d98e4-30e9-4612-8831-481cc058dc24",
      "name": "Get User State",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -176,
        1184
      ]
    },
    {
      "id": "3ba4b380-a357-4bd0-83fb-c895aa15e337",
      "name": "Switch Query",
      "type": "n8n-nodes-base.switch",
      "position": [
        -112,
        224
      ]
    },
    {
      "id": "5153cceb-3651-49ea-bbbf-f9a9b3daca29",
      "name": "Switch User State",
      "type": "n8n-nodes-base.switch",
      "position": [
        48,
        1168
      ]
    },
    {
      "id": "7101cde9-67c2-433f-9541-7e4e8f2a3fe9",
      "name": "Fix Output",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        816,
        1552
      ]
    },
    {
      "id": "0af8b812-9a38-49d8-be1b-8478cba66772",
      "name": "Fix Output1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1184,
        1552
      ]
    },
    {
      "id": "644d8633-be82-454b-984f-dd9c7ec4a9bf",
      "name": "Fix Output3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1440,
        2832
      ]
    },
    {
      "id": "dc7e52b6-ab0c-4d6f-8f39-213997a51f4e",
      "name": "Google Gemini1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1824,
        2176
      ]
    },
    {
      "id": "66e4db2a-e833-487c-bcc0-069ebad0d2d0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        16
      ],
      "parameters": {
        "width": 624,
        "height": 368,
        "content": "@[youtube](GqeKd9aYjW4)"
      }
    },
    {
      "id": "7f2fd441-6455-448b-bd2b-a6a8bff783ef",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -192
      ],
      "parameters": {
        "width": 300,
        "height": 180,
        "content": "## ⚠️ Complex Workflow\n\nThis workflow is complex.\n\nPlease **proceed using the tutorial video**."
      }
    },
    {
      "id": "eb38d859-f043-4281-9847-746b22ea7cac",
      "name": "Check for Query Callback",
      "type": "n8n-nodes-base.switch",
      "position": [
        -720,
        784
      ]
    },
    {
      "id": "d48e3642-be9b-465d-97ab-e71aac00e611",
      "name": "Check for Image or Text",
      "type": "n8n-nodes-base.switch",
      "position": [
        272,
        2032
      ]
    },
    {
      "id": "e6f34655-b4e1-46fd-8239-078df1988343",
      "name": "Get Picture from User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        816,
        2528
      ]
    },
    {
      "id": "84528981-79e3-4581-8751-9d519d625e37",
      "name": "Analyze the user image input",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1344,
        2528
      ]
    },
    {
      "id": "478aa085-464f-427a-b3f9-d8946aac96fc",
      "name": "Update Image Descriptions",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1696,
        2528
      ]
    },
    {
      "id": "09405d12-2c26-473b-8f3f-da4d29b77300",
      "name": "Ask User for Continuation",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1920,
        2528
      ]
    },
    {
      "id": "c6a28f4a-2bbb-44f4-8490-5871afb082b8",
      "name": "Chat With User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2160,
        2032
      ]
    },
    {
      "id": "d8f837b4-d0d7-44fc-872b-2821f6c73b26",
      "name": "Chatting Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1824,
        2032
      ]
    },
    {
      "id": "cadbc9d7-c2bd-439f-8dad-68f7f41fdb13",
      "name": "Validation Type Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1232,
        1792
      ]
    },
    {
      "id": "b2334556-c7c3-4e65-bc7a-ecc38e7ef9d0",
      "name": "Clear PromptHero Database",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1744,
        1632
      ]
    },
    {
      "id": "e253b960-4e44-4f24-997a-00f45a72f663",
      "name": "Extract Top AI-Generated Images",
      "type": "n8n-nodes-browseract.browserAct",
      "position": [
        2112,
        1632
      ]
    },
    {
      "id": "56ceb847-27ed-4cd0-9b29-2dac62102853",
      "name": "Save Images To Database",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2640,
        1632
      ]
    },
    {
      "id": "f14b772c-f636-4ad2-9456-e64603e56e39",
      "name": "Send Finishing Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2880,
        1632
      ]
    },
    {
      "id": "9201ea1f-3c11-432a-88d8-4d67c4790440",
      "name": "Splitting Generated Items",
      "type": "n8n-nodes-base.code",
      "position": [
        2384,
        1632
      ]
    },
    {
      "id": "4600b47b-f48a-4ca1-92ac-6d05912b180a",
      "name": "Generate Thumbnail",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        2208,
        1072
      ]
    },
    {
      "id": "9af88d5f-b847-4fab-8d9b-607e7008bb73",
      "name": "Send Thumbnail Back to Chatbot",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2448,
        1072
      ]
    },
    {
      "id": "c2c22cd9-b367-473f-924d-dea71bd57275",
      "name": "Extract and Save PromptHero Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        160,
        448
      ]
    }
  ],
  "connections": {
    "Fix Output": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Prompt": {
      "main": [
        [
          {
            "node": "Analyze the Chosen image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze the user image input",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fix Output1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output2",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fix Output3": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter1": {
      "ai_languageModel": [
        [
          {
            "node": "Analyze the Chosen image",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Notify User2": {
      "main": [
        [
          {
            "node": "Update Current Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch Query": {
      "main": [
        [
          {
            "node": "Ask for changes - HeroPrompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Ask for changes - Custom image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract and Save PromptHero Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set user State",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini": {
      "ai_languageModel": [
        [
          {
            "node": "Validate user input",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Chatting Agent": {
      "main": [
        [
          {
            "node": "Chat With User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clear UserData": {
      "main": [
        [
          {
            "node": "Analyze the user image input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get User State": {
      "main": [
        [
          {
            "node": "Switch User State",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini1": {
      "ai_languageModel": [
        [
          {
            "node": "Chatting Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini2": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Image From PromptHero",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Generate Image From UserData",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Description": {
      "main": [
        [
          {
            "node": "Generate Image From UserData",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set user State1": {
      "main": [
        [
          {
            "node": "Validate user input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set user State2": {
      "main": [
        [
          {
            "node": "Get Picture from User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Check for Query Callback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Analyze the user image input",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Switch User State": {
      "main": [
        [
          {
            "node": "Get Description",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Prompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check for Image or Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Thumbnail": {
      "main": [
        [
          {
            "node": "Send Thumbnail Back to Chatbot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output1": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Image From UserData",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output2": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Image From PromptHero",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Validate user input": {
      "main": [
        [
          {
            "node": "Validation Type Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Picture from User": {
      "main": [
        [
          {
            "node": "Clear UserData",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validation Type Switch": {
      "main": [
        [
          {
            "node": "Notify User",
            "type": "main",
            "index": 0
          },
          {
            "node": "Clear PromptHero Database",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chatting Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Image or Text": {
      "main": [
        [
          {
            "node": "Set user State1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set user State2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Images To Database": {
      "main": [
        [
          {
            "node": "Send Finishing Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze the Chosen image": {
      "main": [
        [
          {
            "node": "Generate Image From PromptHero",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Query Callback": {
      "main": [
        [
          {
            "node": "Switch Query",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get User State",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Validate user input",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Clear PromptHero Database": {
      "main": [
        [
          {
            "node": "Extract Top AI-Generated Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Splitting Generated Items": {
      "main": [
        [
          {
            "node": "Save Images To Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "Analyze the Chosen image",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Update Image Descriptions": {
      "main": [
        [
          {
            "node": "Ask User for Continuation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze the user image input": {
      "main": [
        [
          {
            "node": "Update Image Descriptions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask for changes - HeroPrompt": {
      "main": [
        [
          {
            "node": "Set user State4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image From UserData": {
      "main": [
        [
          {
            "node": "Generate Thumbnail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask for changes - Custom image": {
      "main": [
        [
          {
            "node": "Set user State3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image From PromptHero": {
      "main": [
        [
          {
            "node": "Generate Thumbnail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Thumbnail Back to Chatbot": {
      "main": [
        [
          {
            "node": "Set user State5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Top AI-Generated Images": {
      "main": [
        [
          {
            "node": "Splitting Generated Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract and Save PromptHero Data": {
      "main": [
        [
          {
            "node": "Notify User2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}