{
  "name": "🛠️ Process AI Output to Structured JSON with Robust JSON Parser",
  "nodes": [
    {
      "id": "4fd2662b-6698-4ec2-9b27-97afaa3416c1",
      "name": "Robust JSON Parser",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -432,
        -64
      ]
    },
    {
      "id": "a8e7b7d4-ff0f-4138-8b7e-b01900b1013f",
      "name": "Safe JSON Parser",
      "type": "n8n-nodes-base.code",
      "position": [
        272,
        -64
      ]
    },
    {
      "id": "680ea730-fc1f-40d8-91e9-0ea06b09d472",
      "name": "Remove parsing_status",
      "type": "n8n-nodes-base.set",
      "position": [
        672,
        -64
      ]
    },
    {
      "id": "9a42c258-cbb3-4c56-9b6e-53bd77b0f207",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        -336
      ],
      "parameters": {
        "width": 360,
        "height": 440,
        "content": "#### ⚙️ OUTPUT CLEANUP\n\nThis node removes the detailed `parsing_status` object from the final output to keep it clean.\n\n**Want to see the full parsing log for debugging?**\n\n➡️ **Just deactivate or del"
      }
    },
    {
      "id": "c71da6a1-7553-4c3c-b17a-9a5eecc02552",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -336
      ],
      "parameters": {
        "width": 360,
        "height": 440,
        "content": "#### ▶️ INPUT NODE\n\nThis workflow expects an input item with a `text` field. The value of this field should be the **string** you want to parse.\n\n**Example Input:**\n```json\n{\n  \"text\": \"Some text from"
      }
    },
    {
      "id": "b5f8dc12-5092-42ba-bb50-47f760418ca8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -528
      ],
      "parameters": {
        "width": 480,
        "height": 620,
        "content": "#### 🧠 CORE LOGIC: The Parser\n\nThis node contains all the logic for cleaning and parsing the input string. It does not need to be edited for normal use.\n\n**Process Overview:**\n1.  **Cleans Input:** Re"
      }
    },
    {
      "id": "e54cafca-18cf-40de-8cce-0fd7ec9e428b",
      "name": "Convert to JSON",
      "type": "n8n-nodes-base.set",
      "position": [
        -144,
        -64
      ]
    },
    {
      "id": "140f3f24-935b-4f0c-bad4-8ffdda34da74",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1024,
        -608
      ],
      "parameters": {
        "width": 320,
        "height": 704,
        "content": "## 🛠️ Process AI Output to Structured JSON with Robust JSON Parser\n\nStop AI hallucinations from breaking your flows by automatically cleaning and repairing malformed JSON output.\n\n### How it works\n\n* "
      }
    },
    {
      "id": "0641599d-9712-4b9c-9177-ec6e367db75c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        -1008
      ],
      "parameters": {
        "width": 320,
        "height": 1104,
        "content": "---\n\n## Was this helpful? Let me know!\n[![clic](https://supastudio.ia2s.app/storage/v1/object/public/assets/n8n/clic_down_lucas.gif)](https://api.ia2s.app/form/templates/academy)\n\nI really hope this t"
      }
    }
  ],
  "connections": {
    "Convert to JSON": {
      "main": [
        [],
        [
          {
            "node": "Safe JSON Parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Safe JSON Parser": {
      "main": [
        [
          {
            "node": "Remove parsing_status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Robust JSON Parser": {
      "main": [
        [
          {
            "node": "Convert to JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}