Quick overview
This workflow uses an n8n chat trigger, OpenAI (gpt-5-mini), and KlickTipp community nodes to interpret chat instructions and create, apply, or remove tags for an existing KlickTipp contact, returning a structured JSON result.
How it works
- Receives a chat message containing a contact email address and explicit tag add/remove instructions.
- Uses OpenAI (gpt-5-mini) to extract the email plus the requested tags to apply and/or remove, enforcing strict rules to avoid inventing tags.
- Looks up the contact in KlickTipp by email and reads the contact’s currently assigned tag IDs.
- Retrieves the full tag list from KlickTipp and creates any missing tags that were explicitly requested for applying.
- Applies the resolved tag IDs to the contact in KlickTipp when an explicit apply action is present and the contact does not already have them.
- Removes specific tag IDs (or all currently assigned tag IDs when requested) from the contact in KlickTipp when an explicit remove action is present.
- Returns a structured JSON response summarizing what was requested, which tags were created, and which tag IDs were applied or removed.
Setup
- Add KlickTipp credentials for the community KlickTipp nodes and ensure the target contact already exists in KlickTipp.
- Add an OpenAI API key and keep the model set to gpt-5-mini (or update it if you want to use a different OpenAI chat model).
- Use the built-in chat interface to send requests (or replace the chat trigger with another trigger and map the incoming text to the agent input).