{
  "id": "a307620f-55eb-4729-9302-cd2c9624c211",
  "name": "R156 Compress a Giant Prompt Without Losing the Contract",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "shorter-prompt-pack",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "abfb24ba-6cc4-4aed-94ba-3668e8c95651",
      "name": "Receive workflow input",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        0,
        0
      ],
      "webhookId": "5e7d0e4e-627a-4558-9530-06612579d5c8"
    },
    {
      "parameters": {
        "jsCode": "const body = $json.body ?? $json;\nreturn [{json: body}];"
      },
      "id": "532254e4-c5d3-468c-9c72-80e5d1363494",
      "name": "Use JSON body",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://workflow:3000/run",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json) }}",
        "options": {}
      },
      "id": "5c0d2e26-d548-4eac-afcf-842a63a4335e",
      "name": "Run tested workflow service",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        500,
        0
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify($json) }}",
        "options": {}
      },
      "id": "74d5b5df-993c-4310-a4c9-2fde8cb7e8db",
      "name": "Return reviewable result",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        760,
        0
      ]
    },
    {
      "parameters": {
        "content": "## Safe starter\nThe service defaults to dry-run. Set WORKFLOW_MODE=live and configure Anthropic only after the sample passes. External actions are intentionally not preconfigured.",
        "height": 250,
        "width": 420
      },
      "id": "294e1e72-8990-47c4-b5bf-8a771ff711ae",
      "name": "Read before activating",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        210,
        -330
      ]
    }
  ],
  "connections": {
    "Receive workflow input": {
      "main": [
        [
          {
            "node": "Use JSON body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Use JSON body": {
      "main": [
        [
          {
            "node": "Run tested workflow service",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run tested workflow service": {
      "main": [
        [
          {
            "node": "Return reviewable result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b9886404-184a-401c-b6e6-1ad73904dca9",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
