Artificial intelligence tools, including chatbots from Google, Amazon and OpenAI, need to be regulated by law in Australia, an inquiry recommends.