{
  "name": "CleanTextLab: Multi-Step Text Cleaning",
  "nodes": [
    {
      "parameters": {},
      "id": "d0e1f2a3-b4c5-6789-jklm-890123456789",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "messy-text",
              "name": "rawText",
              "value": "   HELLO WORLD   \n\n  this is SOME messy TEXT  \n\n   with EXTRA whitespace   ",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "e1f2a3b4-c5d6-7890-klmn-901234567890",
      "name": "Messy Text Input",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.3,
      "position": [460, 300]
    },
    {
      "parameters": {
        "url": "https://cleantextlab.com/api/v1/run",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ { \"input\": $json.rawText, \"steps\": [\"trim-lines\", \"collapse-spaces\", \"title-case-converter\"] } }}",
        "options": {}
      },
      "id": "f2a3b4c5-d6e7-8901-lmno-012345678901",
      "name": "Clean Text Pipeline",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [680, 300],
      "credentials": {
        "httpHeaderAuth": {
          "id": "1",
          "name": "CleanTextLab API Key"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "Messy Text Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Messy Text Input": {
      "main": [
        [
          {
            "node": "Clean Text Pipeline",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "meta": {
    "instanceId": "your-instance-id"
  },
  "tags": []
}
