{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "456264c6-c435-46a3-b16a-329fad79f848",
      "name": "Form signup for Wordpress in KlickTipp form",
      "type": "n8n-nodes-klicktipp.klicktippTrigger",
      "notes": "This node triggers when a contact made a submission in the RAW form that is connected to the according webhook in KlickTipp.",
      "position": [
        9008,
        4672
      ],
      "parameters": {
        "path": "wordpress-registration-submission-via-klicktipp-form"
      },
      "credentials": {
        "klickTippApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "7b548ecb-9bb5-4d28-8d29-a3c2496aaaae",
      "name": "Set username & password",
      "type": "n8n-nodes-base.set",
      "notes": "This node generates a fitting username and password for the creation of a Wordpress user with.",
      "position": [
        9488,
        4672
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "5a046e19-2997-4d58-9bf6-42b3556c0edb",
              "name": "username",
              "type": "string",
              "value": "={{\n(\n  ($json.fieldFirstName ?? '') + \n  ($json.fieldLastName ?? '')\n)\n.normalize('NFD')\n.replace(/[\\u0300-\\u036f]/g, '')\n.replace(/[^a-zA-Z0-9]/g, '')\n.toLowerCase() + '_' + $node[\"Form signup for Wordpress in KlickTipp form\"].json.id\n}}"
            },
            {
              "id": "7cbaf429-6aab-4399-b45a-bd08134fce46",
              "name": "temporary_password",
              "type": "string",
              "value": "={{ \n  // Generate a random 12-digit numeric password\n\n  // Step 1: Math.random() generates a number between 0 and 1\n  // Step 2: Multiply by 900000000000 to get a range of 0\u2013899999999999\n  // Step 3: Add 100000000000 so the number is always 12 digits (no leading zero issue)\n  // Step 4: Math.floor() removes decimals\n  // Step 5: Convert to string so n8n treats it as text\n\n  Math.floor(100000000000 + Math.random() * 900000000000).toString()\n}}"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "a101bf5d-46ad-40a9-aa0c-57d16e7caacc",
      "name": "Update Wordpress user ID in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node updates the contact in KlickTipp in order to save the generated Wordpress user data.",
      "position": [
        10976,
        4656
      ],
      "parameters": {
        "fields": {
          "dataFields": [
            {
              "fieldId": "field229462",
              "fieldValue": "={{ $json.id }}"
            },
            {
              "fieldId": "field228982",
              "fieldValue": "={{ $('Set username & password').item.json.username }}"
            },
            {
              "fieldId": "field228983",
              "fieldValue": "={{ $('Set username & password').item.json.temporary_password }}"
            }
          ]
        },
        "resource": "subscriber",
        "operation": "update",
        "subscriberId": "={{ $('Form signup for Wordpress in KlickTipp form').item.json.id }}",
        "identifierType": "id"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "71c1e86a-af57-4892-9d70-5ab897ac6f53",
      "name": "Get last comments from Wordpress",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "This node gets all approved comments from the last 24 hours.",
      "position": [
        9008,
        5088
      ],
      "parameters": {
        "url": "https://cht.klicktipptest.de/wp-json/wp/v2/comments?context=edit",
        "options": {
          "response": {}
        },
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "100"
            },
            {
              "name": "orderby",
              "value": "date"
            },
            {
              "name": "order",
              "value": "desc"
            },
            {
              "name": "status",
              "value": "approve"
            },
            {
              "name": "after",
              "value": "={{ $now.minus({ hours: 24 }).toISO() }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4
    },
    {
      "id": "be7277d4-b876-4ff9-aaa0-88f6adc8d4c5",
      "name": "Check for contact existence",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node checks if the Wordpress user already exists in KlickTipp.",
      "onError": "continueErrorOutput",
      "position": [
        9728,
        5088
      ],
      "parameters": {
        "resource": "subscriber",
        "operation": "get",
        "lookupEmail": "={{ $json.email }}"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "1320463f-056d-432c-93be-625153161e05",
      "name": "Write comment into contact field",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node updates the contact in KlickTipp in order to write the comment into a custom field.",
      "position": [
        10992,
        5072
      ],
      "parameters": {
        "fields": {
          "dataFields": [
            {
              "fieldId": "field229468",
              "fieldValue": "={{\n  // Get the HTML content from the WordPress node\n  $('Get last comments from Wordpress').item.json.content.rendered\n  \n    // Remove all HTML tags (anything between < and >)\n    .replace(/<[^>]*>/g, '')\n    \n    // Remove leading and trailing whitespace\n    .trim()\n}}"
            }
          ]
        },
        "resource": "subscriber",
        "operation": "update",
        "subscriberId": "={{ $json.id }}",
        "identifierType": "id"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "7b94d39d-d126-4f3d-a0a6-82d239f333e4",
      "name": "Check relevant segment",
      "type": "n8n-nodes-base.switch",
      "notes": "This node checks to which segment this contact should be added.",
      "position": [
        11248,
        5072
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "Landingpage A comment",
              "conditions": {
                "options": {
                  "version": 3,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "c68abaae-bf0a-4ba3-b6c5-faede593cf83",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    },
                    "leftValue": "={{ $('Get last comments from Wordpress').item.json.link }}",
                    "rightValue": "https://cht.klicktipptest.de/wordpress-comments-klicktipp-integration"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "Landingpage B comment",
              "conditions": {
                "options": {
                  "version": 3,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "e6ce3bdd-f807-462e-a15a-281aa0974a81",
                    "operator": {
                      "type": "string",
                      "operation": "contains"
                    },
                    "leftValue": "={{ $('Get last comments from Wordpress').item.json.link }}",
                    "rightValue": "ABC"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {
          "allMatchingOutputs": true
        }
      },
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "aedbc7ce-1f1d-465f-8acb-0c91034bf108",
      "name": "Tag contact",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node add the contact to the according segment by adding the desired Tag.",
      "position": [
        11472,
        4976
      ],
      "parameters": {
        "email": "={{ $('Search WP Users with role Subscriber').item.json.email }}",
        "tagId": [
          "14162905"
        ],
        "resource": "contact-tagging"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "9c2f4117-c512-4a88-8a78-3b9e5996a8ab",
      "name": "Tag contact1",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node add the contact to the according segment by adding the desired Tag.",
      "position": [
        11472,
        5168
      ],
      "parameters": {
        "email": "={{ $('Search WP Users with role Subscriber').item.json.email }}",
        "tagId": [
          "14176702"
        ],
        "resource": "contact-tagging"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "bf3ae79b-4559-4e5b-aa94-637f8961619f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8752,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 416,
        "height": 912,
        "content": "## 1. Inbound Form submissions and comments"
      },
      "typeVersion": 1
    },
    {
      "id": "9e596bd1-e587-4b3b-809a-41c1e013afb3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9424,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 224,
        "height": 912,
        "content": "## 3. Identity & Security Logic"
      },
      "typeVersion": 1
    },
    {
      "id": "9095b302-710d-470a-8485-c6ef158b9f93",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9664,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 628,
        "height": 912,
        "content": "## 4. WordPress Account Management"
      },
      "typeVersion": 1
    },
    {
      "id": "9a0b1cb3-8d04-4fc8-8317-7c9dda98e40f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10928,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 224,
        "height": 912,
        "content": "## 6. Data Merging & Writing"
      },
      "typeVersion": 1
    },
    {
      "id": "7f627d02-41aa-463d-8ece-6a7abdbb3ebe",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11168,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 502,
        "height": 912,
        "content": "## 7. Segmentation & Tagging"
      },
      "typeVersion": 1
    },
    {
      "id": "54baec22-9f6e-44d6-8aa9-f4569c2e0779",
      "name": "Search WP Users with role Subscriber",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "This node gets further data from the Wordpress user that left a comment which was already approved. The search is already filtered down to Wordpress users with the role \u2192 Subscriber.",
      "position": [
        9488,
        5088
      ],
      "parameters": {
        "url": "https://cht.klicktipptest.de/wp-json/wp/v2/users",
        "options": {},
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "context",
              "value": "edit"
            },
            {
              "name": "search",
              "value": "={{ $json.author_email }}"
            },
            {
              "name": "roles",
              "value": "subscriber"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4
    },
    {
      "id": "f09a72b2-b5ff-4919-87e7-2c0a2f732e3f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10304,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 608,
        "height": 912,
        "content": "## 5. Error handling"
      },
      "typeVersion": 1
    },
    {
      "id": "d45ec507-901a-4b81-8608-018cc56943eb",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8016,
        4528
      ],
      "parameters": {
        "width": 727,
        "height": 1756,
        "content": "Community Node Disclaimer: This workflow uses KlickTipp community nodes.\n\n## Introduction\nThis workflow automates the bridge between **KlickTipp** and **WordPress**, focusing on two primary objectives: automating user account creation upon signup and synchronizing user interactions (comments) back into the marketing database. \n\nBy linking these systems, you ensure that every new lead automatically receives access to your WordPress site and that their engagement on your landing pages is tracked directly on their contact profile in KlickTipp.\n\n## How it works\n\n### 1. WordPress User Creation (Inbound Signup)\nTriggered by a **KlickTipp RAW form submission** (\"Form signup for Wordpress\"):\n- **Submission Filter**: A filter node checks whether the submissions carries consent for the ceration of users.\n- **Identity Generation**: A Code node automatically generates a unique, URL-safe **username** based on the contact's first and last name (normalized to remove special characters) and a secure **12-character random password**.\n- **Account Provisioning**: The workflow sends a POST request to the WordPress REST API to create a new user with the role of `subscriber`.\n- **Data Feedback Loop**: Once created, the new WordPress **User ID**, **Username**, and **Password** are written back into KlickTipp custom fields (`field229462`, `field228982`, `field228983`). This allows you to send automated welcome emails containing their login credentials.\n\n### 2. Comment Synchronization & Tracking\nTriggered on a schedule or manual execution (\"Get last comments from Wordpress\"):\n- **Fetch Activity**: Retrieves all approved WordPress comments from the last 24 hours.\n- **User Identification**: Searches the WordPress database for users with the `subscriber` role matching the comment author's email to ensure only registered members are synced.\n- **Contact Verification**: Checks if the commenter exists in KlickTipp. If not, the process stops for that item to prevent orphaned data.\n- **Content Cleaning**: The HTML comment content is stripped of tags using Regex (e.g., `<p>` \u2192 text) and written into a specific KlickTipp custom field (`field229468`).\n\n### 3. Segmentation & Interest Tagging\nAfter a comment is recorded, the workflow evaluates the source of the interaction:\n- **Switch Logic**: It checks the URL (`link`) where the comment was posted.\n- **Dynamic Tagging**: \n  - If the comment was on **Landingpage A**, the contact is tagged with ID `14162905`.\n  - If the comment was on **Landingpage B**, the contact is tagged with ID `14176702`.\n- This allows for highly targeted follow-up campaigns based on which specific topics or pages the user is engaging with.\n\n## Setup Instructions\n\n### 1) KlickTipp Preparation\n- Create the following **custom fields** to store WordPress data:\n  - `WP_User_ID` (mapped to `field229462`)\n  - `WP_Username` (mapped to `field228982`)\n  - `WP_Password` (mapped to `field228983`)\n  - `Last_Comment_Text` (mapped to `field229468`)\n- Set up a RAW HTML form in KlickTipp and connect its success action to the n8n webhook URL.\n\n### 2) WordPress Preparation\n- Ensure the **WordPress REST API** is active.\n- Create an **Application Password** for a WordPress user with administrative rights (required to create other users and read comments).\n- Ensure your landing page URLs match the strings defined in the \"Check relevant segment\" switch node.\n\n### 3) Credential Configuration\n- **KlickTipp API**: Provide your KlickTipp username and API password.\n- **WordPress API**: Use the \"Basic Auth\" method with your WordPress username and the generated Application Password.\n\n## Customization\n- **Password Strength**: You can modify the `chars` variable in the \"Set username & password\" node to change password complexity.\n- **Role Management**: Change the `roles` array in the \"Generate Wordpress user\" node if signups should receive different permissions (e.g., `contributor`).\n- **Sync Frequency**: Adjust the `after` parameter in the \"Get last comments\" node and the workflow trigger interval to change how often comments are synced."
      },
      "typeVersion": 1
    },
    {
      "id": "53252f9f-91e8-4f98-b13e-edc7bd783b6d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9184,
        4528
      ],
      "parameters": {
        "color": 7,
        "width": 224,
        "height": 912,
        "content": "## 2. Filter requests"
      },
      "typeVersion": 1
    },
    {
      "id": "4702b987-b2ef-4852-ac78-210f53b20d63",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "notes": "This node filters out all form submissions which did not consent to the user creation.",
      "position": [
        9248,
        4672
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 3,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "c8c203a4-d68e-4325-ba8c-b70667971b49",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.field229493 }}",
              "rightValue": "I give consent"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 2.3
    },
    {
      "id": "0b3a7955-07b2-4190-b00b-4986f41bb210",
      "name": "Pull comments trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "notes": "This node triggers the flow using a scheduler to pull the comments in Wordpress.",
      "position": [
        8800,
        5088
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.3
    },
    {
      "id": "e0b793fd-af16-40fd-a3b4-977d7527af77",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "notes": "This node is executed if the user was not found in KlickTipp",
      "position": [
        10368,
        5248
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "a005ed52-ff54-42d6-8cc1-d514e6754d1d",
      "name": "Search WP Users with role Subscriber1",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "This node gets further data from the Wordpress user that left a comment which was already approved. The search is already filtered down to Wordpress users with the role \u2192 Subscriber.",
      "position": [
        10576,
        4832
      ],
      "parameters": {
        "url": "https://cht.klicktipptest.de/wp-json/wp/v2/users",
        "options": {},
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "context",
              "value": "edit"
            },
            {
              "name": "search",
              "value": "={{ $('Form signup for Wordpress in KlickTipp form').item.json.email }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4
    },
    {
      "id": "a8242706-d500-466e-8db0-d1edef1a3b24",
      "name": "Update a user",
      "type": "n8n-nodes-base.wordpress",
      "notes": "This node amends the nickname of an already existing user in wordpress by adding the KlickTipp contact ID.",
      "position": [
        10768,
        4832
      ],
      "parameters": {
        "userId": "={{ $json.id }}",
        "resource": "user",
        "operation": "update",
        "updateFields": {
          "nickname": "={{ $json.nickname }}_{{ $('Form signup for Wordpress in KlickTipp form').item.json.id }}"
        }
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "528a34d8-531c-41aa-b10a-6cbe45230677",
      "name": "Update Wordpress user ID in KlickTipp1",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "notes": "This node updates the contact in KlickTipp in order to save the generated Wordpress user data.",
      "position": [
        10976,
        4832
      ],
      "parameters": {
        "fields": {
          "dataFields": [
            {
              "fieldId": "field229462",
              "fieldValue": "={{ $json.id }}"
            },
            {
              "fieldId": "field228982",
              "fieldValue": "={{ $json.username }}"
            }
          ]
        },
        "resource": "subscriber",
        "operation": "update",
        "subscriberId": "={{ $('Form signup for Wordpress in KlickTipp form').item.json.id }}",
        "identifierType": "id"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "d6d745ed-80ba-442d-a2ad-d96b02341210",
      "name": "Update user role",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "This node creates the according Wordpress user with the role subscriber.",
      "position": [
        10144,
        4656
      ],
      "parameters": {
        "url": "=https://cht.klicktipptest.de/wp-json/wp/v2/users/{{ $json.id }}",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"roles\": [\"subscriber\"] \n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.3
    },
    {
      "id": "95d68654-d77c-4c69-b672-b1c26b014ad3",
      "name": "Generate Wordpress user from signup1",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "This node creates the according Wordpress user with the role subscriber.",
      "onError": "continueErrorOutput",
      "position": [
        9728,
        4672
      ],
      "parameters": {
        "url": "=https://cht.klicktipptest.de/wp-json/wp/v2/users",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"username\": \"{{ $json.username }}\",\n  \"name\":\"{{ $('Form signup for Wordpress in KlickTipp form').item.json.fullname }}\",\n  \"email\": \"{{ $('Form signup for Wordpress in KlickTipp form').item.json.email }}\",\n  \"first_name\": \"{{ $('Form signup for Wordpress in KlickTipp form').item.json.fieldFirstName }}\",\n  \"last_name\": \"{{ $('Form signup for Wordpress in KlickTipp form').item.json.fieldLastName }}\",\n  \"password\":\"{{ $json.temporary_password }}\",\n  \"roles\": [\"subscriber\"]\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.3
    },
    {
      "id": "51ad3ce3-1e53-4ce1-908b-5f46469a5ab8",
      "name": "Error on email address",
      "type": "n8n-nodes-base.filter",
      "notes": "This filter node only processes contact creation errors based on the email already being taken",
      "position": [
        10368,
        4832
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 3,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "3ad4fea3-7f3c-4ab7-8d3c-37533f54c353",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.error.description }}",
              "rightValue": "=Diese E-Mail-Adresse wird bereits verwendet!"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 2.3
    }
  ],
  "connections": {
    "Filter": {
      "main": [
        [
          {
            "node": "Set username & password",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a user": {
      "main": [
        [
          {
            "node": "Update Wordpress user ID in KlickTipp1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update user role": {
      "main": [
        [
          {
            "node": "Update Wordpress user ID in KlickTipp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pull comments trigger": {
      "main": [
        [
          {
            "node": "Get last comments from Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check relevant segment": {
      "main": [
        [
          {
            "node": "Tag contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag contact1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error on email address": {
      "main": [
        [
          {
            "node": "Search WP Users with role Subscriber1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set username & password": {
      "main": [
        [
          {
            "node": "Generate Wordpress user from signup1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for contact existence": {
      "main": [
        [
          {
            "node": "Write comment into contact field",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get last comments from Wordpress": {
      "main": [
        [
          {
            "node": "Search WP Users with role Subscriber",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write comment into contact field": {
      "main": [
        [
          {
            "node": "Check relevant segment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Wordpress user from signup1": {
      "main": [
        [
          {
            "node": "Update user role",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error on email address",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search WP Users with role Subscriber": {
      "main": [
        [
          {
            "node": "Check for contact existence",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search WP Users with role Subscriber1": {
      "main": [
        [
          {
            "node": "Update a user",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form signup for Wordpress in KlickTipp form": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}