building custom chat template