๐ค Find KlickTipp tags to remove by prefix
โก 1 views ยท ๐ค CRM & Sales Operations
Description
image.png
Community Node Disclaimer
This workflow uses KlickTipp community nodes, available for self-hosted n8n instances only.
Overview
This sub-workflow determines which KlickTipp tags should be removed from a contact by comparing:
- a tag prefix scope (for example
Zoho |) - a list of tags that should be kept (coming from a 3rd-party system and treated as the source of truth)
- the existing KlickTipp tags that fall under the same prefix scope
The workflow calculates the difference between the currently assigned prefixed tags and the desired prefixed tags, and returns a single array tagNamesToRemove[].
This result can be passed to a follow-up workflow that performs the actual tag unassignment in KlickTipp.
Inputs
-
prefix (string)
The tag prefix that defines the managed scope.
Example values:Zoho | -
setTags[] (array of strings)
Base tag names that should remain assigned, coming from a 3rd-party tool.
Example values:Webinar,Newsletter
Logic
- Fetch all available tags from KlickTipp.
- Keep only tags whose
valuestarts with the providedprefix(managed scope). - Split the incoming
setTags[]into individual items (the keep list). - Compare the scoped KlickTipp tags against the keep list by tag name (
value). - Keep only those scoped KlickTipp tags that do not have a match in
setTags[]. - Aggregate the remaining tag names into a single output array
tagNamesToRemove[].
Example
Input parameters:
- prefix:
Zoho | - setTags:
Webinar,Newsletter
Assuming the contact currently has the following prefixed tags:
Zoho | WebinarZoho | NewsletterZoho | LeadZoho | Form
The workflow will return:
Zoho | LeadZoho | Form
Output
The workflow returns a single item containing the array tagNamesToRemove[], which can be passed directly into a downstream workflow responsible for tag unassignment.
Notes
- This sub-workflow calculates the removal list by comparing tag names only.
- It returns a decision array and does not perform the unassignment itself.
- Tag unassignment must be handled by a separate workflow that consumes
tagNamesToRemove[].
๐ Nodes Used
Execute Workflow Trigger, Filter
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File