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.
- Fork the repository and clone it to your computer
- Run
npm install
to install dependencies - 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.
- Create a
.env.local
file that containsOPENAI_API_KEY=your api key here
- Head to 100ms Dashboard and create an account or login to an existing one.
- Click on the Create Template button on the 100ms Dashboard.
- 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.
- 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 asTEMPLATE_ID=your template id
. - Now, using the side navigation bar again, navigate to the Developer section.
- Copy the Management Token and add it to your
.env.local
file asMANAGEMENT_TOKEN=your management token here
- Run
npm run dev
- 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.