AI is capturing the attention of statehouses across the country. Lawmakers are racing to put up guardrails around the rapidly advancing technology, grappling with how to embrace its massive innovation potential while protecting their constituents from its harms.