
Learn to build AI chat apps with JavaScript, React, Astro JS, and the OpenAI API. Create a ChatGPT clone, a text-based adventure game, and a guitar sales assistant.
Pass a user-provided message from the URL to the OpenAI API by reading msg from the URL search params in Astro, and enable server-side rendering to access it.
Improve the chat history with alternating yellow and green message backgrounds, a column layout with eight-pixel gaps, and enter-to-send keyboard support.
Explore ai integration in a game using function calls and system prompts, letting a language model drive a bar adventure and guide passing a security robot after meeting ai specialist.
Develop and test quest-driven navigation in a web app by guarding the east exit with a passcode, tracking quest completion, and displaying dynamic location descriptions.
Initiate a chat with the bar's bartender in a space adventure game, using a system prompt to prime the language model to play the bartender role and guide the conversation.
Finish handling a function call by providing the function result as a function message to the language model and generating the chat completion with the same model.
Start a chat on the server by selecting an NPC from a dropdown and clicking talk to, using the NPC id to initiate the conversation with bartender or Doctor Owen.
Mobilize the new function to reveal how to bypass a security robot, using the system override passcode 12345, completing the second quest with Doctor Owen’s guidance.
Add a price range parameter to the find products by type function and filter results by low, mid, and high price ranges using a price range map.
Implement fuzzy product search by returning all product names when no exact match exists, letting the assistant pick the closest name and confirm with the user before showing details.
Want to build your own ChatGPT-like AI applications?
Learn how to create intelligent chatbots and web apps using the OpenAI API, JavaScript, React, and Astro! Whether you’re a web developer, entrepreneur, or AI enthusiast, this course will teach you how to integrate AI into your projects and make them more interactive.
In this video course, you will embark on a thrilling journey into the world of web development and Artificial Intelligence. You’ll learn how to create AI-powered chat applications using JavaScript, React, AstroJS, and the OpenAI API. Throughout the course, you’ll work with the OpenAI API, which is using the same AI/Large Language Model (LLM) that powers ChatGPT. No prior AI experience is needed—just basic web development skills!
The course is divided into three exciting projects:
Project 1 – AI Chatbot: Build a ChatGPT-like chatbot and master the OpenAI API integration.
Project 2 – Text-Based Adventure Game: Create an AI-driven interactive storytelling experience.
Project 3 – AI-Powered Sales Assistant: Develop a chatbot for an e-commerce site to enhance customer experience.
By the end of this course, you’ll have hands-on experience building AI-powered apps that engage users and provide real-world value.
Don’t just use AI—build with it! Enroll now and start creating AI-powered web apps today!