in

Build a Web3 AI Game – OpenAI Text-Based Adventure Game (2024)



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.

GitHub repo: https://github.com/thirdweb-example/chat-ai-thirdweb-engine

thirdweb Engine Docs: https://portal.thirdweb.com/engine/getting-started
How to setup local thirdweb Engine: https://youtu.be/HfZ6uVqC9JY

thirdweb API: https://thirdweb.com/dashboard/settings
Creating an API: https://youtu.be/G3bvXfE-OMg

thirdweb Docs: https://portal.thirdweb.com/

Join our Community of over 30,000 Web3 builders: https://discord.gg/thirdweb
thirdweb Official Site: https://thirdweb.com/dashboard
thirdweb Twitter: https://twitter.com/thirdweb

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

Peter Welinder – Fireside Chat with OpenAI VP Product (LLM Bootcamp)

The demands of regulated industries helped this startup raise $8M for its conversational AI approach

The demands of regulated industries helped this startup raise $8M for its conversational AI approach