He told ChatGPT he was suicidal. It helped with his plan, family says.