This explains all of it. The nail was in the coffin at this stage by the sound of things, before he engaged with the bot. Not entirely sure that the two are correlated.
It kind of is the man's fault but I don't think he is to blame. I've been there. When you want to end your life, help is the last thing you want. He probably did speak to loads of people and might even be on medication, none of this helped me in any significant way. You need to talk to a professional regularly BEFORE you get to this point. Healthy lifestyle is the second best thing you can do but also the hardest thing to do when you are utterly depressed and dont want to go on. Your body feels like its filled with lead, you have intense emotional (and sometimes physical) pain and feel like there is no point in persevering as you will be fighting this battle everyday for the rest of your life. It's super difficult; most poeple don't realise this part.
Unfortunatelly most of the world does not care about mental health. Most public health schemes and private health insurances do not cover mental health. In Australia, I pay about $250 per session, 2 sessions per month. Can't imagine poeple living on the breadline, who needs these services the most, being able to pay for this out of pocket.