completed work on chatmessagetemplate.