build message from message and url