In this hands-on session, you will learn how to harness the power of Cloudflare's global network and Workers AI to create smart conversational chatbots. By the end of this workshop, you will have the skills to develop your own chatbots capable of engaging in natural and interesting conversations.
Before we dive into building your ChatGPT clone, make sure you have the following prerequisites in place:
-
Cloudflare Account: You'll need an active Cloudflare account. If you don't have one, sign up at Cloudflare.
-
Basic Knowledge of JavaScript: Familiarity with JavaScript will be beneficial, as we will be writing code to deploy the chatbot.
-
A Code Editor: You should have a code editor of your choice (e.g., Visual Studio Code, Stackblitz, GitHub Codespaces, or any other) installed on your system or accessible on your browser.
These are the slides that accompany the workshop: Workers AI Presentation
This is where you start the workshop journey and set up the initial project environment.
Establish a connection between your Worker and Workers AI by creating a binding.
Implement the core functionality by running an inference task with your chatbot.
Let's add a bit of love to our application, by creating a UI for the chat interface.
Prepare your chatbot to be accessible globally by deploying it to the internet.
Once you've completed this workshop, you're on your way to creating more advanced chatbots and exploring the full potential of Workers AI. Here are some next steps to consider:
-
Modify your chatbot to suit your specific needs. You can teach it industry-specific jargon, incorporate your branding, and tailor its behavior.
-
Add ability to save generated reponses for 30 day period.
-
Join the Cloudflare Discord community, and share what you've built.
To help you along your journey with learning Workers AI, here are some additional resources you can refer to:
- Workers AI: Check out the Workers AI website for more information on its capabilities.
- Workers AI Docs: Dive into the documentation for in-depth knowledge of Workers AI.
- Workers AI Announcement Post: Read the official announcement post to understand the vision and goals of Workers AI.
- AI Gateway: Explore the AI Gateway, another powerful tool in Cloudflare's AI ecosystem.
- Vectorize - Vector Database that enables you to build full-stack, AI-powered applications with Cloudflare Workers.
- Workers Discord Community: Got any questions, you can get help from our vibrant discord community.
I hope you enjoyed this workshop! After completing it, I encourage you to share what you've built online, and continue iterating on your chatbot. The world of AI chatbots is vast, and with the tools and knowledge gained here, you have the potential to create amazing conversational experiences.
If you have any questions or run into issues during the workshop, don't hesitate to ask for help during the session. Happy Coding!