ALBANY — New York is taking steps to better harness artificial intelligence and robotics, and hopefully prevent an uprising by our machines.

Gov. Andrew M. Cuomo signed legislation on Wednesday creating a commission tasked with delivering a report by the end of next year on how the state can utilize and regulate these evolving high-tech areas.