AutomationFlowsGeneral › Parse Checklists with Unstract

Parse Checklists with Unstract

Original n8n title: Parse 2 Checklists and Return Result

parse 2 checklists and return result. Uses n8n-nodes-unstract. Webhook trigger; 4 nodes.

Webhook trigger★★★★☆ complexity4 nodesN8N Nodes Unstract
General Trigger: Webhook Nodes: 4 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "parse 2 checklists and return result",
  "nodes": [
    {
      "parameters": {
        "deployment_name": "karim_1762476869900",
        "include_metrics": false,
        "include_metadata": false
      },
      "type": "n8n-nodes-unstract.unstract",
      "typeVersion": 1,
      "position": [
        32,
        16
      ],
      "id": "854476ed-69ff-494c-b330-ca05be6c54d7",
      "name": "Unstract1",
      "credentials": {
        "unstractApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        592,
        16
      ],
      "id": "1ebbb410-2f5b-460e-ab08-d1a643edd199",
      "name": "Respond to Webhook"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "2144abe8-5f30-4747-befe-5ac55487fe97",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -208,
        16
      ],
      "id": "ada96d8f-b1c6-4a22-a065-cdda639ad6a1",
      "name": "Webhook"
    },
    {
      "parameters": {
        "jsCode": "/**\n * Input attendu (exemple r\u00e9sum\u00e9) :\n * [\n *   [\n *     {\n *       result: {\n *         output: { karim_1: \"```json\\n{ ... }\\n```\" }\n *       }\n *     }\n *   ]\n * ]\n *\n * Sortie : l'objet JSON de karim_1 (un seul item par karim_1 trouv\u00e9).\n */\n\nfunction extractKarim1(container) {\n  if (!container) return null;\n\n  // Aplatit r\u00e9cursivement pour retrouver l'objet qui porte result.output.karim_1\n  const flatten = (x) => Array.isArray(x) ? x.flatMap(flatten) : [x];\n  const flat = flatten(container);\n\n  const holder = flat.find(\n    o => o && o.result && o.result.output && typeof o.result.output.karim_1 !== 'undefined'\n  );\n  if (!holder) return null;\n\n  let k1 = holder.result.output.karim_1;\n\n  // Si d\u00e9j\u00e0 objet \u2192 retourne tel quel\n  if (k1 && typeof k1 === 'object') return k1;\n\n  if (typeof k1 !== 'string') {\n    throw new Error('Le champ karim_1 existe mais n\u2019est ni string ni objet.');\n  }\n\n  // Enl\u00e8ve les fences ```json ... ``` ou ``` ... ```\n  const fenceJson = k1.match(/```json([\\s\\S]*?)```/i);\n  const fenceAny  = k1.match(/```([\\s\\S]*?)```/);\n  let jsonText = fenceJson ? fenceJson[1] : (fenceAny ? fenceAny[1] : k1);\n  jsonText = jsonText.trim();\n\n  // Parse JSON\n  try {\n    return JSON.parse(jsonText);\n  } catch (e) {\n    throw new Error('karim_1 n\u2019est pas un JSON valide : ' + e.message);\n  }\n}\n\nconst out = [];\nfor (const item of $input.all()) {\n  const container = item.json;          // ton item actuel contient le gros tableau\n  const parsed = extractKarim1(container);\n  if (parsed) out.push({ json: parsed });\n}\nif (out.length === 0) {\n  throw new Error('Impossible de trouver result.output.karim_1 dans l\u2019entr\u00e9e.');\n}\nreturn out;\n"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        16
      ],
      "id": "f6a3fdc3-fb65-4a89-8f95-491abfe08ed5",
      "name": "Code in JavaScript"
    }
  ],
  "connections": {
    "Unstract1": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook": {
      "main": [
        []
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Unstract1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "bea2449a-40e1-418a-9e8e-6c5fa8334b64",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "5QrRzZOXQa50YxD0",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

parse 2 checklists and return result. Uses n8n-nodes-unstract. Webhook trigger; 4 nodes.

Source: https://github.com/khldd/v0-product-certification-checklist/blob/85dc50a57df1798ff8fa7b4d241c6532d8adbd5a/workflows/workflow1.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

A production-ready authentication workflow implementing secure user registration, login, token verification, and refresh token mechanisms. Perfect for adding authentication to any application without

Crypto, Data Table, Execute Workflow Trigger
General

Portfolio Orchestrator. Uses httpRequest. Webhook trigger; 59 nodes.

HTTP Request
General

This n8n template demonstrates how a simple Multi-Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key features, processed through a three-layer model.

General

github code Try yourself

Google Calendar
General

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

N8N Nodes 1Shot