{
  "name": "CleanTextLab API Integration",
  "nodes": [
    {
      "parameters": {},
      "id": "11111111-1111-1111-1111-111111111111",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "sample-text",
              "name": "text",
              "value": "HELLO world\nthis is  MESSY   text",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "22222222-2222-2222-2222-222222222222",
      "name": "Sample 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.text, \"steps\": [\"trim-lines\", \"title-case-converter\"] } }}",
        "options": {}
      },
      "id": "33333333-3333-3333-3333-333333333333",
      "name": "CleanTextLab API",
      "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": "Sample Text Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample Text Input": {
      "main": [
        [
          {
            "node": "CleanTextLab API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1",
  "meta": {
    "instanceId": "your-instance-id",
    "notice": "This template uses the generic HTTP Request node. For a better experience, install the official 'CleanTextLab' community node via npm."
  },
  "tags": []
}