Code Monkey home page Code Monkey logo

adityathakurxd / make-real-polls Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 990 KB

Create interactive polls directly from the whiteboard content. Built on top of tldraw make-real template and live audio-video by 100ms, it uses OpenAI's GPT Vision to create an appropriate question with options to launch a poll instantly that helps engage the audience.

Home Page: https://make-real-polls.vercel.app

TypeScript 83.84% CSS 16.03% JavaScript 0.13%
100ms 100mslive gpt gpt-vision make-real openai-api tldraw

make-real-polls's Introduction

Polls AI

Polls AI is a demo to showcase interactivity and start polls from the content on the whiteboard in a few clicks.

Built on top of tldraw’s Make Real template and live audio-video powered by 100ms, it uses OpenAI’s GPT Vision to understand the shapes and create an appropriate question with options to launch a poll in an instant and engage the audience.

Polls AI Banner


How to setup locally?

  1. Fork the repository and clone it to your computer
  2. Run npm install to install dependencies
  3. Get an OpenAI API key from platform.openai.com/api-keys. Make sure you are at least a Tier 1 API user, which means you have access to GPT-4 Vision. You can check your tier on the OpenAI API Limits.
  4. Create a .env.local file that contains OPENAI_API_KEY=your api key here
  5. Head to 100ms Dashboard and create an account or login to an existing one.
  6. Click on the Create Template button on the 100ms Dashboard.
  7. Select 'Import Template' option and from the cloned repository find the 100ms-template-config.json file and import it to instantly create a template with the required configuration.

Untitled design

  1. Once a template is created, copy the Template Id from the Templates section in the side navigation bar and paste it into the .env.local file as TEMPLATE_ID=your template id.
  2. Now, using the side navigation bar again, navigate to the Developer section.
  3. Copy the Management Token and add it to your .env.local file as MANAGEMENT_TOKEN=your management token here

Untitled design (1)

  1. Run npm run dev
  2. Open localhost:3000 and write some content to launch polls from!

We believe using Polls AI, educators can now create polls effortlessly by selecting the content on the whiteboard. This would not only fosters engagement but also allow tutors to continue with their lectures without constant interruptions.

make-real-polls's People

Contributors

adityathakurxd avatar kaustubhkumar05 avatar todepond avatar

Stargazers

 avatar Rahul Makhija avatar

Watchers

 avatar

make-real-polls's Issues

Create individual rooms on Join

Currently, everyone joins one big public room. It would be better if the users join a new room with a random ID, that they can invite other people to it using the room code.

  • Create a new room on join using Rooms API
  • Modify the demo yjs server to connect based on room
  • Add an option to accept room code and join a particular room invite

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.