AI and Web3: The Next Generation of the Internet for a Decentralized World