In this video, learn how to build a web3 AI game using thirdweb and OpenAI. We'll be building a text based adventure game where OpenAI will generate an adventure for you to find 3 keys or NFTs to claim. In combination with thirdweb's Engine we can create functions that OpenAI can use to execute blockchain transactions.
**Mumbai testnet support has been officially deprecated. Transition to the Amoy testnet for improved scalability and reduced gas fees.**
GitHub repo: [ Ссылка ]
thirdweb Engine Docs: [ Ссылка ]
How to setup local thirdweb Engine: [ Ссылка ]
thirdweb API: [ Ссылка ]
Creating an API: [ Ссылка ]
thirdweb Docs: [ Ссылка ]
Join our Community of over 30,000 Web3 builders: [ Ссылка ]
thirdweb Official Site: [ Ссылка ]
thirdweb Twitter: [ Ссылка ]
Timestamps:
00:00 Demo of web3 AI text based adventure game
02:20 Introduction to building a web3 AI game with OpenAI
03:30 Deploy ERC-1155 smart contract with thirdweb
06:55 Create and setup a new project with thirdweb
10:00 Create login flow with Connect Wallet UI component
13:50 Start creating Chat component for AI chat
15:45 Create API request to OpenAI to generate chat messages
20:45 Create thirdweb Engine functions for OpenAI to execute based on game
30:55 Give OpenAI to ability to call Engine function in chat API
33:45 Build out the UI components for chat input and chat messages
44:54 Conclusion
![](https://i.ytimg.com/vi/jbdn5esKGKg/maxresdefault.jpg)