SmartyCall: An AI Trivia Game
SmartyCall is an interactive trivia game that uses Node.js, Couchbase, Twilio Voice and SMS APIs, and the OpenAI API to deliver trivia questions to players via phone calls and SMS. Players can register via SMS, receive trivia questions through phone calls, and get their scores tracked in real-time.
This application was built for the Twilio Hackathon Challenge on devto.
Features
- User registration via SMS
- AI-generated trivia questions using OpenAI API
- Cached trivia questions in Couchbase
- Interactive voice-based gameplay with Twilio Voice
- Score tracking and leaderboard via Couchbase
- Delivery status tracking for SMS messages
Technologies Used
- Node.js
- Express.js
- Couchbase
- Twilio Voice and SMS APIs
- OpenAI API
Prerequisites
- Node.js and npm installed
- Couchbase Capella account
- Twilio account with a phone number
- OpenAI API key
Installation
-
Clone the repository:
git clone https://github.com/hummusonrails/trivia-game.git cd trivia-game
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env
file in…