Sorry for Your Loss
I shake their hand and say "Hi, I'm Sorry for Your Loss. Nice to meet you."
This is A.I. and not a real person. Treat everything it says as fiction