California’s new AI chatbot law sets safety rules for minors, making it the first state to regulate chatbot use.