{
  "name": "Typeform to KlickTipp integration - quiz",
  "nodes": [
    {
      "id": "8f3fd206-b47f-4eae-a968-dc44ac0e6976",
      "name": "Convert and set quiz data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1168,
        688
      ]
    },
    {
      "id": "c807913b-dd90-49a2-b4ad-9f56a261fa04",
      "name": "Subscribe contact in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        -944,
        688
      ]
    },
    {
      "id": "55656b0f-6fb4-435c-82be-750b557384b4",
      "name": "New quiz sumbmission via Typeform",
      "type": "n8n-nodes-base.typeformTrigger",
      "position": [
        -1376,
        688
      ]
    },
    {
      "id": "92cf733f-f655-4302-b092-94d33399c8bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        1056
      ],
      "parameters": {
        "width": 860,
        "height": 1039,
        "content": "### Introduction\nThis workflow facilitates seamless integration between Typeform and KlickTipp, automating the process of handling quiz responses. By transforming raw quiz data into a format compatibl"
      }
    },
    {
      "id": "81efd56c-43e7-4598-a9ab-e7578406b227",
      "name": "Get list of all existing tags",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        -496,
        704
      ]
    },
    {
      "id": "4e2de2e8-e0df-476a-aa2e-ff4b00ce7037",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -80,
        592
      ]
    },
    {
      "id": "fd4b0ed3-08cb-4e6b-8538-1fe7a391bd25",
      "name": "Define Array of tags from Typeform",
      "type": "n8n-nodes-base.set",
      "position": [
        -496,
        512
      ]
    },
    {
      "id": "feab2eb3-28b8-4aa5-87b4-999c144fbdeb",
      "name": "Split Out Typeform tags",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -320,
        512
      ]
    },
    {
      "id": "0073c5fb-3eb1-4eab-b572-dce0161afaf1",
      "name": "Tag creation check",
      "type": "n8n-nodes-base.if",
      "position": [
        144,
        592
      ]
    },
    {
      "id": "2d6bb138-7b5e-4e51-b18a-cfbec85396d2",
      "name": "Create the tag in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        448,
        672
      ]
    },
    {
      "id": "9045b890-07c3-4432-a900-6296e49904d3",
      "name": "Aggregate tags to add to contact",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        464,
        464
      ]
    },
    {
      "id": "e9217f44-f004-4460-87ad-fc0fbd63624c",
      "name": "Tag contact directly in KlickTipp",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        720,
        464
      ]
    },
    {
      "id": "031ffca6-c94d-484f-b798-1beeb62a6ea5",
      "name": "Aggregate array of created tags",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        640,
        672
      ]
    },
    {
      "id": "bedf795b-0dbf-4d57-b0db-7d3bfaaffbaf",
      "name": "Tag contact KlickTipp after trag creation",
      "type": "n8n-nodes-klicktipp.klicktipp",
      "position": [
        848,
        672
      ]
    },
    {
      "id": "a5e91606-8e15-48c4-9980-f5b958af1072",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        416
      ],
      "parameters": {
        "width": 768,
        "height": 624,
        "content": "## Listen to new submissions, converting data & adding contact to KlickTipp"
      }
    },
    {
      "id": "043bbe1e-2834-4ee2-9e25-7729db6f6b33",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        416
      ],
      "parameters": {
        "width": 960,
        "height": 624,
        "content": "## Identify new Tags and create if necessary - based on submission\n"
      }
    },
    {
      "id": "08f17257-9e78-4153-ba1b-5262de6c9d5e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        416
      ],
      "parameters": {
        "width": 736,
        "height": 624,
        "content": "## Dynamic Tagging of contacts in KlickTipp\n"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Tag creation check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag creation check": {
      "main": [
        [
          {
            "node": "Aggregate tags to add to contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create the tag in KlickTipp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Typeform tags": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert and set quiz data": {
      "main": [
        [
          {
            "node": "Subscribe contact in KlickTipp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create the tag in KlickTipp": {
      "main": [
        [
          {
            "node": "Aggregate array of created tags",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get list of all existing tags": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Subscribe contact in KlickTipp": {
      "main": [
        [
          {
            "node": "Define Array of tags from Typeform",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get list of all existing tags",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate array of created tags": {
      "main": [
        [
          {
            "node": "Tag contact KlickTipp after trag creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate tags to add to contact": {
      "main": [
        [
          {
            "node": "Tag contact directly in KlickTipp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New quiz sumbmission via Typeform": {
      "main": [
        [
          {
            "node": "Convert and set quiz data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Array of tags from Typeform": {
      "main": [
        [
          {
            "node": "Split Out Typeform tags",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}