{
  "name": "Autonomous Agent - Create With Attachment",
  "nodes": [
    {
      "parameters": {},
      "id": "3a125b58-863b-42d7-8267-d273e3cd737a",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        120,
        300
      ]
    },
    {
      "parameters": {
        "operation": "read",
        "fileSelector": "/files/example.png",
        "options": {}
      },
      "id": "ddbbe53d-3fe6-4af9-9df9-d8af028aef01",
      "name": "Read Binary File",
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        360,
        300
      ]
    },
    {
      "parameters": {
        "operation": "createWithAttachment",
        "task": "Analyze this image and identify visible objects.",
        "mode": "supervised",
        "contextInputMode": "none",
        "includeDesiredOutput": true,
        "desiredOutputFormat": "json",
        "desiredOutputMediaType": "application/json",
        "metadataInputMode": "none",
        "idempotencyKeyMode": "automatic",
        "inputBinaryField": "data",
        "waitUntilComplete": false
      },
      "id": "6785b60a-ef04-45ac-9d8c-7eaacd083dc3",
      "name": "Create With Attachment",
      "type": "n8n-autonomous-agent-nodes.autonomousAgentExecution",
      "typeVersion": 1,
      "position": [
        620,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "get",
        "executionId": "={{$json.execution_id}}"
      },
      "id": "e33f079b-05fd-4233-8ce8-0cbb0edcdd73",
      "name": "Get Execution",
      "type": "n8n-autonomous-agent-nodes.autonomousAgentExecution",
      "typeVersion": 1,
      "position": [
        880,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "list",
        "executionId": "={{$json.execution_id}}",
        "splitIntoItems": true
      },
      "id": "4b9579a3-eaf7-4109-93da-257410193c7f",
      "name": "List Events",
      "type": "n8n-autonomous-agent-nodes.autonomousAgentEvent",
      "typeVersion": 1,
      "position": [
        1140,
        300
      ],
      "credentials": {
        "autonomousAgentApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Read Binary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Binary File": {
      "main": [
        [
          {
            "node": "Create With Attachment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create With Attachment": {
      "main": [
        [
          {
            "node": "Get Execution",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Execution": {
      "main": [
        [
          {
            "node": "List Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f81a8579-fabd-4f1d-acb4-33a27c7461a6",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}