Skip to content

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.

Notifications You must be signed in to change notification settings

adityathakurxd/make-real-polls

Repository files navigation

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •