update chat sample