Format payload before sending message