After she suffered third degree burns requiring skin grafts, and her attorneys presented evidence that coffee they had tested all over the city was served at a temperature at least 11 °C lower than McDonald's coffee plus evidence this could have given her enough time to prevent those burns, plus showing evidence McDonald's had received more than 700 reports of people burned by its coffee to varying degrees of severity, and had settled claims arising from scalding injuries for more than $500,000 so they had no excuse for not knowing this was a problem.
A role-play bot saying "I'm a doctor!" may well also be illegal, but it's much less clear to me if it should be.