build most of invitation message processing