chat boilerplate