{
  "name": "Requesty Image Generation Test \u2014 Direct \u00b7 URLs \u00b7 Agent Tool",
  "nodes": [
    {
      "parameters": {},
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d401",
      "name": "When clicking Test workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -100,
        380
      ]
    },
    {
      "parameters": {
        "model": "azure/openai/gpt-image-1",
        "prompt": "A watercolor painting of a Japanese garden in autumn",
        "options": {
          "size": "1024x1024",
          "quality": "low"
        }
      },
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d402",
      "name": "Generate Image Binary",
      "type": "CUSTOM.imageGenRequesty",
      "typeVersion": 1,
      "position": [
        220,
        160
      ]
    },
    {
      "parameters": {
        "model": "azure/openai/gpt-image-1",
        "prompt": "A minimalist flat logo of a paper plane, transparent background",
        "options": {
          "returnImageUrls": true,
          "background": "transparent",
          "quality": "low"
        }
      },
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d403",
      "name": "Generate Image URLs",
      "type": "CUSTOM.imageGenRequesty",
      "typeVersion": 1,
      "position": [
        220,
        380
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Generate an image of a cute robot watering a plant, then tell me the URL of the generated image.",
        "options": {
          "systemMessage": "You are a helpful assistant. Use the image generation tool whenever the user asks for an image."
        }
      },
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d404",
      "name": "Agent with Image Tool",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        260,
        620
      ]
    },
    {
      "parameters": {
        "model": "openai-responses/gpt-5.4"
      },
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d405",
      "name": "Requesty Agent Model",
      "type": "CUSTOM.lmChatRequesty",
      "typeVersion": 1,
      "position": [
        180,
        840
      ]
    },
    {
      "parameters": {
        "model": "azure/openai/gpt-image-1",
        "prompt": "={{ $fromAI('prompt', 'A text description of the image to generate') }}",
        "options": {
          "returnImageUrls": true,
          "quality": "low"
        }
      },
      "id": "f47ac10b-58cc-4372-a567-0e02b2c3d406",
      "name": "Image Tool",
      "type": "CUSTOM.imageGenRequestyTool",
      "typeVersion": 1,
      "position": [
        400,
        840
      ]
    }
  ],
  "connections": {
    "When clicking Test workflow": {
      "main": [
        [
          {
            "node": "Generate Image Binary",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Image URLs",
            "type": "main",
            "index": 0
          },
          {
            "node": "Agent with Image Tool",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Requesty Agent Model": {
      "ai_languageModel": [
        [
          {
            "node": "Agent with Image Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Image Tool": {
      "ai_tool": [
        [
          {
            "node": "Agent with Image Tool",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateId": "requesty-image-test"
  }
}