create response when message is sent