adding chat apis