Parents, child safety groups and politicians have been putting pressure on tech companies to make AI chatbots safer.