const sendMessage = _.template(messages[opencloseResponse.openclose]); console.log(sendMessage({ first_name: 'Jeremy' }));