{
  "name": "AI text-to-image for Telegram (Gemini + Hugging Face FLUX)",
  "nodes": [
    {
      "id": "c81aef50-92fc-461e-9dae-45fb936f1fb6",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -460,
        -220
      ]
    },
    {
      "id": "c753e481-79f5-4171-a7db-895c423154a2",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -180,
        -220
      ]
    },
    {
      "id": "2fda98bd-bc78-45dd-ad82-047904965df1",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -80,
        80
      ]
    },
    {
      "id": "f69e1aee-4bce-4eaf-afce-0dcff517e779",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1060,
        -180
      ]
    },
    {
      "id": "f0fc7c0c-609b-4714-be3e-40423a1a5e9f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        -500
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6031ea65-9875-4c7c-ac8c-812546c0bd08",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "435da6ad-401f-4912-b943-4d93722e696e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -700
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fcccddcb-6af2-4a88-99c6-c43077527d2f",
      "name": "HTTP Request (Huggingface)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        540,
        -180
      ]
    },
    {
      "id": "15aab548-038b-4349-9233-4c7ed03ea843",
      "name": "HTTP Request(download_image)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        -180
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "HTTP Request (Huggingface)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request (Huggingface)": {
      "main": [
        [
          {
            "node": "HTTP Request(download_image)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request(download_image)": {
      "main": [
        [
          {
            "node": "Send Image (back to the chat via telegram)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}