{
  "name": "Control your 3D printer with GPT-4o and OctoPrint API conversations",
  "nodes": [
    {
      "id": "17588807-7232-48f2-9746-9e5ebfb4370f",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -360,
        100
      ]
    },
    {
      "id": "338329b4-f691-4fac-bdab-ea5cd74add80",
      "name": "Stage OctoPrint Job",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -80,
        100
      ]
    },
    {
      "id": "c909da95-6a3e-4647-9da7-fcc375bcc517",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        372,
        460
      ]
    },
    {
      "id": "9579f327-f2ec-456f-96aa-72693a0b2619",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -140,
        680
      ]
    },
    {
      "id": "6ce7ede9-b95e-4e6a-ae54-84336956fc53",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -20,
        680
      ]
    },
    {
      "id": "9cd904a0-90c7-42b6-be12-38d5be921881",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -360,
        460
      ]
    },
    {
      "id": "99e83e4f-5528-4fa4-9680-3f3126da6d26",
      "name": "List OctoPrint Jobs",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        100,
        740
      ]
    },
    {
      "id": "fc7e5787-2045-4fed-888b-9abed6705706",
      "name": "Get OctoPrint Printer Status",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        220,
        680
      ]
    },
    {
      "id": "f113838d-08db-4f2c-a9da-03abf6274db0",
      "name": "Pause OctoPrint Job",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        340,
        740
      ]
    },
    {
      "id": "63ffabe8-85df-45a7-a643-8ee73515805c",
      "name": "Cancel OctoPrint Job",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        460,
        680
      ]
    },
    {
      "id": "7b9c3760-a078-4215-88be-83f66d262aaa",
      "name": "Resume OctoPrint Job",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        580,
        740
      ]
    },
    {
      "id": "a78d26d9-dd3c-4282-9c2b-e09abbbe2a3a",
      "name": "Connect OctoPrint to Printer",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        700,
        680
      ]
    },
    {
      "id": "b998d0d3-1263-4ddd-929d-e2c22df66b0e",
      "name": "Get OctoPrint Printer Connection Status",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        820,
        760
      ]
    },
    {
      "id": "26d5c411-efeb-484a-a81a-3139d8d44f54",
      "name": "Start OctoPrint Job",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        940,
        680
      ]
    },
    {
      "id": "22aa2ad2-0401-45a5-b718-c33c86825d6a",
      "name": "Get Current Print Job Details",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        200,
        880
      ]
    },
    {
      "id": "d207658e-eef2-4b17-b886-e80e5d81620f",
      "name": "Discord",
      "type": "n8n-nodes-base.discord",
      "position": [
        840,
        380
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "List OctoPrint Jobs": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pause OctoPrint Job": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Start OctoPrint Job": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Cancel OctoPrint Job": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Resume OctoPrint Job": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Connect OctoPrint to Printer": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get OctoPrint Printer Status": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Current Print Job Details": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Stage OctoPrint Job",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get OctoPrint Printer Connection Status": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}