back-end for template message actions