Quick Overview
This workflow triggers when a contact is tagged in KlickTipp, uses OpenAI to generate an HTML-ready email salutation with a quality score, and updates the KlickTipp subscriber record with the salutation only when it meets a defined confidence threshold.
How it works
- Triggers when a contact is tagged in KlickTipp and receives the contact’s profile fields (name, email, company, and address data).
- Sends the contact details to OpenAI to generate a JSON response containing an HTML-ready salutation plus language, style, and a salutation quality score.
- Parses and validates the OpenAI response against a structured JSON schema.
- Checks whether the generated salutation quality score is greater than 80.
- Updates the contact in KlickTipp by writing the generated salutation into a configured custom field when the score passes the threshold.
Setup
- Add KlickTipp credentials and ensure the KlickTipp trigger for “contact tagged” is enabled for your account.
- Add an OpenAI API key for the chat model used to generate the salutation.
- In KlickTipp, create/identify the tag that should trigger this automation and configure it to call the n8n webhook URL from the trigger.
- Create a KlickTipp custom field to store the salutation and update the workflow’s target field ID (e.g., field228722) if your field differs.
- Adjust the quality threshold (currently >80) and salutation rules in the prompt if you want different languages, tone, or stricter filtering.