Process a conversation as one unit
A chat log only works as a training example if references survive: the customer in message one is the same as in message seven. Send the whole conversation in one call rather than single messages, so placeholders or fake names stay consistent within it.
Convert to your provider’s training format only afterwards. That way JSON structure and role labels do not interfere with detection.