{
  "name": "Sync contacts, consent, and segments between KlickTipp and Pipedrive",
  "nodes": [
    {
      "id": "e401f569-314d-44ff-b95c-afdb58b478a3",
      "name": "Delete contact",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        5344,
        1520
      ]
    },
    {
      "id": "48b7dfa3-8206-4dd4-a534-f30be14a6111",
      "name": "Contact tagged in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktippTrigger",
      "position": [
        4224,
        448
      ]
    },
    {
      "id": "b3a469af-8724-4586-a88d-5312025e829b",
      "name": "Create a person",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        5344,
        288
      ]
    },
    {
      "id": "527e72de-be34-4519-a110-32e75a5eb4a8",
      "name": "Update a person",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        5344,
        464
      ]
    },
    {
      "id": "cedb091a-6770-44e8-92f8-37c3c3199303",
      "name": "Update contact changes in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        5344,
        1296
      ]
    },
    {
      "id": "7cffadf2-546e-41cc-86ac-34bf8b5fca22",
      "name": "Create contact with DOI",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        5344,
        1088
      ]
    },
    {
      "id": "ad611a93-6e92-4fe7-be92-68fd6686a45f",
      "name": "Tag contact in KlickTipp2",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        6320,
        1216
      ]
    },
    {
      "id": "c57ab268-dfae-40f6-b60c-16268c8d2206",
      "name": "Tag contact in KlickTipp3",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        6320,
        1392
      ]
    },
    {
      "id": "b855f37c-f31c-4abe-9c14-0c34f4f3a4a2",
      "name": "Check relevant segment2",
      "type": "n8n-nodes-base.switch",
      "position": [
        6064,
        1296
      ]
    },
    {
      "id": "2552714b-97dd-4e05-a8d8-3bcc36fa8de2",
      "name": "Add Pipedrive Person ID to KlickTipp contact",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        5808,
        288
      ]
    },
    {
      "id": "8beb736d-1434-4791-be62-c4c24e6ab8dc",
      "name": "Get contact data for tagging",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        4448,
        448
      ]
    },
    {
      "id": "19cb572c-0d6a-4aa8-af0c-697f46c752aa",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4176,
        176
      ],
      "parameters": {
        "width": 432,
        "height": 1792,
        "content": "## 1. Get contact data."
      }
    },
    {
      "id": "5f86dbab-479c-4eab-9970-5738f0f88b9b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4624,
        176
      ],
      "parameters": {
        "width": 304,
        "height": 1792,
        "content": "## 2. Route by subscription."
      }
    },
    {
      "id": "9c5b6b0e-68b5-4532-a148-04c0026fe84d",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4944,
        176
      ],
      "parameters": {
        "width": 272,
        "height": 1792,
        "content": "## 3. Filter contacts."
      }
    },
    {
      "id": "153bc030-88d3-451a-8389-7767ddf16ba0",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5232,
        176
      ],
      "parameters": {
        "width": 304,
        "height": 1792,
        "content": "## 4. Transfer contact data."
      }
    },
    {
      "id": "c26166c7-2fed-4398-8fcd-51920ac053a7",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5552,
        176
      ],
      "parameters": {
        "width": 400,
        "height": 1792,
        "content": "## 5. Save contact ID or subscription status\n"
      }
    },
    {
      "id": "f0bc0849-c2ae-4b31-b0ed-601faa0fdf00",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5968,
        176
      ],
      "parameters": {
        "width": 544,
        "height": 1792,
        "content": "## 6. Segmentation."
      }
    },
    {
      "id": "fe8ec5ef-1f4c-4450-95b9-982e427a2622",
      "name": "Get marketing status",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        4448,
        1280
      ]
    },
    {
      "id": "e8cd2cf2-12d5-4b20-ba01-6cee32fcd0ba",
      "name": "Create contact with SOI",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        5344,
        880
      ]
    },
    {
      "id": "22703157-fc36-4010-bc9e-daf6bdc99429",
      "name": "Changes in Pipedrive1",
      "type": "n8n-nodes-base.pipedriveTrigger",
      "position": [
        4224,
        1280
      ]
    },
    {
      "id": "b69f68e1-55cf-4db8-9bbc-6934562b743e",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3440,
        176
      ],
      "parameters": {
        "width": 727,
        "height": 2284,
        "content": "Community Node Disclaimer: This workflow uses KlickTipp community nodes.\n\n## Introduction\nThis workflow creates a complete two-way synchronization between **KlickTipp** and **Pipedrive (Persons)**.  \n"
      }
    },
    {
      "id": "29a1e84b-8816-4206-a566-090bcfdb8dd1",
      "name": "Filter non UI events and deletions",
      "type": "n8n-nodes-base.filter",
      "position": [
        5040,
        880
      ]
    },
    {
      "id": "f22cd785-eb7c-49af-ab7e-da28aca5a05c",
      "name": "Check subscription",
      "type": "n8n-nodes-base.switch",
      "position": [
        4720,
        448
      ]
    },
    {
      "id": "7400e461-730e-4281-8a5f-4b2acc3389ab",
      "name": "Check subscription1",
      "type": "n8n-nodes-base.switch",
      "position": [
        4720,
        1248
      ]
    },
    {
      "id": "92eaca10-3d9c-4c9f-9aff-0f19b2c43c0c",
      "name": "Check relevant segment",
      "type": "n8n-nodes-base.switch",
      "position": [
        6064,
        464
      ]
    },
    {
      "id": "259372f5-b7e3-46f2-b6bf-f65241783121",
      "name": "Assign Label Customer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        384
      ]
    },
    {
      "id": "b8ca26d5-0acd-4bae-9c7e-48f2e735c91f",
      "name": "Assign Label ABC",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        560
      ]
    },
    {
      "id": "b714eaf0-728e-417a-bafd-8807e59ffdd2",
      "name": "Add KlickTipp contact ID to Pipedrive",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        5808,
        880
      ]
    },
    {
      "id": "59b086ee-0f03-48a6-825d-f33353cb74ec",
      "name": "Add KlickTipp contact ID to Pipedrive1",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        5808,
        1088
      ]
    },
    {
      "id": "e63ecf2c-338d-407e-be36-0202b87a47da",
      "name": "Tag contact for first transactional mail",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        6320,
        880
      ]
    },
    {
      "id": "a008f32f-b662-4ef4-bf26-f9ab3ad9fd6f",
      "name": "Contact deletion request triggered",
      "type": "n8n-nodes-klicktipp.klicktippTrigger",
      "position": [
        4224,
        1760
      ]
    },
    {
      "id": "813abb15-038e-4c31-bf3a-e4de5292629b",
      "name": "Only delete Pipedrive contacts",
      "type": "n8n-nodes-base.filter",
      "position": [
        5024,
        1760
      ]
    },
    {
      "id": "a83c59c2-946f-4477-a826-e11a4ada91d3",
      "name": "Delete contact1",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        5344,
        1760
      ]
    },
    {
      "id": "b7810884-759c-441e-b83f-2546ece5a438",
      "name": "Get subscription status",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        5600,
        1296
      ]
    },
    {
      "id": "3a7cd6ca-7710-46e3-a569-60513bbd96e5",
      "name": "Add KlickTipp subscription status to Pipedrive",
      "type": "n8n-nodes-base.pipedrive",
      "position": [
        5808,
        1296
      ]
    },
    {
      "id": "0b861925-e69d-41a8-b715-45e516a6bfdd",
      "name": "Filter contact creation via API",
      "type": "n8n-nodes-base.filter",
      "position": [
        5040,
        1088
      ]
    }
  ],
  "connections": {
    "Create a person": {
      "main": [
        [
          {
            "node": "Add Pipedrive Person ID to KlickTipp contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a person": {
      "main": [
        [
          {
            "node": "Check relevant segment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check subscription": {
      "main": [
        [
          {
            "node": "Create a person",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update a person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check subscription1": {
      "main": [
        [
          {
            "node": "Filter non UI events and deletions",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Filter contact creation via API",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update contact changes in KlickTipp",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Delete contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get marketing status": {
      "main": [
        [
          {
            "node": "Check subscription1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Changes in Pipedrive1": {
      "main": [
        [
          {
            "node": "Get marketing status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check relevant segment": {
      "main": [
        [
          {
            "node": "Assign Label Customer",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Assign Label ABC",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check relevant segment2": {
      "main": [
        [
          {
            "node": "Tag contact in KlickTipp2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag contact in KlickTipp3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create contact with DOI": {
      "main": [
        [
          {
            "node": "Add KlickTipp contact ID to Pipedrive1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create contact with SOI": {
      "main": [
        [
          {
            "node": "Add KlickTipp contact ID to Pipedrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get subscription status": {
      "main": [
        [
          {
            "node": "Add KlickTipp subscription status to Pipedrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag contact in KlickTipp2": {
      "main": [
        []
      ]
    },
    "Contact tagged in KlickTipp": {
      "main": [
        [
          {
            "node": "Get contact data for tagging",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get contact data for tagging": {
      "main": [
        [
          {
            "node": "Check subscription",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only delete Pipedrive contacts": {
      "main": [
        [
          {
            "node": "Delete contact1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter contact creation via API": {
      "main": [
        [
          {
            "node": "Create contact with DOI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact deletion request triggered": {
      "main": [
        [
          {
            "node": "Only delete Pipedrive contacts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter non UI events and deletions": {
      "main": [
        [
          {
            "node": "Create contact with SOI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update contact changes in KlickTipp": {
      "main": [
        [
          {
            "node": "Get subscription status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add KlickTipp contact ID to Pipedrive": {
      "main": [
        [
          {
            "node": "Check relevant segment2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Tag contact for first transactional mail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add KlickTipp contact ID to Pipedrive1": {
      "main": [
        []
      ]
    },
    "Add Pipedrive Person ID to KlickTipp contact": {
      "main": [
        [
          {
            "node": "Check relevant segment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add KlickTipp subscription status to Pipedrive": {
      "main": [
        [
          {
            "node": "Check relevant segment2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}