Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lauragift21/workers-ai-workshop

This workshop was held at CityJS Conference Lagos
https://github.com/lauragift21/workers-ai-workshop

ai cloudflare cloudflare-workers workshop

Last synced: about 4 hours ago
JSON representation

This workshop was held at CityJS Conference Lagos

Awesome Lists containing this project

README

        


Build a ChatGPT Clone with Workers AI Workshop



Workers AI allows you to run machine learning models, on the Cloudflare network, from your own code – whether that be from Workers, Pages, or anywhere via REST API.




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.


## Prerequisites

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](https://www.cloudflare.com/).

- __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.

### Slides

These are the slides that accompany the workshop: [Workers AI Presentation](https://docs.google.com/presentation/d/1dB-H5jeyDJgFmS58yfEJ-5ZEM_N73qvsRFpYXSnW6aM/edit?usp=sharing)

## [Lab 1: Getting Started](./lab1.md)
This is where you start the workshop journey and set up the initial project environment.

## [Lab 2: Connect your Worker to Workers AI](./lab2.md)

Establish a connection between your Worker and Workers AI by creating a binding.

## [Lab 3: Run Inference Task in your Worker](./lab3.md)
Implement the core functionality by running an inference task with your chatbot.

## [Lab 4: Customizing the Chatbot Interface](./lab4.md)
Let's add a bit of love to our application, by creating a UI for the chat interface.

## [Lab 5: Deploy your Worker](./la5.md)
Prepare your chatbot to be accessible globally by deploying it to the internet.

## Next Steps

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](https://discord.gg/cloudflaredev), and share what you've built.

## Additional Resources

To help you along your journey with learning Workers AI, here are some additional resources you can refer to:

- [Workers AI](https://ai.cloudflare.com/): Check out the Workers AI website for more information on its capabilities.
- [Workers AI Docs](https://developers.cloudflare.com/workers-ai/): Dive into the documentation for in-depth knowledge of Workers AI.
- [Workers AI Announcement Post](https://blog.cloudflare.com/workers-ai/): Read the official announcement post to understand the vision and goals of Workers AI.
- [AI Gateway](https://developers.cloudflare.com/ai-gateway/): Explore the AI Gateway, another powerful tool in Cloudflare's AI ecosystem.
- [Vectorize](https://developers.cloudflare.com/vectorize) - Vector Database that enables you to build full-stack, AI-powered applications with Cloudflare Workers.
- [Workers Discord Community](https://discord.gg/cloudflaredev): Got any questions, you can get help from our vibrant discord community.

## Thank You

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!